Is it possible to limit a custom stat to only the last 100?

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Is it possible to limit a custom stat to only the last 100?

Postby Nidel » Wed Jun 11, 2025 8:25 pm

Hi everyone,

I’ve been working on some custom statistics in PokerTracker 4, and I’m wondering if there’s any way to create a stat that only takes into account the last 100 opportunities (or a fixed number of recent samples), rather than calculating over the full hand history.

For example, I’d like to create a stat like “Fold to Flop CBet” that only reflects the player’s behavior in the last 100 times they had a chance to face a CBet. I understand that PT4 doesn’t allow SQL features like LIMIT or ORDER BY in custom stats, but I’m hoping there might be some workaround or internal function I’ve overlooked.

I’m comfortable writing Expression Stats and Boolean Conditions, but I haven’t found a way to access data in a time-ordered or hand-ordered manner. If any developers or advanced users know whether this is technically possible—or if it might be supported in the future—I’d really appreciate your input.

Thanks in advance!
Nidel
 
Posts: 50
Joined: Wed Mar 28, 2012 9:50 am

Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 3 guests