Help custom stats

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Help custom stats

Postby doppiosei83 » Thu Dec 05, 2024 11:55 pm

Good evening, I have created 2 custom statistics:
A simple one: rakeback select (which calculates the 40% rakeback I get in Italy from spins)
The other more complex one that calculates me The EV of the new spin go structure just launched in Italy.
They work well.... individually!
Now I would like to do the simplest thing....create a third statistic, which simply adds up the result of the two statistics, so that I automatically calculate between Rakeback and EV how much I am winning or losing net.
Unfortunately, however, this what appears to be a very simple job I can't do.... either it gives me format problems, or it simply “side by side” the two stats without adding/subtracting them. I thought I could just copy the formulas and in the parentheses create the formula with an addition expression...but something is not working
Example... I have 1000 of rakeback, -600 of Ev, I would like the result of the stats to be -400...
Instead I get something like: €1000€-600
Can you help me to understand how should I do it? I have tried putting format type money, number, but I don't solve... the problem seems to be in the expression....
As if it doesn't like the following method (rakeback formula) + (EV formula)...

How should I proceed?
Thanks

Yari


Translated with DeepL.com (free version)n
doppiosei83
 
Posts: 16
Joined: Tue Jul 26, 2011 5:02 pm

Re: Help custom stats

Postby Flag_Hippo » Fri Dec 06, 2024 7:40 am

Please attach all 3 statistics here or privately to a Support Ticket so we can see and work with what you've created so far.
Flag_Hippo
Moderator
 
Posts: 15291
Joined: Tue Jan 31, 2012 7:50 am

Re: Help custom stats

Postby doppiosei83 » Fri Dec 06, 2024 7:12 pm

The first stat is:

format_currency((((amt_buyin / 300)* (amt_expected_won / cnt_tourneys) - (amt_fee * 1.02780))* cnt_tourneys), false, global_currency)


and the 2nd is:

format_currency(amt_fee_curr_conv * 0.4, false, global_currency)



I would like to create a third statistic that is the sum of this two.....
Attachments
Screenshot 2024-12-07 000923.png
Screenshot 2024-12-07 000733.png
Screenshot 2024-12-07 000432.png
Screenshot 2024-12-07 000432.png (4.06 KiB) Viewed 1470 times
doppiosei83
 
Posts: 16
Joined: Tue Jul 26, 2011 5:02 pm

Re: Help custom stats

Postby doppiosei83 » Fri Dec 06, 2024 7:21 pm

so I tried to write this:

(amt_fee * 1.02780))* cnt_tourneys), false, global_currency) + format_currency(amt_fee_curr_conv * 0.4, false, global_currency)

But the result not work... and i see this: (ev2net stat)
Attachments
Screenshot 2024-12-07 001836.png
Screenshot 2024-12-07 001836.png (5.34 KiB) Viewed 1469 times
doppiosei83
 
Posts: 16
Joined: Tue Jul 26, 2011 5:02 pm

Re: Help custom stats

Postby doppiosei83 » Fri Dec 06, 2024 7:23 pm

what am I doing wrong?
Attachments
Screenshot 2024-12-07 002256.png
doppiosei83
 
Posts: 16
Joined: Tue Jul 26, 2011 5:02 pm

Re: Help custom stats

Postby Ventilatorrr » Sat Dec 07, 2024 8:26 am

Hello, I think the problem is with the Format Type Expression. It seems that you are using the format_currency twice. Try this instead:
Code: Select all
format_currency((((amt_buyin / 300)* (amt_expected_won / cnt_tourneys) - (amt_fee * 1.02780))* cnt_tourneys) + (amt_fee_curr_conv * 0.4), false, global_currency)
Ventilatorrr
Moderator
 
Posts: 59
Joined: Sun Jul 19, 2015 12:39 pm

Re: Help custom stats

Postby doppiosei83 » Sun Dec 08, 2024 2:21 pm

This work for me!!
Great!
Thank you very much!
doppiosei83
 
Posts: 16
Joined: Tue Jul 26, 2011 5:02 pm

Re: Help custom stats

Postby doppiosei83 » Sun Dec 08, 2024 2:40 pm

What if I want it to be colored, like the classic money statistic? green profit, red loss, etc.
But if I put money in format tipe it doesn't work, and if I leave expression and add manual colors it says something like “must evalute to boolean
doppiosei83
 
Posts: 16
Joined: Tue Jul 26, 2011 5:02 pm

Re: Help custom stats

Postby Flag_Hippo » Mon Dec 09, 2024 7:00 am

doppiosei83.PNG
Flag_Hippo
Moderator
 
Posts: 15291
Joined: Tue Jan 31, 2012 7:50 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 6 guests

cron