[Custom Stat] Shove % while M is small
![Post Post](https://www.pokertracker.com/phpBB3-forums/styles/prosilver-embed/imageset/icon_post_target.gif)
I'm trying to create a custom stat about how often a player shoves given that their M is small. It would be limp_open_shove / limp_open_shove_opp, where limp_open_shove_opp is defined as "M < 5 and player_can_open_pot", i.e.:
The problem is that the first condition about the M value (everything before the "and") is only evaluated once, and makes the entire column either 0 (if it resolves false) or leaves it unaffected (if it resolves true). What I want, of course, is that it is evaluated separately for each hand, just as the field tourney_hand_player_statistics.flg_p_open_opp. I also tried reducing it to just one condition (e.g., live_tourney_player.amt_stack < 1000) to test, and it's the same issue. I assume I'm using the wrong fields, but which fields should I use instead?
(limp_open_shove has the identical problem, so the definition doesn't really matter.)
- Code: Select all
sum(if[live_tourney_player.amt_stack / (live_tourney_table.amt_bb + live_tourney_table.amt_sb + (live_tourney_table.amt_ante * live_tourney_table.cnt_players)) < 5 and tourney_hand_player_statistics.flg_p_open_opp, 1, 0])
The problem is that the first condition about the M value (everything before the "and") is only evaluated once, and makes the entire column either 0 (if it resolves false) or leaves it unaffected (if it resolves true). What I want, of course, is that it is evaluated separately for each hand, just as the field tourney_hand_player_statistics.flg_p_open_opp. I also tried reducing it to just one condition (e.g., live_tourney_player.amt_stack < 1000) to test, and it's the same issue. I assume I'm using the wrong fields, but which fields should I use instead?
(limp_open_shove has the identical problem, so the definition doesn't really matter.)