Skip to content
All library documents

Doji Reversal Signals with Fixed Take-Profit and Stop-Loss Rules

Article Strategy library · Author: ChaoZhang

Summary

This strategy treats a candle with a very small body and equal open and close as a doji-like signal. It uses the relation between the prior close and the close two bars earlier to choose direction: a higher prior close indicates a long, while a lower one indicates a short. Fixed take-profit and stop-loss distances are intended to close positions. The document gives example pip settings and a BTC/USDT futures backtest configuration, but it reports no test results.

The approach is simple, but its rules and implementation deserve caution. The prose describes comparing closes across days, while the source operates on chart bars, so the actual horizon depends on the chart interval. The code also uses the entry-price state and stop/target comparisons in ways that are not clearly consistent with the stated fixed exit logic. The document itself notes that pattern classification can mislead, exit distances can cut trades short or permit larger losses, and parameter tuning can overfit. Validation across instruments and sensible position sizing are needed before treating it as a trading system.

Key ideas

  • A small-bodied candle with equal open and close is used as a reversal signal.
  • The strategy chooses long or short direction by comparing recent closes.
  • Fixed take-profit and stop-loss distances are intended to manage exits.
  • The backtest configuration is provided without performance evidence.
  • The chart-bar horizon and source-code exit logic may differ from the prose description.

Tags

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