Direct answer
An MT5 indicator is calculated by applying a mathematical rule to input time-series data (such as price and/or volume). The rule is defined by the indicator’s formula and parameters, and it produces one or more output values for each processed bar (or sometimes for each incoming tick).
So “How is MT5 Indicators calculated?” can be answered as: take the indicator’s formula + its parameters + the exact input data series, then run the calculation for the same bar indexing the platform uses. If you change the data, timeframe, starting index, or parameter values, the results can change.
Mechanism and definitions
1) What “calculated” means in an indicator
An indicator calculation typically has three parts:
- Inputs: a series derived from market data (for example, close price, high/low, volume).
- State / window: how many past observations are used (a fixed lookback window) or how past results are carried forward (recursive smoothing).
- Output rule: a formula that transforms inputs (possibly using intermediate steps) into the indicator value.
2) Common calculation patterns
Most indicator formulas fall into a few repeatable patterns:
- Moving-window averages: compute an average over the last N bars.
- Weighted averages: same idea, but weights emphasize newer or specific positions.
- Difference/derivative style: use the change between two times (e.g., current minus prior).
- Range transforms: use high/low ranges or true-range-like measures.
- Recursive smoothing: update a smoothed value using the previous smoothed value and the newest input.
Because these patterns are general, the same “engine” idea applies across many MT5 indicators: read data in chronological order, apply the rule, store the result at each bar index.
3) Parameters you must know
To reproduce a calculation, you need every parameter that alters the rule, for example:
- Period / length (lookback size N)
- Smoothing type (if the indicator uses smoothing, the method matters)
- Source choice (close vs typical price vs another combination, if offered)
- Offsets or shifts (some indicators plot values shifted forward/backward)
Without these parameters, you cannot uniquely determine the computed values.
Evidence or example (a checkable model)
Because no specific indicator formula is provided here, the safest way to verify “calculated” mechanics is to use a generic, checkable template that mirrors how many indicators work.
Example template: moving-window average
Assume an indicator output at bar index i depends on the last N closes:
- Input series: (c[i]) = close price at bar i
- Parameter: (N) = period length
- Calculation for (i \ge N-1):
[\text{Value}[i] = \frac{1}{N}\sum_{k=0}^{N-1} c[i-k]]
Data requirements to reproduce it:*
- You must have the exact close series for the same timeframe.
- You must start at the same bar index and use the same chronological ordering.
- You must decide how the indicator handles early bars (often there is no output until enough data exists, or outputs may use partial windows).
How you would independently verify alignment
To verify the calculation against what an MT5 chart shows:
- Export or record the relevant input series for the selected timeframe.
- Choose the same parameter values.
- Apply the formula using the same bar indexing convention.
- Compare the computed outputs bar-by-bar.
If values do not match, the usual causes are not “the platform is different,” but your inputs (or indexing assumptions) do not match the indicator’s definition.
Limitations and risks (material failure modes)
1) Early-bar behavior and missing values
Many indicators cannot compute meaningful values until enough observations exist. Some handle early bars with partial data, others leave outputs undefined. If you assume one behavior but the indicator uses another, you will see mismatches.
2) Timeframe and bar alignment
Indicators are tied to a timeframe. If your input series is built from a different timeframe, the output values will not align, even if prices “look similar” visually.
3) Tick vs bar processing differences
Some indicators update based on ticks; others finalize per bar. If you compare values at the wrong moment (mid-bar vs bar close), you may believe the calculation is inconsistent.
4) Data quality and synchronization
Indicators depend on consistent historical data. Missing bars, merged sessions, or unexpected gaps can distort calculations, especially for recursive formulas that carry forward state.
5) Historical relationships do not imply future behavior
Even if you reproduce the indicator calculation exactly, the indicator’s interpretation over time remains uncertain. An indicator can be mathematically correct yet still be an unreliable representation of future price movement.
Verification or next question
A good next step is to pick one concrete MT5 indicator name and write down its specific formula and parameters as defined in its settings. Then you can:
- list the exact input series it uses,
- identify whether it is moving-window or recursive,
- define the earliest index where outputs are valid,
- and perform a manual bar-by-bar calculation on a small section of historical data.
If you share the indicator name and its parameter settings, the calculation can be expressed as a precise, reproducible rule using the same input data requirements described above.