Hi
Can anyone see an issue with this?
IF((current_lose/(back_price-1))/(1-commision)>max_bet,max_bet,IF(current_lose=0,init_bet,(init_bet+(current_lose/steps))/((back_price-1)*(1-commision))))
Constants init_bet, max_bet, current_loss and steps are all set
Current loss is calculated thus
IF(current_loss - market_settled_pl > 0.05, (current_loss - market_settled_pl), 0)
I have tested and changed and tested but it just does not run.
Mike