I am using the below code to check for pre-market hours.
The code WORKS when I am in MINUTE CHART.
The code DOESN'T WORK when I am in DAILY CHART.
Any pointers / guidance appreciated!
Code:
Def isPreMarket = SecondsFromTime(0400) > 0 and SecondsFromTime(0929) < 0;
# Add a label if it's pre-market
AddLabel(isPreMarket, "Pre-Market", color.yellow);
The code WORKS when I am in MINUTE CHART.
The code DOESN'T WORK when I am in DAILY CHART.
Any pointers / guidance appreciated!
Last edited by a moderator: