![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
Yes, I also agree that if you can code all the indicator calculations in the EA in a more efficient way, especially if it can be reduced to incremental calculations, then it will reduce memory usage and improve the speed.
The indicator doesn't do any calculations based on price history, it's just a tool to manage/create orders through manually adjusted graphical objects. So there was never a good reason not to incorporate all the code in the EA other than that's how I started and after I realized it was stupid I didn't want to have to start over.
By the way I still remember the time you told me about how you run all indicator calculations in your EA's and use incremental calculations to be more efficient. That's why I now use ring buffers (or arrays that imitate ring buffers) when analysing historical data and I don't regret making the change; it turns out to be simpler than I thought but I might not have tried it if you hadn't given me the advice so thanks!