Blue and orange
Blue is the double-smoothed ratio of close changes; orange is the average of that value.
Smooths the bar-to-bar change in close with 2 EMAs in sequence and shows it divided by the same smoothing of the size of the change. You can compare the main line with its average line.
Close changePrepares the difference in close from the previous bar and its absolute value.
Two-stage EMASmooths the difference and the absolute value separately with the same 2 periods.
Ratio × 100Smoothed difference÷smoothed absolute value×100 is the blue TSI. Orange is the average line of TSI.
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.
Blue is the double-smoothed ratio of close changes; orange is the average of that value.
0 is the point where the smoothed changes balance. Near ±100, change in one direction dominates, but it is not the amount of price change.
Longer smoothing tends to make changes smoother. Because the vertical axis is fixed, the movement can look small.
Read the ratio of smoothed close changes, not how much the price moved.
TSI=100×EMA₂(EMA₁(close difference))/EMA₂(EMA₁(absolute value of close difference)). When the denominator is 0, the value is 0.
Normally the range is about −100 to 100. Continued upward changes approach 100, and downward ones approach −100. 0 is either balance or the value from the denominator-0 rule. Including tiny rounding differences, this is not a strict guarantee of the range.
The main line starts at bar First EMA Period+Second EMA Period, and the average line Average Period−1 bars after that. By default, the main line starts at the 13th bar and the average line at the 17th.
Even when price movement stops, the internal smoothed values keep updating. TSI does not necessarily return to 0; it stays near a value determined by earlier changes or moves slowly.
When the smoothed absolute value becomes small, even a slight price change can swing TSI to around ±100. It does not necessarily represent a large price move.
With both periods set to 1, a bar above the previous close is 100, a bar below it is −100, and an equal bar is 0.
Check the blue TSI, the orange average line and the silver 0 line.
Check both First and Second. Longer periods also need more bars of history.
Choose from SMA, EMA, SMMA and LWMA. With Average Period=0, only the main line is drawn.
The EMA calculation is affected by where the history starts, so check the range of history as well as the periods.
| Included file | Purpose / location |
|---|---|
| TRI_True_Strength_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 4 inputs. Change them on the Inputs tab of the properties window. The English display names are shown together with the input names in the code.
InpFirstPeriodInpSecondPeriodInpAveragePeriodInpAverageMethodThe vertical axis is fixed at −100 to 100, and the silver dotted line is 0. Blue and orange indicate the role of each line; the colors do not change with the sign or with price rises and falls.
The 2-stage EMA and the average line are affected by initial conditions. If the history starts at a different point, values may differ for a while. The difference shrinks, but an exact match after a certain number of bars is not guaranteed.
The latest value changes while the bar is forming. Normal new price updates alone do not change closed bars, but recalculation due to history additions or corrections can also change past values.
While the close has not moved since the start of the history, or on bars where the close does not change with periods 1 and 1, the denominator becomes 0 and TSI shows 0.
The value of the latest bar changes with price updates. If past prices or the start of the history change, values after recalculation may also change. This is not a guarantee of no repainting.
Even when a line is not drawn because the required history is insufficient, the header may show 0 at the display precision. Check whether the line exists together with the number of bars required. %B is shown with 3 decimal places and the other 3 products with 2 decimal places.
Check the input values and their combinations. If it cannot start, a 1-line reason in English appears in the MT5 Experts tab.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.
Shown in the order TSI, then average line. 0 can be shown both as an actual calculated value and when history is insufficient, so check the line and the required number of bars. With the average OFF, only the main line is shown.
With Average Period=0 it is not shown. Even at 1 or more, it starts drawing Average Period−1 bars after the main line.
Because both stages are smoothed the same way, the swapped result is almost the same apart from rounding differences. The window name shows them in the order entered.
Check where drawing starts in Chapter 3 and the input ranges in Chapter 7. Distinguish a line hidden by an input from a line that does not yet have the bars its calculation needs.
Check the reason in the MT5 Experts tab and set the inputs back within the allowed range.
Open "View the screen in detail at actual size". Also check the vertical scale and the screen zoom level.
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.
The close difference is calculated from the 2nd bar, and both of the 2 stages use that first difference as the initial value. The EMA coefficient for period n is 2/(n+1). The main line waits until bar First+Second before it is displayed.
The average line is applied to the main line. EMA is calculated internally from the first main line value, and SMMA starts from the first simple average. Regardless of the method, display starts at the start of the main line+Average Period−1 bars.
In the order First, Second, average method and period. With Average Period=0, it shows Off. These show the calculation conditions and do not indicate a ranking of good conditions or recommended values.