MT5 indicators← MTF Oscillator Panel 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

MTF Oscillator Panel

Selects one of RSI, CCI or ADX and lines up the recent values of several timeframes side by side. The right end is the chart's timeframe, and to its left are longer timeframes.

Indicator name: MTF Oscillator PanelMetaTrader 5Separate window

Compare the recent values of each timeframe, not the same time

Read the order of the timeframes from the window nameRight end = chart / left = higher timeframesThe right end of each section is the latest valueFrom the 2nd section onward, horizontal positions do not mean the same date and time
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Read the order of the timeframesThe window name is in left-to-right order. On H1, it is MN1, W1, D1, H4, H1.

2

Look at the right end of each sectionThe right end of each section is the forming bar of that timeframe.

3

Note the horizontal axisSections other than the right-end one do not correspond to the candlesticks above or the time scale below.

MT5 onlyRSI / CCI / ADXSide-by-side comparison panel
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
Oscillator
InpOscillator
RSI → ADX

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 settingsInpOscillator = RSI
MTF Oscillator Panel default settings
The default is RSI 14 and Close. On H1 there are 5 sections. In MN1 at the left end, the parts with insufficient history are blank, and not all 30 bars necessarily appear.
View the screen in detail at full size
MTF Oscillator Panel default settings (full size)
Example of changed settingsInpOscillator = ADX
MTF Oscillator Panel example of changed settings
The changed example switches only Oscillator to ADX. Blue is ADX, green is +DI and red is −DI. The ADX main line and the DI need different amounts of history before drawing starts.
View the screen in detail at full size
MTF Oscillator Panel example of changed settings (full size)

Example shown: 1-hour timeframe (H1). This is an example to explain the display. The changed settings are not recommended values. Details can be checked in the full-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 display range.

2

How to read it in 30 seconds

Default is RSI

Shows a blue line on a fixed 0–100 scale. 30 and 70 are reference lines for display.

Count the timeframes from the right

On an H1 chart, from the right: H1, H4, D1, W1, MN1. Timeframes shorter than H1 are not shown.

Blank is not a value of 0

No line appears where history is insufficient or in the gaps between sections. Longer timeframes need more bars of the original chart.

3

What it measures

Fits the recent N bars of each timeframe into sections of the same width. Do not read the same horizontal position in different sections as the same date and time.

Order within a section

Older on the left, newer on the right. The default 30 bars are 30 bars of each timeframe, so H1 and W1 cover periods of different lengths.

Timeframe selection

Starting with the chart itself, it takes the longer timeframes that can be built from M1, M5, M15, M30, H1, H4, D1, W1 and MN1. On a weekly or monthly chart, there is only 1 section for the chart itself.

Numbers in the heading

The latest value of the main line, and for ADX also the latest values of +DI and −DI. All of them are values of the chart timeframe at the right end, not numbers listing the latest value of each section.

Display width

With 30 bars, 7 sections and 2 bars between sections, the width is 222 bars. H1 has 5 sections and 158 bars. If it is made longer, the left side can go off-screen.

Open the guide to the required history

This is a calculated guide. It assumes a calendar from January 1, 2024 with bars at each timeframe's interval for 24 hours from Monday to Friday (no Saturday or Sunday bars; weekday market holidays are not considered). The number of bars changes with the broker's actual bars, holidays, the start position of the history and the number of days in a month. It is not a guarantee that the display always starts from this number of bars on the terminal.

RSI 14, 30-bar display (default) / the DI of ADX 14 uses the same number of bars

ChartM1M5M15M30H1H4D1W1MN1
M115 / 4476 / 221226 / 661451 / 1,321901 / 2,6413,601 / 10,56121,601 / 63,361——
M5—15 / 4446 / 13391 / 265181 / 529721 / 2,1134,321 / 12,67321,601 / 63,361—
M15——15 / 4433* / 8965* / 177241 / 7051,441 / 4,2257,201 / 21,12131,297 / 91,873
M30———15 / 4433* / 89121 / 353721 / 2,1133,601 / 10,56115,649 / 45,937
H1————15 / 4461 / 177361 / 1,0571,801 / 5,2817,825 / 22,969
H4—————15 / 4491 / 265451 / 1,3211,957 / 5,743
D1——————15 / 4476 / 221327 / 958
W1———————15 / 44—
MN1————————15 / 44

