Author Topic: Help needed with trigger on bets getting matched  (Read 8993 times)

Tags:
  • All members
  • Posts: 21
  • Gender: Male
Hey,

I'm just looking for help setting up a trigger that simulates bets getting matched as accurate as is possible with the software. So I'm back testing strategies and need to know if my bets would have been matched with the amount that is being bet. So with a £1 bet, we would expect to be matched all the time on UK horse racing assuming the odds don't fly in the wrong direction but I just tested with a £10,000 bet to see if part of it got matched but the bet was matched instantly which we all know wouldn't happen in real life.

So is there any way to create a trigger to match bets dependent on the current available volume so that if I was to place this £10,000 bet, only part of it would be matched? I know it can't be 100% exact but if it can give me a good idea of how much I could have bet on this market then that's a good start. Cheers.

  • Moderator
  • Posts: 3607
*
Re: Help needed with trigger on bets getting matched
« Reply #1 on: 11 Apr 2024, 17:46 »
Hi
"live" traded volume per price is not available in time machine historical data. But if backing for example if you use:

BACK, Price: back_price, Amount: back_amount
It will give a matched back bet to the amount offered at best back price at the time of triggering.

If you wanted this could be extended for example to the amount offered at the best 2 back prices:
BACK, Price: r_ticks(back_price, -1), Amount: back_amount2+back_amount

In test mode and real mode (not in time machine) you could use live API data on traded volume per price to keep a running total as the £10k gets matched in bits.

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: 21
  • Gender: Male
Re: Help needed with trigger on bets getting matched
« Reply #2 on: 12 Apr 2024, 02:47 »
Hi
"live" traded volume per price is not available in time machine historical data. But if backing for example if you use:

BACK, Price: back_price, Amount: back_amount
It will give a matched back bet to the amount offered at best back price at the time of triggering.

If you wanted this could be extended for example to the amount offered at the best 2 back prices:
BACK, Price: r_ticks(back_price, -1), Amount: back_amount2+back_amount

In test mode and real mode (not in time machine) you could use live API data on traded volume per price to keep a running total as the £10k gets matched in bits.

So could I use this to place say a £50 bet only if there is £50 available? It won't be as accurate as I'd like but at least I would have an idea of how scalable my strategy is.

  • Moderator
  • Posts: 3607
*
Re: Help needed with trigger on bets getting matched
« Reply #3 on: 12 Apr 2024, 07:06 »
Hi
Yes
BACK, Price: back_price, Amount: back_amount

If there is £50 available at best back price it will give a matched back bet of £50
If there is £550 available at best back price it will give a matched back bet of £550

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