Author Topic: See any problem with this calculation  (Read 1339 times)

Tags:
  • All members
  • Posts: 207
See any problem with this calculation
« on: 25 Mar 2018, 18:02 »
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

  • Guest
Re: See any problem with this calculation
« Reply #1 on: 25 Mar 2018, 19:06 »
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

  • All members
  • Posts: 207
Re: See any problem with this calculation
« Reply #2 on: 25 Mar 2018, 19:12 »
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

 

Please note, BetFair is seems to be currently OFFLINE