Let's say my starting bank is 2000€ and my starting bet is 5% of that.
I ave the following set up, as you can see in the image:
constants:
bank_perc 0.05
bookies_profit 0
So if I loose a 100€ bet, the next bet should be (2000+100)*.05
But in my log it shows this:
Selection: St Moritz, initial expr.: (starting_bank + bookies_profit)*bank_perc, intermediate: (2000.00+1200)*.05, final: 160.
THEN I won the 160€ bet the trigger made at 1.10.
And the next bet was, Selection: Bridie Ffrench, initial expr.: (starting_bank + bookies_profit)*bank_perc, intermediate: (2000.00+1063.20000000)*.05, final: 153.16000000.
So the bookies_profit is not updating right, what is wrong in the trigger?