Making a rule with conditions

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
fishtownraider
Posts: 76
Joined: Mon Feb 20, 2023 3:05 pm

I'm sure this is pretty basic if you know what you're doing, but I don't, so posting here rather than in Automation.

I'd like to make a rules file for football that will monitor three markets in every games prior to KO (price of fav + 2 others) and place back bets on the two others if and only if the fav is below a specified price AND the other two are both at or above specified prices. Any guidance as to where to begin would be appreciated. Thanks.
User avatar
jamesedwards
Posts: 3919
Joined: Wed Nov 21, 2018 6:16 pm

fishtownraider wrote:
Sun Apr 27, 2025 4:30 pm
I'm sure this is pretty basic if you know what you're doing, but I don't, so posting here rather than in Automation.

I'd like to make a rules file for football that will monitor three markets in every games prior to KO (price of fav + 2 others) and place back bets on the two others if and only if the fav is below a specified price AND the other two are both at or above specified prices. Any guidance as to where to begin would be appreciated. Thanks.
You need to look into stored values stored at 'event' level. These stored values will cross between any market in the same match.
fishtownraider
Posts: 76
Joined: Mon Feb 20, 2023 3:05 pm

jamesedwards wrote:
Sun Apr 27, 2025 4:55 pm
fishtownraider wrote:
Sun Apr 27, 2025 4:30 pm
I'm sure this is pretty basic if you know what you're doing, but I don't, so posting here rather than in Automation.

I'd like to make a rules file for football that will monitor three markets in every games prior to KO (price of fav + 2 others) and place back bets on the two others if and only if the fav is below a specified price AND the other two are both at or above specified prices. Any guidance as to where to begin would be appreciated. Thanks.
You need to look into stored values stored at 'event' level. These stored values will cross between any market in the same match.
Thanks, James. So something along the lines of Desired Price A/B/C = SV 1/2/3; if SV 1, 2 and 3 all true, then back B and C?
User avatar
jamesedwards
Posts: 3919
Joined: Wed Nov 21, 2018 6:16 pm

fishtownraider wrote:
Sun Apr 27, 2025 5:31 pm
jamesedwards wrote:
Sun Apr 27, 2025 4:55 pm
fishtownraider wrote:
Sun Apr 27, 2025 4:30 pm
I'm sure this is pretty basic if you know what you're doing, but I don't, so posting here rather than in Automation.

I'd like to make a rules file for football that will monitor three markets in every games prior to KO (price of fav + 2 others) and place back bets on the two others if and only if the fav is below a specified price AND the other two are both at or above specified prices. Any guidance as to where to begin would be appreciated. Thanks.
You need to look into stored values stored at 'event' level. These stored values will cross between any market in the same match.
Thanks, James. So something along the lines of Desired Price A/B/C = SV 1/2/3; if SV 1, 2 and 3 all true, then back B and C?
I would use a separate SV (saved at event level) for each market. One line that makes SV = 0 when criteria is not met, and one that makes SV = 1 when criteria is met.

Then trigger the relevant trades if SV1 and SV2 and SV3 all = 1.
fishtownraider
Posts: 76
Joined: Mon Feb 20, 2023 3:05 pm

jamesedwards wrote:
Sun Apr 27, 2025 5:52 pm
fishtownraider wrote:
Sun Apr 27, 2025 5:31 pm
jamesedwards wrote:
Sun Apr 27, 2025 4:55 pm


You need to look into stored values stored at 'event' level. These stored values will cross between any market in the same match.
Thanks, James. So something along the lines of Desired Price A/B/C = SV 1/2/3; if SV 1, 2 and 3 all true, then back B and C?
I would use a separate SV (saved at event level) for each market. One line that makes SV = 0 when criteria is not met, and one that makes SV = 1 when criteria is met.

Then trigger the relevant trades if SV1 and SV2 and SV3 all = 1.
Thanks. That gives me somewhere to start, at least.
displayyouthful
Posts: 2
Joined: Wed Mar 26, 2025 3:42 am

jamesedwards wrote:
Sun Apr 27, 2025 5:52 pm
fishtownraider wrote:
Sun Apr 27, 2025 5:31 pm
jamesedwards wrote:
Sun Apr 27, 2025 4:55 pm


@poor bunny You need to look into stored values stored at 'event' level. These stored values will cross between any market in the same match.
Thanks, James. So something along the lines of Desired Price A/B/C = SV 1/2/3; if SV 1, 2 and 3 all true, then back B and C?
I would use a separate SV (saved at event level) for each market. One line that makes SV = 0 when criteria is not met, and one that makes SV = 1 when criteria is met.

Then trigger the relevant trades if SV1 and SV2 and SV3 all = 1.
Anyone can explain again in 1times for me, pls? I don't understand :cry:
Post Reply

Return to “Bet Angel for newbies / Getting started”