Postmarket volume


Category:
1
0

Hello please help me with the script below need to have post market volume addlabel currently it shows pre market volume.

Thanks

# PreMarket Forecast Volume
# TOS
def Pre = if SecondsFromTime(0100) > 0 and
SecondsTillTime(0930) >= 0
then 1
else 0;
def isRollover = GetYYYYMMDD() != GetYYYYMMDD()[1];
def beforeStart = GetTime() < RegularTradingStart(GetYYYYMMDD());
def vol = if isRollover and beforeStart then volume else if beforeStart then vol[1] + volume else Double.NaN;
def PreMarketVol = if IsNaN(vol) then PreMarketVol[1] else vol;
AddLabel(Pre, “Pre Vol: ” + PreMarketVol, Color.light_gray);

Marked as spam
Posted by (Questions: 12, Answers: 5)
Asked on December 10, 2018 7:08 pm
360 views
0
Private answer

Just try changing the times and see if that works.

plot Pre = if SecondsFromTime(1600) > 0 and SecondsTillTime(1959) >= 0 then 1 else 0;

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on December 12, 2018 8:27 am
0
How can we modify this code to 1. Stop label from disappearing at market open 2. If premarket volume > 3million color label red
( at August 10, 2019 12:13 pm)
0

I'm not absolutely certain, this code was presented by the author of the post. Perhaps Sunny can give you some tips. But I think this might work:

AddLabel(yes, “Pre Vol: ” + PreMarketVol, if PreMarketVol > 3000000 then Color.RED else Color.light_gray);

( at August 10, 2019 12:23 pm)