Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 778
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
Good morning.
How to make a function run every i hours (i=1, 4, 12, 24)?
You can find out the local time of the computer, and then?
Ozero.
Good morning.
How to make a function run every i hours (i=1, 4, 12, 24)?
You can find out the local time of your computer.
Ozero.
Run on the clock and monitor the appearance of a new bar or use OnTimer()
OnTimer
Function OnTimer() is called when the Timer event occurs, which is generated by the system timer only for Expert Advisors and indicators - you cannot use it in scripts. The frequency of the event occurrence is set when subscribing to notifications about this event to be received by the EventSetTimer() function.
You can unsubscribe from receiving timer events for a particular Expert Advisor using the EventKillTimer() function. The function must be defined with void type, it has no parameters:
voidOnTimer();
It is recommended to call the EventSetTimer() function once in the OnInit() function, and the EventKillTimer() function should be called once in OnDeinit().
Every Expert Advisor and every indicator works with its own timer and receives events only from it. As soon as the mql4 program stops operating, the timer is destroyed forcibly, if it was created but hasn't been disabled by the EventKillTimer() function.
Good morning.
How to make a function to run every i hours (i=1, 4, 12, 24)?
You can find out the local time of the computer, and then?
Ozero.
Good afternoon Smart People!
I'm at kindergarten level in codes - change the colour, thickness of lines, erase the inscription, etc.. The chart indicator of Murray's levels, which I am talking about, is not friendly on the chart with self-similar ones with different period settings ... The purpose:_to make the indicator not to interfere with its brothers, but with different settings, i.e. to achieve the work of 3 identical indicators. Please advise how to do it. Thank you.
Good afternoon Smart People!
I'm at kindergarten level in codes - change the colour, thickness of lines, erase the inscription, etc.. The chart indicator of Murray's levels, which I am talking about, is not friendly on the chart with self-similar ones with different period settings ... The purpose:_to make the indicator not to interfere with its brothers, but with different settings, i.e. to achieve the work of 3 identical indicators. Please advise how to do it. Thank you.
Good afternoon Smart People!
I'm at kindergarten level in codes - change the colour, thickness of lines, erase the inscription, etc.. The chart indicator of Murray's levels, which I am talking about, is not friendly on the chart with self-similar ones with different period settings ... The purpose:_to make the indicator not to interfere with its brothers, but with different settings, i.e. to achieve the work of 3 identical indicators. Please advise how to do it. Thank you.
In the name of the levels, add the period
in the name of the levels, add the period
Thank you. I am trying.