Author Topic: Specified prices to hold for 2 refreshes  (Read 1383 times)

Tags:
  • All members
  • Posts: 24
Specified prices to hold for 2 refreshes
« on: 03 Jul 2015, 09:04 »
Hi,

Need some advise on trigger.

So basically, I have set price ranges for Back and for Lay price, however I need trigger to know that these price ranges needs to hold to 2 refreshed in a row.

This is to exclude trigger to fire on first price jump for one refresh, like 3.00 -> refresh -> 10.00 -> refresh -> 3.5.

Is there a way to do it?
Or maybe some adive where to look.

Best Regards,
Alex

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: Specified prices to hold for 2 refreshes
« Reply #1 on: 03 Jul 2015, 09:31 »
There is no direct way to check that, but you can do this indirectly.

You can access the change of selection's price over X minutes ago through a variable pdif_X.

Therefore you could check something like:

Selection's Back Price is between min_price and max_price
and Selection's Trigger Expression back_price - pdif_X is between min_price and max_price
and Selection's Trigger Expression back_price - pdif_Y is between min_price and max_price


where X is the number of minutes that correspond with your refresh rate, and Y is that number doubled.

For instance, if your refresh rate is 2 sec, then this will be:

Selection's Back Price is between min_price and max_price
and Selection's Trigger Expression back_price - pdif_0.033 is between min_price and max_price
and Selection's Trigger Expression back_price - pdif_0.066 is between min_price and max_price

Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

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

  • All members
  • Posts: 24
Re: Specified prices to hold for 2 refreshes
« Reply #2 on: 03 Jul 2015, 11:28 »
Thank you, will try.

 

Please note, BetFair is seems to be currently OFFLINE