Simple EMA Long Only Strategy

Simple EMA long only strategy, using ATR on crossings to minimize fake signals.
Release Notes: Added ATR multiplier input and updated Pine Script to version 4
Remove from Favorite Scripts Add to Favorite Scripts


Hi! I tried to insert the code in pine script and is not working... you should review it.... thanks!
+3 Reply
@Revolut, it works for me, I don't even think you can publish scripts that doesn't compile on tv.
@coingrabber, how can I make this go short as well? thank you for your work
coingrabber UnknownUnicorn3945991
@UnknownUnicorn3945991, change line 16 to this:

strategy.entry("Sell", strategy.short, when=bear_cross)
TargetForex coingrabber
Please make an Alert version.
great strategy

how can i select the test period?
Love this script, set it to 21 ema on 4 hour chart of Gold and US oil and its perfect. Will you be adding alerts? thanks
smiley1910 smiley1910
@smiley1910, **Add Heikin Ashi candles to get the best out of this indicator
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out