Author Topic: bu_bpricedat_{price}  (Read 1063 times)

Tags:
  • All members
  • Posts: 63
bu_bpricedat_{price}
« on: 10 Mar 2018, 10:45 »
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

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: bu_bpricedat_{price}
« Reply #1 on: 13 Mar 2018, 14:58 »
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.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • All members
  • Posts: 63
Re: bu_bpricedat_{price}
« Reply #2 on: 22 Mar 2018, 20:05 »
Thanks for the reply, I've got it working with variables like you suggested. 

 

Please note, BetFair is seems to be currently OFFLINE