EventSetTimer Question

Back to topics list To post a new topic, please log in or register
avatar
7
dignitas123 2015.04.19 16:38
 

Hello,

I've searched the forum and google but I couldn't find an answer to my problem.

I want to know if it is possible to call the EventSetTimer() function outside of OnInit() because I want my expert advisor to start the timer after a condition in the OnTick() function is met (like profit > 1:2 RiskReward). So that it sends me a notification every 15 minutes after the event occured.

Do you know if this will work? I can't test it right now because of weekend :D And if there is no way to start the EventSetTimer() function outside of OnInit() is there a way to work around this problem?

Thanks in advance 

avatar
736
honest_knave 2015.04.19 17:53 #
 
You can set (and stop) the timer from anywhere. It doesn't have to be OnInit() (and OnDeinit())
avatar
7
dignitas123 2015.04.19 18:26 #
 
honest_knave:
You can set (and stop) the timer from anywhere. It doesn't have to be OnInit() (and OnDeinit())
Good to know, thank you.
Back to topics list  

To add comments, please log in or register