Page 1 of 1

Help custom stats

PostPosted: Thu Dec 05, 2024 11:55 pm
by doppiosei83
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

Re: Help custom stats

PostPosted: Fri Dec 06, 2024 7:40 am
by Flag_Hippo
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.

Re: Help custom stats

PostPosted: Fri Dec 06, 2024 7:12 pm
by doppiosei83
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.....

Re: Help custom stats

PostPosted: Fri Dec 06, 2024 7:21 pm
by doppiosei83
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)

Re: Help custom stats

PostPosted: Fri Dec 06, 2024 7:23 pm
by doppiosei83
what am I doing wrong?

Re: Help custom stats

PostPosted: Sat Dec 07, 2024 8:26 am
by Ventilatorrr
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)

Re: Help custom stats

PostPosted: Sun Dec 08, 2024 2:21 pm
by doppiosei83
This work for me!!
Great!
Thank you very much!

Re: Help custom stats

PostPosted: Sun Dec 08, 2024 2:40 pm
by doppiosei83
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

Re: Help custom stats

PostPosted: Mon Dec 09, 2024 7:00 am
by Flag_Hippo
doppiosei83.PNG

highfalutin