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

  • All members
  • Posts: 29
  • Karma: +0/-0
« on: Sat, 10 March, 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:


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


  • Administrator
  • Posts: 7305
  • Karma: +242/-0
  • Gender: Female
Re: bu_bpricedat_{price}
« Reply #1 on: Tue, 13 March, 2018, 14:58 »

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.:


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.

Usuários brasileiros, bem vindos ao nosso WhatsApp chat!

Присоединяйтесь к нашей официальной группе ВКонтакте!

  • All members
  • Posts: 29
  • Karma: +0/-0
Re: bu_bpricedat_{price}
« Reply #2 on: Thu, 22 March, 2018, 20:05 »
Thanks for the reply, I've got it working with variables like you suggested.