Waiting after a trigger has fired
This example is about how to do things rather than an implementation of a strategy.
It explains how to do an action (e.g. place a bet), then wait for a fixed amount of time, then do something else (or the same thing again).
There are two blocks in the file, of which one is disabled. You can have one of them enabled and the other one disabled at your own will, they are in fact two examples in one file.
The first block called "Executing one trigger after another" executes one trigger, called "Performing a trigger", then waits for 15 sec and executes the other one, called "Doing something else after time has passed". The secret is in the second action of the first trigger: it sets a variable named "timer" that remembers the time when the main action (i.e. the bet) was performed. The second trigger then checks if enough time has passed by verifying the condition (now_time-timer)/mf_second is equal or greater than waiting_time, where waiting_time is the constant holding the number of seconds to wait for.
The second block repeats the same trigger over and over, with the fixed interval of around 15 seconds. I'm saying "around" because the actual interval may vary due to the different time needed to refresh a market.
You can use this simple example in your own triggers, all you need is to adjust the primary actions and add more conditions that suit your strategy.