On the example above, you can see a 5 minute chart of NFLX . It shows you when it dropped below the previous days close.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
//Created by Robert Nance 11/19/15 //This script simply colors the background when price is above or below the previous day close. //Works nice for seeing if the stock is up or down for the day. study(shorttitle="UP/DN", title="Background Up or Down", overlay=true) cdl = input(true, title="Previous Daily Closing") dclose = security(tickerid, 'D', close) positive = close > dclose ? green : na negative = close < dclose ? red : na bgcolor(positive, transp=75) bgcolor(negative, transp=75)