Priceline of each Weekly high on Daily Chart


Category:
0
0

Hi Pete,

I’m interested in drawing a horizontal line at each of the week’s highs, on the daily chart. I took a stab at this, but it I’m getting a line that follows the the weekly values, instead of many lines, each at a different week high.  What am I missing?  Any help would be greatly appreciated.

Cheers

 

def agg = AggregationPeriod.WEEK;

plot priceLine = high(period = agg);

priceLine.setpaintingStrategy(paintingStrategy.LINE);
priceLine.setlineWeight(1);
priceLine.setdefaultColor(color.red);

Marked as spam
Posted by (Questions: 8, Answers: 3)
Asked on June 16, 2019 8:10 pm
75 views
0
Private answer

What you have here is the only method available. I wish you would have included a screenshot showing what you wanted. But I suspect that you want each of those weekly high lines to expand to the right indefinitely. This is not possible when using plots. This can only be done using trendlines. Which Thinkorswim does NOT make available to us from within custom chart studies.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on June 18, 2019 1:17 pm
0
Yes, you guessed right, that's what I was after. Thanks for your answer and help with this. Cheers!
( at July 2, 2019 10:11 pm)