Plot premarket high and low current session after 8 am


Category:
0
0

Hello please can you help me with the this script actually i am looking that it plot line Premarket high And premarket low after 8:00 AM. I want script to ignore anything before 8:00 am

 

Attachments:
Marked as spam
Posted by (Questions: 12, Answers: 5)
Asked on March 10, 2022 10:26 am
416 views
0
Private answer

Add the following lines to your attached code, just before the plot statements:

def okToPlot = SecondsFromTime(800) >= 0 and GetDay() == GetLastDay();

Then modify your two plot statements to the following:

plot PMH = if okToPlot and PlotPreMktLinesHrsPastOpen and PMHighBar != 0 then PMHighBar else nan;
plot PML = if okToPlot and PlotPreMktLinesHrsPastOpen and PMLowBar != 0 then PMLowBar else nan;

Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on March 10, 2022 12:57 pm
0
thanks is it possible to plot only pre market high or low after 8 am
( at March 11, 2022 11:33 am)
0
That is exactly what my solution does.
( at March 11, 2022 12:56 pm)