Download MetaTrader 5
To add comments, please log in or register
Track Market top sellers!
dignitas123
30
dignitas123 2015.04.19 14: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 

honest_knave
969
honest_knave 2015.04.19 15:53  
You can set (and stop) the timer from anywhere. It doesn't have to be OnInit() (and OnDeinit())
dignitas123
30
dignitas123 2015.04.19 16: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.
/
To add comments, please log in or register