fold to 3bet custom stat

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

fold to 3bet custom stat

Postby B Champman » Sun Nov 17, 2013 4:08 pm

hi guys,

Im trying to create my own custom stat and wondering if you can show me where I've gone wrong. Im trying to make a stat that shows fold to 3bet when villain is in BTN (and subsequently every other position once I figure out how to do it)

the stat validates and is in my stats list, but when I put it in the hud/popup the value is always 0% (there will be varying numbers of valid time, but it iwll always be 0, eg: 0/15 or 0/90 when this is clearly not true)


heres my value expression

(cnt_p_3bet_def_action_fold_when_open_raised_btn / cnt_p_3bet_def_opp_when_open_raised) * 100


heres the expression in the column that makes the stat only count when villain is in the BTN

sum(if[char_length(cash_hand_summary.str_aggressors_p) >= 3 and cash_hand_player_statistics.enum_p_3bet_action='F' AND cash_hand_player_statistics.flg_p_first_raise AND substring(cash_hand_summary.str_aggressors_p from 3 for 1)::int = cash_hand_player_statistics.position, 0, 0])


I have never made a stat and may be completely missing a step to creating a custom stat so please bear with me here. any help is greatly appreciated!
B Champman
 
Posts: 128
Joined: Mon Aug 08, 2011 4:28 pm

Re: fold to 3bet custom stat

Postby kraada » Mon Nov 18, 2013 9:52 am

You want to replace:
substring(cash_hand_summary.str_aggressors_p from 3 for 1)::int = cash_hand_player_statistics.position
with
substring(cash_hand_summary.str_aggressors_p from 3 for 1)::int = 0

You want the 3bet to come from the button which is position 0. cash_hand_player_statistics.position is the position of the player whose eyes we are looking through.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: fold to 3bet custom stat

Postby B Champman » Tue Nov 19, 2013 12:39 pm

perfect thank you
B Champman
 
Posts: 128
Joined: Mon Aug 08, 2011 4:28 pm

Re: fold to 3bet custom stat

Postby B Champman » Tue Nov 19, 2013 6:05 pm

when I change it to what you stated, I get invalid SQL statement. how do I fix that?
B Champman
 
Posts: 128
Joined: Mon Aug 08, 2011 4:28 pm

Re: fold to 3bet custom stat

Postby WhiteRider » Wed Nov 20, 2013 3:48 am

Please paste your full expression so that we can see where the error is. If what you had before validated, then kraada's change should certainly work.

I notice that you have "0,0" at the end, though - to count the instances that needs to be "1,0". (That won't stop it validating, though.)
WhiteRider
Moderator
 
Posts: 54017
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: fold to 3bet custom stat

Postby B Champman » Wed Nov 20, 2013 11:26 am

This is the full expression

um(if[char_length(cash_hand_summary.str_aggressors_p) >= 3 and cash_hand_player_statistics.enum_p_3bet_action='F' AND cash_hand_player_statistics.flg_p_first_raise AND substring(cash_hand_summary.str_aggressors_p from 3 for 1)::int = 0
B Champman
 
Posts: 128
Joined: Mon Aug 08, 2011 4:28 pm

Re: fold to 3bet custom stat

Postby kraada » Wed Nov 20, 2013 12:01 pm

It should be:
sum(if[char_length(cash_hand_summary.str_aggressors_p) >= 3 and cash_hand_player_statistics.enum_p_3bet_action='F' AND cash_hand_player_statistics.flg_p_first_raise AND substring(cash_hand_summary.str_aggressors_p from 3 for 1)::int = 0, 1, 0])
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: fold to 3bet custom stat

Postby B Champman » Wed Nov 20, 2013 5:53 pm

alright thank you, just to make sure, what number/s need to be changed for position? that was for BTN which is 0 so for CO would it be 1,1,1]) ?? what do the 3 values mean exactly
B Champman
 
Posts: 128
Joined: Mon Aug 08, 2011 4:28 pm

Re: fold to 3bet custom stat

Postby kraada » Wed Nov 20, 2013 6:01 pm

For CO it's:

sum(if[char_length(cash_hand_summary.str_aggressors_p) >= 3 and cash_hand_player_statistics.enum_p_3bet_action='F' AND cash_hand_player_statistics.flg_p_first_raise AND substring(cash_hand_summary.str_aggressors_p from 3 for 1)::int = 1, 1, 0])

The substring is the position of the 3bettor, that's what you change. The "1, 0" piece is related to the if[] statement. If the entire thing from [ to , is true, it adds 1, if it is false, it adds 0.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: fold to 3bet custom stat

Postby B Champman » Thu Nov 21, 2013 1:58 am

awesome ty, those stats are working!
B Champman
 
Posts: 128
Joined: Mon Aug 08, 2011 4:28 pm


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 22 guests

cron