Price Action Channel (PAC+MA) by stockfinz.com

Price Action Channel PAC+MA (S/R Indicator by stockfinz.com)

Code

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © VishwajeetSharma

//@version=4

//StockFinz

study(title="S/R by stockfinz.com", shorttitle="S/R by stockfinz.com", overlay=true)

////////////////////////////
//     StockFinz       //// 
// www.StockFinz.com  ////
// Vishwajeet Sharma ////
////////////////////////

HiLoLen         = input(34, minval=2, title="High Low PAC channel Length")


UseHAcandles    = input(true, title="Use Heikin Ashi")

//FUNCTION
haClose = UseHAcandles ? security(heikinashi(syminfo.tickerid), timeframe.period, close) : close
haOpen  = UseHAcandles ? security(heikinashi(syminfo.tickerid), timeframe.period, open) : open
haHigh  = UseHAcandles ? security(heikinashi(syminfo.tickerid), timeframe.period, high) : high
haLow   = UseHAcandles ? security(heikinashi(syminfo.tickerid), timeframe.period, low) : low


pacC        = ema(haClose, HiLoLen)
pacL        = ema(haLow, HiLoLen)
pacU        = ema(haHigh, HiLoLen)

//  PLOTTING (PAC) 
L = plot(pacL, color=color.gray, linewidth=1, title="High PAC EMA", transp=68)
U = plot(pacU, color=color.gray, linewidth=1, title="Low PAC EMA", transp=68)
C = plot(pacC, color=color.red, linewidth=2, title="Close PAC EMA", transp=25)
fill(L, U, color=color.gray, transp=90, title="Fill HiLo PAC")

// Credit
GLlabel=label.new(x=bar_index,y=close,text="  \n\n  "+"  www.StockFinz.com\n\n  "+"  @VishwajeetSharma" ,
     style=label.style_label_up,
     color=color.new(color.red,transp=100),
     textcolor=color.new(color.silver,transp=60),
     size=size.large)
label.delete(GLlabel[1])


//EOS

Subscribe to our newsletter!


One thought on “Price Action Channel (PAC+MA) by stockfinz.com

  1. Dear Sir,

    Your Buy/Sell Indicator V2 page is not working.I am following your indicator since september & its just awesome. Tons of Thanks for helping poor retail traders like me.

    Regards

    Ramesh

Leave a Reply

Your email address will not be published. Required fields are marked *