Skip to content
All library documents

TTM-Trend Signals with Profit-Triggered Position Scaling

Article MQL5 code base

Summary

This expert-advisor strategy follows trend changes signaled by the TTM-Trend indicator. It checks for a colored bar when a bar closes, then opens a position; it can increase position volume when the latest deal’s profit exceeds a user-set point threshold. The number of additions, the last deal’s price, and its volume are recorded in the trade comment.

The document also explains how to bundle the indicator into the compiled expert advisor so the indicator file need not be installed separately on each terminal. It reports a test using default inputs on EURAUD at a 12-hour timeframe for 2015, with no stop loss or take profit, and references charted results without giving numerical performance statistics. The example therefore provides limited evidence: it does not establish robustness across markets or periods, and scaling into positions adds exposure as trades move favorably.

Key ideas

  • The strategy opens trades when a colored TTM-Trend bar signals a change at bar close.
  • It adds to position volume when the latest deal’s profit passes a configured point threshold.
  • Trade comments store the scale count and details of the most recent deal.
  • The indicator can be embedded in the compiled expert advisor for standalone use.
  • The cited test used default settings on EURAUD at a 12-hour timeframe in 2015, without stop loss or take profit.

Tags

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