MT5 indicators← True Strength Index product page日本語の取扱説明書

This product is in preparation for release. Product files are not yet distributed; the manual is published so that you can review its content. This manual is an English translation of the Japanese manual. Images (screens and figures) are not translated and may contain Japanese text or earlier names.

For Trilogy users

True Strength Index

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.

Indicator name: True Strength IndexMetaTrader 5Separate window

Apply the same smoothing to the direction and size of change

Smooth the numerator and denominator under the same conditionsClose difference / absolute value of the close differenceThe same First and Second two-stage EMASmoothed difference ÷ smoothed absolute value × 100
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Close changePrepares the difference in close from the previous bar and its absolute value.

2

Two-stage EMASmooths the difference and the absolute value separately with the same 2 periods.

3

Ratio × 100Smoothed difference÷smoothed absolute value×100 is the blue TSI. Orange is the average line of TSI.

Default EMA: 8, 5Vertical axis: −100 to 100Average line can be OFF
1

MT5 display and examples of changed settings

Compares the default settings and a settings change example on a screen with only this product applied.

Settings change example: these items are changed
Stage 1 EMA period
InpFirstPeriod
8 → 25
Stage 2 EMA period
InpSecondPeriod
5 → 13
Average line period
InpAveragePeriod
5 → 7
Average line method
InpAverageMethod
EMA → LWMA

All other inputs remain at their defaults. On a PC, the default is on the left and the change example on the right; at smartphone width they appear in the same order from top to bottom.

Default settingsInpFirstPeriod = 8 / InpSecondPeriod = 5 / InpAveragePeriod = 5 / InpAverageMethod = EMA
True Strength Index default settings
Blue is TSI and the orange dashed line is EMA 5. The silver dotted line is 0.
View the screen in detail at full size
True Strength Index default settings (actual size)
Settings change exampleInpFirstPeriod = 25 / InpSecondPeriod = 13 / InpAveragePeriod = 7 / InpAverageMethod = LWMA
True Strength Index settings change example
An example with the two stage periods set to 25 and 13 and the average set to LWMA 7. The fixed vertical axis is the same, so within this range the line's movement looks small.
View the screen in detail at full size
True Strength Index settings change example (actual size)

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.

2

How to read it in 30 seconds

Blue and orange

Blue is the double-smoothed ratio of close changes; orange is the average of that value.

0 and the extremes

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.

How long periods look

Longer smoothing tends to make changes smoother. Because the vertical axis is fixed, the movement can look small.

3

What it measures

Read the ratio of smoothed close changes, not how much the price moved.

Main line formula

TSI=100×EMA₂(EMA₁(close difference))/EMA₂(EMA₁(absolute value of close difference)). When the denominator is 0, the value is 0.

Meaning of 0 and ±100

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 first value shown

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 the price does not move

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.

Right after a quiet stretch

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.

The special display with periods 1 and 1

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.

4

Situations for reading the display

The line crosses 0

Indicator
The blue TSI
Cross-check
Compare TSI before and after, and the average line
Check
Read it as a sign change in the ratio of smoothed differences
Caution
It is not a display that indicates a trading direction.

TSI remains even when the price is flat

Indicator
A value other than 0
Cross-check
Check the two EMA periods and the preceding change
Check
Read it as a condition in which smoothing memory remains
Caution
It is not an indicator that always becomes 0 when the price stops.

It looks small with long settings

Indicator
Periods such as 25 and 13
Cross-check
Check the fixed −100 to 100 scale
Check
Compare the swing of the values on the same vertical axis
Caution
Changing the periods also delays where drawing starts.
5

Steps for checking the display

1

Check the 2 lines with the defaults

Check the blue TSI, the orange average line and the silver 0 line.

2

Adjust the two stage periods

Check both First and Second. Longer periods also need more bars of history.

3

Choose the average line

Choose from SMA, EMA, SMMA and LWMA. With Average Period=0, only the main line is drawn.

4

Compare on the same history

The EMA calculation is affected by where the history starts, so check the range of history as well as the periods.

6

Installation and checking the package contents

Included filePurpose / location
TRI_True_Strength_Index.ex5The 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.

1

Extract the ZIP

Extract the ex5 main file rather than leaving it in the compressed file.

2

Open the data folder

In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.

3

Apply this product

Refresh the Navigator or restart MT5, and apply it to the target chart. Place only 1 instance of the same product on 1 chart.

4

Check the settings and display

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.

7

Settings

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.

Stage 1 EMA period

Name shown on screen
First EMA Period
Input name
InpFirstPeriod
Default
8
Allowed range
1〜1000
Description
The first period, which smooths both the close difference and its absolute value.

Stage 2 EMA period

Name shown on screen
Second EMA Period
Input name
InpSecondPeriod
Default
5
Allowed range
1〜1000
Description
Further smooths the stage 1 result with EMA. Swapping the 2 periods gives almost the same calculated values, but rounding differences can occur.

Average line period

Name shown on screen
Average Period (0 = off)
Input name
InpAveragePeriod
Default
5
Allowed range
0〜1000
Description
0 hides the average line. 1 or more draws the average of TSI.

Average line method

Name shown on screen
Average Method
Input name
InpAverageMethod
Default
EMA
Allowed range
SMA / EMA / SMMA / LWMA
Description
SMA is a simple average, EMA exponential, SMMA smoothed, and LWMA an average that weights newer values more heavily. With the average line OFF, it has no effect on the values.
8

Usage specifications

Vertical axis and colors

The 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.

Differences from the start of the history

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.

Latest bar and closed bars

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.

When the denominator is 0

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 forming bar changes

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.

Do not judge by the 0 in the header alone

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.

It does not start with out-of-range inputs

Check the input values and their combinations. If it cannot start, a 1-line reason in English appears in the MT5 Experts tab.

Only 1 instance of the same product on 1 chart

This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.

For on-screen display only

Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.

9

Troubleshooting and usage notes

It shows 0.00

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.

The average line does not appear

With Average Period=0 it is not shown. Even at 1 or more, it starts drawing Average Period−1 bars after the main line.

It looks the same even when the periods are swapped

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.

No lines appear

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.

The settings are not accepted

Check the reason in the MT5 Experts tab and set the inputs back within the allowed range.

Details are hard to read

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.

10

Technical information and specification details

Two-stage EMA initialization

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.

Average line initialization

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.

How to read the window name

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.