Author Topic: variable for determining which selection has 2nd most volume backing  (Read 1442 times)

Tags:
  • All members
  • Posts: 87
Hi, is there a variable to select the horse who has the 2nd most volume backing?
Thanks in advance

  • Moderator
  • Posts: 3606
*
Hi
By "back volume" you are meaning unmatched back bets which are on the lay side best 3 lay prices?

selections sorting order is defined by lay_volume
and selections trigger expression match_index is equal to matching_number -1 
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 87
Sorry Mark, I have forgotten a few details.
I want to pick the horse AT the off who has received the 2nd most backing in terms of volume.
It might not necessarily be the 2nd favourite.

  • All members
  • Posts: 87
also I meant matched back bets.

  • Moderator
  • Posts: 3606
*
Hi
selections sorting order is defined by volume
and selections trigger expression match_index is equal to matching_number -1
  
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 87
so matching_number equal to -1 is the 2nd most backed. Out of interest, what would most backed be? 0? and would 3rd most backed be -2?

  • Moderator
  • Posts: 3606
*
Hi
sorting order is defined by volume sorts selections by matched volume in ascending order, lowest first highest last
match_index is the index of matching selections in the sorted list above
matching_number is the total number of selections that match previous conditions

so match_index of first in the list (lowest volume in this example) is 1
second highest traded volume is second last selection in the list as sorted above (matching_number -1)
yes third most traded match_index = matching_number -2
 
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

 

Please note, BetFair is seems to be currently OFFLINE