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!