Skip to content
All library documents

EMA and Outside Bar Entries with Range-Based Exits and Reversals

Article Strategy library · Author: ChaoZhang

Summary

This strategy pairs fast and slow EMA conditions with an Outside Bar, defined as a bar whose high exceeds the prior bar’s high and whose low falls below the prior bar’s low. A long setup occurs when the close is above both EMA references on an Outside Bar; a short setup occurs when it is below both. The bar’s height sets the initial exit distances: the described take-profit is half that height, while the stop distance equals the full height. The source also attempts to reverse direction after a stop is reached.

The document gives example EMA lengths, a shift setting, and a long historical BTC/USDT futures backtest window, but provides no return, drawdown, or trade statistics. The code’s signal conditions compare price with the EMAs rather than implementing an EMA crossover, and the reversal checks and stop levels warrant careful verification in a realistic simulator. Risks include infrequent patterns in quiet markets, wide stops during sharp moves, repeated losses from reversals in ranging conditions, and fixed parameters that may not transfer across markets.

Key ideas

  • An Outside Bar expands beyond both the preceding bar’s high and low and is used to confirm a directional setup.
  • The strategy combines the bar pattern with the close’s position relative to two EMAs.
  • Take-profit and stop distances scale with the Outside Bar’s height, and stop events are intended to trigger reversals.
  • The document provides no performance evidence, and its reversal and stop logic needs careful implementation review.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.