Daily Moving Average Crossover Strategy with Intraday Risk Controls
Summary
This document outlines a moving average crossover strategy that uses a faster EMA crossing above or below a slower EMA to signal long or short entries. Although the prose describes a daily timeframe, the parameter set and published test configuration include intraday settings. The code excerpt uses 9- and 15-period EMAs, permits entries before a chosen daily cutoff, and specifies take-profit and stop-loss distances. It also closes open positions at the end of the trading day when intraday mode is enabled.
The document does not provide measured performance results; its claim that the method has been profitable is unsupported by reported statistics. It identifies whipsaws, volatility, and the uncertainty of future returns as risks, and suggests tuning moving average lengths, testing historical data, and using stop losses. The code shows fixed exit levels rather than a functioning trailing stop, despite the strategy name referring to one, and the listed backtest dates and exchange settings are not accompanied by results.
Key ideas
- A fast EMA crossing above or below a slower EMA generates long or short signals.
- The code uses configurable EMA lengths and includes an intraday cutoff for new entries.
- Fixed take-profit and stop-loss levels are attached to entries, with an optional end-of-day close.
- Crossover systems can suffer whipsaws and can lose effectiveness when price reverses frequently.
- The document supplies test settings but no performance statistics to support its profitability claim.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.