Day High Low Labels Thinkscript
Webhere is one way. Web# yesterday's labels @merryday 5/2022 def day = aggregationperiod. day; Webfor anyone that uses thinkorswim i have some scripts that automatically plot the previous day open/high/low/close and also the premarket high/low like das. Input timeframe1 = aggregationperiod. day; Webi have tried a few scripts and tried to change details within the script for high, low and close of previous day, the problem i have is that when i change to a daily view of the candles.
Def dayhi = round(high(period = timeframe1), 2); Def yhigh = high(period =. Def dopen = open(period = day);