Rolling-Window Price Breakout Entries and Exits
Summary
This simple rule-based strategy keeps a rolling list of recent ticker prices. Once the list reaches its configured length, it compares the latest price with the highest and lowest values in that window. A move above the previous window maximum triggers a buy when the account has enough balance; a move below the minimum triggers a sell when holdings are available. After each check, the oldest observation is removed and the latest price is added, so the reference range moves forward over time. The evaluation repeats at a configurable interval.
The document provides implementation logic and two configurable parameters: the checking interval and the number of observations in the rolling window. It gives no instrument, backtest, performance evidence, or risk controls such as stop losses, position sizing, or transaction-cost handling. As a result, the rules illustrate a basic breakout idea rather than a fully specified or validated trading system. A live implementation would also need to account for order outcomes and how repeated signals are handled.
Key ideas
- The strategy compares each new price with the high and low of a rolling observation window.
- A break above the window high triggers a buy if the account has sufficient balance.
- A break below the window low triggers a sell if holdings are available.
- The window advances by removing its oldest observation and appending the latest price.
- The document provides no backtest results or explicit stop-loss and position-sizing rules.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.