2/20 EMA Breakout Strategy Using Recent Highs and Lows
Summary
This strategy uses a 20-period exponential moving average as a trend reference and compares the close with both the average and a key level derived from the latest two bars' highs and lows. It takes a long position when the close is above both references and a short position when it is below both. A reverse setting swaps the trade direction. The intent is to require price confirmation around the moving average rather than act on every fluctuation across it.
The document discusses trend and breakout logic, and provides source code, example settings, and a BTC/USDT futures test configuration. It reports no backtest outcomes, so it offers no evidence that the method is profitable. Its own caveats include false signals during consolidation, slow response to short-term moves, and the absence of explicit stop-loss or position-sizing rules. It suggests adding risk controls and testing parameters, including through walk-forward analysis.
Key ideas
- The strategy compares the close with a 20-period EMA and a key level based on the latest two bars' highs and lows.
- It enters long above both references and short below both, with an option to reverse the direction.
- The method is intended for trending markets and may generate false signals in ranges.
- The described implementation lacks explicit stop-loss and position-sizing rules.
- A BTC/USDT futures test configuration is given, but no performance results are reported.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.