A Moving-Average Entry Strategy Labeled as a Breakout System
Summary
The script contains a 14-period and 28-period simple moving-average crossover system: a bullish crossover opens a long position, while a bearish crossover submits a short entry. It also defines a separate set of breakout-related variables, including a lookback high and low, a volume threshold, and a 50-period exponential average. However, those breakout, volume, and trend-filter variables do not control the entries. The active long entry is tied to the moving-average crossover, with an exit order set using a stop and limit derived from the current close.
The code therefore illustrates a basic crossover entry with a nominal fixed-percentage stop and profit target, despite its breakout label. It provides no reported strategy results, market or timeframe context, or validation. Since the exit levels are recalculated from each bar’s close and the defined filters are unused, readers should inspect the actual implementation before interpreting it as a tested breakout approach.
Key ideas
- The active entry signal is a crossover of the 14-period and 28-period simple moving averages.
- A bearish crossover submits a short entry, while the later entry block submits a long on a bullish crossover.
- The lookback breakout condition, volume filter, and 50-period trend filter are defined but do not gate entries.
- The exit order uses stop and limit prices based on the current close.
- No market-specific backtest evidence or performance results are provided.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.