Dual EMA Crossover Trading with Fixed and Trailing Exits
Summary
This strategy uses a fast and a slow exponential moving average to set direction. When the fast average moves above the slow one, it enters long; when it moves below, it enters short, with the reverse crossover closing or switching the position. The example also includes configurable profit targets, fixed stop losses, and trailing stops for both directions. Inputs allow users to choose each average’s price source and period, and to invert the trading direction.
The document supplies default parameters and a published one-month BTC/USDT futures backtest configuration, but gives no performance statistics or trade outcomes. It is therefore an illustration of crossover and order-exit mechanics, not evidence that the defaults are profitable. The accompanying discussion flags whipsaws in sideways markets, false breakouts, slippage, and higher costs from frequent trading. It suggests filters, alternative moving averages, volatility-based stops, and position sizing as possible refinements; none are demonstrated as tested improvements. The prose describes average crossings as trend reversal cues, though these signals inherently arrive after price has already moved.
Key ideas
- The strategy enters long or short according to the relative position of fast and slow EMAs.
- Reverse crosses close or reverse positions, while fixed targets, stops, and trailing exits are configurable.
- The source code illustrates risk-exit mechanics but the published backtest setup contains no reported results.
- Sideways markets and false signals can lead to repeated trades and transaction costs.
- Volatility-based stops, filters, and position sizing are proposed extensions rather than validated improvements.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.