Author Topic: Next and previous tick value  (Read 5976 times)

Tags:
  • All members
  • Posts: 59
Next and previous tick value
« on: 15 Aug 2023, 13:12 »
Is there a way to get the next and previous tick values?

For instance, if price was 1.34, the next price would be 1.35 and the previous would be 1.33.

However, if price was 16.0. then the next and previous prices would be 15.5 and 16.5.

Just wondering if there's an inbuilt way of finding this info out..

  • Tim Vetrov
  • Administrator
  • Posts: 4875
  • Gender: Male
*
Re: Next and previous tick value
« Reply #1 on: 15 Aug 2023, 14:52 »
Yes, r_ticks(price, ticks).
So "next" price for selection's back price is r_ticks(back_price, 1) and "previous": r_ticks(back_price, -1)
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 59
Re: Next and previous tick value
« Reply #2 on: 15 Aug 2023, 15:05 »
Thanks Tim :)

 

Please note, BetFair is seems to be currently OFFLINE