What is the actual reason of "indicator is too slow"? I noticed that adding an artificial delay (10-20 sec) in OnCalculate does not cause the appearance of that "too slow" message, therefore, the reason is not in the long calculation of an indicator.
- Awesome Oscillator - Bill Williams' Indicators - Indicators - Charts - MetaTrader 5 for Android
- Awesome Oscillator - Bill Williams' Indicators - Indicators - Chart - MetaTrader 5 for iPhone
- Stochastic Oscillator - Oscillators - Technical Indicators - Price Charts, Technical and Fundamental Analysis
aura: What is the actual reason of "indicator is too slow"? I noticed that adding an artificial delay (10-20 sec)
- The indicator is taking too long to complete. How the terminal detects it is probably network dependent.
- Indicators can not sleep, how could you add an artificial delay?
- Once it takes more than 2000 MS to complete OnCalculate you will start getting messages. 1500 MS was always fine with my testing. Reduce max bars on chart to something reasonable like 5K, have the indicator only calculate a limited number of bars, or process updates in groups, as I posted in
How to do your lookbacks correctly #12.
To add a delay, I use the following code, but it does not cause an error. Therefore, the reason is not the execution time.
uint tt=GetTickCount(); while (GetTickCount()-tt<20000);
Some users getting an error, but I can't reproduce. Number of bars is already limited.
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