On Timer: What is the difference?
-
Please I am curious to know the difference between the 'period for the "on timer" event' that shows under the 'project option' tab and the "on Timer" event which gives you the option of specifying hours, minutes and seconds.
In both cases, how do they work and what are they used for? I'd appreciate answers with an example or two please. Thanks
First instance,

Second instance,

-
@coolazice An interesting question. I guess (and it's just a guess), they are doing exactly the same, but never tested it, honestly.
-
Thank you for your response. I am Just looking for a way to capture the price every 15 minutes and was wondering if it would help. Previously, I used the logic of counting up the time in seconds and diving by 15 minutes (900 sec, see figure below) and if the answer gives an integer value it prompts the logic to take the value of current price. However, I can't quite figure out how to figure out if the quotient is an integer or not on "on Tick", see why I'm asking? Do you have a way I can capture price every 15 minutes on a 4 hour chart?

-
@coolazice Then I guess the best option would be to use the 'on timer' tab. Theer you can specify actions to be made at specific periods independently of tick arrival. Try there and select 15 minutes as timer. This is an interesting exercise.
-
@l-andorrà Thanks, I already implemented what you suggested but I'm not getting anything. I am not sure if it's because the markets are closed right now and it cannot work on the tester environment but we'll see when the markets open tomorrow night.
Meanwhile, I am open to suggestions from anyone else reading this who can help and the question is; how do I capture the price value of a currency pair every 15 minutes on a 4 hour chart with fxdreema. Thank you
-
@coolazice I confirm it's not working now beacause markets are closed. And I also confirm that everything you have on the 'on timer' tab will never be able to be used in a backtest because time is inexistant in backtesting, sorry. You can only test it on a real time demo/real account.
-
@l-andorrà Thanks for your response, you are right in your conclusions regarding the 'on Timer' tab. However, I am still looking for a solution that will capture the price at 15 minute intervals and would like to know if you have used the second condition block pictured below, I am hoping it can do the job.


I want the block to pass on the condition that “MathMod( Var1, Var2 ) = 0” is True. Do you have an idea on how I can write this condition for this purpose?
-
@coolazice I never use that block because I'm not a programmer, sadly.
I'm afraid you need a real one in this case.