GrantPeace

Grant's PSAR Signal Version 2 beta

77
RSI to be added soon.

Kenzing trading indicators for TradingView perform advanced real-time analysis of stock price trends and display alerts that are easy for the average Trader to interpret.


www.kenzing.com
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?
//@version=2
strategy("Grant's PSAR Signal Version 2 beta", overlay=true)

start = input(0.013)
increment = input(0.005)
maximum = input(0.2)
fastLength = input(6)
slowlength = input(20)
MACDLength = input(20)

psar = sar(start, increment, maximum)
MACD = ema(close, fastLength) - ema(close, slowlength)
aMACD = ema(MACD, MACDLength)
delta = MACD - aMACD

if (psar > high) and crossover(delta, 0)
    strategy.entry("ParLE", strategy.long, stop=psar, comment="Buy Long")
else
    strategy.cancel("ParLE")
    
if (psar < low)
    strategy.exit("ParSE", stop=psar, comment="Close Long")
else
    strategy.cancel("ParSE")

//plot(strategy.equity, title="equity", color=red, linewidth=2, style=areabr)