[HELP] HU open shove stat

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

[HELP] HU open shove stat

Postby RedRat » Wed Oct 10, 2012 11:13 pm

Hey guys!

I am trying to create a stat, that displays the open-shove-percentage of a player in the small blind (in HU), but I struggle.

Stat Value Expression:
Code: Select all
(cnt_p_os / cnt_p_os_opp) * 100

This is basically times player in sb open-shoves / times player is in sb *100.

cnt_p_os:
Code: Select all
sum(if[tourney_hand_player_statistics.flg_p_first_raise AND lookup_positions.flg_sb AND tourney_hand_player_statistics.amt_p_raise_made / tourney_hand_player_statistics.amt_p_effective_stack >= 0.7 , 1, 0])

As you see, I define open-shove as a raise of 0.7 times the effective stacks. I don't know a better way.

cnt_p_os_opp:
Code: Select all
sum(if[lookup_actions_p.action LIKE '__%' OR (lookup_actions_p.action LIKE '_' AND tourney_hand_player_statistics.amt_p_raise_facing < (tourney_hand_player_statistics.amt_before - (tourney_hand_player_statistics.amt_blind + tourney_hand_player_statistics.amt_ante))), 1, 0])

I don't get this at all, but it works in other scenarios, so I assume the problem lies within cnt_p_os.

If you know a good guide on stat-making in pt4, I am all ears ;-)

Cheers,
George
RedRat
 
Posts: 5
Joined: Mon Feb 06, 2012 9:21 am

Re: [HELP] HU open shove stat

Postby WhiteRider » Thu Oct 11, 2012 3:53 am

I'm not sure what you're trying to do in cnt_p_os_opp?
You always have an opportunity to open-shove from the small blind, so all you need is:

sum(if[ lookup_positions.flg_sb, 1, 0])
WhiteRider
Moderator
 
Posts: 54018
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: [HELP] HU open shove stat

Postby RedRat » Thu Oct 11, 2012 10:52 am

sum(if[ lookup_positions.flg_sb, 1, 0])


Just works. Thank you very much, WhiteRider =)
RedRat
 
Posts: 5
Joined: Mon Feb 06, 2012 9:21 am

Re: [HELP] HU open shove stat

Postby simpsp31 » Mon Oct 15, 2012 11:19 am

Could you post this in repository, thanks.
simpsp31
 
Posts: 42
Joined: Fri Mar 23, 2012 11:11 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: TIGANCIC and 39 guests

cron