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
Price Between Two Stored Values For X Seconds
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.lm1994 wrote: ↑Thu May 04, 2023 2:34 pmHi 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
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.
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
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