All-Time and 52-Week High Breakouts with ATR or EMA Exits
Summary
This long-only strategy enters when the closing price exceeds the prior all-time high, the prior 52-week high, or either level if both filters are enabled. The premise is that new price highs can signal demand and momentum, so the system joins strength rather than anticipating reversals. The two breakout sources can be selected independently.
For exits, the default uses a stop set below the average entry price by a multiple of ATR. An alternative closes the position when price falls below a configurable exponential moving average. The script plots the high-water levels and, when selected, the exit EMA. The document supplies code and a conceptual rationale, but no performance results or market-specific evaluation. The ATR stop is described as trailing, although its distance is calculated from average entry price and current ATR; it does not explicitly ratchet upward with gains. Practical behavior therefore depends on instrument, chart interval, execution assumptions, and parameter choices.
Key ideas
- The strategy opens long positions when price closes above a prior all-time or 52-week high.
- The all-time-high and 52-week-high entry filters can be enabled separately.
- The default exit places a stop below average entry using a multiple of ATR.
- An optional EMA exit closes a long position after price falls below the selected average.
- The document provides a rationale but no backtest evidence or performance assessment.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.