MT5 indicators← Multi-Period Oscillator 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

Multi-Period Oscillator

Combines values calculated with 4 periods on the same timeframe into 1 line and shows the difference from a smoothed line as bars. The color of the bars and whether they are positive or negative are separate information.

Indicator name: Multi-Period OscillatorMetaTrader 5Separate window

Read the difference between the 2 lines separately as bar height and color

Blue = average of 4 periods, orange = smoothed lineBar color is decided by "the difference from the previous bar"
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Blue lineThe average over 4 periods, centered at 0. It does not refer to multiple timeframes.

2

Orange lineThe blue line smoothed with T3. It can go beyond the range of the blue line.

3

Bars and dotsBars are blue−orange. Dots record closed bars where the above/below relation switched.

Same timeframe, 4 periodsBar color ≠ sign of the differenceDots hidden by default
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
Calculation base
InpBase
DeMarker → RSI
First period
InpFirstPeriod
24 → 16
Show crossover dots
InpShowCrossMarks
false → true

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 settingsInpBase = DeMarker / InpFirstPeriod = 24 / InpShowCrossMarks = false
Multi-Period Oscillator default settings
Shows the average of DeMarker over 24, 28, 32 and 36 bars, a smoothed line and difference bars.
View the screen in detail at full size
Multi-Period Oscillator default settings (actual size)
Settings change exampleInpBase = RSI / InpFirstPeriod = 16 / InpShowCrossMarks = true
Multi-Period Oscillator settings change example
The base is changed to RSI and the first period to 16, and crossover dots are shown. If scale labels overlap, check the line positions and the actual-size image.
View the screen in detail at full size
Multi-Period Oscillator 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

Read the periods

The defaults are 24, 28, 32 and 36 bars. Period Step is the increment in number of bars.

Separate the colors

Green means the difference is larger than on the previous bar; red means equal or smaller. Positive bars also turn red in that case.

Read the dots

Light blue records the blue line moving to the upper side, and magenta records it moving to the lower side. There is no notification function.

3

What it measures

Shows the relation between the 4-period average and the line that smooths that average.

Multi-period line

Averages DeMarker×100, or RSI, over 4 periods and subtracts 50. The calculated range is −50 to +50, with 0 at the center.

DeMarker definition

Averages, over the period, the amount by which the high rose from the previous bar and the amount by which the low fell, and finds the share of the former. A calculation window with neither is 0.5.

Smoothed line and bars

The T3 period is First Period and the coefficient is T3 Factor. Bars are multi-period line−smoothed line. The smoothed line can go outside −50 to +50.

4 level lines

+20, +10, −10 and −20 are scale marks for the line. For the RSI average they correspond to 70, 60, 40 and 30, and they are not reference values for the size of the bar difference. There is no 0 level line.

4

Situations for reading the display

Positive bars are red

Indicator
The bar is above 0.
Cross-check
Compare its height with that of the previous bar.
Check
It is red because the difference is smaller than or equal to the previous one.
Caution
Do not decide the sign of the difference from the color.

The 2 lines touch

Indicator
Look at bars where the line values are equal.
Cross-check
Check which line was above just before.
Check
If equal, the state is kept. If it returns to the original side, there is no dot; a dot appears on the closed bar where it moved to the opposite side.
Caution
Touching alone does not produce a dot.

The price does not move

Indicator
Old changes leave the period's calculation window.
Cross-check
Read how blue and orange each move.
Check
The difference shrinks as the smoothed line catches up.
Caution
Depending on the settings, a difference too small to see can decide the color and dots.
5

Steps for checking the display

1

Check the base and the periods

Check Base, First Period and Period Step. RSI Applied Price affects the values when RSI is selected.

2

Look at the 2 lines

Read whether blue or orange is above and match it to the sign of the bars.

3

Compare consecutive bars

Read the bar color as a comparison of the difference with that of the previous bar.

4

Check dots on closed bars

Only when Show Cross Marks is enabled are changes in the above/below relation on closed bars recorded.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Multi_Period_Oscillator.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 7 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.

Calculation base

English item name
Base
Input name
InpBase
Default
DeMarker
Allowed range
DeMarker / RSI
Description
Choose the indicator calculated over the 4 periods.

First period

English item name
First Period
Input name
InpFirstPeriod
Default
24
Allowed range
2〜1000
Description
The shortest period. The T3 period also uses this value.

Period step

English item name
Period Step
Input name
InpPeriodStep
Default
4
Allowed range
0〜100
Description
The 4 periods are First Period, +step, +2 steps and +3 steps. With 0, it averages 4 identical periods.

RSI applied price

English item name
RSI Applied Price
Input name
InpRSIPrice
Default
Weighted
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
The default Weighted is (high+low+close×2)÷4. With DeMarker it does not affect the values, but the allowed range is still checked.

T3 factor

English item name
T3 Factor (0 to 1)
Input name
InpT3Factor
Default
0.618
Allowed range
A finite value from 0 to 1
Description
Changes the shape of the smoothed line. With 0, it becomes a 3rd-stage exponential smoothing and does not go beyond the range of the blue line's values up to that point.

Show difference bars

English item name
Show Histogram
Input name
InpShowHistogram
Default
true
Allowed range
true / false
Description
Shows multi-period line−smoothed line as bars.

Show crossover dots

English item name
Show Cross Marks
Input name
InpShowCrossMarks
Default
false
Allowed range
true / false
Description
Shows dots on closed bars where the above/below relation switched. Dots are not placed on the latest bar.
8

Usage specifications

Start of drawing

Lines and bars start from bar First Period + 3×Period Step + 1. The default is bar 37. The first point can appear 2 bars later, at bar 39.

Latest bar and points

Values and colors of the forming bar change. When the next bar starts, a point may be added to what was the latest bar. If the RSI applied price is Open, that bar's value does not change during the bar.

Effect of history

RSI and T3 carry over previous values. If the first loaded bar changes, values, colors and points on the older side may change.

Display and header

The vertical axis is automatic. The default header shows the bars, smoothed line and multi-period line, in that order. Point values are not shown in the header. Coefficients are not shown in the window name, so check them in the input fields.

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

Nothing is displayed

Check the required number of history bars and the input ranges. With out-of-range inputs it does not calculate, and the reason appears in English in the Experts tab.

Levels and scale labels overlap

When the edge of the automatic scale is close to a level, the text can overlap. Adjust the window height or the display range.

The smoothed line overshoots

This is a property of T3. Even when the blue line is constant, orange can overshoot and a dot can appear.

Comparing with standard indicators

This product does not guarantee equal values with the MT5 standard. Equality of DeMarker with the standard has not been verified. For RSI as well, align the price and initial conditions and distinguish it from the standard.

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

4 periods and calculation order

It is the average of periods P, P+S, P+2S and P+3S. DeMarker is the ratio of the simple averages of high rises and low falls. RSI uses the average of the first P changes as its initial value and thereafter carries over (P−1)/P of the previous average. If the average decline is 0, it is 100 if there are gains and 50 if both are 0.

Smoothing and color

T3 combines 6 stages of exponential smoothing. All stages are initialized with the first value. The first bar is almost 0 and red. After that, a bar is green if the difference is greater than the previous difference, and red otherwise.

Dot conditions

If the difference of the lines is positive, the state is upper; if negative, lower; if equal, the previous state is kept. A change from lower to upper is light blue, and the reverse is magenta. Dots are drawn at the height of the smoothed line, and only closed bars are covered.

Difference from the standard RSI

This product gives 100 when only the average decline is 0 and 50 when both are 0. The MT5 standard RSI on close returns different values in some sections. We do not treat other applied prices as uniformly having the same difference.