Pages:
Actions
  • #1 by acollin on 10 Mar 2018
  • Hi all,

    I was looking for a variable which returned the amount of unmatched match bets at a certain price.

    I came across bu_bpricedat_{price} which is exactly what I'm after.

    Quite possibly user error here but can you only specify the price here and not derive the price from something else?

    For example, lets say I wanted to return the amount of unmatched back bets at the price two ticks higher than the current back price. So I assumed the below would work:

    bu_bpricedat_r_ticks(back_price,2)

    It doesn't seem to calculate it though as shown from the attached image. If you specify the actual price it works fine?

    Thanks,
    Andy
  • #2 by Oxa (WellDoneSoft) on 13 Mar 2018
  • Hello!

    No, right, unfortunately you cannot use a trigger expression in place of {price}.

    You can insert a user variable there, but you will need to initialise that variable prior to addressing this expression. E.g.:

    bu_bpricedat_myprice

    Where myprice is your user variable, and you have previously set it to r_ticks(back_price, 2).

    I acknowledge this is currently a limitation.
  • #3 by acollin on 22 Mar 2018
  • Thanks for the reply, I've got it working with variables like you suggested. 
Pages:
Actions