Blue main line
Combines, by weight, the ratio of the close position within each calculation window.
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.
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.
Weight 0 means unusedThe slot is excluded from the calculation and the required history, but the input range of its period is still checked.
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.
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.
Combines, by weight, the ratio of the close position within each calculation window.
A moving average of the combined main line. It is not a combination of the average lines of each slot.
The periods are shown but the weights are not. Check differences in weights on the inputs screen.
Adjust the proportion of long and short calculation windows with weights, and read the result as 1 combined value.
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.
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.
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.
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.
Decide which of the 5 slots to use. Slots with weight 0 are not included in the calculation.
Blue is the combined value; orange is its later-stage average.
Check all setting differences. The example uses only 3 slots.
With different history starts, differences can remain in the EMA and SMMA averages.
| Included file | Purpose / location |
|---|---|
| TRI_Stochastic_Blend.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 window. The English display names are shown together with the input names in the code.
InpPriceFieldInpSlowingInpPeriod1InpWeight1InpPeriod2InpWeight2InpPeriod3InpWeight3InpPeriod4InpWeight4InpPeriod5InpWeight5InpAveragePeriodInpAverageMethodStarting 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.
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.
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.
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.
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.
The silver 20, 50 and 80 are position scale lines. 0 and 100 overlap the frame. There are no marks or notifications.
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.
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.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.
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.
Open the actual-size view of the real screen and check the line colors and the vertical axis.
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.
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.
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.
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.