What if you want to run a rule throughout the day but want to change 1 or 2 small variables depending on the time of day.
For example, if your scalping pre-race horse racing during the afternoon you may want to use a similar bot in the evening but with a more relaxed stop loss or increased tick offsets due to the added volatility in evening racing.
Or
If trading the whole days greyhounds, you may want to reduce your stakes for the afternoon races from those used in the morning races, then increase them even higher for the evening races - as well as add in some additional rules for these later races.
To do this you could of course create a number of separate automation files and then apply them to the relevant markets each day – Or as ill show here you can create a single automation file with multiple rules that will trigger different rules within the automation file depending on the time of day.
For this example, I have created three time zones (10:00-14:00, 14:00-18:00 & 18:00+) but you can create as many as you like.
This is done by using ‘Set/Modify Signal’ rules that are set to trigger at fixed times, when the first triggers a Signal is set on the market using the ‘Increment signal value’ action so starts with a value of 1, when the next time zone is reached another ‘Set/Modify Signal’ rule is triggered, this will increment the value to 2 and then to 3 when the final time zone signal triggers.
These values can then be used as conditions for any or all of your rules to ensure they only trigger before/after or during certain times of the day. In the image below you’ll see 3 X back and 3 x lay rules.
Back (a) & Lay (a) have a condition that they can only trigger if the signal value is 1 (meaning they will only trigger if the time is between 10:00-13:59)
Back (b) & Lay (b) have a condition that they can only trigger if the signal value is 2 (meaning they will only trigger if the time is between 14:00-17:59)
Back (c) & Lay (c) have a condition that they can only trigger if the signal value is 3 (meaning they will only trigger if the time is after 18:00)
Below I’ve attached the file used in the images should you want to download and have a play about.