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

Tags:
  • All members
  • Posts: 29
  • Karma: +0/-0
bu_bpricedat_{price}
« 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:

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: 6538
  • Karma: +215/-2
  • Gender: Female
*
Re: bu_bpricedat_{price}
« Reply #1 on: Tue, 13 March, 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!

You can get a faster response from us if you contact us via FaceBook Messenger.

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

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