Combines up to 5 with weights
The period and weight are set for each set. Sets with weight 0 are not used, and the result is divided by the sum of the remaining weights.
Combines up to 5 stochastics with weights and shows with arrows the condition where the blended value straddles the average of that bar. The blended line and the average line are not drawn.
Combines up to 5 with weightsThe period and weight are set for each set. Sets with weight 0 are not used, and the result is divided by the sum of the remaining weights.
The previous blend is also compared with the current averageIf the blend on the previous bar is below the current average and the current blend is above the current average, a green up arrow. If the comparison is reversed, a red down arrow.
Being equal alone does not produce a markThe comparison is strictly greater or less. The condition differs from an ordinary cross of 2 lines, and whether a mark appears can also differ.
Compares the default settings and a settings change example on a screen with only this product applied.
Example shown: M1. This is an example for explaining the display. The published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the packaged version has display settings for the brand text and the QR code. The settings change example is not a recommended value. Details can be checked in the full-size view. Please also check the price scale of the main chart and the positions of the candlesticks.
The period and weight are set for each set. Sets with weight 0 are not used, and the result is divided by the sum of the remaining weights.
If the blend on the previous bar is below the current average and the current blend is above the current average, a green up arrow. If the comparison is reversed, a red down arrow.
The comparison is strictly greater or less. The condition differs from an ordinary cross of 2 lines, and whether a mark appears can also differ.
Combines up to 5 stochastics with weights and shows with arrows the condition where the blended value straddles the average of that bar. The blended line and the average line are not drawn.
The stochastic %K for each period is found from the sums of the numerator and denominator over Slowing bars; the weighted average of these is B, and its moving average is A. An up arrow is B[t−1]<A[t] and B[t]>A[t]; a down arrow is B[t−1]>A[t] and B[t]<A[t]. It is not a method that compares the previous bar's blend with A[t−1]. Using the current average as the reference, it checks whether the blended values before and after are on both sides.
With K as the longest period among the valid sets, S as Slowing and M as Average Period, the blend starts at bar K+S−1 and the average at bar K+S+M−2. The arrows also require the blend on the previous bar. By default, the conditions can be checked from bar 91 for the blend and bar 105 for the average. With M=1 the blend and the average are the same value, so there are no arrows. M=0 cannot be specified. Longer periods also increase the history required.
| Product | Screen | Handling of the average |
|---|---|---|
| Stochastic Blend | Blended line and average line in a separate window | The average can be hidden with Average Period=0. |
| Stochastic Blend Cross Arrows (this product) | Arrows for the passing condition on the price chart | The average is required. The previous bar's blend is also compared with the current average. |
The calculation of the blend and the average is shared. This is not a product that turns visually observed crosses of the lines directly into arrows. The difference in comparison conditions is not necessarily a constant 1-bar delay.
Load the history in MT5, and first apply only this product to the chart.
The period and weight are set for each set. Sets with weight 0 are not used, and the result is divided by the sum of the remaining weights.
Put the default and the change example on separate charts, with the same symbol, timeframe and history.
Closed Bars Only defaults to true. With false, marks on the forming bar can change, so distinguish them from the record on closed bars.
| Included file | Purpose / location |
|---|---|
| TRI_Stochastic_Blend_Cross_Arrows.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. When comparing different settings, using separate charts makes checking easier.
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 19 inputs. They are changed on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpPriceFieldInpSlowingInpPeriod1InpWeight1InpPeriod2InpWeight2InpPeriod3InpWeight3InpPeriod4InpWeight4InpPeriod5InpWeight5InpAveragePeriodInpAverageMethodInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYIt does not place, modify or close orders. There are no notifications or emails either.
Even with Closed Bars Only=true, it is not guaranteed to stay unchanged through corrections or additions to the history or changes of the start position. Products that have lines update the line on the current bar.
Up arrows are drawn 10 pixels below the low, and down arrows 10 pixels above the high. This is not a fixed distance in price.
Shows Produced by Trilogy Inc. and a QR code to https://www.trgy.co.jp/. When the same medium is used on the same chart, the display is shared. There is no account authentication.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
With K as the longest period among the valid sets, S as Slowing and M as Average Period, the blend starts at bar K+S−1 and the average at bar K+S+M−2. The arrows also require the blend on the previous bar. By default, the conditions can be checked from bar 91 for the blend and bar 105 for the average. With M=1 the blend and the average are the same value, so there are no arrows. M=0 cannot be specified. Longer periods also increase the history required.
Check the ranges and combinations in the settings. Keep the inputs for unused methods within range as well.
The stochastic %K for each period is found from the sums of the numerator and denominator over Slowing bars; the weighted average of these is B, and its moving average is A. An up arrow is B[t−1]<A[t] and B[t]>A[t]; a down arrow is B[t−1]>A[t] and B[t]<A[t]. It is not a method that compares the previous bar's blend with A[t−1]. Using the current average as the reference, it checks whether the blended values before and after are on both sides.
Use separate charts, or adjust the brand position and margins. The images can also be checked at full size.
The marks are placed 10 pixels outside the high and low, so widen the display range of the chart's vertical axis to check them.
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.
The stochastic %K for each period is found from the sums of the numerator and denominator over Slowing bars; the weighted average of these is B, and its moving average is A. An up arrow is B[t−1]<A[t] and B[t]>A[t]; a down arrow is B[t−1]>A[t] and B[t]<A[t]. It is not a method that compares the previous bar's blend with A[t−1]. Using the current average as the reference, it checks whether the blended values before and after are on both sides.
With K as the longest period among the valid sets, S as Slowing and M as Average Period, the blend starts at bar K+S−1 and the average at bar K+S+M−2. The arrows also require the blend on the previous bar. By default, the conditions can be checked from bar 91 for the blend and bar 105 for the average. With M=1 the blend and the average are the same value, so there are no arrows. M=0 cannot be specified. Longer periods also increase the history required.
Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.
For each bar q, the highest high HH[q] and lowest low LL[q] over period K are found. %K=100×sum(C[q]−LL[q])/sum(HH[q]−LL[q]), where the sums cover Slowing bars. If the denominator is 0, the value is 100. Only sets with a positive weight are added, and the result is divided by the sum of the weights. With Low/High, HH and LL are the high and low; with Close/Close, they are the highest and lowest close.
EMA is calculated recursively from the first blended value; SMA, SMMA and LWMA start once M blended values are available. The initial value of SMMA is the SMA. EMA, too, is used for display and arrows only once M blended values are available. LWMA gives a weight of M to the newest value and 1 to the oldest. If the starting position of the history changes, the initial part of the recursive averages also changes.