Pages:
Actions
  • #1 by mikethebet on 25 Mar 2018
  • 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
  • #2 by LarpHager on 25 Mar 2018
  • 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))))    


    Current lose should be Current loss

    :)_
    Larp
    • LarpHager
  • #3 by mikethebet on 25 Mar 2018
  • Cheers for that
    now I disappear into a dark corner with a bottle and feel a right idiot;D
    I just could not see it for looking.
    Mike
Pages:
Actions