Skip to content
All library documents

Recent Price Extremes and a Long-Term Average for Breakout Entries

Article Strategy library · Author: ChaoZhang

Summary

The strategy combines recent bar extremes with a 200-period simple moving average to define long entries and exits. Its description uses the lowest low and highest high over seven bars, with the moving average intended to filter trades by trend. However, the supplied code’s actual entry condition is different: it requires the close to be above the average, below the lowest of prior closes, and the current low to equal the seven-bar minimum. It exits when the close exceeds either the highest of prior closes or the recent highest high. This mismatch means the prose alone does not fully specify the implemented rules.

The document provides parameter values and a BTC/USDT futures backtest configuration, but no performance statistics or evidence that the method is profitable. It identifies signal scarcity and sensitivity to lookback and average lengths as risks, and proposes testing alternate parameters, additional indicators, and stop-loss rules. The source’s backtest date inputs do not actually restrict trading in the shown code, so the published settings should not be treated as proof of a controlled historical evaluation.

Key ideas

  • The described framework combines seven-bar price extremes with a 200-period simple moving average.
  • The code requires price above the average and a new seven-bar low for entry.
  • The written entry rule differs from the condition implemented in the source.
  • The code exits after a close exceeds a prior-close threshold or a recent high.
  • No strategy performance results are provided, and the code does not apply its date inputs as a trading filter.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.