Show times/opportunities if sample size low else percentage

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Show times/opportunities if sample size low else percentage

Postby dajg » Sun May 28, 2017 11:26 am

Hi

I want to alter all the stats on my HUD show they show times/opportunites if there is a small number of opportunities but a percentage when there is a large number.

For instance take the stat 3bet preflop:

(cnt_p_3bet / cnt_p_3bet_opp) * 100

I wanto modify if to be (sorry about the psuedo code):

if cnt_p_3bet_opp<20
count_p_3bet & "/" & count_p_3bet_opp
else
(cnt_p_3bet / cnt_p_3bet_opp) * 100

So for 15 hands it displays "3/15" but for 50 hands it shows "38"

I'd also like to colour code (only the percentages) which I imagine this would complicate

If you show me how to do this for 1 stat I should be able too manage the rest.

Also could you clarify position number for a 6 max zoom game. Which number is:
SB
BB
UTG
HJ
CO
BTN

Many thanks in advance.
dajg
 
Posts: 17
Joined: Wed Dec 02, 2009 2:16 pm

Re: Show times/opportunities if sample size low else percent

Postby dajg » Sun May 28, 2017 12:56 pm

I've found this https://www.pokertracker.com/forums/viewtopic.php?f=45&t=22599#p112452 which shows how to format custom statistics which looks like it would work. An example would still be great though and a reply on the position numbers. Thanks.
dajg
 
Posts: 17
Joined: Wed Dec 02, 2009 2:16 pm

Re: Show times/opportunities if sample size low else percent

Postby Flag_Hippo » Sun May 28, 2017 1:28 pm

For the position numbers you can refer to this guide and I will make sure that the appropriate staff who can answer the remainder of your query will reply after the weekend.
Flag_Hippo
Moderator
 
Posts: 14510
Joined: Tue Jan 31, 2012 7:50 am

Re: Show times/opportunities if sample size low else percent

Postby WhiteRider » Mon May 29, 2017 3:55 am

Use this as your format expression:

if( cnt_p_3bet_opp < 20,format('{1}/{2}',cnt_p_3bet,cnt_p_3bet_opp), format_number((cnt_p_3bet / cnt_p_3bet_opp) * 100, 2, false, false))

To colour only the percentage versions you'll need to use the Colors tab in the stat editor to define your colours. You can use something like:
cnt_p_3bet_opp >= 20 and ((cnt_p_3bet / cnt_p_3bet_opp) between 0 and 10)
WhiteRider
Moderator
 
Posts: 53984
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Show times/opportunities if sample size low else percent

Postby dajg » Mon May 29, 2017 4:17 am

Thanks for the prompt reply; really helpful.
dajg
 
Posts: 17
Joined: Wed Dec 02, 2009 2:16 pm


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 23 guests

cron
highfalutin