Author Topic: Horse Racing - Lay favourite  (Read 2939 times)

Tags:
  • All members
  • Posts: 82
Horse Racing - Lay favourite
« on: 25 Jan 2014, 23:32 »
Hi,

I am trying to write a trigger which will lay at the lower of either the projected SP or the current price 20seconds before the off.
So take for example currently the price is 3.75 to lay, but the projected lay SP is 3.5, I would want it to be laying at 3.5.

I have a trigger which just lays the favourite 20 seconds before the off for a set figure, but don't want to be laying above the BFSP...

Not sure if I am being clear or if I have misunderstood at all.
Or am I best just laying 20 seconds before the off as its hard to lay SP for a set figure as it has to be liability?

Not sure if any of the selection variables such as near_sp or far_sp would help with this at all?

  • Moderator
  • Posts: 3597
*
Re: Horse Racing - Lay favourite
« Reply #1 on: 28 Jan 2014, 21:20 »
Hi
The “projected SP” is either near_sp or far_sp, and you would need to decide which one you would like to use.
For a better explanation from Betfair see this link:
https://promo.betfair.com/betfairsp/FAQs_projectedOdds.html

In the attached trigger file I have included two triggers as examples:

First trigger:
Will lay the lower of near_sp or lay_price 20secs before the off

Second trigger:
Will lay the lower of actual_sp or last_layp as soon as the market turns inplay.
Unlike “lay at SP” which guarantees you will be matched at SP, this trigger will lay at the actual SP inplay, so it is not guaranteed to be matched.
I’m not sure if this trigger is of help to you, but I included it as an alternative example.

Only one trigger of the two should be enabled, and please use test mode to try them out.
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: 82
Re: Horse Racing - Lay favourite
« Reply #2 on: 30 Jan 2014, 17:38 »
Thank you Mark.

I am Importing Selections for auto trading from a text file and it works perfectly.
What I want/am wondering, is if there is a condition which checked that some of the runners in a race have been 'greyed out' so the import has worked correctly.
Is there a condition for this?

  • Moderator
  • Posts: 3597
*
Re: Horse Racing - Lay favourite
« Reply #3 on: 30 Jan 2014, 18:43 »
Hi
There is no built-in condition for this, but I think you should be able to do it with the data in the text file. If you are using the latest version you will know about importing tab separated values from the text file.

I don't know what your text file looks like, but lets say you have two values:
selection name   price


If you add another value, e.g. <1>:
Fairy Court    2.08   1
Akinspirit        5.1    1
Gaelic Twist   5.6    1

Your checking condition to confirm the selection has been imported is:
and selections trigger expression imported_2 is equal to 1

therefore any selection which does not meet the above condition should be greyed out.
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