Krutch525 wrote:Thank you for the information. I would like this custom stat to apply across any of the hundreds of filters I use. For each scenario, I would rather not have to make an individual "action profit" stat. I have been told it's not possible in PT4's engine.
That is correct. You will need a custom statistic for each scenario although instead of building this for only a turn probe (see below) you can do it for any turn bet (bet, donk bet, cbet, probe bet) instead and then use filters to specify the type of turn bet.
Krutch525 wrote:For the River Probe scenario, I am trying to make a column so it will start the sum counting 'amt_won' at time of river probe but I keep getting 'invalid SQL':
if[cash_hand_player_statistics.flg_t_probe,(cash_hand_player_statistics.amt_won + cash_hand_player_statistics.amt_bet_p + cash_hand_player_statistics.amt_bet_f) / cash_limit.amt_bb, 0]
1. If you are writing this as a 'Player' statistic your custom column should be in this format:
- Code: Select all
sum(if[expression, then, else])
2. You say this is for a river probe but the code you are providing is for the turn.
3.
cash_hand_player_statistics.flg_t_probe does not exist in the database schema. You can get the code for a turn probe from the
cnt_t_probe column expression:
- Code: Select all
cash_hand_player_statistics.flg_t_bet AND lookup_actions_f.action LIKE 'X' AND lookup_actions_p.action NOT LIKE '%R' AND cash_hand_player_statistics.flg_p_face_raise AND ((cash_hand_summary.cnt_players >= 3 and cash_hand_player_statistics.val_p_raise_aggressor_pos < cash_hand_player_statistics.position) OR (cash_hand_summary.cnt_players = 2 and cash_hand_player_statistics.flg_blind_b))
4. H2N provide this definition for action profit:
H2N wrote:Action Profit of a specific action in a specific hand equals the difference between our stack size at the end of the hand and our stack size right before the action.
which for a turn probe would be:
- Code: Select all
(cash_hand_player_statistics.amt_before + cash_hand_player_statistics.amt_won) - (cash_hand_player_statistics.amt_before - cash_hand_player_statistics.amt_bet_p - cash_hand_player_statistics.amt_bet_f)