hi mark
i have altered the trigger.
there was another problem with calculating the recovery amount due to there is either 2 winners, 1 winner and 1 loss or 2 losses.
so if for example we had
race 1 - a loss of 4.21(2.00x2+comm)
race 2 - 2 winners = 6.10 (stake x2+recovery 1.05x2)after comm
race 3 - 1 winner and 1 loss = 3.05 from the winner- 1.05x.80(1.80-1 odds)=-.84,total = 2.21
race 4 - 2 losses, the calculations take the history 2 laya*winstep = 3.05x2x2 races won=12.20,BUT the true winners is 3 and 1 loss=5.26(3winning selections=9.15,minus 1losing selection=3.05-the loss.84) profit, less than half of the calculated profit.
i have added a new trigger and constant, the constant is just a start amount 0 for the maximum bank balance.
the new trigger records any new maximum balance after a win.
so the current loss is based on the maxmum balance minus the current balance, giving a true loss amount minus any profit made.
the current loss will re-set when the maximum steps are reached or the current balance is equal or greater than the recorded maximum balance.
that's a lot or writing Huh
please use test mode until you are happy with your settings
mcbee
download the trigger below