A Place Back File - Doesn't look right

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
smgreyuk
Posts: 118
Joined: Tue Jul 30, 2024 4:20 pm

Hi,

I am trying to do the following:

1. Place a Back Bet for the Last Traded Price (using the SV LTP) on the horse ranked one place below the placed pay out positions (So for 7 runners this would be the horse in 3rd Fave Position, if 8 Runners the horse in 4th Fave Position and so on

2. I want this bet to fire off 10 seconds after the off

3. To check the price spread is no more than 30 ticks ( I believe this is the part that's going wrong)

4. Bet at the last traded price

I recorded the Lay Price also at 10 seconds from the off to debug.

The following happened for 2 out of the 3 races:

24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.6
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 3.75
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: LTP = 2.8
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 400
24/09/2025 16:45:35: [G_Auto 1] : £ 10.00 Back bet placed on Likealot at 2.8. Entirely unmatched when it initially reached the market. Ref: 10003
24/09/2025 16:45:35: [G_Auto 1] : £ 10.00 Back bet placed on Music Piece at 3.6. Entirely unmatched when it initially reached the market. Ref: 10004
24/09/2025 16:48:27: Guardian has detected that the market is suspended

24/09/2025 14:10:06: Guardian has detected that the market is suspended
24/09/2025 14:10:06: Guardian has detected that the market is now unsuspended
24/09/2025 16:39:04: Guardian has detected that the market is in-play
24/09/2025 16:39:04: Guardian has detected that the market is suspended
24/09/2025 16:39:07: Guardian has detected that the market is now unsuspended
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.4
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 3.2
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.55
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 400
24/09/2025 16:39:16: [G_Auto 1] : £ 10.00 Back bet placed on Our Absent Friends at 3.55. Entirely unmatched when it initially reached the market. Ref: 10002
24/09/2025 16:39:16: [G_Auto 1] : £ 10.00 Back bet placed on La Rochette at 3.4. Entirely unmatched when it initially reached the market. Ref: 10001
24/09/2025 16:40:02: Guardian has detected that the market is suspended

My questions are

Why is the LTP less than the lay price for one of the horses?

Why is the Lay Price so far out at 400 when I put a condition in to look out for the spread for 30 ticks?

Why is it putting on two Back Bets in the first place? ( I only selected the one horse in the relevant position )
))))((((( Place System - 10 Secs after Start.baf
I have attached my file

Could someone please work out what I am doing wrong? Thank you
You do not have the required permissions to view the files attached to this post.
User avatar
ShaunWhite
Posts: 10589
Joined: Sat Sep 03, 2016 3:42 am

smgreyuk wrote:
Wed Sep 24, 2025 5:03 pm
Why is the LTP less than the lay price for one of the horses?
The LTP was the back price? LTP depends on someone either placing a back or lay.
User avatar
jamesedwards
Posts: 4453
Joined: Wed Nov 21, 2018 6:16 pm

smgreyuk wrote:
Wed Sep 24, 2025 5:03 pm
Hi,

I am trying to do the following:

1. Place a Back Bet for the Last Traded Price (using the SV LTP) on the horse ranked one place below the placed pay out positions (So for 7 runners this would be the horse in 3rd Fave Position, if 8 Runners the horse in 4th Fave Position and so on

2. I want this bet to fire off 10 seconds after the off

3. To check the price spread is no more than 30 ticks ( I believe this is the part that's going wrong)

4. Bet at the last traded price

I recorded the Lay Price also at 10 seconds from the off to debug.

The following happened for 2 out of the 3 races:

24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.6
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 3.75
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: LTP = 2.8
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 400
24/09/2025 16:45:35: [G_Auto 1] : £ 10.00 Back bet placed on Likealot at 2.8. Entirely unmatched when it initially reached the market. Ref: 10003
24/09/2025 16:45:35: [G_Auto 1] : £ 10.00 Back bet placed on Music Piece at 3.6. Entirely unmatched when it initially reached the market. Ref: 10004
24/09/2025 16:48:27: Guardian has detected that the market is suspended

24/09/2025 14:10:06: Guardian has detected that the market is suspended
24/09/2025 14:10:06: Guardian has detected that the market is now unsuspended
24/09/2025 16:39:04: Guardian has detected that the market is in-play
24/09/2025 16:39:04: Guardian has detected that the market is suspended
24/09/2025 16:39:07: Guardian has detected that the market is now unsuspended
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.4
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 3.2
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.55
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 400
24/09/2025 16:39:16: [G_Auto 1] : £ 10.00 Back bet placed on Our Absent Friends at 3.55. Entirely unmatched when it initially reached the market. Ref: 10002
24/09/2025 16:39:16: [G_Auto 1] : £ 10.00 Back bet placed on La Rochette at 3.4. Entirely unmatched when it initially reached the market. Ref: 10001
24/09/2025 16:40:02: Guardian has detected that the market is suspended

My questions are

Why is the LTP less than the lay price for one of the horses?

Why is the Lay Price so far out at 400 when I put a condition in to look out for the spread for 30 ticks?

Why is it putting on two Back Bets in the first place? ( I only selected the one horse in the relevant position )

))))((((( Place System - 10 Secs after Start.baf

I have attached my file

Could someone please work out what I am doing wrong? Thank you
Do you mean the 3rd/4th/5th fav at that moment, or based on the SP?
User avatar
jamesedwards
Posts: 4453
Joined: Wed Nov 21, 2018 6:16 pm

smgreyuk wrote:
Wed Sep 24, 2025 5:03 pm
Hi,

I am trying to do the following:

1. Place a Back Bet for the Last Traded Price (using the SV LTP) on the horse ranked one place below the placed pay out positions (So for 7 runners this would be the horse in 3rd Fave Position, if 8 Runners the horse in 4th Fave Position and so on

2. I want this bet to fire off 10 seconds after the off

3. To check the price spread is no more than 30 ticks ( I believe this is the part that's going wrong)

4. Bet at the last traded price

I recorded the Lay Price also at 10 seconds from the off to debug.

The following happened for 2 out of the 3 races:

24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.6
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 3.75
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: LTP = 2.8
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 400
24/09/2025 16:45:35: [G_Auto 1] : £ 10.00 Back bet placed on Likealot at 2.8. Entirely unmatched when it initially reached the market. Ref: 10003
24/09/2025 16:45:35: [G_Auto 1] : £ 10.00 Back bet placed on Music Piece at 3.6. Entirely unmatched when it initially reached the market. Ref: 10004
24/09/2025 16:48:27: Guardian has detected that the market is suspended

24/09/2025 14:10:06: Guardian has detected that the market is suspended
24/09/2025 14:10:06: Guardian has detected that the market is now unsuspended
24/09/2025 16:39:04: Guardian has detected that the market is in-play
24/09/2025 16:39:04: Guardian has detected that the market is suspended
24/09/2025 16:39:07: Guardian has detected that the market is now unsuspended
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.4
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 3.2
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.55
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 400
24/09/2025 16:39:16: [G_Auto 1] : £ 10.00 Back bet placed on Our Absent Friends at 3.55. Entirely unmatched when it initially reached the market. Ref: 10002
24/09/2025 16:39:16: [G_Auto 1] : £ 10.00 Back bet placed on La Rochette at 3.4. Entirely unmatched when it initially reached the market. Ref: 10001
24/09/2025 16:40:02: Guardian has detected that the market is suspended

My questions are

Why is the LTP less than the lay price for one of the horses?

Why is the Lay Price so far out at 400 when I put a condition in to look out for the spread for 30 ticks?

Why is it putting on two Back Bets in the first place? ( I only selected the one horse in the relevant position )

))))((((( Place System - 10 Secs after Start.baf

I have attached my file

Could someone please work out what I am doing wrong? Thank you
You need to fix this bit. Your group is for one or more to be true so this will trigger in any race, as every race will have either >3 or <7 selections.
z242.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
jamesedwards
Posts: 4453
Joined: Wed Nov 21, 2018 6:16 pm

smgreyuk wrote:
Wed Sep 24, 2025 5:03 pm
Hi,

I am trying to do the following:

1. Place a Back Bet for the Last Traded Price (using the SV LTP) on the horse ranked one place below the placed pay out positions (So for 7 runners this would be the horse in 3rd Fave Position, if 8 Runners the horse in 4th Fave Position and so on

2. I want this bet to fire off 10 seconds after the off

3. To check the price spread is no more than 30 ticks ( I believe this is the part that's going wrong)

4. Bet at the last traded price

I recorded the Lay Price also at 10 seconds from the off to debug.

The following happened for 2 out of the 3 races:

24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.6
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 3.75
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: LTP = 2.8
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 400
24/09/2025 16:45:35: [G_Auto 1] : £ 10.00 Back bet placed on Likealot at 2.8. Entirely unmatched when it initially reached the market. Ref: 10003
24/09/2025 16:45:35: [G_Auto 1] : £ 10.00 Back bet placed on Music Piece at 3.6. Entirely unmatched when it initially reached the market. Ref: 10004
24/09/2025 16:48:27: Guardian has detected that the market is suspended

24/09/2025 14:10:06: Guardian has detected that the market is suspended
24/09/2025 14:10:06: Guardian has detected that the market is now unsuspended
24/09/2025 16:39:04: Guardian has detected that the market is in-play
24/09/2025 16:39:04: Guardian has detected that the market is suspended
24/09/2025 16:39:07: Guardian has detected that the market is now unsuspended
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.4
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 3.2
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.55
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 400
24/09/2025 16:39:16: [G_Auto 1] : £ 10.00 Back bet placed on Our Absent Friends at 3.55. Entirely unmatched when it initially reached the market. Ref: 10002
24/09/2025 16:39:16: [G_Auto 1] : £ 10.00 Back bet placed on La Rochette at 3.4. Entirely unmatched when it initially reached the market. Ref: 10001
24/09/2025 16:40:02: Guardian has detected that the market is suspended

My questions are

Why is the LTP less than the lay price for one of the horses?

Why is the Lay Price so far out at 400 when I put a condition in to look out for the spread for 30 ticks?

Why is it putting on two Back Bets in the first place? ( I only selected the one horse in the relevant position )

))))((((( Place System - 10 Secs after Start.baf

I have attached my file

Could someone please work out what I am doing wrong? Thank you
You need to fix this bit because this is checking there is at least 30 ticks gap, not less than.
z243.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
jamesedwards
Posts: 4453
Joined: Wed Nov 21, 2018 6:16 pm

smgreyuk wrote:
Wed Sep 24, 2025 5:03 pm
Hi,

I am trying to do the following:

1. Place a Back Bet for the Last Traded Price (using the SV LTP) on the horse ranked one place below the placed pay out positions (So for 7 runners this would be the horse in 3rd Fave Position, if 8 Runners the horse in 4th Fave Position and so on

2. I want this bet to fire off 10 seconds after the off

3. To check the price spread is no more than 30 ticks ( I believe this is the part that's going wrong)

4. Bet at the last traded price

I recorded the Lay Price also at 10 seconds from the off to debug.

The following happened for 2 out of the 3 races:

24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.6
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 3.75
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: LTP = 2.8
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 400
24/09/2025 16:45:35: [G_Auto 1] : £ 10.00 Back bet placed on Likealot at 2.8. Entirely unmatched when it initially reached the market. Ref: 10003
24/09/2025 16:45:35: [G_Auto 1] : £ 10.00 Back bet placed on Music Piece at 3.6. Entirely unmatched when it initially reached the market. Ref: 10004
24/09/2025 16:48:27: Guardian has detected that the market is suspended

24/09/2025 14:10:06: Guardian has detected that the market is suspended
24/09/2025 14:10:06: Guardian has detected that the market is now unsuspended
24/09/2025 16:39:04: Guardian has detected that the market is in-play
24/09/2025 16:39:04: Guardian has detected that the market is suspended
24/09/2025 16:39:07: Guardian has detected that the market is now unsuspended
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.4
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 3.2
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.55
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 400
24/09/2025 16:39:16: [G_Auto 1] : £ 10.00 Back bet placed on Our Absent Friends at 3.55. Entirely unmatched when it initially reached the market. Ref: 10002
24/09/2025 16:39:16: [G_Auto 1] : £ 10.00 Back bet placed on La Rochette at 3.4. Entirely unmatched when it initially reached the market. Ref: 10001
24/09/2025 16:40:02: Guardian has detected that the market is suspended

My questions are

Why is the LTP less than the lay price for one of the horses?

Why is the Lay Price so far out at 400 when I put a condition in to look out for the spread for 30 ticks?

Why is it putting on two Back Bets in the first place? ( I only selected the one horse in the relevant position )

))))((((( Place System - 10 Secs after Start.baf

I have attached my file

Could someone please work out what I am doing wrong? Thank you
You need to save the LTP stored value in its own separate line before the trigger rules. At the moment it's only fortuitously storing the LTP on your second line due to your error in the number of selections condition, then using this for the remaining qualifying lines. This is why it's triggering twice.
Last edited by jamesedwards on Wed Sep 24, 2025 6:38 pm, edited 1 time in total.
User avatar
jamesedwards
Posts: 4453
Joined: Wed Nov 21, 2018 6:16 pm

smgreyuk wrote:
Wed Sep 24, 2025 5:03 pm
Hi,

I am trying to do the following:

1. Place a Back Bet for the Last Traded Price (using the SV LTP) on the horse ranked one place below the placed pay out positions (So for 7 runners this would be the horse in 3rd Fave Position, if 8 Runners the horse in 4th Fave Position and so on

2. I want this bet to fire off 10 seconds after the off

3. To check the price spread is no more than 30 ticks ( I believe this is the part that's going wrong)

4. Bet at the last traded price

I recorded the Lay Price also at 10 seconds from the off to debug.

The following happened for 2 out of the 3 races:

24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.6
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 3.75
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: LTP = 2.8
24/09/2025 16:45:34: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 400
24/09/2025 16:45:35: [G_Auto 1] : £ 10.00 Back bet placed on Likealot at 2.8. Entirely unmatched when it initially reached the market. Ref: 10003
24/09/2025 16:45:35: [G_Auto 1] : £ 10.00 Back bet placed on Music Piece at 3.6. Entirely unmatched when it initially reached the market. Ref: 10004
24/09/2025 16:48:27: Guardian has detected that the market is suspended

24/09/2025 14:10:06: Guardian has detected that the market is suspended
24/09/2025 14:10:06: Guardian has detected that the market is now unsuspended
24/09/2025 16:39:04: Guardian has detected that the market is in-play
24/09/2025 16:39:04: Guardian has detected that the market is suspended
24/09/2025 16:39:07: Guardian has detected that the market is now unsuspended
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.4
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 3.2
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: LTP = 3.55
24/09/2025 16:39:15: [G_Auto 1] : Store Value (Shared) for market: Lay Price = 400
24/09/2025 16:39:16: [G_Auto 1] : £ 10.00 Back bet placed on Our Absent Friends at 3.55. Entirely unmatched when it initially reached the market. Ref: 10002
24/09/2025 16:39:16: [G_Auto 1] : £ 10.00 Back bet placed on La Rochette at 3.4. Entirely unmatched when it initially reached the market. Ref: 10001
24/09/2025 16:40:02: Guardian has detected that the market is suspended

My questions are

Why is the LTP less than the lay price for one of the horses?

Why is the Lay Price so far out at 400 when I put a condition in to look out for the spread for 30 ticks?

Why is it putting on two Back Bets in the first place? ( I only selected the one horse in the relevant position )

))))((((( Place System - 10 Secs after Start.baf

I have attached my file

Could someone please work out what I am doing wrong? Thank you
You're only allowing 1 sec for the trigger rule, between 10 and 11 secs into play. You might want to extend this to avoid situations where the market does not refresh within this given timeframe.
smgreyuk
Posts: 118
Joined: Tue Jul 30, 2024 4:20 pm

Hi jamesedwards:

I have made all the changes, thank you.

Now regarding

"You need to fix this bit because this is checking there is at least 30 ticks gap, not less than."
Screenshot 2025-09-24 231519.png
I am not saying you are wrong, I am saying I may not have fully grasped how to do the following

"I am trying to only place the back bet when the back price is 30 ticks away from the lay price

For instance say the back price is 3 and the lay price is 4 (at 10 seconds), that's a gap of 20 ticks at that time, that's where I want the condition to be true.

Another example - say the back price is 3 and the lay price is 4.5 (at 10 seconds), that's a gap of 30 ticks on the nose at that time, that's also where I want the condition to be true.

But say the back price is 3 and the lay price is 4.55 (at 10 seconds), that's a gap of 31 ticks, that's where I want the condition to be false"


I searched around the forum and it appears that another user had the same confusion as me and thought of it the exact same way as I did - viewtopic.php?t=13432

I shall therefore use jimbt's approach of using the historic relative odds condition as that appeared to work for that user
I notice it uses "greater than" rather than my "less than" - I think the confusion is how the greater than or less than is combined with minus or plus, I just fail to visually grasp what all that means
Screenshot 2025-09-24 233920.png
Thanks again
You do not have the required permissions to view the files attached to this post.
User avatar
jamesedwards
Posts: 4453
Joined: Wed Nov 21, 2018 6:16 pm

smgreyuk wrote:
Wed Sep 24, 2025 11:36 pm
Hi jamesedwards:

I have made all the changes, thank you.

Now regarding

"You need to fix this bit because this is checking there is at least 30 ticks gap, not less than."

Screenshot 2025-09-24 231519.png

I am not saying you are wrong, I am saying I may not have fully grasped how to do the following

"I am trying to only place the back bet when the back price is 30 ticks away from the lay price

For instance say the back price is 3 and the lay price is 4 (at 10 seconds), that's a gap of 20 ticks at that time, that's where I want the condition to be true.

Another example - say the back price is 3 and the lay price is 4.5 (at 10 seconds), that's a gap of 30 ticks on the nose at that time, that's also where I want the condition to be true.

But say the back price is 3 and the lay price is 4.55 (at 10 seconds), that's a gap of 31 ticks, that's where I want the condition to be false"


I searched around the forum and it appears that another user had the same confusion as me and thought of it the exact same way as I did - viewtopic.php?t=13432

I shall therefore use jimbt's approach of using the historic relative odds condition as that appeared to work for that user
I notice it uses "greater than" rather than my "less than" - I think the confusion is how the greater than or less than is combined with minus or plus, I just fail to visually grasp what all that means
Screenshot 2025-09-24 233920.png

Thanks again
All you needed to do was to change it from "less than" to "greater than".

So [back price] is greater than [lay price minus 30 ticks].

This way if the gap between the two prices is greater than 30 ticks then it will not fire. Previously you had this around the wrong way because you had it set to [back price] is less than [lay price minus 30 ticks].
smgreyuk
Posts: 118
Joined: Tue Jul 30, 2024 4:20 pm

Yep, it’s starting to make sense. The more I thought about it, the more I could visualise what it was doing with the values.

Thank you again
Post Reply

Return to “Bet Angel - Automation”