Intraday 9/21 EMA Crossover Strategy with Candle Confirmation and Scheduled Exit
Summary
This intraday strategy uses a fast and a slow exponential moving average, with lengths defaulting to 9 and 21. A bullish crossover can open a long position only when the same bar closes above its open; a bearish crossover can open a short position only when it closes below its open. Entries are limited to the specified signal window and backtest date range. An opposite qualifying crossover can reverse the existing position.
The strategy closes open positions at the first bar at or after 3:15 PM India time, subject to its date-range condition. The script also plots both averages, shades the area between them according to their alignment, and marks scheduled exits. It sets initial capital, full-equity position sizing, and commission assumptions, but the supplied excerpt contains no strategy report or performance statistics. Results may depend on chart timeframe, exchange session settings, and execution assumptions; the candle filter and end-of-day exit are rules to evaluate, not evidence of an edge.
Key ideas
- Long entries require an upward 9/21 EMA crossover and a bullish candle during the defined signal window.
- Short entries require a downward crossover and a bearish candle during that window.
- A qualifying opposite crossover can reverse an open position.
- Open positions are scheduled to close at the first bar at or after 3:15 PM India time.
- The excerpt gives backtest assumptions but no reported performance results.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.