Hi, I need a staking plan trigger if possible.
This is for horse racing win market.
Its for a lay bet.
It stakes a lay amount (decide with a variable)
If the bet losses then the plan is to stake JUST the amount lost in the last bet (not the amount lost and the stake)
if it looses again it stakes just the accumulative amount lost not the stake.
when it wins, it then reverts back to the stake amount decided by a variable.
The max amount of liability is controlled by a variable.
The trigger only fires when the previous market it was fired in is settled.
If the trigger runs out of races to get its stake back, it MUST carry over to the next day (even if the user has to enter the lost amount or is automated)
Many Thanks Chris