I have tried to implement a few different columns but haven't been too succesful...
If I would implement a columns how often OOP folds to a cbet I would write this as:
All the columns is for HU fyi.
- Code: Select all
sum (if[[cash_hand_player_statistics.flg_f_fold]^1 AND [lookup_actions_p.action = 'BC']^2 AND [lookup_actions_f.action = 'B']^3 AND not([cash_hand_player_statistics.flg_f_has_position]^4), 1, 0])
where:
^1 = the condition I want to count (i.e When the OOP folds)
^2 = the previous action from preflop where IP Bets and OOP calls.
^3 = the action from flop where IP bets again (i.e cbet)
^4 = only get the stats from OOP
Is it correct? Or do I miss out on something here?
I don't really understand the logic behind the 'lookup_actions' function. Does it register all the previous action from preflop, flop... depending on what you put in. Or does it register action from a specific player (in this case OOP or IP).
And another question:
How does the code differ if I want to have a column that counts the amount of times that IP bets or if OOP folds to that bet in the same situaton.
Is there some dummy guide about this or something else that can help?
Thanks in advance!