♥ 0 |
Is it possible to plot 2 lines with these specs? One that will plot from the monthly open and extend to the right until the next month starts. And a second line that will show the weekly open and extend to the right until the next week starts. RESOLVED
Marked as spam
|
Please log in to post questions.
Pete, thanks that’s exactly what I was looking for.
Can you expand on this to allow it to only show the last week’s/month?
input timeFrameOne = AggregationPeriod.WEEK;
input timeFrameTwo = AggregationPeriod.MONTH;
plot openTF1 = if IsNaN(close(period = timeFrameOne)[-1]) then open(period = timeFrameOne) else Double.NaN;
openTF1.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
plot openTF2 = if IsNaN(close(period = timeFrameTwo)[-1]) then open(period = timeFrameTwo) else Double.NaN;
openTF2.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);