I want to create a stat
Fold % to aggresion When Bet = Percentage of the time a player eventually folded to aggression (i.e. to a single raise or a bet on a later street) when they made some bet.
I would build the value expression like this:
((cnt_fold_toaggression_when_f_bet + cnt_fold_toaggression_when_t_bet + cnt_fold_toaggression_when_r_bet) / (cnt_f_bet_face_aggression + cnt_t_bet_face_aggression + cnt_f_bet_face_aggression)) * 100
where
cnt_fold_toaggression_when_f_bet =
sum( if[ tourney_holdem_hand_player_statistics.flg_f_bet AND (tourney_holdem_hand_player_detail.amt_f_bet_facing > 0 OR
tourney_holdem_hand_player_detail.amt_t_bet_facing > 0 OR tourney_holdem_hand_player_detail.amt_r_bet_facing > 0) AND NOT (tourney_holdem_hand_player_statistics.flg_won_hand) AND NOT (tourney_holdem_hand_player_statistics.flg_showdown), 1, 0])
and
cnt_f_bet_face_aggression
sum(if[ tourney_holdem_hand_player_statistics.flg_f_bet AND (tourney_holdem_hand_player_detail.amt_f_bet_facing > 0 OR
tourney_holdem_hand_player_detail.amt_t_bet_facing > 0 OR tourney_holdem_hand_player_detail.amt_r_bet_facing > 0), 1, 0])
But I thik like this I will not exactly count the cases whre the betting player folds to a single raise or a bet on a later street ....?
Thanx for your help
