MT5 indicators← Oscillators On Price 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

Oscillators On Price

Maps several oscillators onto a range built from the preceding highs and lows and displays them. Read the position within the range, not the price of the line.

Indicator name: Oscillators On PriceMetaTrader 5Main chart

Position within the range, not the height of the line

Position within the range, not the height of the lineBuild the high-low range from the preceding barsMap each indicator's value to a height within that rangeRead the position between levels / not a price target
Schematic diagram of how to read it. This is not an actual terminal screen.
1

The range uses only preceding barsUses the highs and lows of Box Bars bars. The current bar is not included in building the range.

2

Watch the units of the linesThe numbers of the displayed lines are values converted to price. The original oscillator values are not displayed directly.

3

Do not read by up and down aloneBecause the range also moves with a new bar, the line can move up even when the original value falls.

Default: 49-bar rangeShown on the main chartNotifications OFF 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
Range bars
InpBoxBars
49 → 30
Show RSI
InpShowRSI
true → false
Show CCI
InpShowCCI
true → false
Smoothing bars for position within high-low
InpLocationSlowing
1 → 3
Average of position within high-low
InpLocationAverage
0 → 3
Show MFI
InpShowMFI
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 settingsInpBoxBars = 49 / InpShowRSI = true / InpShowCCI = true / InpLocationSlowing = 1 / InpLocationAverage = 0 / InpShowMFI = false
Oscillators On Price default settings
Blue RSI, teal CCI, purple position within the high-low range, and silver level lines. These are not price target lines.
View the screen in detail at full size
Oscillators On Price default settings (actual size)
Settings change exampleInpBoxBars = 30 / InpShowRSI = false / InpShowCCI = false / InpLocationSlowing = 3 / InpLocationAverage = 3 / InpShowMFI = true
Oscillators On Price settings change example
Range of 30 bars. RSI and CCI are hidden, Slowing and the average of the position within high-low are set to 3, and MFI is shown. Orange is the average and gold is MFI.
View the screen in detail at full size
Oscillators On Price settings change example (actual size)

Example shown: M1. This is an example to explain the display. The example of changed settings is not a recommended value. Details can be checked in the full-size view. Also check the price scale of the main chart and the position of the candlesticks.

2

How to read it in 30 seconds

0, 50, 100%

The low, midpoint and high of the preceding range. A scale for reading the position of the lines.

24〜76%

24, 38, 50, 62 and 76% are scale marks for the indicator's position, not price targets.

Range and line movement

While the bar is forming, the range is fixed and the lines update. On a new bar, the range is also rebuilt.

3

What it measures

Even though they are drawn on the same chart as the current price, the lines represent a different calculation.

How the range is built

Builds the midpoint and width from the highest high and lowest low of the preceding Box Bars bars. With the default 49 bars, the levels and the 3 default lines are drawn from the 50th bar.

RSI, MFI and position within high-low

A height of 62% corresponds to a value of 62 for each. The calculation window for the position within high-low is a separate period that includes the current bar. MFI uses tick volume.

CCI conversion

50% is CCI 0. 62% is 8 times CCI Period, 76% about 17.3 times and 100% about 33.3 times. With the default 14, these are about 112, 243 and 467. ±100 does not coincide with the level lines.

Meaning of the colors

Blue is RSI, teal is CCI, purple is the position within high-low, the orange dashed line is its average and gold is MFI. Silver is the levels, with only 50% as a solid line. The colors distinguish the line types.

4

Situations for reading the display

The line moved up

Indicator
The line is higher than on the previous bar
Cross-check
Check the top and bottom of the range too
Check
Read the position relative to the same level
Caution
A rise in the line's price alone does not mean the indicator rose.

Everything overlaps

Indicator
Lines and levels at the same height
Cross-check
The preceding highs and lows
Check
Check whether the range width is 0
Caution
With a range width of 0, everything overlaps at the center regardless of the indicator values.

Position within high-low is at the center

Indicator
The purple line is at 50%
Cross-check
Range of the calculation window
Check
Also check the ranges summed by Slowing
Caution
When the sum of the ranges is 0, it is 50%. This differs from 100 in Stochastic Blend.

MFI is at the top

Indicator
Gold is at 100%
Cross-check
Downside flow
Check
Read it including price stalls
Caution
With no downside flow, it is 100. It does not guarantee a price rise.
5

Steps for checking the display

1

Choose the lines to show

First check the 3 default lines and the levels. When it gets crowded, turn off the lines you do not need with the inputs.

2

Compare with the levels

Read which levels the line is between. For CCI, the correspondence of values changes with the period.

3

Compare with the settings example

The example on the right changes several items. Check all the differing settings before comparing.

4

When using notifications

Covers new closed bars after notifications are turned ON. Read notifications as records of the calculation.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Oscillators_On_Price.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 16 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.

Range bars

Name shown on screen
Box Bars
Input name
InpBoxBars
Default
49
Allowed range
2〜1000
Description
The number of bars, using only preceding bars, that build the display range.

Show RSI

Name shown on screen
Show RSI
Input name
InpShowRSI
Default
true
Allowed range
true / false
Description
Shows the blue RSI line.

RSI period

Name shown on screen
RSI Period
Input name
InpRSIPeriod
Default
14
Allowed range
2〜1000
Description
Period for smoothing price changes.

RSI price

Name shown on screen
RSI Applied Price
Input name
InpRSIPrice
Default
Close
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
Price used for RSI.

