Skip to content
All library documents

Cycle Line Breakout Trading and Basket Risk Controls

Article MQL5 code base

Summary

The document describes a chart-based trading expert advisor that lets a trader draw cycle lines and trade price breaks through them. It also provides manual trade controls and settings for stop loss, take profit, trailing stops, break-even adjustments, trade count, and position sizing. Position size can be fixed or calculated from a maximum-risk setting, with a decrease factor after losses.

An optional basket protocol closes the collection of open trades when its aggregate profit or loss reaches configured percentage thresholds. The document lists settings and allowable ranges, but does not explain how the cycle lines generate signals in detail or provide performance results, backtests, or evidence that the hedge protocol reduces drawdown. The settings are product configuration guidance rather than a tested trading study; traders would need to assess execution, instrument behavior, and risk independently.

Key ideas

  • The advisor is designed to trade price breaks through user-drawn cycle lines.
  • Manual controls allow trades to be opened or closed, including closing all positions together.
  • Position sizing can use a fixed lot amount or a maximum-risk setting.
  • Trailing stops, break-even moves, and basket-level profit or loss exits are configurable.
  • The document provides no backtest evidence for the approach or its risk controls.

Tags

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