In MQL5, the indicator handle MUST be received ONCE! And you MUST do it in OnInit !!!
![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
Hi guys, I'm very new in MQL5 programming., I came across the "Artificial Intelligence EA by Yury Reshetov". I converted the code from MQL4 to MQL5 the best I could, but one thing I can't seem accomplish is to export the data and use it for the EA to train itself. I've been reading articles like this one "https://www.mql5.com/en/articles/252"., but still having issues on grasping the way to do it. Not sure if its much to ask, but can anyone give me a hand? Here is the code I have so far: