![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Of course there is a logical error if you get an alert (which I suppose is only needed for live signals) using "old" data.
Anyway, if you need coding help show your code. Nobody can guess how to fix an invisible code.
You will see, my code is really not the issue. It's just the lack of data.
As you can see, I look for the latest fractal high on M15 and then I check every minute if it's broken. That always causes errors if the terminal was closed for a couple of hours.
This will not help. In #4, #6, timecurrent and open will be what it was and therefor no return. In #7 they both update, and therefor no return.
So there is no chance to check if the current data is loaded before the indicator starts its work? According to what you said earlier (not closing the terminal) I guess there really isn't.
Copying iFractal values instead of calculating might help.
The fractals are just an example. I work with fractals, zig zags and other things.
My main issue is how to be sure that the current data is completely loaded before an indicator starts its work. It's a general thing I want to know and implement into more of my indicators.