Time as a Stored Value

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
User avatar
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?
Jukebox
Posts: 1576
Joined: Thu Sep 06, 2012 8:07 pm

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.
sa7med
Posts: 800
Joined: Thu May 18, 2017 8:01 am

Another possibility is to set a signal and increment it every second
sniffer66
Posts: 1816
Joined: Thu May 02, 2019 8:37 am

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
User avatar
firlandsfarm
Posts: 3321
Joined: Sat May 03, 2014 8:20 am

Jukebox wrote:
Mon Dec 09, 2019 8:06 am
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.
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!
sa7med wrote:
Mon Dec 09, 2019 8:07 am
Another possibility is to set a signal and increment it every second
Yep I mention that in my post but would it suffer from lag? I can experiment and report back.
sniffer66 wrote:
Mon Dec 09, 2019 8:28 am
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
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".
sniffer66
Posts: 1816
Joined: Thu May 02, 2019 8:37 am

firlandsfarm wrote:
Mon Dec 09, 2019 10:31 am
Jukebox wrote:
Mon Dec 09, 2019 8:06 am
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.
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!
sa7med wrote:
Mon Dec 09, 2019 8:07 am
Another possibility is to set a signal and increment it every second
Yep I mention that in my post but would it suffer from lag? I can experiment and report back.
sniffer66 wrote:
Mon Dec 09, 2019 8:28 am
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
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:

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
Post Reply

Return to “Bet Angel - Automation”