So i have obtain
My code is pretty simple i've pasted it below, the problem i am having is the i am getting multiple lines, from both high to low and low to high
So it goes from the low to high, and then i get 2,3,4, lines all going from the same low to high point, but just displaced by one bar.
What i think is happening, is that as it plays on each daily bar, it redraws the same line, but displaced. So i don't know how to get rid of these extra lines
Code: Select all
LastHighPivotBar = PivotHighVSBar(1,H,minorStrength,minorStrength,Lookback);
LastHighPivot = PivotHighVS(1,H,minorStrength,minorStrength,Lookback);
lastHighPivotDate = CalcDate(date, -LastHighPivotBar);
LastLowPivotBar = PivotLowVSbar(1,L,minorStrength,minorStrength,Lookback);
LastLowPivot = PivotLowVS(1,L,minorStrength,minorStrength,Lookback);
lastLowPivotDate = CalcDate(date, -LastLowPivotBar );
Hi_line = TL_new(lastLowPivotDate ,time,LastLowPivot,lastHighPivotDate ,time,LastHighPivot);