Page 1 of 1

Custom Statistic Color Options Display on Hud Intermittently

PostPosted: Mon Sep 23, 2024 11:10 am
by wallacedavidl
PCAT-COLOR-TAB.png
Hey, Team -

I've created a custom statistic that's color coded based on various 3-character text strings. Sometimes it works, and sometimes not. I've attached the image of the color tab. What can I do to resolve this? I'm using PT 4.18.2. Thanks...

Re: Custom Statistic Color Options Display on Hud Intermitte

PostPosted: Tue Sep 24, 2024 5:58 am
by Flag_Hippo
You need to set color conditions based on the value of a statistic or column. A statistics value is defined in its 'Value Expression' and not on any formatting you are using on that statistic.

Re: Custom Statistic Color Options Display on Hud Intermitte

PostPosted: Tue Sep 24, 2024 6:57 pm
by wallacedavidl
To ensure my understanding...in the following, I want Good highlighted in Red and Better highlighted is Green. Based on the below Lev1 statistic value expression, what must the two Color Condition Expressions be?

If I have a statistic value expression such as, '

Statistic: lev1
if (A > B AND (C < (D + E)),
format('GOOD'),
if (S < T AND (X >= (L - M)),
format('BETTER'), format('-')))

Color:

#Lev1#

Re: Custom Statistic Color Options Display on Hud Intermitte

PostPosted: Wed Sep 25, 2024 7:55 am
by Flag_Hippo
wallacedavidl wrote:If I have a statistic value expression such as, '

Statistic: lev1
if (A > B AND (C < (D + E)),
format('GOOD'),
if (S < T AND (X >= (L - M)),
format('BETTER'), format('-')))

That is not a statistics value expression. Select any statistic and on the definitions tab there is a field labelled 'Value Expression' which references the columns used by the statistic. If you haven't already read these please check out this guide for the basics on custom statistics and this guide for a deeper walkthrough. While the latter was written for PokerTracker 3 and the user interface is different the techniques still apply to PokerTracker 4. For example if you have a statistic and wanted it to color it based on VPIP you can use:

Color Condition Example 1
Code: Select all
#VPIP# < 30

This will color the statistic based on output for the 'Value Expression' for VPIP which is:

Code: Select all
(cnt_vpip / (cnt_hands - cnt_walks)) * 100

You can also set color conditions using columns. So the same example for VPIP coloring but using columns would be:

Color Condition Example 2
Code: Select all
(cnt_vpip / (cnt_hands - cnt_walks)) < .3

Note here I'm not using the multiplication by 100 so .3 is being used instead of 30.

I don't know what A, B, C e.t.c is in your example but if you wanted to color a statistic if CBet Flop % is lower than CBet Turn % then that would be:

Color Condition Example 3
Code: Select all
#CBet Flop# < #CBet Turn#

or using the columns for those statistics:

Color Condition Example 4
Code: Select all
(cnt_f_cbet / cnt_f_cbet_opp) < (cnt_t_cbet / cnt_t_cbet_opp)

Re: Custom Statistic Color Options Display on Hud Intermitte

PostPosted: Wed Sep 25, 2024 8:19 am
by wallacedavidl
Thanks. I got it...