Premarket Study on Chart


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
93 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: 36, Answers: 1802)
Answered on February 28, 2019 11:58 am

Ok great, thank you.

( at February 28, 2019 6:16 pm)