Message: Indicator is too slow, rewrite the indicator, please
- It could be that your code is time consuming try using the profiler: in the Editor => Debug => Start Profiling
- Or your indicator has to wait (too long) for the initial quotes (too many? Reduce "Max bars in Charts" in Options (Ctrl+O) => Charts
Carl Schreiber #:
- It could be that your code is time consuming try using the profiler: in the Editor => Debug => Start Profiling
- Or your indicator has to wait (too long) for the initial quotes (too many? Reduce "Max bars in Charts" in Options (Ctrl+O) => Charts
Thanks Carl. I am debugging it. I will have to understand better the rates_total and prev_calculated. I think I have not got the main idea yet for optimizations.
b2tradingclub #: I will have to understand better the rates_total and prev_calculated. I think I have not got the main idea yet
See How to do your lookbacks correctly #9 — #14 & #19. (2016)
Thank you so much, William.

You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- 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
Dear devels,
I am still studying MQL5 and one of my indicator's test I have got that message. Could you comment if I am write the "for loop" correctly and optimized?
I will be very thankful with any comment or suggestion...