Free read-only MQL5 utility

MT5 Cash Risk Probe

Estimate the account-currency loss between one hypothetical entry and stop, reserve cash for uncertain costs and floor the result to the broker's valid volume grid. No order is ever sent.

Version 1.00, MIT licensed and compiled with 0 errors / 0 warnings. A calculation cannot guarantee fill price, fees, slippage, margin availability, broker acceptance or trading results.

What it checks

  • Buy or sell entry-to-stop loss through OrderCalcProfit()
  • Account deposit currency shown explicitly
  • Maximum cash loss minus an explicit fees/slippage reserve
  • Minimum, maximum and offset-aware volume grid
  • Final loss recalculation at the broker-valid volume
  • Five deterministic volume-normalization cases

When it blocks

  • Missing or wrong-side stop price
  • Non-positive cash budget or invalid reserve
  • Unavailable tick or symbol metadata
  • Failed terminal profit calculation
  • Budget below the broker minimum volume
  • Any internal volume-floor self-test failure

Run it in four steps

  1. 1

    Download the MQ5 source and copy it to MQL5/Scripts/StratCoreAlpha/.

  2. 2

    Compile it in MetaEditor and attach it to the symbol you want to inspect.

  3. 3

    Set side, hypothetical entry and stop, cash cap and a conservative cost reserve.

  4. 4

    Review the chart comment and Experts log; the script always reports that no order was sent.

Open the full boundary and limitation guide

Account currency is part of the contract

The cash input is denominated in the account deposit currency printed by the probe. It is not automatically a USD cap on a non-USD account. A production EA must additionally freeze conversion, portfolio exposure, cost and margin rules.

Need the complete rule contract?

Freeze cash risk, state transitions and acceptance cases before the EA build.

Review the specification audit