GrantPeace

Grant's PSAR Signal Version 2 beta

317 0 22
RSI to be added soon.
Remove from Favorite Scripts Add to Favorite Scripts
//@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)
http://www.kenzing.com
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out