ADX 14 main line, 30-bar display (changed example shown)

ChartM1M5M15M30H1H4D1W1MN1
M129 / 58146 / 291436 / 871871 / 1,7411,741 / 3,4816,961 / 13,92141,761 / 83,521——
M5—29 / 5888 / 175175 / 349349 / 6971,393 / 2,7858,353 / 16,70541,761 / 83,521—
M15——29 / 5859 / 117117 / 233465 / 9292,785 / 5,56913,921 / 27,84160,481 / 121,153
M30———29 / 5859 / 117233 / 4651,393 / 2,7856,961 / 13,92130,241 / 60,577
H1————29 / 58117 / 233697 / 1,3933,481 / 6,96115,121 / 30,289
H4—————29 / 58175 / 349871 / 1,7413,781 / 7,573
D1——————29 / 58146 / 291631 / 1,263
W1———————29 / 58—
MN1————————29 / 58

Each cell is the number of chart bars needed for a value to appear at the latest position of the section / at all 30 bars. — means a timeframe not included in the default 7 sections. * is not the number of higher-timeframe bars needed for the calculation, but the number of chart bars needed to reach the side-by-side layout position. RSI starts once period+1 higher-timeframe bars are usable, CCI at period bars, and the ADX main line at 2×period+1 bars. For all 30 bars, these are period+30, period+29 and 2×period+30 bars respectively. For longer timeframes, 1 initial unused interval is added separately.

4

Situations for reading the display

The bars above and the lines do not match

Indicator
The 2nd and later sections
Cross-check
The recent values of the higher timeframes are packed toward the right end of the chart.
Check
Check the window name and the order from the right.
Caution
Do not interpret the values of that section by the times of the bars above.

Only the blue ADX line is short

Indicator
Where the blue line and the green and red lines start
Cross-check
With period 14, the ADX main line starts from the 29th usable bar and the DI from the 15th.
Check
Check how much history of the longer timeframes is available.
Caution
Do not read the absence of one line as a value of 0.

It disappears when scrolling into the past

Indicator
Panel at the latest position
Cross-check
It is always placed relative to the latest chart bar.
Check
Return the chart to the latest position.
Caution
This is not a product that repeats the panel over the whole history.
5

Steps for checking the display

1

Apply with the defaults

Check that the window name starts with MTF Panel, and check the order of the timeframes.

2

Read from the right end

First look at the section of the chart timeframe, then move left to the longer timeframes.

3

Choose the formula and the price

Switches between RSI, CCI and ADX. RSI Price and CCI Price take effect only with the matching formula.

4

Adjust the width and the history

When changing the number of bars, the number of sections or the spacing, also check the screen width and the required history.

6

Installation and checking the package contents

Included filePurpose / location
TRI_MTF_Oscillator_Panel.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 8 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.

Oscillator

Name shown on screen
Oscillator
Input name
InpOscillator
Default
RSI
Allowed range
RSI / CCI / ADX
Description
Select 1 type; it is applied to all sections. ADX smoothing is exponential.

Calculation period

Name shown on screen
Period
Input name
InpPeriod
Default
14
Allowed range
2〜500
Description
The number of bars of each timeframe. The same period is used in all sections.

RSI price

Name shown on screen
RSI Price
Input name
InpRsiPrice
Default
Close
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
Takes effect only for RSI. Selects from close, open, high, low, the middle of high and low, the average of high, low and close, and the weighted average with the close counted 2 times.

CCI price

Name shown on screen
CCI Price
Input name
InpCciPrice
Default
Typical
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
Takes effect only for CCI. Selects from close, open, high, low, the middle of high and low, the average of high, low and close, and the weighted average with the close counted 2 times.

Bars shown in 1 section

Name shown on screen
Bars Per Timeframe
Input name
InpBarsPerTimeframe
Default
30
Allowed range
10〜200
Description
The maximum number of bars placed in each section. If the required history is not available, part of it is blank.

Maximum number of sections

Name shown on screen
Number Of Timeframes
Input name
InpTimeframes
Default
7
Allowed range
1〜9
Description
Includes the chart's timeframe. On H1 the maximum is 5, so even 7 or 9 gives 5 sections.

Spacing between sections

Name shown on screen
Gap Between Timeframes
Input name
InpGap
Default
2
Allowed range
1〜20
Description
Specifies how many chart-bar positions are left empty.

Show DI lines

Name shown on screen
Show +DI and -DI
Input name
InpShowDI
Default
true
Allowed range
true / false
Description
Takes effect only for +DI and −DI of ADX. false is a setting that hides the lines, not one that deletes the calculated values.
8

Usage specifications

Higher timeframes are built from the current chart

It does not read the history of other timeframes directly; it groups the bars loaded in the current chart. There are no higher-timeframe bars older than the chart's history. For longer timeframes, the section containing the chart's first bar is not used. In calculations for the same timeframe, the first bar is also used.

Day, week and month boundaries

In server time, the boundary is 00:00 for daily bars, Sunday 00:00 for weekly bars and 00:00 on the 1st of the month for monthly bars. Sections without bars are not filled with new bars. If there are bars on Sunday, that day is also counted as 1 daily bar.

Results change with the history

The calculation is redone when the chart's history is added or corrected, or when the oldest bar or the settings change. For recursively calculated EMA, SMMA, RSI and ADX, past values and colors may also change. It is not guaranteed that past displays remain unchanged under all conditions.

Forming sections

The right end of each section is the forming higher-timeframe bar. Its value changes during that bar, and when a new chart bar forms, the position of the whole panel also moves.

When values start appearing

With the default RSI14, values start from the 15th usable higher-timeframe bar, and 44 bars are needed for all 30. For longer timeframes, the first unused section is added as well. It also cannot be displayed if the chart bars do not reach the placement position.

Difference between this RSI and the standard indicator

In this product's RSI, when the average loss is 0, the value is 100 if there is an average gain, and 50 if the gain is also 0. Under this condition, the value may differ from the MT5 standard RSI. Do not treat it as equal to the standard RSI on every bar.

Keep unused inputs within range too

CCI Price is not used in the calculation with RSI, RSI Price is not used with CCI, and neither price is used with ADX. Show +DI and -DI has no effect with RSI or CCI, but the allowed range of each input is still checked.

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

This product is for displaying calculation results on the screen. It does not guarantee future price movement.

9

Troubleshooting and usage notes

Longer timeframes are blank

There are not enough higher-timeframe bars that can be built from the chart's bars. Check the required-history table. Even as a guide, showing the latest value of the D1 RSI 14 on M1 requires 21,601 bars with weekday 24-hour bars.

A shorter timeframe you want to see is not shown

Timeframes shorter than the chart are not shown. Place it on a chart of the shortest timeframe you want to see.

CCI does not become 0 even in flat periods

Even in a calculation window with no price movement, the value can be around ±66.67 because of rounding in the last digit of the average calculation. This is a property of CCI, in which small calculation errors become visible values.

Cannot start

Check the input ranges. If startup is refused, the reason appears as 1 line in English on the MT5 Experts tab. No panel with the reason appears on the chart. Inputs that are not used are also range-checked.

It does not match other charts

Check the timeframe, the inputs, the start of the history and how the intervals are split. Even an indicator with the same name does not match if it differs in whether values are interim or final, or in the history used for the calculation.

The required history is insufficient

Calculating longer timeframes needs many chart bars. Check the "Max bars in chart" limit and the history actually loaded. Raising the limit alone does not necessarily bring in all history that has not yet been downloaded.

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

RSI and CCI calculation

RSI smooths the averages of up moves and down moves over the period. CCI divides the difference between the selected price and its period average by mean absolute deviation × 0.015. If the deviation is exactly 0, the value is 0. CCI 14 starts from the 14th usable bar.

ADX and DI

+DI and −DI divide each bar's directional range by the true range and smooth the result exponentially, and ADX exponentially smooths the ratio of the difference between the two. With period n, DI is shown from bar n+1 and ADX from bar 2n+1.

Reference lines and scale

RSI has a fixed 0–100 scale with 30 and 70, CCI has reference lines at −100, 0 and 100, and ADX at 20. CCI and ADX use automatic scales. Do not read the reference lines as a forecast of future movement.

Identifying data and timeframes

A dedicated value row that identifies the timeframe of each section is not shown in the window heading or in the Data Window. Check the timeframes by their left-to-right order in the window name.

Differences from standard indicators on another timeframe

The first interval of each higher timeframe is not used, and the calculation is made from the current chart's history. For RSI and ADX, the values can differ from the standard indicator on another chart when the initial calculation state differs.