Skip to content
All library documents

Configurable Random-Direction EA with Trade and Risk Controls

Article MQL5 code base

Summary

This document describes a non-directional automated trading expert advisor that can open trades using several modes, including simultaneous long and short positions, random side selection, alternating sides, swap-aware direction, or one-sided trading. It does not use indicators, price patterns, or news signals. The author says it can be profitable with suitable risk settings, but supplies no test period, performance statistics, or supporting evidence, so that claim cannot be assessed from the document.

Configurable controls include trade size, stop loss and take profit, trailing stops, and a portfolio-level floating-loss limit expressed as a fixed amount or a percentage of balance. Stops and trailing levels can be handled locally or placed with the broker; the document also describes spread and slippage limits. These settings shape execution and loss containment but do not establish an edge. Random entries can still incur trading costs and losses, and local virtual stops depend on the trading terminal remaining active.

Key ideas

  • The EA offers multiple rules for choosing trade direction, including random and swap-aware modes.\nIt can operate without technical indicators, price action patterns, or news inputs.\nPosition size, stop loss, take profit, trailing behavior, and floating-loss limits are configurable.\nStops and trailing orders can be managed locally or sent to the broker.\nThe document provides no empirical results to substantiate its profitability claim.

Tags

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