srinarayani13 wrote: Wed Oct 29, 2025 10:11 pm
Thank you so much for perfect coding, God bless you.
When applying this indicator on chart its taking too long to come on chart and mt4 get hanged if I shift time frame, normally all indicator get applied instantly
if possible can you please check, does any part of code is calculating to much ???
Also, you can reduce the "Max bars in chart" to 5000 or even 1000, which is what I use. That will significantly reduce the CPU load and memory MT4 uses. To change the "Max bars in chart", from the top MT4 menu, just click on Tools->Options->Charts then select or type in the smaller value into the "Max bars in chart" field. Whatever smaller value you use, make sure that all the indicators you use don't need more than that number of bars.