What decides positive or negative
It is the sign of the smoothed "close − high-low midpoint". It is not a value that directly shows the location of the current close alone.
Smooths how far the close is from the midpoint of the period's high and low in 2 stages, separately from the range, and turns it into a ratio.
The blue line is SMIIt is the distance from the midpoint compared with the smoothed range.
The orange line is the average lineThe calculated SMI is averaged further with the same method. It can be hidden with a period of 0.
Read around 0 or 50The default is −100 to 100 with center 0. Switching to 0 to 100 makes the center 50.
Compares the default settings and a settings change example on a screen with only this product applied.
Published example: M1. This is an example to explain the display. The example with changed settings is not a set of recommended values. Details can be checked in the actual-size view. Also check the vertical axis and units of the separate window. Except for products with a fixed scale, the scale changes with the settings and the displayed range.
It is the sign of the smoothed "close − high-low midpoint". It is not a value that directly shows the location of the current close alone.
First is the first smoothing of the distance and the range, and Second is the smoothing of that result. Average is applied to SMI itself.
The condition for the neutral value is that the smoothed range is 0 or less. It does not always become 0 just because the price stopped moving.
The 2 series of distance and range are smoothed with the same method, and the ratio is taken at the end.
The highest high and lowest low over Range Period bars including the current bar are found, and close − (highest high + lowest low) ÷ 2 is used as the distance.
The highest high − lowest low over the same period is the range. The distance and the range are each smoothed with First, then with Second.
Smoothed distance ÷ smoothed range × 200 is SMI. The result is kept within −100 to 100. The average line is this SMI smoothed further with the same method.
The default is −100 to 100, with level lines at −50, 0 and 50. On the 0 to 100 scale, the value is converted to (SMI + 100) ÷ 2, and the level lines are 25, 50 and 75. The vertical axis is fixed.
If the smoothed range is 0 or less, SMI is 0 (50 on the 0 to 100 scale). With SMA and LWMA, it becomes the neutral value when the required calculation window is replaced by a flat section. With EMA and SMMA, past ranges remain, and a non-zero SMI may continue even in a flat section.
SMI starts from bar Range + First + Second − 2, and the average line from that number plus Average − 1 bars. EMA also starts displaying at the same bar. With the defaults, SMI starts at bar 38 and the average line at bar 42. In both cases, the oldest loaded bar is counted as bar 1.
Check the blue SMI, the orange average line and the −50, 0 and 50 levels.
Read Range, First and Second in that order. First and Second are common to both the distance and the range.
Compare the changes to the 4 items in Chapter 1 with the shape of the lines. It does not mean that short periods are recommended values.
Setting Average Period to 0 removes the average line. Output Scale converts the value to 0 to 100.
| Included file | Purpose / location |
|---|---|
| TRI_Stochastic_Momentum_Index.ex5 | The MT5 main file. Place it in MQL5/Indicators. |
The ZIP contains only 1 item, the main file. The manual is opened from the product page on the site. Source code is not included. MT5 only; registration, account authentication and placing a license file are not required. Use it without changing the file name.
Extract the ex5 main file rather than leaving it in the compressed file.
In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.
Refresh the Navigator or restart MT5, and apply it to the target chart. Place only 1 instance of the same product on 1 chart.
First check with the default values. Changes and removal are done from the chart's 'Indicators List'.
Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.
There are 6 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.
InpRangePeriodInpFirstPeriodInpSecondPeriodInpAveragePeriodInpMethodInpScaleIt is not a method that first calculates distance ÷ range and then averages in two stages. Its calculation order also differs from Smoothed Stochastic, so even with matching periods the lines are not necessarily the same.
Even with EMA or SMMA, if the history is completely flat from the start, the value becomes neutral. If First and Second are both 1, no past values are carried in the smoothing, and a range of 0 gives the neutral value. With general settings, the decision is based on the denominator after smoothing.
With EMA and SMMA, the initial value of the history also affects later bars. When the loaded history range changes, the values at the same time do not necessarily match exactly.
On the latest bar, values and colors change with price updates. If the timeframe, the start of the history or past prices change, the recalculated values may also change.
Even for a line that is not drawn because the required history is insufficient, 0.00 may appear in the separate window's header. Check whether the line is present together with the required number of bars. Values of lines hidden by input are not shown in the header either.
Periods of unselected methods and similar inputs are also subject to the input range check. If out of range, it does not start, and a 1-line reason in English appears in the Experts tab.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
This product is for displaying calculation results on the screen. It does not guarantee future price movement.
Check where drawing starts in Chapter 3 and the input ranges in Chapter 7. Depending on the settings, a long history is required. A period of 0 for an average line or the extra line is a setting that hides it.
Check the reason on the Experts tab in MT5. Set back within the allowed range not only the inputs of the method being displayed but also the inputs that are not in use.
Check the line at actual size. The impression of the shape also changes with the screen zoom and the scale of the vertical axis.
Check whether Average Period is not 0 and whether there are enough bars for the average line. With period 1, it has the same value as SMI, so the lines can overlap.
It is not necessarily a malfunction. It is the property of EMA and SMMA that past distances and ranges remain. Check the method and periods, and the explanation in Chapter 3.
If the first display does not appear, check history loading and the input ranges. If an earlier display has stopped updating, first check the price feed and the terminal's connection status.
With HH and LL as the high and low within the period, d = C − (HH + LL) ÷ 2 and r = HH − LL. d and r are each smoothed with method m over the First period, then over the Second period. If the denominator is positive, the value is 200 × smoothed d ÷ smoothed r; otherwise it is 0. The result is kept within −100 to 100.
SMA is a simple average, and LWMA gives larger weights to newer bars. EMA uses the first input as the initial value and updates with the coefficient 2 ÷ (n + 1). SMMA starts from the SMA of the first n bars and then updates as (previous value × (n − 1) + current value) ÷ n.
The internal EMA calculation starts early, but the display waits until bar Range + First + Second − 2. The SMI average line is also drawn after waiting Average − 1 bars. Sections on the oldest side where no value exists are not drawn.
The conversion to 0 to 100 is (v + 100) ÷ 2. The neutral value 0 moves to 50. If past positive ranges remain in the averaging even when the range is 0, the division continues and the ratio is not necessarily neutral.
The blue line is SMI and the orange dashed line is SMI Average. An average line turned off with period 0 does not appear in the header either. There is no notification function.