Moving Average Trend Signals with Prior-Day Breakouts and Exits
Summary
The document describes a trend-following approach using a short simple moving average and a longer exponential moving average. Its narrative frames the averages as trend confirmation and calls for long entries near a break above the prior high and short entries near a break below the prior low. The supplied script adds rules based on the short average’s direction and its position relative to the longer average, then submits stop entries near the current bar’s low or high.
The script also specifies percentage-based profit and loss exits, plus exits tied to the short moving average. Published settings identify a daily timeframe and a historical window, but the document gives no performance results or transaction-cost analysis. The prose and code do not align completely: the written entry description refers to price breaking the longer average, while the coded conditions compare the averages and price to the short average. Treat its claims about filtering false breakouts and parameter robustness as hypotheses, not demonstrated findings.
Key ideas
- The strategy combines a short simple moving average with a longer exponential moving average to define trend direction.
- The narrative uses prior-day highs and lows as breakout references for long and short signals.
- The code adds stop entries, percentage profit and loss thresholds, and moving-average-based exits.
- The written entry rules differ from the conditions implemented in the supplied script.
- The stated backtest window has no accompanying performance statistics or cost analysis.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.