Price Between Two Stored Values For X Seconds

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
lm1994
Posts: 40
Joined: Sun Jun 14, 2020 1:22 pm

Hi all,

I currently have two stored values set up between two different prices.

Is it possible to have my lay bet only fire into the market if the price has been stuck between my two stores values for X amount of seconds?

I also have other conditions set on the rule but I can’t figure out a way of also applying this.

Thanks
User avatar
Derek27
Posts: 25159
Joined: Wed Aug 30, 2017 11:44 am

lm1994 wrote:
Thu May 04, 2023 2:34 pm
Hi all,

I currently have two stored values set up between two different prices.

Is it possible to have my lay bet only fire into the market if the price has been stuck between my two stores values for X amount of seconds?

I also have other conditions set on the rule but I can’t figure out a way of also applying this.

Thanks
You can have a rule that fires when the price is NOT in range that sets an SV to the number of seconds until event time.

Then, have another rule that fires your lay bet when the number of seconds until event start time + X seconds is less than the SV that you stored.

There may be an easier way with history lists but I haven't used them much so I don't know if they can catch a time-related range.
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

I'd do it by incrementing a signal every second while its between your prices, then reset that signal when it isn't

This example uses that method
viewtopic.php?f=56&t=11954

All you'd need to do is remove the profit conditions and replace with two fixed odds conditions to test the price is above one SV and below your other SV
Then similar but in reverse for resetting the signal
Post Reply

Return to “Bet Angel - Automation”