How to store price of a matched bet in-play?

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
User avatar
jamesedwards
Posts: 4372
Joined: Wed Nov 21, 2018 6:16 pm

I place a back bet at 1.01 in order to match at the best available price.

In order to identify the price matched I can store a value for the most recent back bet matched.

However, if the market is in-play (and therefore an enforced delay to bet placement) will using the above stored value method still save the traded price correctly?
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

It would, but if the bet was matched at multiple prices then only the last bet ID would be stored which could be penny's if the bulk was matched at another price

Depending on what you need it for ie, if its just later analysis you could maybe Stored the average of all your bets (or back bets)
User avatar
jamesedwards
Posts: 4372
Joined: Wed Nov 21, 2018 6:16 pm

Dallas wrote:
Wed Feb 16, 2022 1:15 pm
It would, but if the bet was matched at multiple prices then only the last bet ID would be stored which could be penny's if the bulk was matched at another price

Depending on what you need it for ie, if its just later analysis you could maybe Stored the average of all your bets (or back bets)
Thanks for the reply but I have checked and this doesn't work. Because of the delay in bet placement it tries to store the value before the bet has been placed and so returns a price value of "0".

Is there another way to do this or do I need to set a separate SV rule that triggers a second after the bet placement rule? If so then is there a way to make this SV rule trigger an exact period of time after the bet placement rule? (The bet placement rule won't be the first rule to trigger in my rules set-up so can't use the "after first rule to trigger" timing.)
eatyourgreens
Posts: 282
Joined: Sun Feb 18, 2018 12:53 am

hi,
not an auto expert, but try -
store the sv (last traded price) when number of matched bets on the selection= 1
User avatar
jamesedwards
Posts: 4372
Joined: Wed Nov 21, 2018 6:16 pm

eatyourgreens wrote:
Wed Feb 16, 2022 7:28 pm
hi,
not an auto expert, but try -
store the sv (last traded price) when number of matched bets on the selection= 1
Thanks. It needs to be a bit more complex than that as I may already have a matched bet in place. I thought perhaps there might be something already set up in Bet Angel for the specific purpose of storing prices of matched bets when there is an in-play delay.

I think I will be able to figure something out using a chain of signals and stored values.
eatyourgreens
Posts: 282
Joined: Sun Feb 18, 2018 12:53 am

How about -
(Assuming you do not already have any unmatched back bets on the selection), set a signal if unmatched back bets amount is greater than 0, ........that will give time for your back at 1.01 to reach the market,

Then store the value of last traded price when, the signal you have is set with a value and umatched back bets amount is equal to 0

good luck,
have a nice day! :-)
User avatar
ShaunWhite
Posts: 10576
Joined: Sat Sep 03, 2016 3:42 am

jamesedwards wrote:
Wed Feb 16, 2022 8:19 pm
I thought perhaps there might be something already set up in Bet Angel for the specific purpose of storing prices of matched bets when there is an in-play delay. .
Hi. What's a bit confusing is that there's often/usually a delay >1s between placing a bet and it being matched, so if BA has a way to return the avg matched price for an offer it should work anyway ?

What's a bigger concern though is backing anything at 1.01 in-running. As you know betting profits come from your bets being net value so I'd be concerned about giving away chunks by being matched at lousy prices. At the very least take a look at the PL for just your 'stop loss' bets and your other bets seperately, because lots of people make good money from people who are prepared to take any old price.
Post Reply

Return to “Bet Angel - Automation”