Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version2
- //
- study("Price Action HiLo Channel R1 by JustUncleL", shorttitle="PACHILO R1", overlay=true)
- //
- // By: JustUncleL
- // Date: 1-Aug-2016
- // Version: R1
- //
- // Description:
- // This indicator draws a Moving Average channel based on High Low boundaries.
- //
- // Reference:
- //
- // Modifications:
- //
- src=input(close, title="PAC Centre Source")
- pacLenC=input(10, title="PAC Center Length")
- pacLenL=input(12, title="PAC lower line")
- pacLenU=input(12, title="PAC upper line")
- //
- pacC=ema(src,pacLenC)
- pacL=ema(low,pacLenL)
- pacU=ema(high,pacLenU)
- plot(pacC, color=red, linewidth=2, title="PAC Center",transp=20)
- L=plot(pacL, color=blue, linewidth=1, title="PAC Lower",transp=20)
- U=plot(pacU, color=blue, linewidth=1, title="PAC Upper",transp=20)
- fill(L,U, color=blue, transp=95)
- // eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement