Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
- // Β© Maurizio-Ciullo
- //@version=4
- study("Il mio Script", overlay=true)
- //Start Detecting Atr /////////////////////////////////////////
- //Modificare il simbolo syminfo.prefix, "ETHPERP" usando quello del grafico attuale
- atr_period = input(title="ATR Range", type=input.integer, defval=7)
- t = tickerid(syminfo.prefix, "ETHPERP")
- realH = security(t, timeframe.period, high)
- valueH = realH + atr(atr_period)
- realL = security(t, timeframe.period, low)
- valueL = realL - atr(atr_period)
- plot(valueH, title="ATR + High", color=color.green, linewidth=2, style=plot.style_cross)
- plot(valueL, title="Low - ATR", color=color.red,linewidth=2, style=plot.style_cross)
- //End Detecting Atr /////////////////////////////////////////
Add Comment
Please, Sign In to add comment