Thanks kvak.kvak wrote: Fri Jun 17, 2022 5:59 am Yes, I think in some cases is possible repainting because it is fractal based....
I had a quick look at the code. The following line in specific
Code: Select all
bool found = true;
double compareTo = iMA(NULL,0,1,0,MODE_SMA,PriceHigh,i);
for (k=1; k<=half && (i+k)<Bars; k++)
{
if ((i+k)<Bars && iMA(NULL,0,1,0,MODE_SMA,PriceHigh,i+k)> compareTo) { found=false; break; }
if ((i-k)>=0 && iMA(NULL,0,1,0,MODE_SMA,PriceHigh,i-k)>=compareTo) { found=false; break; }
}
if (found) upper[i] = High[i];
else upper[i] = upper[i+1];
Am I right that this might result in different indicator values during backtesting on historical bars?