Skip to content
All library documents

Expert Advisor for Lot Sizing from Free-Margin Risk

Article MQL5 code base

Summary

The document briefly describes a MetaTrader Expert Advisor that calculates a trade lot size from a user-set risk percentage of free margin. Its example heading refers to a 100% risk setting, but no worked calculation, formula, or demonstration is included. The stated input is the percentage of free margin assigned as risk for a deal.

The material is therefore a minimal description of a position-sizing utility, rather than a trading strategy or a full account-risk method. It does not explain how the Expert Advisor converts the percentage into lots, whether it incorporates stop distance, contract specifications, or leverage, or how the calculation handles changing margin requirements. No empirical evidence or safeguards are presented, so the description alone is insufficient to assess the resulting exposure or suitability.

Key ideas

  • The Expert Advisor calculates a suggested lot size from a risk percentage of free margin.
  • The described setting applies to an individual deal.
  • The document gives no calculation details or evidence about the tool’s behavior.
  • It does not explain how stop distance, instrument specifications, or changing margin requirements affect the lot size.

Tags

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