Skip to content
All library documents

A Random-Entry Expert Advisor with Matched Stop and Target Settings

Article MQL5 code base

Summary

This note describes an Expert Advisor designed to test random market entries rather than implement a researched trading signal. It opens positions according to a random number generator, with stop loss and take profit configured to similar settings through a shared parameter. The program operates on every market tick and allows no more than one open position at a time, which the description says makes it usable on both hedging and netting account types.

The stated purpose is checking random entry behavior, and the author cautions that results are unpredictable. The note does not provide test results, a sampling method, or details about how the random values map to trade direction or entry timing. It therefore describes a basic experimental baseline, not evidence of a profitable strategy. Any evaluation would also depend on execution assumptions and the chosen stop and target settings, which are not explored here.

Key ideas

  • The EA chooses entries using a random number generator for experimental checks.
  • Stop loss and take profit use similar settings controlled by one parameter.
  • The program evaluates on each tick and limits exposure to one open position.
  • The description states that the EA can run on hedging and netting accounts.
  • No performance evidence is included, and outcomes are described as unpredictable.

Tags

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