Author Topic: Bet at percentage higher than SP  (Read 823 times)

Tags:
  • All members
  • Posts: 36
Bet at percentage higher than SP
« on: 11 Jan 2022, 21:00 »
I am looking for the formula to bet at percentage higher than starting price. I've tried a few formula from triggers but it doesn't seem to work. Is there a basic set formula for this to be implemented?

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: Bet at percentage higher than SP
« Reply #1 on: 12 Jan 2022, 12:24 »
Hello,

Could you please give me an example?
Thank you.
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 36
Re: Bet at percentage higher than SP
« Reply #2 on: 12 Jan 2022, 18:19 »
Hi Tim, I would like Market feeder to place a back bet at a set percentage higher than actual sp, so the bet isn't taken straight away when a race goes inplay, but only if the horse drifts out to the given percentage higher than actual sp.

Hope that makes sense.

  • Moderator
  • Posts: 3597
*
Re: Bet at percentage higher than SP
« Reply #3 on: 16 Jan 2022, 21:04 »
Hi
try:

r_ticks(actual_sp*(1+(5/100)),0)

replace the 5 with your percentage increase
the formula will adjust the increased price to the closest correct tick size
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: 36
Re: Bet at percentage higher than SP
« Reply #4 on: 17 Jan 2022, 06:47 »
Excellent, thankyou Mark.

  • Moderator
  • Posts: 3597
*
Re: Bet at percentage higher than SP
« Reply #5 on: 17 Jan 2022, 10:19 »
in the trigger where that formula is used it could be worthwhile putting in a safety condition to check actual_sp is greater than 0  
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