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

Combines the calculated values of up to 5 slots by weight, and colors the space between that and its average line.

Indicator name: Stochastic Blend FillMetaTrader 5Separate window

Read the 2 lines and the coloring between them

Blue: Blend; orange: Average; color in between: record of which is above
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Blue BlendThe weighted combination of the %K of each slot.

2

Orange AverageThe average of Blend. The method and period can be selected.

3

Green and red bandGreen if blue is above orange, red if below. Not filled when the values are the same.

Up to 5 slotsWeight 0 excludes a slotVertical axis 0–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
Price field / Price Field
InpPriceField
Low/High → Close/Close
Summing period / Slowing
InpSlowing
3 → 5
Slot 1 period / Period 1
InpPeriod1
8 → 10
Slot 1 weight / Weight 1 (0 = off)
InpWeight1
0.05 → 1
Slot 2 period / Period 2
InpPeriod2
21 → 30
Slot 2 weight / Weight 2 (0 = off)
InpWeight2
0.1 → 2
Slot 3 weight / Weight 3 (0 = off)
InpWeight3
0.16 → 0
Slot 4 weight / Weight 4 (0 = off)
InpWeight4
0.26 → 0
Slot 5 weight / Weight 5 (0 = off)
InpWeight5
0.43 → 0
Average period / Average Period (0 = off)
InpAveragePeriod
15 → 7
Average method / Average Method
InpAverageMethod
SMMA → EMA

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 settingsInpPriceField = Low/High / InpSlowing = 3 / InpPeriod1 = 8 / InpWeight1 = 0.05 / InpPeriod2 = 21 / InpWeight2 = 0.1 / InpWeight3 = 0.16 / InpWeight4 = 0.26 / InpWeight5 = 0.43 / InpAveragePeriod = 15 / InpAverageMethod = SMMA
Stochastic Blend Fill default settings
Combines the default 5 frames. Blue is Blend, the orange dashed line is Average, and the space between them is drawn in green and red.
View the screen in detail at full size
Stochastic Blend Fill default settings (actual size)
Example with changed settingsInpPriceField = Close/Close / InpSlowing = 5 / InpPeriod1 = 10 / InpWeight1 = 1 / InpPeriod2 = 30 / InpWeight2 = 2 / InpWeight3 = 0 / InpWeight4 = 0 / InpWeight5 = 0 / InpAveragePeriod = 7 / InpAverageMethod = EMA
Stochastic Blend Fill example with changed settings
Changed to a close-only price field and a blend of 2 slots. The periods, weights, Slowing and average are changed.
View the screen in detail at full size
Stochastic Blend Fill 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

Tell the lines apart

The thick blue solid line is Blend, and the orange dashed line is Average.

Look at the band

The band is a record of which line is above. It is not a separate, independent calculated value.

Check the average

With period 0, the average and band are not drawn; with period 1, the band does not appear.

3

What it measures

The weights are used after dividing by their total. The total does not need to be 1, and slots with the same period can also be specified.

%K of each slot

For each bar, close − lowest low in the period and highest high − lowest low in the period are each summed over Slowing bars, and their ratio is multiplied by 100. If the sum of the ranges is 0, it is 100.

Blended value

The sum of value × weight for each active slot is divided by the sum of the active weights. Slots with weight 0 are not used.

Average line

Applies one of SMA, EMA, SMMA or LWMA to Blend. Not drawn with period 0.

Filled sections

Green if Blend > Average, red if Blend < Average. Not filled when equal, when there is no average, or while the average is still being prepared.

4

Situations for reading the display

The band is not visible

Indicator
There is no average, or the 2 lines are equal or very close.
Cross-check
Check Average Period and the distance between the lines.
Check
Distinguish between not being filled because the values are equal and being hidden by the lines.
Caution
Do not read the presence or absence of the band as the strength or direction of price movement.

The weights were changed

Indicator
The shape of the blue line has changed.
Cross-check
Check the active slots and the ratio of their weights.
Check
A slot with a larger weight contributes more strongly to the blended value.
Caution
The weights do not appear in the window name, so check the inputs.

It stopped near 100

Indicator
The value may stay constant in sections where the price does not move.
Cross-check
Also check the definition that a range of 0 gives 100.
Check
Read the average approaching and the main line separately.
Caution
Do not treat a constant value or the disappearance of the band as a special timing.
5

Steps for checking the display

1

Show the defaults

Check the 2 lines, blue and orange, and the green and red band between them.

2

Organize the slots

Set the weight of unneeded slots to 0, and check the periods and weights of the remaining slots.

3

Change the average

Change the method and period, and check where the average starts and how the band is shown.

4

Cross-check the name with the inputs

Read HL / CC, the active periods, Slowing and the average from the window name, and check the weights in the Inputs tab.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Stochastic_Blend_Fill.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. The English item names and input names defined in the source are shown together.

Price field

English item name
Price Field
Input name
InpPriceField
Default
Low/High
Allowed range
Low/High / Close/Close
Description
Choose whether the highest and lowest values are taken from highs and lows, or from closes only.

Summing period

