Signal not working?

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
fishtownraider
Posts: 76
Joined: Mon Feb 20, 2023 3:05 pm

Background
My football rules file places a lay order on all U2.5 markets (always armed), keeps it in play and then removes it if still unmatched 1 hr 45 min after the event start. To prevent the rule re-laying after removal, I have a 'Don't re-lay' signal whose value changes to 1 when the lay is removed, and a condition on the lay order to place it only if the Don't re-lay signal is NOT set with a value.

Problem
This all works fine, but when I start Guardian and load the markets it places second bets on any that it hasn't cycled through yet. I have tried to avoid this by delaying the triggering of the lay as follows: 1st rule (always armed), set Don't re-lay signal to 1; 2nd rule (+2 min to +5 min after first trigger), set Don't re-lay signal to 0, then continue with the lay/keep/remove rules as above. However, as you can see from the log, it just fires everything at once, skips the second rule entirely (I have the 'Note signal changes' box ticked), ignores the first signal and places the order anyway. (The lay was still placed even though the log says the entire order was rejected. This was not a doubled order, but the principle still applies.)

Question
Any other ideas how I might delay the firing of the rule, please?
You do not have the required permissions to view the files attached to this post.
User avatar
jamesedwards
Posts: 4369
Joined: Wed Nov 21, 2018 6:16 pm

If you can't make it work, then just wait a minute or so after loading markets before you apply the rule to them.
fishtownraider
Posts: 76
Joined: Mon Feb 20, 2023 3:05 pm

jamesedwards wrote:
Fri May 31, 2024 6:55 pm
If you can't make it work, then just wait a minute or so after loading markets before you apply the rule to them.
Thanks. Trouble is, even if I remove the rule from all selections and remove all markets before closing Guardian, it still applies the rule as soon as I open it up again next morning. (I don't know why - I've been told it doesn't remember the last rule if you remove it. I think I might have added a delay by setting only the 0-value signal as the first rule, and then setting the Lay to trigger 3 mins later, but I won't know for sure until tomorrow.)
User avatar
Dabbla
Posts: 826
Joined: Wed Apr 15, 2009 1:50 pm

I would probably use an incremental signal for the market.
Create a rule called start, allow it to trigger every second, 5 times .
Then set up a signal called (Start Signal) for the market the (action) will be (Increment signal value)

Then add a condition to your betting rule called (Signal value condition ) the settings will be (Start Signal) for (the market) is (Equal) to (5) .
Your bets wont be placed until the (Start Signal) has counted to 5 .
fishtownraider
Posts: 76
Joined: Mon Feb 20, 2023 3:05 pm

Dabbla wrote:
Fri May 31, 2024 7:05 pm
I would probably use an incremental signal for the market.
Create a rule called start, allow it to trigger every second, 5 times .
Then set up a signal called (Start Signal) for the market the (action) will be (Increment signal value)

Then add a condition to your betting rule called (Signal value condition ) the settings will be (Start Signal) for (the market) is (Equal) to (5) .
Your bets wont be placed until the (Start Signal) has counted to 5 .
Every day's a school day :D Thanks, I'll certainly put that one in my locker.
Post Reply

Return to “Bet Angel - Automation”