Skip to content
All library documents

A Price-Threshold Strategy for Buying Strength and Selling Weakness

Article FMZ digest · Author: 发明者量化-小小梦

Summary

This simple trend strategy uses price movement from a stored reference level instead of technical indicators. When price moves beyond a configurable percentage threshold, it places a buy or sell order in the direction of that move, then resets the reference price. Order size is tied to a fraction of available account value or holdings, subject to a minimum trade size. The example also periodically cancels outstanding orders.

The document includes Python implementation logic and reports a backtest covering about one year, accompanied by result images. It does not provide numerical performance figures in the text, nor does it discuss slippage, fees, position limits, or how the threshold should be selected. The example is presented for learning and further testing, so its backtest alone does not establish robustness or live profitability.

Key ideas

  • The strategy triggers trades when price moves a set percentage from a reference price.
  • It buys after a sufficiently large upward move and sells after a sufficiently large downward move.
  • The reference price resets after each order, making subsequent triggers relative to the latest move.
  • Order size depends on available funds or holdings and must meet a minimum quantity.
  • The document mentions a roughly one-year backtest but gives no numerical results in its text.

Tags

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