Lay Horse List At Specific Odds

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
smcgloin
Posts: 15
Joined: Wed Nov 14, 2018 8:46 pm

I want to import a list of horse with certain odds for each horse then lay the horse if it's less than the odds specified. Each horse will have different odds so I can't just do it in a bot. I thought I could do it with Set Stored Value From File but I can't figure it out
User avatar
MemphisFlash
Posts: 2339
Joined: Fri May 16, 2014 10:12 pm

if you have a list already, why don't you do a text comparison and just copy the list straight into your bot.
smcgloin
Posts: 15
Joined: Wed Nov 14, 2018 8:46 pm

Because each horse has different lay odds
Simone
Posts: 12
Joined: Fri Jul 18, 2025 9:47 am

Hi,

You can handle different lay odds per runner by using stored values. Create a simple text file with each horse and its maximum lay price separated by a comma, like:

Horse A,5.0
Horse B,7.2
Horse C,3.5

Save this in your Bet Angel folder and then add a "Set stored value from file" rule to your automation. Set it to trigger once on market load and apply it to all selections. In the rule settings, choose the horse name as the key and store the odds as a number under a name such as MaxLayOdds. This will attach the correct lay limit to each runner when the market opens.

In your lay rule, use a stored value condition to check that the runner’s back price is below its own stored MaxLayOdds value before placing the lay bet. You can also add a number of matched bets condition to make sure the rule only fires once per horse. This way every horse in your list can have its own odds limit without having to write separate rules for each one.

If you only have a handful of runners, you could use a text comparison condition and hard‑code the price within each rule, but using a file is much easier to maintain for a long list.
smcgloin
Posts: 15
Joined: Wed Nov 14, 2018 8:46 pm

If I try to set it Every Selection then I get this error. If I try to set it to Any Selection then it doesn't set the value
You do not have the required permissions to view the files attached to this post.
Simone
Posts: 12
Joined: Fri Jul 18, 2025 9:47 am

When that error appears, it's because the rule you're using isn’t designed to act on one runner at a time – it runs once for the whole market and automatically deals with all selections. For example, the "Keep all unmatched bets" rule triggers once and keeps every unmatched bet; you don’t need to loop it through each horse. The same goes for "Set stored value from file": it reads your file and assigns each runner its own value in one go.

If you pick "Every selection" for those rule types, Bet Angel would end up looping twice so it blocks you. Instead, leave "Applies to selection" on the default "Any selection" and set up the file and other parameters. The rule will still apply to all runners. As long as the names in your file match the runners in the market, each horse will get the correct value without needing to run the rule separately on each one.
Post Reply

Return to “Bet Angel - Automation”