GrantPeace

Grant's PSAR Signal

Open and close signals for long positions on XJO             .
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
strategy("Grant's PSAR Signal", overlay=true)

start = input(0.013)
increment = input(0.005)
maximum = input(0.2)

psar = sar(start, increment, maximum)

if (psar > high)
    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)
These scripts have come a long way :p
Gold Script
Reply
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB 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