Author Topic: Last Traded  (Read 2917 times)

Tags:
  • All members
  • Posts: 23
  • Gender: Male
Last Traded
« on: 11 Nov 2021, 16:35 »
Good Afternoon 

Is there an expression that can be used to calculate the back or lay book based on the last traded for each selection. So for example All runners below a back price of 1000 have a matching back/lay book based on the last traded amount  that is or greater or less than say 100. 

Any feedback will be much appreciated

  • Moderator
  • Posts: 3641
*
Re: Last Traded
« Reply #1 on: 11 Nov 2021, 17:18 »
Hi
selections back book % = 100/back_price
selections lay book % = 100/lay_price
market book % is all the selections back or lay book % added together

so for "last traded book %" :
per selection = 100/last_traded
for market:
set a user variable, value: s_1_(100/last_traded) + s_2_(100/last_traded) + s_3_....etc.
no more often than 0.3
condition: selections back price is less than 1000 
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: 23
  • Gender: Male
Re: Last Traded
« Reply #2 on: 11 Nov 2021, 17:25 »
Hi Mark 

Thanks for the suggestion. The problem with this is the number of selections may vary depending on the market. If I was looking to back the whole book in one instance less the non runners how would I create a variable without it being ridiculously large to calculate the trading book across the whole market? The variable would need to be flexible across all markets. Is this possible or would I have to do a formula based on s1 + s2 etc up to a finite number to cope with all eventualities? 





  • Moderator
  • Posts: 3641
*
Re: Last Traded
« Reply #3 on: 11 Nov 2021, 18:27 »
Let me have a think, will post here if I come up with something. 
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.

  • Moderator
  • Posts: 3641
*
Re: Last Traded
« Reply #4 on: 12 Nov 2021, 13:43 »
Hi
Please have a look at attached screenshot. Hopefully should do what you want.  
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: 23
  • Gender: Male
Re: Last Traded
« Reply #5 on: 12 Nov 2021, 18:17 »
Superb work, works like a dream. Thank you for your efforts sir. ;D

 

Please note, BetFair is seems to be currently OFFLINE