Postmarket volume


0
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: 6, Answers: 3)
Asked on December 10, 2018 7:08 pm
43 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: 35, Answers: 1789)
Answered on December 12, 2018 8:27 am