Custom Statistic Color Options Display on Hud Intermittently

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Custom Statistic Color Options Display on Hud Intermittently

Postby wallacedavidl » Mon Sep 23, 2024 11:10 am

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...
wallacedavidl
 
Posts: 47
Joined: Sat Aug 03, 2024 4:37 pm

Re: Custom Statistic Color Options Display on Hud Intermitte

Postby Flag_Hippo » Tue Sep 24, 2024 5:58 am

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.
Flag_Hippo
Moderator
 
Posts: 15176
Joined: Tue Jan 31, 2012 7:50 am

Re: Custom Statistic Color Options Display on Hud Intermitte

Postby wallacedavidl » Tue Sep 24, 2024 6:57 pm

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#
wallacedavidl
 
Posts: 47
Joined: Sat Aug 03, 2024 4:37 pm

Re: Custom Statistic Color Options Display on Hud Intermitte

Postby Flag_Hippo » Wed Sep 25, 2024 7:55 am

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)
Flag_Hippo
Moderator
 
Posts: 15176
Joined: Tue Jan 31, 2012 7:50 am

Re: Custom Statistic Color Options Display on Hud Intermitte

Postby wallacedavidl » Wed Sep 25, 2024 8:19 am

Thanks. I got it...
wallacedavidl
 
Posts: 47
Joined: Sat Aug 03, 2024 4:37 pm


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 19 guests

cron
highfalutin