Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1484
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
The default is 1. And if announcing the number of constructions doesn't help, then proceed to option B.
Thanks, I'll keep that in mind.
The problem was, as you said, in the initialisation.
Good day to all! As far as I understood, int start() orvoid start() function is obsolete, but works for now. Now you should use void OnStart() instead of it. But here is an observation. In an indicator that does not require working with arrays I replace int OnCalculate() with start() - the indicator works, but its replacement with OnStart() breaks it. It turns out thatstart() and OnStart() are not equivalent? Is it worth using start() or it will stop working at all after the next MT4 update?
OnStart for scripts and services
So is start() for scripts, but it works in the indicator. I want to understand, is it even usable?
So is start() for scripts, but it works in the indicator. I want to understand, can it be used at all?
OnStart cannot be used in indicators
start was previously used for everything: Expert Advisors indicators scripts stratstop
OnStart cannot be used in indicators
start was previously used for everything: Expert Advisors indicators scripts stratstop
Got it. Thank you!
OnStart cannot be used in indicators
start was previously used for everything: Expert Advisors indicators scripts stratstop
POSSIBLE...
at that the indicator behaves like a script, if OnStart is present - it is executed and upon its completion the __indicator__is unloaded
Because of the fact that indicators are executed in the chart flow, until OnStart is finished, the chart will be "suspended".
POSSIBLE...
at the same time the indicator behaves as a script, if OnStart is present - it is executed and after it is finished the __indicator__ is unloaded
Because of the fact that indicators are executed in the chart flow, until OnStart is finished, the chart will be "suspended".
POSSIBLE...
at the same time the indicator behaves as a script, if OnStart is present - it is executed and after it is finished the __indicator__ is unloaded
This is due to the fact that indicators are executed in the chart flow, until OnStart is complete, the chart will be "suspended".
checked.
In MT4 - OnStart is running in the indicator!
the indicator is not unloaded
In MT5 - OnStart is not executed in the indicator!
So it's more of an omission that it's not banned in mt4.