Fix Market not always working

We were all new to Bet Angel once. Ask any question you like here and fellow forum members promise not to laugh. Betfair trading made simple.
Post Reply
moodysrus
Posts: 17
Joined: Tue Feb 23, 2021 4:51 am

Hi All, I am hoping someone can spot what I am doing wrong. I am fixing a market before in-play (doing it 5 times to be sure and writing a stored value each time to confirm) but in many races, the favourite (as fixed at the start) seems to change. For debugging, I added a rule that would write the back price for the favourite every second. You can see it magically changes from 'Hes a Sizzler' to 'Ginger Locks' at about the time 'Ginger Locks' becomes the new favourite.

25/02/2021 15:57:00: [G_Auto] : Store Value (Shared) for event: fix-market = 1
25/02/2021 15:57:01: [G_Auto] : Store Value (Shared) for event: fix-market = 1
25/02/2021 15:57:01: [G_Auto] : $ 1.00 Back bet placed on 2. Hes A Sizzler at 1.46. Fully matched at 1.46. Ref: 2253xxxxxxxx
25/02/2021 15:57:02: [G_Auto] : Store Value (Shared) for event: fix-market = 1
25/02/2021 15:57:03: [G_Auto] : Store Value (Shared) for event: fix-market = 1
25/02/2021 15:57:04: [G_Auto] : Store Value (Shared) for event: fix-market = 1
25/02/2021 15:58:04: Guardian has detected that the market is suspended
25/02/2021 15:58:05: Guardian has detected that the market is in-play
25/02/2021 15:58:05: Guardian has detected that the market is now unsuspended
...
25/02/2021 15:59:07: [G_Auto] : Store Value (Shared) for 2. Hes A Sizzler: odds-on = 1.2
25/02/2021 15:59:08: [G_Auto] : Store Value (Shared) for 2. Hes A Sizzler: odds-on = 1.21
25/02/2021 15:59:09: [G_Auto] : Store Value (Shared) for 2. Hes A Sizzler: odds-on = 1.21
25/02/2021 15:59:10: [G_Auto] : Store Value (Shared) for 2. Hes A Sizzler: odds-on = 1.53
25/02/2021 15:59:11: [G_Auto] : Store Value (Shared) for 2. Hes A Sizzler: odds-on = 1.24
25/02/2021 15:59:12: [G_Auto] : Store Value (Shared) for 2. Hes A Sizzler: odds-on = 1.28
25/02/2021 15:59:13: [G_Auto] : Store Value (Shared) for 11. Ginger Locks: odds-on = 1.61
25/02/2021 15:59:14: [G_Auto] : Store Value (Shared) for 11. Ginger Locks: odds-on = 1.06
25/02/2021 15:59:15: [G_Auto] : Store Value (Shared) for 11. Ginger Locks: odds-on = 1.04
25/02/2021 15:59:17: Guardian has detected that the market is suspended

How does this happen? This isn't an isolated incident and is driving me crazy :)

cheers
Johnedale
Posts: 61
Joined: Sat Jul 21, 2018 10:28 pm

Just a guess but maybe each time you use Fix Market it unfixes and then refixes in the current order rather than preserving the original order? You could try fixing just once but still store the value each second to see if the runner still changes.
User avatar
Dallas
Posts: 22713
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Can you upload the rules file so I can see exactly how its set up?

I use the 'Fix order' rule in many files and its never failed
moodysrus
Posts: 17
Joined: Tue Feb 23, 2021 4:51 am

Johnedale wrote:
Thu Feb 25, 2021 12:40 pm
Just a guess but maybe each time you use Fix Market it unfixes and then refixes in the current order rather than preserving the original order? You could try fixing just once but still store the value each second to see if the runner still changes.
Thanks Johnedale, I originally had it only firing once which did the same thing and read a post that suggested a few repeats to 'be sure'. All five occur minutes before the favourites 'switch' so don't think it is a race condition.

Thanks for helping !

cheers
moodysrus
Posts: 17
Joined: Tue Feb 23, 2021 4:51 am

Dallas wrote:
Thu Feb 25, 2021 12:46 pm
Can you upload the rules file so I can see exactly how its set up?

I use the 'Fix order' rule in many files and its never failed
Hey Dallas,

