Filtering Moving Average Signals with Higher-Timeframe Candle Direction
Summary
The document describes a trend constraint that filters lower-timeframe moving average crossover signals according to the direction of a higher-timeframe candle. Its example uses a faster and slower exponential moving average to generate entries, then proposes allowing buys when the daily candle is bullish and sells when it is bearish. The motivation is to reduce signals that conflict with the broader direction while retaining lower-timeframe timing.
The article illustrates the idea with an MQL5 indicator and an EURUSD chart example. It reports counts of buy and sell signals, off-trend signals and successful signals for the period shown, but these figures do not establish out-of-sample performance or profitability. The document focuses on the first part of the model and does not provide a rigorous comparison against an unconstrained system, transaction-cost analysis or a full risk-management framework. Candle direction can also change before the higher-timeframe bar closes, so the signal definition and evaluation timing matter.
Key ideas
- A higher-timeframe candle’s direction can serve as a filter for lower-timeframe entries.
- The example generates base signals from a fast and slow exponential moving average crossover.
- The proposed constraint allows trades aligned with the daily candle direction.
- The article provides a chart example and signal counts, but not robust evidence of profitability.
- Higher-timeframe candle classification and signal timing affect how the filter behaves.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.