Day High Low Labels Thinkscript

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.

Webhere is one way.

Input timeframe1 = aggregationperiod. day;

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

Def daylo = round(low(period =.

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

Def dopen = open(period = day);

Def yhigh = high(period =.

close