Time as a Stored Value
- firlandsfarm
- Posts: 3321
- Joined: Sat May 03, 2014 8:20 am
Is there a way to set a Stored Value equal to the elapsed time of an event (or actual time)? I can see I can set a Signal Value rule to trigger at set intervals and increment a signal value but not sure if that would suffer from lag and even then I can't see a way to assign a Signal's value to a Stored Value. Any thoughts?
You can set a rule to trigger in relation to:
Scheduled 'event start time'
Actual in-play time
Actual time
First rule to trigger
So if you want to trigger a rule to become active at 3:32pm, or 36mins before scheduled kick off or 30mins after actual kick off or 5 minutes after City become favorite they're all possible - you'll see the options in the rule trigger time boxes on the general tab of the rules editor.
Scheduled 'event start time'
Actual in-play time
Actual time
First rule to trigger
So if you want to trigger a rule to become active at 3:32pm, or 36mins before scheduled kick off or 30mins after actual kick off or 5 minutes after City become favorite they're all possible - you'll see the options in the rule trigger time boxes on the general tab of the rules editor.
It would depend how you wanted to use it but you could also use the Signal Changed Condition to save having to increment every second.
i.e Set a signal when the market goes in play then trigger when the Signal changed x seconds ago. I use this for doing timed triggers a lot, with one being dependent on the previous signal set
i.e Set a signal when the market goes in play then trigger when the Signal changed x seconds ago. I use this for doing timed triggers a lot, with one being dependent on the previous signal set
- firlandsfarm
- Posts: 3321
- Joined: Sat May 03, 2014 8:20 am
Hi Jukebox, I understand all of that thanks but I want to create a rule that monitors both time and price in play so if Price = (or ">" or "<") and Time = (or ">" or "<") then [do something] where Price and Time are ever changing variables. A good example would be the Soccer Mystic Price graphs … as the Time changes so the expected Price changes. To achieve that using one of the above would require a Rule for every ΔTime period!Jukebox wrote: ↑Mon Dec 09, 2019 8:06 amYou can set a rule to trigger in relation to:
Scheduled 'event start time'
Actual in-play time
Actual time
First rule to trigger
So if you want to trigger a rule to become active at 3:32pm, or 36mins before scheduled kick off or 30mins after actual kick off or 5 minutes after City become favorite they're all possible - you'll see the options in the rule trigger time boxes on the general tab of the rules editor.
Yep I mention that in my post but would it suffer from lag? I can experiment and report back.
If I'm reading you correctly are you using a Signal to replicate a 'time since start' directly for the first occurrence and accumulatively for subsequent occurrences? If so then as I explained above I'm looking to try and replicate a price/time condition so I can say "OK, it's X time since the start and the Price is Y … so, (after some jiggery-pokery) should I Back, Lay or do nothing".
Yes. So if I was looking to check a price 10 mins after it went in play, I would:firlandsfarm wrote: ↑Mon Dec 09, 2019 10:31 amHi Jukebox, I understand all of that thanks but I want to create a rule that monitors both time and price in play so if Price = (or ">" or "<") and Time = (or ">" or "<") then [do something] where Price and Time are ever changing variables. A good example would be the Soccer Mystic Price graphs … as the Time changes so the expected Price changes. To achieve that using one of the above would require a Rule for every ΔTime period!Jukebox wrote: ↑Mon Dec 09, 2019 8:06 amYou can set a rule to trigger in relation to:
Scheduled 'event start time'
Actual in-play time
Actual time
First rule to trigger
So if you want to trigger a rule to become active at 3:32pm, or 36mins before scheduled kick off or 30mins after actual kick off or 5 minutes after City become favorite they're all possible - you'll see the options in the rule trigger time boxes on the general tab of the rules editor.
Yep I mention that in my post but would it suffer from lag? I can experiment and report back.
If I'm reading you correctly are you using a Signal to replicate a 'time since start' directly for the first occurrence and accumulatively for subsequent occurrences? If so then as I explained above I'm looking to try and replicate a price/time condition so I can say "OK, it's X time since the start and the Price is Y … so, (after some jiggery-pokery) should I Back, Lay or do nothing".
Create a rule that set a Signal "InPlay" when market goes in play
Create a further rule: Signal "InPlay" changed between 600 and 605s ago and Price <> x
If you wanted to check again another x minutes later then just reset the signal in the same condition (or create a new one) and repeat
Of course, that only works if you want to check at a set time