I just created a stat for calculating profit when calling down a turn raise when HU on the turn. It's my first custom stat/reports, so I'd want to make sure there aren't any errors. Also, any suggestions for improvement/simplicity are appreciated.
So here are the steps I took:
1. Created a new column call "cust_flg_cd_t_raise" with this definition:
holdem_hand_summary.cnt_players_t = 2
AND holdem_hand_player_statistics.flg_t_face_raise
AND holdem_hand_player_statistics.flg_showdown
AND NOT holdem_hand_player_statistics.flg_t_3bet
AND holdem_hand_player_statistics.cnt_r_call = 1
AND NOT holdem_hand_player_statistics.flg_r_bet
2. Created a variable "var_amt_cd_t_raise_profit" to get the per hand profit (in BB) using this flag:
if(cust_flg_cd_t_raise=false,0,
if(flg_won_hand, (amt_pot / lookup_limit_bb( id_limit )) - 3, 0 - 3 )
)
3. Created a statistic with
value expression: var_amt_cd_t_raise_profit
format expression: format_number(var_amt_cd_t_raise_profit,2,false, false)
Then ran a report with this stat in it. It seemed to work. But I thought there might be a better way to do it....
Thanks for any advice,
Jonah
