Indicator Running Slow
I have noticed that the indicator becomes heavy when attached to multiple charts, especially when MT4 is first opened.
I suspect that the heaviness is inherent in the nature of the multi-pair dashboard that you're coding. Upon loading the indicator, many buffers are being filled with data. As that completes, the heaviness tapers off. I really don't see a way to speed it up.
I suspect that the heaviness is inherent in the nature of the multi-pair dashboard that you're coding. Upon loading the indicator, many buffers are being filled with data. As that completes, the heaviness tapers off. I really don't see a way to speed it up.
Good afternoon. Thank you for your feedback. I am continuing my quest to improve performance, although I am almost convinced that it is not possible for the reasons you mentioned.
Good morning, everyone!
I hope you are all well.
I am adapting an indicator (CurrencySlopeStrength) which, for those who are not familiar with it, behaves similarly to other oscillators, such as RSI, Stochastic, etc.
However, I have noticed that the indicator becomes heavy when attached to multiple charts, especially when MT4 is first opened.
The OnCalculate function is as shown in the code below. Is there anything I can do to optimize the performance of this indicator?
Thank you in advance for your attention and cooperation.