Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ATR - High/Low Study v1.0
- // (R) Claudio Tesoriero
- //
- // This Pine script show the ATR + the H(igh) value and the L(ow) value - ATR for each candle
- // Add the study to the graph and then click on the gear to edit the default values
- //
- // Happy trading!
- study("ATR - High/Low", overlay=true)
- atr_period = input(title="ATR Range", type=integer, defval=7)
- t = tickerid(syminfo.prefix, ticker)
- realH = security(t, period, high)
- valueH = realH + atr(atr_period)
- realL = security(t, period, low)
- valueL = realL - atr(atr_period)
- plot(valueH, title="ATR + High", color=green, linewidth=2, style=cross)
- plot(valueL, title="Low - ATR", color=red,linewidth=2, style=cross)
Add Comment
Please, Sign In to add comment