Skip to content
All library documents

Candle-Size Filtered Martingale Strategy and Loss-Streak Tuning

Article MQL5 code base

Summary

This expert advisor concept uses candle size as a trade filter: when a candle exceeds a configurable pip threshold, it opens a buy trade. If that trade loses, the next trade uses a larger lot, with the scaling factor controlled by the user. The author frames the filter as a way to limit consecutive losses before applying martingale sizing, rather than as a way to forecast price direction.

The document gives example settings for USDJPY on a four-hour chart and discusses how take-profit and stop-loss relationships may affect wins, losses, and loss streaks. It reports personal rules of thumb about observed streak lengths and suggests adjusting the candle threshold based on long tests. These are anecdotal claims without supplied data, methodology, or verified results. Martingale sizing can rapidly increase exposure after losses, and the document does not explain controls for drawdown, account limits, or adverse market regimes.

Key ideas

  • A candle exceeding a configured size threshold triggers a buy entry.
  • A losing trade leads to a larger lot on the next trade according to a scaling factor.
  • The proposed filter aims to constrain consecutive losses before using martingale sizing.
  • Take-profit and stop-loss ratios can change the expected loss frequency and streak behavior.
  • The author offers anecdotal parameter guidance without documented test data or risk limits.

Tags

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