My rules file is a mess at the moment as I try to debug several different strategies in parallel (I am an impatient person!) and a little embarrassed to paste to the main forum, but couldn't find a way to private message you with an attachment.

I have seen this behavior a handful of times today and happy to attach more log files if my screwup isn't obvious.

cheers
User avatar
Dallas
Posts: 22713
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

moodysrus wrote:
Thu Feb 25, 2021 1:03 pm
Dallas wrote:
Thu Feb 25, 2021 12:46 pm
Can you upload the rules file so I can see exactly how its set up?

I use the 'Fix order' rule in many files and its never failed
Hey Dallas,

My rules file is a mess at the moment as I try to debug several different strategies in parallel (I am an impatient person!) and a little embarrassed to paste to the main forum, but couldn't find a way to private message you with an attachment.

I have seen this behavior a handful of times today and happy to attach more log files if my screwup isn't obvious.

cheers
The extra logs won't show any more info, but if you've got a lot of rules in the file the first thing i'd do is check each one to ensure you don't have another fix order rule tucked away somewhere
ie, you might have a rule named 'Lay at 3.0', but rather than it be a 'place lay bet' rule type its actually another 'fix order' rule type which is triggering
moodysrus
Posts: 17
Joined: Tue Feb 23, 2021 4:51 am

Here goes, keep the chuckling to a minimum :)
Last edited by moodysrus on Thu Feb 25, 2021 1:51 pm, edited 1 time in total.
User avatar
Dallas
Posts: 22713
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

moodysrus wrote:
Thu Feb 25, 2021 1:11 pm
Here goes, keep the chuckling to a minimum :)
I can't see anything obvious wrong with it from a quick look so i've applied it to a few markets while I've got a screen spare
and will keep an eye on it

How often is it 'not' working correctly when you are running it?

One other quick thing to check, when it has been happening were you editing and re-saving the rule or re-applying it to the markets?
moodysrus
Posts: 17
Joined: Tue Feb 23, 2021 4:51 am

Dallas wrote:
Thu Feb 25, 2021 1:29 pm
moodysrus wrote:
Thu Feb 25, 2021 1:11 pm
Here goes, keep the chuckling to a minimum :)
I can't see anything obvious wrong with it from a quick look so i've applied it to a few markets while I've got a screen spare
and will keep an eye on it

How often is it 'not' working correctly when you are running it?

One other quick thing to check, when it has been happening were you editing and re-saving the rule or re-applying it to the markets?
Hmm, I have been aggressively editing rules today, often in-play. Maybe that is my issue.

In the last 12 hours, I have noticed it a handful of times, but wasn't always staring at the logs as the race unfolded so may have been more.

I will avoid editing rules while a race is in-progress and see if that settles things down...

Thanks !!
User avatar
Dallas
Posts: 22713
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

moodysrus wrote:
Thu Feb 25, 2021 1:35 pm
Dallas wrote:
Thu Feb 25, 2021 1:29 pm
moodysrus wrote:
Thu Feb 25, 2021 1:11 pm
Here goes, keep the chuckling to a minimum :)
I can't see anything obvious wrong with it from a quick look so i've applied it to a few markets while I've got a screen spare
and will keep an eye on it

How often is it 'not' working correctly when you are running it?

One other quick thing to check, when it has been happening were you editing and re-saving the rule or re-applying it to the markets?
Hmm, I have been aggressively editing rules today, often in-play. Maybe that is my issue.

In the last 12 hours, I have noticed it a handful of times, but wasn't always staring at the logs as the race unfolded so may have been more.

I will avoid editing rules while a race is in-progress and see if that settles things down...

Thanks !!
Whenever a automation file is resaved if its applied to any markets at that time it will effectively reset itself as though its just been applied.

So before I do any further testing run it for a bit this afternoon with no editing
Or if you do need to make any edits and resave make sure you then remove any markets from Guardian where the rules have begun triggering and ignore what happened in those
moodysrus
Posts: 17
Joined: Tue Feb 23, 2021 4:51 am

Hey Dallas,

I think the 'mystery' has been solved. I have been careful to not edit rules while in-play and haven't seen anything bad so far today (Australia). I also added a condition that prevents the 'Fix Market' rule from triggering if the event is 'in-play'. Not sure if that helps but it made me feel better :)

Thanks very much for your help.

cheers
Post Reply

Return to “Bet Angel for newbies / Getting started”