Type/to search

EMA Breakout Filter Long Only Trading Strategy

Cryptocurrency
Created: 2023-09-12 17:12:22
Last modified: 3 years ago
1
Follow
1781
Followers

This long-only strategy uses an ATR channel to filter fake EMA breakouts for stable trend-following long trades. It focuses solely on long side trading.

Strategy Logic:

  1. Calculate n-period EMA as intermediate-term trend.

  2. Calculate n-period ATR for range channel bands.

  3. Go long when price breaks above channel top.

  4. Exit long when price breaks below channel bottom.

  5. ATR channel filters insignificant or short-term false breakouts.

Advantages:

  1. ATR channel improves reliability of long signals.

  2. Long only reduces complexity and risks.

  3. Simple optimization adapts easily across markets.

Risks:

  1. Unable to profit from short-side moves.

  2. Both EMA and ATR lag, causing poor entry timing.

  3. Hard to sustain signals in prolonged ranges.

In summary, this simple system can perform well in bull trends but requires caution on lagging indicators and ranging markets.

Source
Pine
/*backtest
start: 2020-09-11 00:00:00
end: 2021-04-17 00:00:00
period: 7d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=2
strategy("EMA Long Only Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)

len = input(21,  minval=1, title="Length")
Strategy parameters
Strategy parameters
Length
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)