Skip to content
All library documents

DeMarker Position Strategy: Stops, Trailing Activation, and Time Controls

Article MQL5 code base

Summary

This document describes additions to a DeMarker-based trading strategy in its second version. It introduces configurable stop-loss and take-profit levels, plus a trailing activation threshold. The activation threshold is intended to move the stop to a breakeven-like level once the position has gained enough points, independently of the trailing stop distance and step; normal trailing then takes over. The document does not provide the strategy’s entry rules or explain how the DeMarker signal itself is calculated.

A time-control group limits when the system searches for new trading signals, using start and end times that can span midnight. This schedule does not affect trailing behavior. The text explains the purpose of these controls but supplies no parameter values, backtest results, or risk analysis, so it describes functionality rather than demonstrating performance. Users would need to assess the settings and the underlying signal separately for their market and execution conditions.

Key ideas

  • The second version adds configurable stop-loss and take-profit settings.
  • A trailing activation threshold can move the stop after a position reaches a specified profit in points.
  • After activation, the usual trailing stop logic continues to operate.
  • Signal searches can be limited to a daily time interval, including one that crosses midnight.
  • The time window does not disable or alter trailing behavior.

Tags

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