Show CCI

Name shown on screen
Show CCI
Input name
InpShowCCI
Default
true
Allowed range
true / false
Description
Shows the teal CCI line.

CCI period

Name shown on screen
CCI Period
Input name
InpCCIPeriod
Default
14
Allowed range
2〜1000
Description
Period for the center and the mean deviation. Also used for conversion to the levels.

CCI price

Name shown on screen
CCI Applied Price
Input name
InpCCIPrice
Default
Close
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
Price used for CCI.

Show position within high-low

Name shown on screen
Show High-Low Location
Input name
InpShowLocation
Default
true
Allowed range
true / false
Description
Shows the purple line. If false, the average is also hidden.

Period of position within high-low

Name shown on screen
High-Low Location Period
Input name
InpLocationPeriod
Default
14
Allowed range
2〜1000
Description
The high-low window that includes the current bar.

Price for position within high-low

Name shown on screen
High-Low Location Applied Price
Input name
InpLocationPrice
Default
Close
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
The price whose position within the window is calculated.

Smoothing bars for position within high-low

Name shown on screen
High-Low Location Slowing
Input name
InpLocationSlowing
Default
1
Allowed range
1〜100
Description
The number of bars over which the numerator and the range are each summed before dividing. It is not a simple average of ratios.

Average of position within high-low

Name shown on screen
High-Low Location Average (0 = off)
Input name
InpLocationAverage
Default
0
Allowed range
0〜100
Description
0 means no average. 1 or more draws a simple average. The position within high-low must be shown.

Show MFI

Name shown on screen
Show MFI
Input name
InpShowMFI
Default
false
Allowed range
true / false
Description
Shows the gold line.

MFI period

Name shown on screen
MFI Period
Input name
InpMFIPeriod
Default
14
Allowed range
2〜1000
Description
The period over which the flow is summed using tick volume and the representative price.

Show levels

Name shown on screen
Show Levels
Input name
InpShowLevels
Default
true
Allowed range
true / false
Description
Shows the 7 level lines. This is separate from turning notification detection ON/OFF.

Closed-bar crossover notification

Name shown on screen
Alert on Closed-Bar Level Cross
Input name
InpAlertCross
Default
false
Allowed range
true / false
Description
Notifies crossings of the 5 levels by the 4 kinds of main lines being drawn. Average lines are not covered.
8

Usage specifications

The lines are not price targets

The lines and the 24 to 76% levels are not support/resistance or price targets. 24, 38, 62 and 76% also differ from 23.6, 38.2, 61.8 and 76.4%.

Values on the main chart

No separate window header appears. The line values handled in drawing buffers, such as those for RSI and CCI, and in the Data Window are values converted to price, not the original indicator values.

Notification target

It evaluates the drawn RSI, CCI, position within the high-low range and MFI against the 24, 38, 50, 62 and 76% levels. The average, 0% and 100% are excluded. Notification evaluation continues even if the levels are hidden.

Timing of notifications

The latest closed bar is evaluated when the next bar updates. The first calculation only records. Even if several bars advance because of a disconnection or similar, intermediate bars are not notified retroactively.

Equal values and notifications

While the value equals the level, the previous side is kept, and a notification is sent when it moves to the opposite side. Because of a range width of 0 or display rounding, a notification may be sent even if no crossing is visible on screen.

Start of the history

The RSI line uses a smoothing state carried over from the past, so if the start of the history changes, past values can also change.

Forming bar and recalculation

The value of the latest bar changes while it is forming. Past values may also be recalculated when history is added or corrected, so this is not a guarantee of no repainting.

Input checks

Inputs for unused lines and methods are also checked against the allowed range. Simply turning off the display does not cause invalid periods or similar values to be ignored.

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 inputs for the lines to show. With out-of-range inputs it does not start, and 1 line giving the reason in English appears in the Experts tab.

Details cannot be read

Open the actual-size view of the real screen and check the line colors and the vertical axis.

The value changed

The latest bar is forming. If past prices or the start of history change, values after recalculation can also change.

Lines extend beyond the screen

The vertical axis of the price chart does not expand automatically to fit this product's lines. If lines or levels go outside the display range, adjust the chart's vertical axis to check them.

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

Start of drawing

Levels start at bar Box Bars+1. RSI and MFI start at bar max(Box Bars, each period)+1. CCI starts at bar max(Box Bars, period−1)+1. The position within high-low starts at bar max(Box Bars, period+Slowing−2)+1. The average starts at bar max(Box Bars, period+Slowing+Average−3)+1.

Formula that maps the lines to price

With the range midpoint C and width R, RSI and MFI are C+(value−50)R/100, the position within high-low is C+(ratio−0.5)R, and CCI is C+CCI×(0.015/period)R. The range is rebuilt on every bar. Apart from rounding, the lines stay within the range.

Width 0 and differences from the standard

The position within high-low is 50% when the sum of the ranges over Slowing bars is 0. MFI is 100 when downside flow is 0. When the average decline is 0, RSI is 100 if there are gains and 50 if both are 0, which may differ from the MT5 standard. Including CCI, we do not guarantee the same values as the standard.

Notification text

Oscillators On Price: [line name] crossed above the [level] level ([symbol] [timeframe], [date and time]). For the downward direction, crossed below. If there are several, notifications are sent in line order and in ascending order of level. It uses the terminal's Alert and is also recorded in the Experts tab. There is no function for sending email or push notifications.