Strategy testing and trading software · Germanycontact@stratcorealpha.com · DE

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

Trading risk disclosure

Futures and forex trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing one's financial security or lifestyle. Only risk capital should be used for trading, and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results.

Hypothetical performance disclosure

Hypothetical performance results have many inherent limitations. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown. There are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular trading program. Hypothetical results are generally prepared with the benefit of hindsight, do not involve financial risk, and cannot completely account for the impact of financial risk in actual trading. Market conditions, the ability to withstand losses, and adherence to a trading program can all materially affect actual results.

NinjaTrader trademark disclosure

NinjaTrader® is a registered trademark of NinjaTrader Group, LLC. No NinjaTrader company has any affiliation with the owner, developer, or provider of the products or services described herein, or any interest, ownership or otherwise, in any such product or service, or endorses, recommends or approves any such product or service.

Testimonials, when shown, may not represent the experience of other clients and are not a guarantee of future performance or success. Virtual-currency trading carries additional risks. See the CFTC customer advisories. Read the full financial risk disclaimer.