Page 1 of 2

How to create: Pre-Flop All-in Stat for HUD?

PostPosted: Sat Jul 10, 2010 6:19 pm
by kakmic
Hi.
I've spend plenty of time to find this one in "custom stats" section but unsuccesful. I apologize if I missed that.
How can I create this stat: "Pre-Flop All-in" for HUD statistics.
There is lots of players who play shortstack and they use to go all-in very often. I would like to have some stats that can show their range of hands. I belive "pre-flop allin times / out of hands played" will give me the stats I'm looking for, but don't know how to set it up correctly.
Any help much appreciated. Thank you.

Re: How to create: Pre-Flop All-in Stat for HUD?

PostPosted: Sun Jul 11, 2010 4:56 am
by WhiteRider
It sounds like you want this for cash tables ("There is lots of players who play shortstack and they use to go all-in very often.") so you'll want these columns (in the Holdem Cash Player Statistics section):

cnt_p_allin =
sum(if[holdem_hand_player_statistics.enum_allin = 'P', 1, 0])

cnt_p_acted =
sum( if[ NOT lookup_actions_p.action='', 1, 0 ] )

If it's for tournaments then you would use the Holdem Tournament Player Statistics section and the cnt_p_allin column would be this:
sum(if[tourney_holdem_hand_player_statistics.enum_allin = 'P', 1, 0])

Then build a stat:
All-In Preflop =
(cnt_p_allin / cnt_p_acted) * 100

See the Tutorial: Custom Reports and Statistics for a walkthrough of how to build a stat from these expressions.

Re: How to create: Pre-Flop All-in Stat for HUD?

PostPosted: Sun Jul 11, 2010 9:13 am
by marvin
sum( if[ NOT lookup_actions_p.action='', 1, 0 ] )
counts the times that the villain has the opportunity of something?
example, about this action preflop in hu: villain (SB) call, BB raise, villain 3bet, BB 4bet, villain goes all-in.

THEN....
sum( if[ NOT lookup_actions_p.action='', 1, 0 ] ) = 3?

sum(if[holdem_hand_player_statistics.enum_allin = 'P', 1, 0]) = 1?

Re: How to create: Pre-Flop All-in Stat for HUD?

PostPosted: Sun Jul 11, 2010 10:32 am
by WhiteRider
The column has a value for each player, so it depends who you are looking at.
For each hand the IF statement will be either 1 or 0 depending on whether the statement is true or false. The SUM then adds up the 1s and 0s to get a count of the number of hands where the condition was true.

In your example the columns will have either 1 or 0 value (because there is only one hand).
For villain both values will be 1 (because the condition in both columns is true for that hand).
For all other players the first column will be 1 (because they made an action), but the second column will be zero (unless BB gets all-in too with his 4-bet).

Re: How to create: Pre-Flop All-in Stat for HUD?

PostPosted: Sun Jul 11, 2010 4:26 pm
by kakmic
Thank you very much. Looks like it works but how can I round the amount to decimal numbers becuase I'm having resluts like: 6.0030402 which looks very bad in HUD.

Re: How to create: Pre-Flop All-in Stat for HUD?

PostPosted: Sun Jul 11, 2010 4:35 pm
by WhiteRider
Fill in the Format tab.
If you use:
/%.2f
..in the Format Expression it will display to that many decimal places in reports, and you can change the decimal places in the Statistic Properties.

Re: How to create: Pre-Flop All-in Stat for HUD?

PostPosted: Mon Jul 12, 2010 2:29 am
by marvin
sum( if[ NOT lookup_actions_p.action='', 1, 0 ] )
then is like (#hands played) - (#played and all fold to the villain that is BB)
(refered to count about villain).
is right?

Re: How to create: Pre-Flop All-in Stat for HUD?

PostPosted: Mon Jul 12, 2010 2:55 am
by WhiteRider
marvin wrote:sum( if[ NOT lookup_actions_p.action='', 1, 0 ] )
then is like (#hands played) - (#played and all fold to the villain that is BB)
(refered to count about villain).
is right?

Yes, exactly right.
You only have an opportunity to go all-in if you have chance to act.

Re: How to create: Pre-Flop All-in Stat for HUD?

PostPosted: Mon Jul 12, 2010 9:13 am
by kakmic
Thank you very much WhiteRider. Thats what I was looking for.

Re: How to create: Pre-Flop All-in Stat for HUD?

PostPosted: Mon Jul 26, 2010 4:02 pm
by longfields
Hi guys,

I'm new here, thanks to everyone for all this information - amazing.

I think I've followed the instructions above, but when I add the new stat to a report and run it, nothing appears (I'm doing this for tourneys, btw). Any ideas what I may be doing wrong?

Thanks again.