English item name
Slowing
Input name
InpSlowing
Default
3
Allowed range
1〜1000
Description
The number of bars over which the numerator and range of each slot are summed.

Slot 1 period

English item name
Period 1
Input name
InpPeriod1
Default
8
Allowed range
2〜500
Description
The same period can also be specified for another slot. The range is checked even for slots with weight 0.

Slot 1 weight

English item name
Weight 1 (0 = off)
Input name
InpWeight1
Default
0.05
Allowed range
Finite value 0–100
Description
0 removes this slot from the calculation. At least 1 slot needs a positive weight.

Slot 2 period

English item name
Period 2
Input name
InpPeriod2
Default
21
Allowed range
2〜500
Description
The same period can also be specified for another slot. The range is checked even for slots with weight 0.

Slot 2 weight

English item name
Weight 2 (0 = off)
Input name
InpWeight2
Default
0.1
Allowed range
Finite value 0–100
Description
0 removes this slot from the calculation. At least 1 slot needs a positive weight.

Slot 3 period

English item name
Period 3
Input name
InpPeriod3
Default
34
Allowed range
2〜500
Description
The same period can also be specified for another slot. The range is checked even for slots with weight 0.

Slot 3 weight

English item name
Weight 3 (0 = off)
Input name
InpWeight3
Default
0.16
Allowed range
Finite value 0–100
Description
0 removes this slot from the calculation. At least 1 slot needs a positive weight.

Slot 4 period

English item name
Period 4
Input name
InpPeriod4
Default
55
Allowed range
2〜500
Description
The same period can also be specified for another slot. The range is checked even for slots with weight 0.

Slot 4 weight

English item name
Weight 4 (0 = off)
Input name
InpWeight4
Default
0.26
Allowed range
Finite value 0–100
Description
0 removes this slot from the calculation. At least 1 slot needs a positive weight.

Slot 5 period

English item name
Period 5
Input name
InpPeriod5
Default
89
Allowed range
2〜500
Description
The same period can also be specified for another slot. The range is checked even for slots with weight 0.

Slot 5 weight

English item name
Weight 5 (0 = off)
Input name
InpWeight5
Default
0.43
Allowed range
Finite value 0–100
Description
0 removes this slot from the calculation. At least 1 slot needs a positive weight.

Average period

English item name
Average Period (0 = off)
Input name
InpAveragePeriod
Default
15
Allowed range
0〜1000
Description
0 hides the average and band. With 1, the main line and the average have the same value and the band does not appear.

Average method

English item name
Average Method
Input name
InpAverageMethod
Default
SMMA
Allowed range
SMA / EMA / SMMA / LWMA
Description
Checks that the method is valid even when the average is hidden.
8

Usage specifications

Average periods 0 and 1

With 0, Average and the band do not appear. With 1, Average has the same value as Blend for all 4 methods, and the band does not appear.

Sections where the value does not move

When Blend becomes constant, the average approaches it. When they become equal, the band disappears. EMA and SMMA may only approach, or may become equal due to rounding.

Start of the history

EMA and SMMA depend on the initial value, and changing the start of the history may change the average and the band color. SMA and LWMA do not use anything before the required window once it is complete.

Forming bar

The latest line and band color change during the bar. This product has no marks or notifications.

The existing Stochastic Blend

With the same inputs, the lines are calculated with the same formula. This product is a separate version that adds a band between the 2 lines. If the band is not needed, a setup using Stochastic Blend is available.

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 when all slots have weight 0

At least 1 slot needs a positive weight. The weights do not need to add up to 1.

Startup is refused even for unused slots

The periods of slots with weight 0 and the method when the average is hidden are also checked. Return all inputs to within range, and check the diagnostics in the Experts tab.

The band is hidden by the lines

When the 2 lines are close, the fill can be hidden by the lines and not visible. Check in the actual-size view.

The heading has no band value

The heading shows the line values; the band, which uses the same values, is not shown again.

The settings cannot be seen from the window name alone

The weights, the periods of slots with weight 0, and the method when there is no average do not appear in the name. Check them in the Inputs tab.

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

K = the longest period among active slots, S = Slowing, N = Average Period. Blend starts from bar K+S−1, and the average and band from bar K+S+N−2. With the defaults, Blend starts from bar 91 and the average and band from bar 105. The display start is aligned regardless of the averaging method.

How the average starts

EMA is calculated internally from the first Blend, and the display waits for the required number of bars. SMMA starts from the simple average of the first N bars. SMA and LWMA use the most recent N bars.

Definition of a range of 0

A slot whose sum of ranges over Slowing bars is 0 is 100. Even if the range of the current bar alone is 0, this definition does not apply unless the sum is 0. Conversely, a value of 100 does not necessarily mean the range is 0.

Display layout

The vertical axis is 0–100. The dotted lines at 20, 50 and 80 are scale guides. The band is drawn as a row of thin vertical bars. The colors can be changed in the Colors tab, but the item names and order are not specified here.

How to read the window name

HL is Low/High and CC is Close/Close. The periods of the active slots are listed separated by /, followed by Slowing and the averaging method and period. Off means no average.