
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello Good time I wrote a multi-time program that I want to give an alarm in 15 minutes, for example, so that the next candle of the program does not run. Please help me
Hello Good time I wrote a multi-time program that I want to give an alarm in 15 minutes, for example, so that the next candle of the program does not run. Please help me
EDIT: if you're concerned about the opening of a new bar, just keep the value of iTime(NULL, PERIOD_M15, 0) in a global/static variable. From there, just call iTime(NULL, PERIOD_M15, 0) checking for a greater value than the value you have stored. If it's greater, store the new value in the global/static variable and execute the rest of your code.
Just going to leave this here since I already wrote it up
----------------
Sets a 15min timer from when the program loads
For every 15min based off start of the hour (ex: 10:00, 10:15, 10:30, 10:45, etc.)Don't try to use any price (or indicator) or server related functions in OnInit (or on load or in OnTimer before you've received a tick), as there may be no connection/chart yet: