Horizontal line extended to the right?


Category:
0
0

Hello,

I am using a reference to a licensed study “SequenceCounter” to have a horizontal line extended to the right but it only shows at a fixed point. Is there a way to extend the horizontal line to the right? Please see attachment for details and existing code below.

plot TDS = if reference SequenceCounter().”sell formation” == 9 then lowest(low,9)
else double.nan;
TDS.SetDefaultColor(Color.CYAN);
TDS.SetPaintingStrategy(PaintingStrategy.horizontal);

Thank you!

Attachments:
RESOLVED
Marked as spam
Posted by (Questions: 7, Answers: 8)
Asked on February 18, 2019 9:12 am
182 views
0
Private answer

This should do the trick:

def refTDS = if reference SequenceCounter().”sell formation” == 9 then lowest(low,9) else double.nan;
rec trackTDS = if !IsNaN(refTDS) then refTDS else trackTDS[1];
plot TDS = trackTDS;
TDS.SetDefaultColor(Color.CYAN);
TDS.SetPaintingStrategy(PaintingStrategy.horizontal);

Marked as spam
Posted by (Questions: 37, Answers: 4084)
Answered on February 20, 2019 11:33 am