20/200 SMA Trend Strategy with Pullback Entries and Configurable Risk Controls
Summary
This strategy uses a fast and slow simple moving average to define trend direction, with three selectable entry styles. Traders can enter after a moving-average cross while a timed window remains open, on a price recross of the fast average in the direction of the trend, or whenever price is on the trend side of that average. Long and short trades can be enabled separately, and optional filters check the slow average's slope, candle direction, and distance from the fast average.
Each trade receives a fixed-point profit target and a stop chosen from an opposing candle beyond the slow average, a fixed distance, or a recent swing; invalid or unavailable selected stops fall back to the fixed distance. The script also plots signals and levels and can issue alerts. The document supplies configurable mechanics but no backtest results, asset or timeframe evaluation, or evidence that its settings are profitable. Its point-based exits and filters may require adaptation to the instrument and testing that accounts for trading costs and execution.
Key ideas
- The fast and slow moving averages establish directional bias, while entry rules can use cross timing or pullbacks.
- Optional filters constrain trades using the slow average's slope, candle color, and distance from the fast average.
- Stops can reference an opposing candle, a fixed point distance, or a recent swing, with fixed-distance fallback logic.
- The strategy supports long-only, short-only, or both directions and plots configurable targets and stops.
- No performance evidence or tested market context is provided in the document.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.