Author Topic: Back/Lay depending on price  (Read 6971 times)

Tags:
  • All members
  • Posts: 33
Back/Lay depending on price
« on: 07 Oct 2013, 15:55 »
Hey all I am very new to this trigger wriiting and coding and it all looks confusing to me!
Is anyone able to help me out with a trigger for backing or laying a horse in the win market depending on its price

thanks

  • All members
  • Posts: 3606
Re: Back/Lay depending on price
« Reply #1 on: 07 Oct 2013, 16:30 »
Hi
Sure. You need to be a bit more specific about your requirement. For example:
At 10 minutes before the off I want to back the favourite as long as the favourites price is below 6.00.
At 5 minutes before the off if the price has come in 5 ticks or more from the price I backed it at, lay it to green-up.
At 1 minute before the off close the trade whether in profit or loss.
The above is just an example, but if you can similarly describe what you want to do, we can have a go at making a trigger for you.
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: 33
Re: Back/Lay depending on price
« Reply #2 on: 08 Oct 2013, 08:11 »
Thanks for the help.

I would like something like this:

2 Minutes before the off check the price of the favorite, If odds are X and under then lay the horse. However if the odds are X and over then back the horse. No trade out required just let it run in play.

  • All members
  • Posts: 3606
Re: Back/Lay depending on price
« Reply #3 on: 08 Oct 2013, 08:53 »
Hi
Please try the attached trigger in test mode.
Set the Back or Lay triggering price in the Constant.
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: 33
Re: Back/Lay depending on price
« Reply #4 on: 08 Oct 2013, 18:43 »
Hey thanks looks like its working as planned
Could I add some more variables in if possible?

adding in stake percentage of bank and higher odd lays

for example

lay 1% of bank if price is between x and x
back 1.5% of bank if price is between x and x
lay 0.6% of bank if price is between x and x
lay 0.4% of bank if price is between x and x

is this possible?

thanks for all your help so far

  • All members
  • Posts: 3606
Re: Back/Lay depending on price
« Reply #5 on: 08 Oct 2013, 22:31 »
Hi
Please try the modified trigger file which is attached in test mode.
Set your price ranges and percentages for each range in the Constants
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: 33
Re: Back/Lay depending on price
« Reply #6 on: 09 Oct 2013, 17:51 »
Ok thats getting there :)

during testing though it seems that both trigger sometime fire.

so basically the bets need to be placed exclusively in-play (not in running)
and if one fires the other cannot

  • All members
  • Posts: 3606
Re: Back/Lay depending on price
« Reply #7 on: 09 Oct 2013, 21:28 »
Hi
Please try the attached file in test mode.
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