Webyesterday'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.

Def dopen = open(period = day);

Recommended for you

Def daylo = round(low(period =.

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 yhigh = high(period =.

Webhere is one way.

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

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

You may also like