Calculates the Average Daily Range for the past 14 days high - low.
study(title="Average Daily Range", shorttitle="ADR", overlay=false) thishigh = security(tickerid, 'D', high) thislow = security(tickerid, 'D', low) length = 14 adr = sma(thishigh,length)-sma(thislow,length) plot(adr, color=red)