Pages:
Actions
  • #1 by BlueSky on 04 Feb 2016
  • Hi,


    I am trying to define the lay price as ...r_ticks(lay_price, -1), but this doesn´t allow me to place bets when the lay price is 1.01.


    So i tried to create a condition if(lay_price=1.01, 1.01, r_ticks(lay_price, -1)),
    but or because i can´t use the "if" in the price or due to some mistake i gave, it gives origin to an error. Therefore the bets aren´t placed.


    Anyone knows another way of doing this?




    Thanks
  • #2 by mcbee on 04 Feb 2016
  • hi
    you need to use a capital IF .
    IF(lay_price=1.01,1.01,r_ticks(lay_price,-1))




    mcbee
Pages:
Actions