tlballer wrote:cash_hand_player_statistics.flg_p_3bet_def_opp
This is for a 3bet defend opportunity which is not applicable when you are creating a stat for the player who is 3betting. This should be changed to:
- Code: Select all
cash_hand_player_statistics.flg_p_3bet_opp
tlballer wrote:cash_hand_player_statistics.flg_p_face_raise
This test is not required since by definition it's already true if the player is 3betting or has the opportunity to 3bet.
tlballer wrote:cash_hand_player_statistics.cnt_p_face_limpers > 0
Anything using "cash_hand_player_statistics" is specific to that player (the player the stat is written for) and since the 3bettor is not facing any limpers directly this will not be true. You'll need to test that there were one or more limpers, the player did not limp-3bet themselves and it wasn't a squeeze opportunity:
- Code: Select all
sum(if[cash_hand_player_statistics.flg_p_3bet AND NOT cash_hand_player_statistics.flg_p_limp AND NOT cash_hand_player_statistics.flg_p_squeeze_opp AND char_length(cash_hand_summary.str_aggressors_p) >= 2 AND substring(cash_hand_summary.str_aggressors_p from 2 for 1)::int != substring(cash_hand_summary.str_actors_p from 1 for 1)::int, 1, 0])
This post has information on how the actors and aggressors strings work while
this thread and
this thread discuss how the strings can be compared/tested.