Advertisement

How to add the previous day close line on Thinkorswim (TOS) charts

How to add the previous day close line on Thinkorswim (TOS) charts Code is below:

#
input aggregationPeriod = AggregationPeriod.DAY;
input length = 1;
input displace = -1;
input showOnlyLastPeriod = no;
plot PrevDayClose;
if showOnlyLastPeriod and !IsNaN(close(period = aggregationPeriod)[-1]) { PrevDayClose = Double.NaN;
} else { PrevDayClose = Highest(close(period = aggregationPeriod)[-displace], length);
}
PrevDayClose.SetDefaultColor(GetColor(9));
PrevDayClose.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);


Feel free to connect with me on social media!

Instagram -
Facebook -
Twitter -

how to trade stocks,how to start a business,how to start trading on the stock market,how to start trading stocks,trading stocks for beginners,trading stocks 101,trading stocks for a living,stock market for beginners,stock market day trading,stock market for dummies,stock market,business,finance,money,wall street,trading,

Post a Comment

0 Comments