Skip to content
All library documents

Randomized Multi-Currency Trading with Explicit Risk and Execution Limits

Article MQL5 code base

Summary

This document describes an expert advisor that randomly chooses currency symbols, trade sizes, and order types rather than basing entries on technical indicators or fundamental analysis. Although it can be attached to one currency chart, it is described as able to trade multiple pairs and manage the trades it opens. The settings cover minimum and maximum lot sizes, stop loss and take profit distances, trailing-stop activation and gap, and a cap on the number of open trades.

Risk controls include closing all positions when floating losses reach either a fixed cash amount or a balance-based percentage. Spread and slippage limits are intended to constrain trade entry and execution. The document explains configurable mechanics but presents no test results, probability model, or evidence that random entries have an edge. Profitability is asserted without supporting data; outcomes would depend on settings, transaction costs, market behavior, and implementation. The instrument scope is described broadly, though the central example is currency trading.

Key ideas

  • The advisor randomizes the traded symbol, position size, and order type instead of using market analysis signals.
  • It can manage trades across multiple currency pairs from a single chart attachment.
  • Users can configure loss limits, profit targets, trailing stops, spread limits, slippage, and maximum concurrent trades.
  • The document provides no empirical evidence that random entries are profitable.
  • Results would depend on risk settings, execution costs, and market conditions.

Tags

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