Strangely repainting indicator
Posted: Sat Aug 13, 2022 12:33 am
Hello dear friends,
with my limited coding knowledge i created an indicator based on the simple and standard MACD.
Now the problem is that, as far as I know, the macd does not repaint ( it changes its main and signal values only on the current candle ).
But for some reason, my indicator does repaint.
And the strange thing is that if i use any of its buffers with icustom on another indicator and with the original one also loaded on the chart, they behave differently.
May the reason be that i am using iMAOnArray?
Try to load the indicator on a chart, let it run for a few bars and then load it again and you will see the difference.
I attach the source code, the indicator is free to use to anyone, but if you find the reason why it repaints i would be really grateful.
Happy weekend to you all
with my limited coding knowledge i created an indicator based on the simple and standard MACD.
Now the problem is that, as far as I know, the macd does not repaint ( it changes its main and signal values only on the current candle ).
But for some reason, my indicator does repaint.
And the strange thing is that if i use any of its buffers with icustom on another indicator and with the original one also loaded on the chart, they behave differently.
May the reason be that i am using iMAOnArray?
Try to load the indicator on a chart, let it run for a few bars and then load it again and you will see the difference.
I attach the source code, the indicator is free to use to anyone, but if you find the reason why it repaints i would be really grateful.
Happy weekend to you all
