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.
study(title="Daily Range Gorbie", shorttitle="Daily range: pips per (DAY)> EURCAD, USDCAD, GBPCAD, EURUSD, GBPUSD", overlay=false) length = input(200, minval=1) ec = security('EURCAD', "1D", sma(tr, length)) plot(ec,color=fuchsia,title='EURCAD') uc = security('USDCAD', "1D", sma(tr, length)) plot(uc,color=red,title='USDCAD') gc = security('GBPCAD', "1D", sma(tr, length)) plot(gc,color=blue,title='GBPCAD') eu = security('EURUSD', "1D", sma(tr, length)) plot(eu,color=green,title='EURUSD') gu = security('GBPUSD', "1D", sma(tr, length)) plot(gu,color=gray,title='GBPUSD')