Direct answer
A worked example of MT5 Indicators is a fully specified, step-by-step numerical scenario showing how an indicator’s calculation produces outputs from defined inputs. It states every assumption (the data used, the indicator parameters, and the calculation steps). The example is educational: it demonstrates the mechanics of the indicator, not a guaranteed trading outcome.
Mechanics: what an MT5 indicator does
An MT5 indicator is an algorithm that processes input data—most commonly price history such as open, high, low, and close—into computed outputs. Examples of outputs include a moving average line, an oscillator value, or a band around a central line.
Key terms in a worked example:
- Input series: the sequence of values used in calculations (for example, the last N closes).
- Parameters: fixed settings chosen by the indicator user (for example, the lookback length N).
- Rule/formula: the indicator’s computation procedure (for example, how each new value is derived from earlier inputs).
- Output series: the resulting calculated values plotted or made available per time point.
A worked example should separate what is under your control (parameters and the stated formula) from what is variable (the underlying market data, execution conditions, and any costs you might face in real trading). Since no real-time market data is assumed here, the example below uses hypothetical inputs.
Evidence or example: a numerical worked scenario
Worked example using a simple moving average (SMA) calculation logic, stated explicitly.
Assumptions (state these up front):
- Time points are labeled t1, t2, t3, …
- The indicator uses a lookback length N = 3.
- The input series is Close prices.
- The SMA at time tx is the average of the most recent N closes available at tx.
- We compute only for times where three closes exist.
Hypothetical close prices:
- Close(t1) = 100
- Close(t2) = 102
- Close(t3) = 98
- Close(t4) = 101
Step-by-step calculations:
-
SMA(t3) = (Close(t1) + Close(t2) + Close(t3)) / 3 = (100 + 102 + 98) / 3 = 300 / 3 = 100
-
SMA(t4) = (Close(t2) + Close(t3) + Close(t4)) / 3 = (102 + 98 + 101) / 3 = 301 / 3 = 100.333…
What this demonstrates:
- The indicator’s output is fully determined by the specified formula and the input series values.
- Changing inputs (different closes) or parameters (different N) changes the computed outputs.
Important: this example illustrates calculation mechanics. It does not claim that the output predicts direction, prevents losses, or delivers any consistent outcome.
Limitations and risks: what can go wrong
Even when the calculation is correct, interpretation can fail. Material limitation and failure modes include:
-
Data and preprocessing mismatch
- If you compute using different price definitions (for example, close vs. median price) or different time alignment than the indicator uses, your results may not match.
-
Parameter sensitivity
- Many indicators respond strongly to parameter choices (like lookback length). A parameter set that appears smooth in one period may behave differently in another.
-
Market condition variability
- Historical relationships do not guarantee future relationships. The same indicator rule can produce different patterns under different volatility, trend, or regime conditions.
-
Execution and costs (not modeled by the indicator)
- Indicators typically compute signals or values from historical bars, but they do not automatically include costs, slippage, spreads, or real execution timing.
Verification and next question
To independently verify a worked example, you can:
- Use the same assumed input series (the same close values per time point).
- Use the same indicator parameters (for example, N = 3).
- Recompute the formula step by step and confirm the output values match.
If you want a worked example tailored to a specific indicator type (for example, an oscillator or a banded indicator), the next question is: Which exact indicator formula and parameters should be used, and what input price series is assumed?