On the example above, you can see a 5 minute chart of NFLX . It shows you when it dropped below the previous days close.
//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)