metamitsu:
Don't allocate memory on every tick.
I applied the following calculation to the EA and the speed of the EA got very slow.
Is there any way to make it more efficient?
metamitsu: Is there any way to make it more efficient?
Don't do per tick that which you can do once per bar or at initialization.- Resize your array once in OnInit.
- After the first computation, nothing changes unless the bid goes above High or below Low or a new bar starts. Just check those three and return.
-
Don't double post! You already had this thread open.
General rules and best pratices of the Forum. - General - MQL5 programming forum 2017.07.19
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
I applied the following calculation to the EA and the speed of the EA got very slow.
Is there any way to make it more efficient?