MT5 indicators← Stochastic Blend 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

Stochastic Blend

Combines up to 5 high-low ratios with different periods using weights into one main line from 0 to 100. A moving average of the combined value can also be shown.

Indicator name: Stochastic BlendMetaTrader 5Separate window

Combine up to 5 periods into 1 line

Combine up to 5 periods into 1 lineFind the ratio of the close position for each periodMultiply by the weights, sum, and divide by the sum of the weightsBlue main line + orange average if needed
Schematic diagram of how to read it. This is not an actual terminal screen.
1

The main line is the combined valueThe blue line is the combination of %K from up to 5 slots. It does not draw each slot as 5 separate lines.

2

Weight 0 means unusedThe slot is excluded from the calculation and the required history, but the input range of its period is still checked.

3

100 at width 0A slot whose total range is 0 is set to 100. Do not interpret 100 while the price is stopped as upward strength.

Up to 5 slotsThe sum of weights can be other than 1Vertical axis 0 to 100
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
Slot 1 weight
InpWeight1
0.05 → 0.25
Slot 2 period
InpPeriod2
21 → 12
Slot 2 weight
InpWeight2
0.1 → 0.65
Slot 3 period
InpPeriod3
34 → 21
Slot 3 weight
InpWeight3
0.16 → 0.1
Slot 4 period
InpPeriod4
55 → 34
Slot 4 weight
InpWeight4
0.26 → 0
Slot 5 period
InpPeriod5
89 → 52
Slot 5 weight
InpWeight5
0.43 → 0
Average period after combination
InpAveragePeriod
15 → 13

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 settingsInpWeight1 = 0.05 / InpPeriod2 = 21 / InpWeight2 = 0.1 / InpPeriod3 = 34 / InpWeight3 = 0.16 / InpPeriod4 = 55 / InpWeight4 = 0.26 / InpPeriod5 = 89 / InpWeight5 = 0.43 / InpAveragePeriod = 15
Stochastic Blend default settings
Periods 8, 21, 34, 55 and 89 combined with 5 weights. Orange is the SMMA 15 of the main line.
View the screen in detail at full size
Stochastic Blend default settings (actual size)
Settings change exampleInpWeight1 = 0.25 / InpPeriod2 = 12 / InpWeight2 = 0.65 / InpPeriod3 = 21 / InpWeight3 = 0.1 / InpPeriod4 = 34 / InpWeight4 = 0 / InpPeriod5 = 52 / InpWeight5 = 0 / InpAveragePeriod = 13
Stochastic Blend settings change example
Combines 3 slots with periods 8, 12 and 21 using weights 0.25, 0.65 and 0.10, and changes the average to 13. The remaining 2 slots have weight 0.
View the screen in detail at full size
Stochastic Blend 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

Blue main line

Combines, by weight, the ratio of the close position within each calculation window.

The orange average

A moving average of the combined main line. It is not a combination of the average lines of each slot.

The heading alone is not enough

The periods are shown but the weights are not. Check differences in weights on the inputs screen.

3

What it measures

Adjust the proportion of long and short calculation windows with weights, and read the result as 1 combined value.

Ratio of each slot

Sums close−window low over Slowing bars, divides by the sum of window high−window low, and multiplies by 100. It does not take a simple average of the individual ratios.

Combination

Sums value×weight for each valid slot and divides by the sum of the weights. The sum of the weights does not have to be 1.

Start of drawing

The main line starts at bar (largest period among valid slots)+Slowing−1, and the average Average Period−1 bars after that. By default, the 91st and 105th bars.

Averaging methods

SMMA and SMA start from the simple average of the first specified number of bars, and LWMA from a weighted average. EMA holds state from the start of the main line, but it starts drawing at the same point as the other methods.

4

Situations for reading the display

Give short periods more weight

Indicator
Increase the weight of short-period slots
Cross-check
Proportion relative to the other slots
Check
Record the settings together
Caution
Even if only the weights differ, the window name is the same.

100 while the price is stopped

Indicator
100 from a slot with width 0
Cross-check
Price Field and calculation window length
Check
Distinguish stopped sections
Caution
The line does not necessarily rise steadily.

Only the average is missing

Indicator
The main line is there
Cross-check
Average Period
Check
If 0 it is hidden; if 1 or more, check the required history
Caution
EMA also waits for the specified number of bars before drawing.

Lines at the edge are hard to see

Indicator
Value 0 or 100
Cross-check
Frame of the vertical axis
Check
Check at actual size
Caution
It can look as if it overlaps the frame.
5

Steps for checking the display

1

Check periods and weights

Decide which of the 5 slots to use. Slots with weight 0 are not included in the calculation.

2

Distinguish the main line from the average

Blue is the combined value; orange is its later-stage average.

3

Check the change example

Check all setting differences. The example uses only 3 slots.

4

Align the history

