Pre-Market Low Watchlist


Category:
0
0

Hello Pete,

I wanted to know if it was possible to have a Pre-market Low field on the watch list.

I saw the one you had posted for afterhours but I was unable to adapt it for premarket low

https://www.hahn-tech.com/ans/after-hours-only-high-price-watchlist/

Thanks for any help.

Ellis

Marked as spam
Posted by (Questions: 3, Answers: 5)
Asked on November 22, 2021 11:46 am
148 views
0
Private answer

For this solution I will use the code from the following post:

https://www.hahn-tech.com/ans/watchlist-columns-for-pre-market-volume/

Notice that the solution in that post already handles the pre-market data so it requires the minimum amount of modification. It also includes user inputs so the user can customize the period for which it determines the lowest low.

Here is the modified code that displays the lowest low within the pre-market period:

input startTime = 400;
input endTime = 929;
def startCounter = SecondsFromTime(startTime);
def endCounter = SecondsTillTime(endTime);
def targetPeriod = if startCounter >= 0 and endCounter >= 0 then 1 else 0;
rec lowestLow = if targetPeriod and !targetPeriod[1] then low else if targetPeriod and low > 0 and low < lowestLow[1] then low else lowestLow[1];
AddLabel(yes, Concat("Target Period Low: ", lowestLow), Color.GRAY);

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on November 22, 2021 4:11 pm