In this article

An estimate needs inputs

MetaQuotes describes OrderCalcProfit as a preliminary calculation using operation, symbol, volume and opening and closing prices, returning a value in account currency. Save those inputs with the result and calculation time. A number without its assumptions cannot be reproduced reliably.

Vary one assumption

Build a baseline row, then change only the closing price. Keep direction and volume fixed. Label each result hypothetical rather than a forecast. This makes price sensitivity visible without confusing a larger position with a better outcome. Preserve the environment details needed to understand a later recalculation.

Separate net profit from the model

Do not label the result net profit unless relevant commissions, funding and other cash flows are established and included. List exclusions explicitly; unknown charges are not zero. The estimate neither reserves a price nor guarantees execution. If calculation fails, show the error rather than retaining a previous successful value as if it were current.

Review the worksheet before sharing

Ask another reader to reproduce the baseline using only the saved inputs. If they need to guess the account currency, operation direction or instrument variant, the record is incomplete. Add those details rather than averaging the two results. For a live trade comparison, keep the estimate column labelled hypothetical and the statement column labelled observed. Their difference is a question to investigate, not automatically an undocumented fee or an execution fault.

Review the worksheet before sharing
RowPurpose
BaselineFixed inputs
Alternative closeSensitivity
ExclusionsCalculation boundary

Article sources

  1. OrderCalcProfit (opens in new tab) MetaQuotes