Plot low of first bar of regular session


Category:
0
0

I’m requesting a horizontal line on the low of the first 5 minute bar that extends across the entire chart intraday only no premarket

Thanks Pete

Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on March 31, 2021 7:08 pm
154 views
1
Private answer

Notice I have updated the title of your question so that is actually describes the context of your request. Please consider this when posting questions in any forum.

The simplest solution to this is to make sure you do NOT included extended hours data on the chart. This code will not work correctly if you include extended hours on the chart. If you need a solution that works when extended hours is included on the chart I will not be able to provide that free of charge in the Q&A Forum.

def newDay = GetDay() <> GetDay()[1];
rec firstBarLow = if newDay then low else firstBarLow[1];
plot targetLow = firstBarLow;

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on April 1, 2021 9:48 am