How to create a statistic that averages all bet sizes %

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

How to create a statistic that averages all bet sizes %

Postby Smokedtruth » Tue Aug 29, 2023 7:00 pm

Ive tried combining statistics created by Kraada, but something somewhere is not working properly, and trying to make changes gives me "invalid expression".

Here is the stat that ive trying with:

(amt_total_avg_r_bet + amt_total_avg_t_bet + amt_total_avg_r_bet) / (cnt_f_bet + cnt_t_bet + cnt_r_bet)


It works fine sometimes but others it doesnt register anything, and in many cases in spin n gos some recs bet or raise multiple times the pot size and it gives them nothing... this is the opposite of the truth and it confuses me.


Thanks for the help.
Smokedtruth
 
Posts: 5
Joined: Sat Jul 03, 2021 6:28 am

Re: How to create a statistic that averages all bet sizes %

Postby Smokedtruth » Tue Aug 29, 2023 7:39 pm

Now im experimenting with something that looks to work better, just separated the stats before joining them in one:

(if(cnt_r_bet>0, amt_total_avg_r_bet / cnt_r_bet, 58.92)

+

if(cnt_t_bet>0,(amt_total_avg_t_bet / cnt_t_bet),55.3)

+

if(cnt_f_bet>0,(amt_total_avg_f_bet / cnt_f_bet),62.87)) / 3



In case of 0 samples, the if condition replaces the value with the historical value of all players combined in my database. I understand there could be other solutions but this one is simple and fine atm.
Its capturing the overbets way better, now time to check if it works for raises.
Smokedtruth
 
Posts: 5
Joined: Sat Jul 03, 2021 6:28 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: viliakas and 0 guests