Skip to content
All library documents

Short-Term Reversal Signals from Consecutive Price Bars

Article Strategy library · Author: ChaoZhang

Summary

This short-term strategy counts consecutive rising and falling closes to generate trades. After the configured number of rising bars, it submits a short entry; after the configured number of falling bars, it closes the position. Trading can be limited to a chosen time window, with optional closure at the window’s end and fixed stop-loss and take-profit levels. The code also includes date inputs, alert-message fields, and a Binance BTC/USDT futures backtest configuration.

The document describes the rules and configurable controls but gives no performance results or comparative evidence. Its stated risks include failed reversals, sensitivity to the up-bar and down-bar thresholds, and missed or late risk control if the time window is configured poorly. The code’s entry logic includes both long and short calls, despite the prose describing only short entries followed by exits. Treat the prose and implementation as potentially inconsistent, and validate actual position behavior and order handling before drawing conclusions from a backtest.

Key ideas

  • The strategy counts consecutive higher and lower closes to trigger trades.
  • A configured run of rising bars triggers a short entry, while a run of falling bars is intended to close the position.
  • Trading windows and optional end-of-window closure can constrain when positions are opened and held.
  • Fixed stop-loss and take-profit orders are available but disabled by default.
  • The written rules and source code differ on whether rising bars can also trigger a long entry.

Tags

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