Pre-Market Low Watchlist


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

Thanks for any help.


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

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

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: 39, Answers: 3752)
Answered on November 22, 2021 4:11 pm