SHARE
TWEET

turtle donchian channel tradingview

a guest Aug 19th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //@version=4
  2. study("Turtle Donchian Channel", overlay=true)
  3. long = 20, short = 10
  4. upper = highest(high[1], long)
  5. lower = lowest(low[1], short)
  6. long_signal = high >= upper
  7. short_signal = low <= lower
  8. plot(upper, color=color.purple, linewidth=2, transp=20)
  9. plot(lower, color=color.yellow, linewidth=2, transp=20)
  10. plotshape(long_signal, style=shape.triangleup, location=location.abovebar, color=color.green)
  11. plotshape(short_signal, style=shape.triangledown, location=location.belowbar, color=color.red)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top