Question about custom stat

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

Re: Question about custom stat

Postby jaxx » Sun Jan 31, 2010 7:31 am

when I use two AND, do I need additional brackets or something? or this is enough:

sum( if[tourney_holdem_hand_player_statistics.flg_p_first_raise AND tourney_holdem_hand_player_statistics.flg_p_open
AND tourney_holdem_hand_player_detail.amt_before != tourney_holdem_hand_player_detail.amt_p_raise_made
, (tourney_holdem_hand_player_detail.amt_p_raise_made / tourney_holdem_blinds.amt_bb), 0])
jaxx
 
Posts: 87
Joined: Thu Oct 09, 2008 3:37 pm

Re: Question about custom stat

Postby kraada » Sun Jan 31, 2010 9:46 am

That's sufficient; logically A AND (B AND C) is equivalent to (A AND B) AND C. So using parentheses to force a specific order of operations is unnecessary.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Question about custom stat

Postby jaxx » Sun Mar 07, 2010 3:43 pm

Thanks
Another question:

Are there stats VPIP (from SB) and VPIP from (BB)? - I need them for HU SNGs
Also I need a statistic which is showing how often the player folded to a raise when limped, but the current limp fold statistic which I have is -
(cnt_p_limp_fold / cnt_p_limp) * 100, however I need something like (number of times the player limped and folded to a raise / number of times the player limped and there was a raise)
Can you help me for these?
Thanks
jaxx
 
Posts: 87
Joined: Thu Oct 09, 2008 3:37 pm

Re: Question about custom stat

Postby WhiteRider » Sun Mar 07, 2010 4:58 pm

VP$IP SB is a built in stat.
There isn't a BB version but it will be easy to build by duplicating the SB version and changing the checks for the blinds round in the column.
Custom Reports guide

There are a set of limp / (fold/call/raise) stats in the Repository, posted by me.
They are cash versions but you can import and convert them for tournament use (if you are using Beta 30.7) using the "Convert To" option on the Statistics tab in the custom stats window.
WhiteRider
Moderator
 
Posts: 54018
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Question about custom stat

Postby jaxx » Sat Mar 13, 2010 9:00 am

I imported and converted the limp statistics and everything is ok

However I did not understand about VPIP BB.
Currently VPIP SB is (cnt_vpip_sb / cnt_sb) * 100
So I have to duplicate also both columns and change the formula inside them?

Currnetly cnt_sb is
sum( if[tourney_holdem_hand_player_statistics.flg_blind_b = false AND tourney_holdem_hand_player_statistics.flg_blind_s, 1, 0])

and

cnt_vpip_sb is
sum( if[tourney_holdem_hand_player_statistics.flg_blind_b = false AND tourney_holdem_hand_player_statistics.flg_blind_s AND tourney_holdem_hand_player_statistics.flg_vpip, 1, 0] )

What should be the change?
jaxx
 
Posts: 87
Joined: Thu Oct 09, 2008 3:37 pm

Re: Question about custom stat

Postby kraada » Sat Mar 13, 2010 9:48 am

cnt_bb:
sum( if[tourney_holdem_hand_player_statistics.flg_blind_b AND tourney_holdem_hand_player_statistics.flg_blind_s = false, 1, 0])

and

cnt_vpip_bb is
sum( if[tourney_holdem_hand_player_statistics.flg_blind_b AND tourney_holdem_hand_player_statistics.flg_blind_s = false AND tourney_holdem_hand_player_statistics.flg_vpip, 1, 0] )
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Question about custom stat

Postby jaxx » Sun Mar 14, 2010 7:24 am

Thanks. it's working.

some more questions:
- why we check both if player is bb and is not sb? isn't checking for bb enough?
- cbet turn statistic - is it necessary to be the preflop raiser so as to be counted as cbet turn? I.e. is bet flop/bet turn enough or it must be raise preflop/bet flop/bet turn?
- is there a way in case of Heads up table (SNG), a special HUD, which I've prepared for heads up, to appear automatically?
jaxx
 
Posts: 87
Joined: Thu Oct 09, 2008 3:37 pm

Re: Question about custom stat

Postby kraada » Sun Mar 14, 2010 8:31 am

Checking for just the blind you are in is sufficient but I wanted to keep the column in the same format so that you could see the differences I made.

In order to cbet the turn a player must have raised preflop and cbet the flop and not faced a raise.

If you set a HUD Profile as Default for the heads up tournament it should be selected as the default HUD for that kind of tournament in the future.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Question about custom stat

Postby preparac » Mon Mar 15, 2010 5:48 pm

Or could I use also

AND NOT
(tourney_holdem_hand_player_statistics.enum_allin = 'P' AND tourney_holdem_hand_player_statistics.flg_p_open_opp AND lookup_actions_p.action LIKE 'R')

to exclude situations where a players first action is raising allin?
preparac
 
Posts: 323
Joined: Thu May 15, 2008 6:23 am

Re: Question about custom stat

Postby kraada » Mon Mar 15, 2010 6:35 pm

That should exclude those situations yes.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

PreviousNext

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

Who is online

Users browsing this forum: No registered users and 8 guests

cron