Creating stats relative to tournament blinds

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

Creating stats relative to tournament blinds

Postby SakisLam » Mon Apr 19, 2010 8:43 am

The main idea is to create a unique stat (so i can use it with HUD) for each tournament blind level e.g VPIP when blinds are 10/20, VPIP when blinds are 15/30 and so on..
I have no idea where to start from. I have very limited general programming skills..Any directions on where to start/look for would be very appreciated! I've searched for a variable which indicates the blind level but could not find one..

thanks!
SakisLam
 
Posts: 22
Joined: Wed Feb 27, 2008 3:13 pm

Re: Creating stats relative to tournament blinds

Postby WhiteRider » Mon Apr 19, 2010 9:41 am

You can do that in the normal HUD configuration by enabling the 'stats from current tournament limit only' option.
Tutorial: Configuring HUD Options

That setting will apply to all stats, though, so if you do want to build these specific custom stats please post back and I'll give you an example.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Creating stats relative to tournament blinds

Postby Muunis » Fri Apr 23, 2010 11:12 pm

Hello,

How about using stats for current blind level, but also using stats from all hands. Furthermore is it possible to use combined stats from few blind levels(like 100/200 and 200/400 together).

Thank You
Muunis
 
Posts: 2
Joined: Thu May 15, 2008 12:19 pm

Re: Creating stats relative to tournament blinds

Postby WhiteRider » Sat Apr 24, 2010 4:11 am

These sorts of combinations aren't currently possible (without building custom stats) but have been requested before - I don't know when it will be added, though.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Creating stats relative to tournament blinds

Postby Muunis » Sun Apr 25, 2010 9:15 am

Can you give any example how custom stats is created? Have some programing experience, so need just tips how to start.
Thank You
Muunis
 
Posts: 2
Joined: Thu May 15, 2008 12:19 pm

Re: Creating stats relative to tournament blinds

Postby WhiteRider » Sun Apr 25, 2010 10:52 am

WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Creating stats relative to tournament blinds

Postby SakisLam » Wed Jul 06, 2011 3:01 pm

bump

Im trying to read the tutorials, but not with much success! Can you please give us an example of a custom statistic saying : "PFR when blinds are 10/20".

thanks a lot!
SakisLam
 
Posts: 22
Joined: Wed Feb 27, 2008 3:13 pm

Re: Creating stats relative to tournament blinds

Postby WhiteRider » Wed Jul 06, 2011 4:38 pm

The big blind amount is stored in the database field tourney_holdem_blinds.amt_bb so the column to count the number of times a player raises preflop when the big blind is 20 is this:

cnt_pfr_bb20 =
sum(if[tourney_holdem_hand_player_statistics.cnt_p_raise > 0 AND tourney_holdem_blinds.amt_bb = 20, 1, 0])

You could make a similar addition to a new version of the cnt_hands column like this:

cnt_hands_bb20 =
sum(if[tourney_holdem_hand_player_statistics.id_hand > 0 AND tourney_holdem_blinds.amt_bb = 20, 1, 0])

..and then a new version of the PFR stat using these new columns, so the Value Expression would be:

(cnt_pfr_bb20 / cnt_hands_bb20) * 100

Note, though, that you could see this value using the normal PFR stat either in the General > Player Statistics report, or for the current blind level in the HUD if you enable the 'stats from current tournament blind level only' option in the HUD Options.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests