Look at the height
The sign represents the position of the close within the window. Positive does not necessarily mean the price is rising, and negative does not necessarily mean it is falling.
Changes the search period by the ratio of short-term to long-term ranges, and shows from −100 to +100 where the close lies within the window. It is not the same calculation as the MT5 standard Stochastic.
Height of the blue lineThe position calculated from closes only, shown from −100 to +100.
5 dotted lines0 and the inner and outer guide lines. The defaults are ±75 and ±90.
Check the period tooThe search period changes bar by bar. The values can be checked in the Data Window.
Compares the default settings and a settings change example on a screen with only this product applied.
Example shown: 1-minute chart (M1). This is an example to explain the display. The settings change example is not a recommended value. Details can be checked in the full-size view.
The sign represents the position of the close within the window. Positive does not necessarily mean the price is rising, and negative does not necessarily mean it is falling.
The larger the short-term TR average is relative to the long-term one, the longer the search period becomes.
Read the position relative to 0, ±75 and ±90. Reaching a guide line is not a trading instruction.
Using each bar's search period, it calculates a position indicator that combines 4 close windows.
The short-term TR average ÷ long-term TR average is calculated, and by default that ratio is raised to the 2nd power and multiplied by the base period. It is rounded to the nearest integer, with a minimum of 1 bar.
The maximum and minimum closes are found in 4 windows ending at that bar and the 3 bars before it. This is not a method that sets the top and bottom of the window from candle highs and lows.
The center that combines the positions of the windows is 0. However, 0 is also shown when the denominator is 0. With a period of 1, each window has a width of 0, so the value can be 0 even while the price is moving.
Valid calculated values are from −100 to +100. On bars where the period is long and the required history is insufficient, no value is drawn.
Base 10, short term 7, long term 49, ratio raised to the 2nd power, inner 75 and outer 90.
The blue line and 0, ±75 and ±90 appear in the separate window.
Read the value and the period for the same bar in the Data Window.
The change example changes 2 inputs. When comparing individual effects, change 1 input at a time.
| Included file | Purpose / location |
|---|---|
| TRI_Adaptive_Stochastic.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'.
This product does not require DLL permission or enabling automated trading. When removed, this product's drawings are cleared.
There are 6 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.
InpBasePeriodInpFastAtrInpSlowAtrInpQuadraticInpInnerLevelInpOuterLevelThe period is displayed once the long-term TR period's worth of bars is available. The blue line additionally needs history of that bar's search period + 3 bars. By default, the blue line does not necessarily appear from the 49th bar.
If the short-term TR is 0, the period is 1. If the long-term TR also becomes 0, the period returns to the base value. Right after the range returns, the period may lengthen sharply.
On the forming bar, the search period and the blue line change together with the range and close. It is also recalculated when past history is added or corrected.
The larger the search period and the number of history bars, the more calculation is needed. When changing to large settings, wait for the display to update, and avoid excessive settings.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
Calculated values are stored in buffers and shown as lines and bars. It does not place trade orders or issue alerts. It does not guarantee profit or market direction.
It does not start if short term ≧ long term, inner ≧ outer, or an input is out of range. 1 line giving the reason in English appears in "Toolbox → Experts". The reason is not shown on the chart.
If the separate window is short, the labels for ±90 and ±100 come close together. Make the window taller or read the values in the Data Window.
The period is variable, and it uses close-only highs and lows and 4 windows. Agreement with the MT5 standard Stochastic is not assumed.
This is not necessarily because the price change is small. Check the short/long range ratio together with the actual period.
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.
TR is a width that includes high − low and the extension from the previous close. From the ratio f of the short-term and long-term simple TR averages, p = max(1, floor(base period × f² + 0.5)) is calculated. Without the 2nd power, f² is replaced by f. With a long-term average of 0, f = 1.
The bar's p is shared by the 4 windows, and from numerator = Σ(each close − minimum close of the window) and denominator = Σ(maximum close of the window − minimum), 200 × numerator ÷ denominator − 100 is shown. If the denominator is 0, it is 0.
The blue line is RoyalBlue, solid, width 2. The period is a value only, and no line is drawn for it. The guide lines are Gray, dotted, at 0 and ±Inner Level and ±Outer Level. The vertical axis is −100 to +100.