PT4 custom stat doesnt work properly

Questions and discussion about PokerTracker 4 for Windows

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

PT4 custom stat doesnt work properly

Postby camelino » Sun Apr 08, 2012 10:26 am

Hi

Could you pls explain why this

if ((cnt_vpip / (cnt_hands - cnt_walks) * 100) > 25
AND ((cnt_f_cbet_def_action_fold / cnt_f_cbet_def_opp) * 100) < 75
AND ((cnt_t_cbet_def_action_fold / cnt_t_cbet_def_opp) * 100) < 65
AND cnt_t_cbet_def_opp > 1
,'STA'
,'')

returns 'STA' (for station) on opponents who have VPIP > 25 but have never faced even a flop cbet and therefore could not fullfill any of the other 3 conditions?
What did i do wrong?

PS: I post this here cause there are no sub categories in PT4 forum (might wanna change that)
camelino
 
Posts: 75
Joined: Wed Oct 01, 2008 8:37 am

Re: PT4 custom stat doesnt work properly

Postby WhiteRider » Mon Apr 09, 2012 4:15 am

If they haven't had an opportunity then the other expressions would actually give an error (because you can't divide by zero) but PT4 handles this by making the result zero. Therefore the middle two expressions will be true.
I would expect it to fail on the condition "cnt_t_cbet_def_opp > 1", though. However, we just fixed a bug related to that database field, but that change hasn't been released yet.
When the next version comes out you will need to reimport the hands, but this expression should then work correctly. If you have problems with it in the next release please let us know.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to PokerTracker 4

Who is online

Users browsing this forum: No registered users and 19 guests