MT5 indicators← Oscillator Slope Histogram 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

Oscillator Slope Histogram

Read with bars how much the selected calculated value changed per 1 bar.

Indicator name: Oscillator Slope HistogramMetaTrader 5Separate window

Read the height and the color of the bars by separate rules

(current value − value Span bars earlier) ÷ SpanGreen: beyond the positive threshold; silver: within the threshold; red: beyond the negative threshold
Schematic diagram of how to read it. This is not an actual terminal screen.
1

HeightThe difference between the current value and the value Span bars earlier, divided by Span.

2

ColorGreen when it exceeds Threshold, red when it exceeds it on the negative side, and silver in between.

3

ScaleWhen you change the base, period or Span, also check the threshold and the vertical axis.

2 base typesDotted line at 0No notifications
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
Base / Oscillator Base
InpBase
CCI → %R LSMA
Base period / Oscillator Period
InpOscPeriod
14 → 10
Difference interval / Span (bars)
InpSpan
4 → 3
Color threshold / Threshold (+/-)
InpThreshold
30 → 2.3

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 = CCI / InpOscPeriod = 14 / InpSpan = 4 / InpThreshold = 30
Oscillator Slope Histogram default settings
The default is CCI. The 3-color bars extend from 0, and the silver dotted line marks the position of 0.
View the screen in detail at full size
Oscillator Slope Histogram default settings (actual size)
Example with changed settingsInpBase = %R LSMA / InpOscPeriod = 10 / InpSpan = 3 / InpThreshold = 2.3
Oscillator Slope Histogram example with changed settings
An example changed to %R LSMA, with the period, Span and Threshold also changed. The scale of the bars has changed.
View the screen in detail at full size
Oscillator Slope Histogram example with changed settings (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

What is changing

First check whether it is CCI or %R LSMA. The bars are not the base value itself.

Color boundary

Exactly ±Threshold is also silver. Do not decide the bar value from the color alone.

Latest bar

On the forming bar, both the height and the color change.

3

What it measures

The unit is the change per 1 bar on the base's scale. It is a different number from the slope of the line on screen.

Calculation of the change

Bar = (current base value − base value Span bars earlier) ÷ Span. This equals the average of the last Span 1-bar differences.

CCI

The difference between the selected price and its period average is divided by mean absolute deviation × 0.015. If all prices in the calculation window are the same, it is 0.

%R LSMA

Expresses the position of the close relative to the high and low within the period as −100 to 0, and smooths it with an LSMA of the same period. LSMA is 3×LWMA−2×SMA.

Bar color

Green if the value is greater than Threshold, red if it is less than −Threshold, and silver otherwise. The ±Threshold lines are not drawn.

4

Situations for reading the display

The bar turned silver

Indicator
The value is inside ±Threshold.
Cross-check
Tell the 0 line apart from the tip of the bar.
Check
Read it as a record that the change is within the threshold.
Caution
Silver does not necessarily mean the value is 0.

The base was changed

Indicator
The bar height and the vertical axis have changed.
Cross-check
Check the period, Span and Threshold.
Check
Review the threshold to match the scale of the new base.
Caution
Do not apply the default 30 unchanged to every base.

The price stopped moving

Indicator
Bars may remain for a while.
Cross-check
The base's calculation window and the value Span bars earlier still remain.
Check
Distinguish the change that lasts until the calculation window has fully turned over.
Caution
On the first bar where the price moves again, the bar can be large.
5

Steps for checking the display

1

Show the defaults

Look at the CCI bars and the silver dotted line at 0.

2

Separate color from height

Silver is within the threshold; green and red are outside it. The dotted line at 0 is also silver, so tell them apart by shape.

3

Change the base

%R LSMA does not use Applied Price. Check the period, Span and threshold together.

4

Check the inputs

Check Applied Price, which does not appear in the window name, and the fine digits of Threshold in the Inputs tab.

6

Installation and checking the package contents

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

Base

English item name
Oscillator Base
Input name
InpBase
Default
CCI
Allowed range
CCI / %R LSMA
Description
Choose CCI or smoothed %R.

Base period

English item name
Oscillator Period
Input name
InpOscPeriod
Default
14
Allowed range
CCI: 2–500; %R LSMA: 1–500
Description
With %R LSMA, the same period is used for both %R and the smoothing.

Calculation price

English item name
Applied Price (CCI)
Input name
InpPrice
Default
Close
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
Used only for CCI. Even with %R LSMA, it is checked that the type is valid.

Difference interval

English item name
Span (bars)
Input name
InpSpan
Default
4
Allowed range
1〜500
Description
How many bars back to compare with. The difference is divided by this number of bars.

Color threshold

English item name
Threshold (+/-)
Input name
InpThreshold
Default
30
Allowed range
Finite value 0–100000
Description
Used on both the positive and negative sides. With 0, even tiny rounding differences can be colored.
8

Usage specifications

Differences in scale

CCI has no fixed range common to all settings. %R is −100 to 0, but values after LSMA can go outside it. The bar scale also changes with the base, period and Span.

When Threshold is set to 0

Only bars whose value is exactly 0 are silver. If you do not want to distinguish rounding differences, consider a small positive threshold.

Forming bar and display rounding

The latest bar changes during the bar. The header shows 2 decimal places, but the color is determined by the value before rounding.

History required for calculation

The calculation is designed to use finite windows. If the same bars and the required window are available, bars before that do not enter the formula. Near the start there are as many empty bars as are needed for the calculation.

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

The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.

9

Troubleshooting and usage notes

Nothing appears with CCI and period 1

The CCI period must be 2 or more. %R LSMA can be used from 1.

Almost all bars are silver

If you changed the base, also check Threshold. %R LSMA does not always become silver.

Nothing is drawn

Check the required history and the input ranges. For rejected settings, a diagnostic message in English appears in the Experts tab.

Small numbers appear in exponential form in the name

A small Threshold is shown in exponential form. Check the original value in the Inputs tab.

It is hard to see around 0

The dotted line at 0 and the bars within the threshold are the same silver color. Zoom in and tell them apart by the shape of the dotted line and the bars.

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

Counting the oldest bar as bar 1, let K = Oscillator Period and S = Span. Bars are drawn from bar K+S for CCI and from bar 2K−1+S for %R LSMA. Earlier bars are empty.

Sections where the value does not move

For CCI, until K−1+S bars have passed from the bar where the selected price became constant, and for %R LSMA, until 2K−2+S bars have passed from the bar where the high and low began to stay at the same value, the bars are not necessarily 0. After that, the bars are 0 while the stopped state continues.

Window name and display

The window name shows the base, period, Span and Threshold. Threshold is shown with 6 significant digits, and Applied Price does not appear in the name. Tiny values cannot be distinguished from the rounded display in the heading alone.

Base value of 0

When the prices in the CCI calculation window are flat, and when the %R high − low is 0, the respective base value is set to 0. A %R of 0 does not directly mean 0 after smoothing.