Skip to content
All library documents

Indicator Signals and Progressive Position Scaling in a Forex Expert Advisor

Article MQL5 code base

Summary

This document describes an expert advisor that opens trades using one of six signal configurations: MACD direction, price relative to a pivot, support and resistance breaks, or combinations of i_Trend, RSI, stochastic, and MFI. Users can reverse signals and choose whether indicators are checked on the forming bar or the last completed bar. Initial trade size can be fixed or tied to account assets, and the advisor can set take-profit, stop-loss, or trailing-stop levels.

When a position moves against the trader, the system may add trades at a specified price distance if a signal still agrees with the position. It increases size by a multiplier schedule, limits the sequence with a configurable trade count, and calculates a take-profit for the combined position. The document explains configurable mechanics but provides no performance results or risk-adjusted evaluation. Progressive sizing can increase exposure as losses accumulate, while indicator rules and execution details are not assessed for robustness.

Key ideas

  • The advisor offers six entry signal types based on indicators, pivots, and support or resistance levels.
  • Trade size can be fixed or calculated in proportion to available assets.
  • Losing positions may trigger additional trades with increasing volume when a confirming signal remains present.
  • Stops, take-profits, trailing stops, and limits on added positions are configurable.
  • The document reports no backtest evidence, and its scaling approach can increase losses as exposure grows.

Tags

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