Observed completed-trade timestamps

Average Holding Time Calculator

Measure the mean, median, shortest and longest holding time from entered open and complete-close timestamps. The result describes only the supplied completed trades and does not imply that shorter or longer trades are better.

Offset-qualified timestampsMean plus medianNo duration target

Enter completed trade timestamps

Put one open and complete-close pair on each line, separated by a vertical bar.

Entered

Use ISO 8601 timestamps with Z or an explicit UTC offset. Each close must be after its open.

Position boundary: Each row represents one fully closed position. Partial closes, reversals and overlapping positions are not merged or inferred.

Completed-trade duration summary

Observed Trade Activity 1.0.0.

Derived
Enter completed tradesMean, median, minimum, maximum and total entered holding time will appear here.
Need activity rate?Normalize entered close events across an explicit observation window.
Trade Frequency

How observed holding time is calculated

Trade durationᵢ = Complete-close timestampᵢ − Open timestampᵢ
Mean duration = Sum of entered trade durations ÷ Number of entered trades

Every timestamp must include Z or an explicit UTC offset, so browser locale and daylight-saving assumptions are not silently introduced.

The median is the middle sorted duration, or the mean of the two middle durations for an even-sized sample.

Worked example from the audited fixture

Reproduce it with “Load example”The four rows supplied by “Load example” have completed holding times of 2, 6, 4 and 8 hours. Their total is 20 hours, so mean holding time = 20 ÷ 4 = 5 hours. After sorting them as 2, 4, 6 and 8 hours, the even-sample median is (4 + 6) ÷ 2 = 5 hours.

How to interpret the result

The matching 5-hour mean and median describe only these four completed positions. The shortest observation is 2 hours and the longest is 8 hours. These durations do not show whether any trade was profitable or well managed, and missing, partial or differently defined position records can change the summary.

Assumptions and limits

  • The page cannot identify partial closes, reversals, netting or hedging-account position boundaries.
  • Broker statement timestamps can use server time, UTC or another zone; convert or retain the explicit offset consistently.
  • Only fully entered rows are analyzed, so missing trades create selection bias.
  • A small sample can produce an unstable mean and median.
  • Holding time alone does not measure risk, execution quality, robustness or future performance.

Frequently asked questions

  • Here it is the arithmetic mean of each entered complete-close timestamp minus its corresponding open timestamp.
  • An explicit Z or numeric offset prevents the browser from silently interpreting the timestamp in an unspecified local or broker time zone.
  • It means the timestamp when the entered position was fully eliminated. The page does not reconstruct partial closes or reversals.
  • A few unusually long trades can pull the arithmetic mean. The median provides a separate middle-of-sample description.
  • No. Every close timestamp must be strictly later than its open timestamp for this completed-trade model.
  • No. Every line remains an independent entered position-duration record.
  • No. Duration alone does not establish profitability, risk, costs, robustness or suitability.
  • No. It analyzes only the timestamps you enter and cannot verify their completeness, time zone or position boundaries.

Sources and methodology

Verify trade-history records and charges

Confirm the statement time zone, position boundaries, monetary basis and trading charges before creating the sample.

XM

Check statement timing, account currency and applicable charges.

Check XM terms

FBS

Confirm the close-event and position records behind each row.

Check FBS terms

FXOpen

Review transaction history and financing charges before comparison.

Check FXOpen terms

Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and broker entity.

Disclaimer: The results from this tool are estimates for educational and informational purposes only and may differ from your broker's figures. This is not financial or investment advice. Trading forex and CFDs carries a high level of risk and can result in the loss of all your capital. Always verify calculations with your broker and trade within your risk tolerance.