I'm looking for some help. I'm just starting out programming and I've used the widely available fractals.mq4 indicator as a base to play around with (https://www.mql5.com/en/code/7982). However, I've noticed that if I have the fractals indicator attached to a chart, something weird happens when I change timeframes - the indicator will plot, but then if you try to move the chart back in time it will plot extra points in a seemingly random pattern (pics below).
As I've used the fractals.mq4 as a base for other indicators, I'm getting the same issue on these too. Can anyone tell me what is going on please? I've checked the deinit code, and I'm getting REASON_CHARTCHANGE so I think that's functioning normally. I've also tried this on two different broker platforms and I get the same error.
Thanks in advance
ExtDownFractalsBuffer[i]=0; // Added
ExtUpFractalsBuffer[i] =0; // code.
Thanks WHRoeder, you're a genius! That solved my issue instantly :)
I'll bear this bug in mind in the future