Tell the lines apart
The thick blue solid line is Blend, and the orange dashed line is Average.
Combines the calculated values of up to 5 slots by weight, and colors the space between that and its average line.
Blue BlendThe weighted combination of the %K of each slot.
Orange AverageThe average of Blend. The method and period can be selected.
Green and red bandGreen if blue is above orange, red if below. Not filled when the values are the same.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
The thick blue solid line is Blend, and the orange dashed line is Average.
The band is a record of which line is above. It is not a separate, independent calculated value.
With period 0, the average and band are not drawn; with period 1, the band does not appear.
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.
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.
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.
Applies one of SMA, EMA, SMMA or LWMA to Blend. Not drawn with period 0.
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.
Check the 2 lines, blue and orange, and the green and red band between them.
Set the weight of unneeded slots to 0, and check the periods and weights of the remaining slots.
Change the method and period, and check where the average starts and how the band is shown.
Read HL / CC, the active periods, Slowing and the average from the window name, and check the weights in the Inputs tab.
| Included file | Purpose / location |
|---|---|
| TRI_Stochastic_Blend_Fill.ex5 | The 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.
Extract the ex5 main file rather than leaving it in the compressed file.
In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.
Refresh the Navigator or restart MT5, and apply it to the target chart. Place only 1 instance of the same product on 1 chart.
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.
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.
InpPriceFieldInpSlowingInpPeriod1InpWeight1InpPeriod2InpWeight2InpPeriod3InpWeight3InpPeriod4InpWeight4InpPeriod5InpWeight5InpAveragePeriodInpAverageMethodWith 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.
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.
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.
The latest line and band color change during the bar. This product has no marks or notifications.
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.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
At least 1 slot needs a positive weight. The weights do not need to add up to 1.
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.
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 shows the line values; the band, which uses the same values, is not shown again.
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.
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.
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.
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.
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.
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.