Premarket Study on Chart


Category:
0
0

Hello, I’d like to have a study on my intraday chart which automatically plots 2 horizontal lines for the premarket high and low of that stock and keeps those lines even after the market is open. I saw some similar code on this site but it took into consideration the after market session. I’m trying to only have the premarket high and low. Thanks in advance.

Marked as spam
Posted by (Questions: 2, Answers: 2)
Asked on February 27, 2019 2:20 pm
412 views
0
Private answer

You can use the code I posted in my answer to this post: https://www.hahn-tech.com/ans/premarket-highlow-label/

Just replace the AddLabel statements with

plot pmHigh = targetPeriodHigh;
plot pmLow = targetPeriodLow;

Marked as spam
Posted by (Questions: 37, Answers: 4086)
Answered on February 28, 2019 11:58 am
0

Ok great, thank you.

( at February 28, 2019 6:16 pm)
0
Is it possible to show these high/low levels on a gap chart? A chart that only shows the day trading session? So showing the Globex High/Low on the day trading only session chart. Trying to do this for futures.
( at May 13, 2020 10:12 am)
0
Go back and view the post I linked in my answer and you will find the solution there allows you to input your own custom start and end times. So yes, this will work on a futures chart that displays 24 hours of trade data. Set the start and end times as you require.
( at May 13, 2020 11:53 am)