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
if CurrentBar >= BarNum and TLID = -1 then begin
if High < High then begin
TLID = TL_New_S(Date, Time_S, High, Date, Time_S, High);
if Low > Low then begin
TLID = TL_New_S(Date, Time_S, Low, Date, Time_S, Low);
If you reduce the bar spacing further, the trendline will flip up and down.