Skip to content
All library documents

Expert Advisor Settings for Position Reversal and Drawdown-Based Lot Increases

Article MQL5 code base

Summary

This document describes settings for an Expert Advisor and mentions tester reports for EUR/USD across a long historical period, with and without lot increases. It says stop-loss and take-profit levels are applied after a position opens, and a retry parameter controls how many times the EA attempts to set them if an attempt fails. Another option reverses the position when the signal changes. Parameters set to zero are generally inactive, except indicator settings.

A drawdown-based function increases lot size according to a specified drawdown amount in the deposit currency, with a maximum lot limit available. The text advises setting the drawdown parameter no lower than the maximum equity drawdown. It does not explain the entry signal, provide numerical tester results, or give enough detail to assess the behavior of the sizing rule. Increasing exposure after drawdowns can amplify losses, so the brief description is not evidence that the robot is stable or profitable.

Key ideas

  • The EA can reverse an open position when its signal changes.
  • Stop-loss and take-profit levels are set after entry, with retries available after failed attempts.
  • A drawdown-linked setting increases lot size and can be bounded by a maximum lot limit.
  • The document does not explain the entry signal or provide detailed test results.
  • Drawdown-based increases in position size can magnify losses as well as exposure.

Tags

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