With different history starts, differences can remain in the EMA and SMMA averages.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Stochastic_Blend.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 14 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.

Price used for the calculation window

Name shown on screen
Price Field
Input name
InpPriceField
Default
Low/High
Allowed range
Low/High / Close/Close
Description
Choose the high-low range or the range of the maximum and minimum closes.

Number of bars summed to build the ratio

Name shown on screen
Slowing
Input name
InpSlowing
Default
3
Allowed range
1〜1000
Description
Common to all slots. Sums the numerator and the denominator separately before dividing.

Slot 1 period

Name shown on screen
Period 1
Input name
InpPeriod1
Default
8
Allowed range
2〜500
Description
The high-low or close calculation window for that slot. The range is checked even with weight 0.

Slot 1 weight

Name shown on screen
Weight 1 (0 = off)
Input name
InpWeight1
Default
0.05
Allowed range
A finite value from 0 to 100
Description
0 means unused. At least 1 slot among all slots must have a positive weight.

Slot 2 period

Name shown on screen
Period 2
Input name
InpPeriod2
Default
21
Allowed range
2〜500
Description
The high-low or close calculation window for that slot. The range is checked even with weight 0.

Slot 2 weight

Name shown on screen
Weight 2 (0 = off)
Input name
InpWeight2
Default
0.1
Allowed range
A finite value from 0 to 100
Description
0 means unused. At least 1 slot among all slots must have a positive weight.

Slot 3 period

Name shown on screen
Period 3
Input name
InpPeriod3
Default
34
Allowed range
2〜500
Description
The high-low or close calculation window for that slot. The range is checked even with weight 0.

Slot 3 weight

Name shown on screen
Weight 3 (0 = off)
Input name
InpWeight3
Default
0.16
Allowed range
A finite value from 0 to 100
Description
0 means unused. At least 1 slot among all slots must have a positive weight.

Slot 4 period

Name shown on screen
Period 4
Input name
InpPeriod4
Default
55
Allowed range
2〜500
Description
The high-low or close calculation window for that slot. The range is checked even with weight 0.

Slot 4 weight

Name shown on screen
Weight 4 (0 = off)
Input name
InpWeight4
Default
0.26
Allowed range
A finite value from 0 to 100
Description
0 means unused. At least 1 slot among all slots must have a positive weight.

Slot 5 period

Name shown on screen
Period 5
Input name
InpPeriod5
Default
89
Allowed range
2〜500
Description
The high-low or close calculation window for that slot. The range is checked even with weight 0.

Slot 5 weight

Name shown on screen
Weight 5 (0 = off)
Input name
InpWeight5
Default
0.43
Allowed range
A finite value from 0 to 100
Description
0 means unused. At least 1 slot among all slots must have a positive weight.

Average period after combination

Name shown on screen
Average Period (0 = off)
Input name
InpAveragePeriod
Default
15
Allowed range
0〜1000
Description
0 means no average line.

Averaging methods

Name shown on screen
Average Method
Input name
InpAverageMethod
Default
SMMA
Allowed range
SMA / EMA / SMMA / LWMA
Description
Moving average method applied to the combined main line.
8

Usage specifications

Sections without price movement

Starting with the short-period frames, the sum of ranges becomes 0 and the value moves toward 100, but the line does not necessarily keep rising. If the flat section lasts at least the maximum period of the active frames + Slowing − 1 bars, all frames become 100. With the defaults this is 91 bars. 100 does not indicate the strength of a rise.

What “flat” means

Low/High distinguishes the case where bars continue with the same high and low, and Close/Close the case where bars continue with only the same close.

Handling of weight 0

That frame is not included in the calculation or in the number of bars for the first value. However, its period must still be within 2 to 500. It cannot start if all frames have weight 0.

The 0 in the header and whether a line exists

Even if 0.00 appears in the separate window header, there may be no value because the required history is insufficient. To distinguish this from a valid value of 0, also check whether the line exists and the bar at which drawing starts.

History and the average

The EMA/SMMA average depends on the start of the history and may differ by a few points near where drawing begins. The main line and the SMA/LWMA average are determined by the required finite window.

Levels and notifications

The silver 20, 50 and 80 are position scale lines. 0 and 100 overlap the frame. There are no marks or notifications.

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.

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

Formula

For each slot, 100×Σ(close−window low)/Σ(window high−window low). A denominator of 0 gives 100. The main line is Σ(weight×value of each slot)/Σweight, and the result is not clipped. Rounding differences smaller than the displayed digits can occur.

Relation to the standard

The default main line is defined as the average of 5 lines with Low/High, Slowing 3 and periods 8/21/34/55/89, weighted 0.05/0.10/0.16/0.26/0.43. It does not guarantee an exact numerical match with a standard indicator.

Start and recalculation

The initial value of the average differs by method. Values on the forming bar are updated, and if past history changes, values are recalculated. The longer the periods specified, the more bars are needed for display.