Day High Low Labels Thinkscript

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.

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.

Day High Low Labels Thinkscript 2

Webhere is one way.

Day High Low Labels Thinkscript 3

Input timeframe1 = aggregationperiod. day;

Def dayhi = round(high(period = timeframe1), 2);

Def daylo = round(low(period =.

Day High Low Labels Thinkscript 6

Web# yesterday's labels @merryday 5/2022 def day = aggregationperiod. day;

Def dopen = open(period = day);

Def yhigh = high(period =.