Page 1 of 2

Custom AFq stats, similar to hand2note

PostPosted: Wed May 14, 2025 6:53 am
by Rikimoro
Hi,
i am trying to create custom AFq stats, similar to hand2note.
H2N Flop AFq formula is this: '(Cases(Bet Flop) + Cases(Raise Flop)) / Cases(Call Flop)'.
So, i simply changed default pokertracker Flop AFq to '((cnt_f_bet + cnt_f_raise) / cnt_f_call)', but numbers are differing.
Can you please help me with this?

Re: Custom AFq stats, similar to hand2note

PostPosted: Wed May 14, 2025 12:44 pm
by Flag_Hippo
You have specifically referenced 'AFq' in this thread but your formulas are for 'AF' so I am a bit confused. If you are actually looking at 'AFq' statistics then they will not give the same results as they have different definitions in each program.

Re: Custom AFq stats, similar to hand2note

PostPosted: Wed May 14, 2025 4:49 pm
by Rikimoro
Yeah, it seems i picked a formula for AF, instead of AFq.
The correct one is 'Cases(Flop Raise or Bet)/Cases(Flop Any Action) * 100', where it is said 'Cases(Flop Any Action) means the number of hands in which the player saw the flop'.
Can you please help me to convert it to pokertracker's expression?

Re: Custom AFq stats, similar to hand2note

PostPosted: Thu May 15, 2025 5:20 am
by Flag_Hippo
Rikimoro wrote:where it is said 'Cases(Flop Any Action) means the number of hands in which the player saw the flop'.

That wouldn't be "the number of hands in which the player saw the flop". It would be the total number of actions the player took on the flop.
Rikimoro wrote:Can you please help me to convert it to pokertracker's expression?

PokerTracker 4 has a built-in statistic called 'Flop AFq' - this does not include checks in the calculation. If you want checks included then there is an 'AFq including Checks' custom statistic package available in the Download Warehouse.

Re: Custom AFq stats, similar to hand2note

PostPosted: Thu May 15, 2025 5:51 am
by Rikimoro
Yeah, i already downloaded AFq including Checks, unfortunately, numbers don't match..
This one: '((cnt_f_bet + cnt_f_raise) / (cnt_f_check + cnt_f_call + cnt_f_fold + cnt_f_bet + cnt_f_raise)) * 100'
For example, H2N3 has AFq for a player on streets 30/35/28, PTR4 - 24/30/24

Re: Custom AFq stats, similar to hand2note

PostPosted: Fri May 16, 2025 6:41 am
by Flag_Hippo
I am not aware of an issue with that in PokerTracker 4. For example here is a small sample of hands for a player:

flop_actions.PNG
(17.62 KiB) Downloaded 6374 times

Flop AFq (including checks) on that sample would be:

(6 / 16) * 100 = 37.5%

Here are the results in PokerTracker 4 and Hand2Note for that sample of hands:

afq.PNG
(19.7 KiB) Downloaded 6318 times

Re: Custom AFq stats, similar to hand2note

PostPosted: Fri May 16, 2025 2:16 pm
by Rikimoro
Thanks for the example! It seems that H2N formula doesn't use addition of actions, but takes just any action.
In your example, we take just any one aggressive action on flop (bet or raise - 4 times) and amount of times a player saw flop (12 times) = (4/12)*100 == 33%.
So, the PTR expression would be like '((counting any bet or raise on flop from the player)/cnt_f_saw)*100', right?

Re: Custom AFq stats, similar to hand2note

PostPosted: Fri May 16, 2025 2:46 pm
by Rikimoro
+we need to exclude all-ins on previous streets, so its only streets, where player had opportunity to make an action.

Re: Custom AFq stats, similar to hand2note

PostPosted: Sun May 18, 2025 6:20 am
by Flag_Hippo
That would require new custom columns:

Code: Select all
sum(if[cash_hand_player_statistics.flg_f_bet or cash_hand_player_statistics.cnt_f_raise > 0, 1, 0])

Code: Select all
sum(if[lookup_actions_f.action LIKE '_%', 1, 0])

Re: Custom AFq stats, similar to hand2note

PostPosted: Mon May 19, 2025 4:49 am
by Rikimoro
Everything works great! Thanks for the help!