Skip to content
All library documents

CCI Signals for Pending Stop Entries with Order Expiry and Trailing Stops

Article MQL5 code base

Summary

This description outlines an Expert Advisor that uses the CCI indicator to place pending buy-stop and sell-stop orders. It checks indicator values on the current and preceding bars, then places a stop order a configurable distance from the current price when a signal activates. A nonzero stop-loss setting is applied when the order is placed. The EA is described as operating on every tick and supporting both netting and hedging account modes.

Untriggered pending orders are removed when price moves away by 1.5 times the configured entry distance. Once an order triggers and becomes a position, a trailing stop can be applied if enabled. The document identifies a sample test on EUR/USD at the 30-minute timeframe, but gives no dates, settings, trade count, performance statistics, or test results. It therefore explains the EA’s entry and order-management mechanics but does not establish whether the approach is profitable or robust across instruments and market conditions.

Key ideas

  • The EA uses CCI readings from the current and previous bars to trigger pending stop entries.
  • Buy-stop and sell-stop orders are placed at a configurable distance from the current price.
  • A configured stop loss is attached when the pending order is placed.
  • Untriggered orders are removed when price moves away by 1.5 times the entry distance.
  • Trailing stops can manage positions after activation, but no test results are reported.

Tags

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