This could be a huge problem if you rely on Trendlines in your trading, so any comment is highly appreciated.
Picture 1 is showing the Trendline correctly drawn:
Picture 2 is the same Trendline with the bar spacing decremented once more - what was up is down now:
A down Trendline will show similar behaviour, just vice versa:
What was down becomes up:
Code used to demonstrate the issue:
Code: Select all
Inputs:
BarNum (1000);
Var:
TLID (-1);
if CurrentBar >= BarNum and TLID = -1 then begin
if High[2] < High then begin
TLID = TL_New_S(Date[2], Time_S[2], High[2], Date, Time_S, High);
TL_SetColor(TLID, green);
TL_SetExtRight(TLID, true);
end
else
if Low[2] > Low then begin
TLID = TL_New_S(Date[2], Time_S[2], Low[2], Date, Time_S, Low);
TL_SetColor(TLID, red);
TL_SetExtRight(TLID, true);
end;
end;
Regards,
ABC