I looked into the indicator and I think there is a small bug.
In this section of code
Code: Select all
for (i=MaxBars; i>=0; i--)
{
if (signalDN[i]!=EMPTY_VALUE)
signalDN[i]=High[i]+offset;
if (signalUP[i]!=EMPTY_VALUE)
signalUP[i]=Low[i]-offset;
}Few lines down, Low references the previous bar compared to other three.
Code: Select all
//-- short signal
if (Draw_SellSignals && dLow>MathMax(EMAfast[i1],EMAslow[i1]))
signalDN[i1]=High[i1]+offset;
//-- long signal
if (Draw_BuySignals && dHigh<MathMin(EMAfast[i1],EMAslow[i1]))
signalUP[i1]=Low[i]-offset;
EDIT: Attempt to highlight sections of code in bold or red failed, I have yet to learn how to do it
Cheers,
Z