MT5 indicators← Adaptive RSI 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

Adaptive RSI

A price line whose following speed changes with how far RSI is from 50. It is not a product that draws a 0 to 100 RSI in a separate window; it shows a line in price units overlaid on the candles.

Indicator name: Adaptive RSIMetaTrader 5Price chart

RSI adjusts the speed. What is shown is a price line

RSI → following coefficient → price lineThe height of the purple line is "price"It is not RSI's 0 to 100
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Purple price lineA line that follows the applied price. Read it on the price chart's scale.

2

Slow near 50The closer the internal RSI is to 50, the smaller the rate at which it approaches the new price.

3

Fast near 0 and 100The closer the internal RSI is to the extremes, the larger the rate at which it follows.

RSI itself is not shownLine in price unitsDefault is the close
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
RSI period
InpPeriod
14 → 40

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 settingsInpPeriod = 14
Adaptive RSI default settings
The default is period 14 and close. The purple line is shown overlaid on the price.
View the screen in detail at full size
Adaptive RSI default settings (full size)
Settings change exampleInpPeriod = 40
Adaptive RSI settings change example
An example with the period changed to 40. The applied price remains the close.
View the screen in detail at full size
Adaptive RSI settings change example (full size)

Example shown: 1-minute chart (M1). This is an example to explain the display. The settings change example is not a recommended value. Details can be checked in the full-size view.

2

How to read it in 30 seconds

Read it as a price line

Read the height of the line as a price. Do not read it with RSI levels such as 30 or 70.

Look at differences in following

The line's response changes with the internal RSI and the change in price.

Check the applied price

The default is the close. Changing it changes both the RSI calculation and the price that is followed.

3

What it measures

It does not display RSI; it uses a coefficient made from RSI to decide how much the price line is updated.

Internal RSI

Calculated by smoothing the rises and falls of the applied price over period N. Initially a simple average, then a Wilder-type update.

Following coefficient

Coefficient = 2×|RSI÷100 − 0.5|, from 0 to 1. If RSI is 50 it is 0, and if 0 or 100 it is 1.

Price line update

Moves from the previous line value toward the bar's applied price by the coefficient. With a coefficient of 0 the previous value is kept, and with 1 it equals the applied price.

Both rise and fall are 0

The internal RSI is treated as 50 and the following coefficient is set to 0. Division by zero is avoided and the previous line value is kept.

4

Situations for reading the display

The line is nearly flat

Indicator
When the internal RSI is near 50, following becomes small.
Cross-check
Compare the change in the applied price with the change in the line.
Check
Check in the Data Window whether the value is being updated.
Caution
Do not conclude a stopped feed or a future direction from a flat line alone.

The line approaches the price

Indicator
When the following coefficient is large, it approaches the applied price.
Cross-check
Check the Applied Price selection.
Check
Cross-check the applied price and the line on the same bar.
Caution
With a setting other than the close, it does not necessarily match the close.

The period was changed

Indicator
The smoothing conditions of the internal RSI change.
Cross-check
Compare the differences in the line on the same chart with the same applied price.
Check
Check the effect of the period change with the displayed values.
Caution
This does not mean that a larger period is always slower on every bar.
5

Steps for checking the display

1

Check the period and price

The defaults are Period = 14 and Applied Price = Close price.

2

Check the purple line

It is a line on the price chart. No separate window is added.

3

Cross-check with the price on the same bar

Read the line and the applied price in the Data Window.

4

Compare the change example

An example of 14→40. Check the difference in the line's response, and keep it distinct from recommended settings.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Adaptive_RSI.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'.

This product does not require DLL permission or enabling automated trading. When removed, this product's drawings are cleared.

7

Settings

There are 2 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.

RSI period

Name shown on screen
Period
Input name
InpPeriod
Default
14
Allowed range
Integer from 2 to 1000
Description
The period used to calculate the internal RSI. It is not a fixed moving-average period for the line.

Applied price

Name shown on screen
Applied Price
Input name
InpPrice
Default
Close
Allowed range
Close, Open, High, Low, Median, Typical, Weighted close
Description
The same price is used for the RSI calculation and as the price the line follows. Default is the close.
8

Usage specifications

Initial display

The first N bars are hidden, and the line is drawn from bar N+1. With the default of 14 it is the 15th bar; with 40 it is the 41st bar.

Forming bar

When the applied price of the forming bar changes, the internal RSI and the line also change. It is also recalculated when history is added or corrected.

Internal RSI is not displayed

The value of this product shown in the Data Window is also the price line. There is no function to display the internal RSI or the tracking coefficient as numbers.

Distinguishing the purpose

It is a display for observing how it tracks the price. Crossings with the line or its position alone do not guarantee future direction.

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

Calculated values are stored in buffers and shown as lines and bars. It does not place trade orders or issue alerts. It does not guarantee profit or market direction.

9

Troubleshooting and usage notes

No separate window appears

This product is a price line on the main chart. It is by design that no 0 to 100 RSI window appears.

No lines appear

Check the required history of N + 1 bars and the input ranges. Out of range, it does not start, and 1 line giving the reason in English appears in "Toolbox → Experts". The reason is not shown on the chart.

The line overlaps the price

When the following coefficient is close to 1, it approaches the applied price. If they overlap, check in the Data Window.

The applied price was changed

Do not compare by looking at the close alone. Check the calculation of the selected price, such as median or typical.

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

7 price types

Choose from close C, open O, high H, low L, median (H + L) ÷ 2, typical (H + L + C) ÷ 3 and weighted close (H + L + 2C) ÷ 4.

RSI and update formula

If the average fall is 0 and the average rise is positive, RSI = 100; if both are 0, 50. Otherwise RSI = 100 − 100 ÷ (1 + average rise ÷ average fall). Line = previous value + 2×|RSI÷100 − 0.5|×(applied price − previous value).

Initial values and the line

For the first N bars, each bar's applied price is kept internally, and from bar N + 1 the line is updated using the previous internal value. 1 line is drawn on the price chart in BlueViolet, solid, width 2.