Position of the close
Read the low of the calculation window as 0 and the high as 100.
Overlays green on bars whose close is in the upper part of the recent high-low range and red on bars whose close is in the lower part. The period used to find the range switches according to recent price movement.
GreenA bar where the close position K exceeds the upper threshold.
RedA bar where K is below the lower threshold.
Not coloredNot colored when the position is in between, or when the price range of the whole calculation window is 0.
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 for explaining the display. 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.
Read the low of the calculation window as 0 and the high as 100.
Normally 3+2×Offset bars. Under the large-movement condition, 4 bars.
Offset changes the thresholds and the normal period at the same time.
Shows the position of the close within the high-low range using a variable period.
K=100−|Williams %R|. In a normal price range it is 0 to 100; by default, above 70 is green and below 30 is red.
If, in any of the latest 6 bars, the close difference from 3 bars earlier is at least 4.6 times the average high−low of the latest 10 bars, 4 bars are used.
Upper threshold=67+Offset, lower threshold=33−Offset, normal period=3+2×Offset. It is not a setting that changes only the thresholds.
If the highest high and lowest low of the search window are the same, the position is not calculated and no color is applied.
Check it as a position display with a normal period of 9 bars and thresholds of 70/30.
With Offset 1, the normal period is 5 bars and the thresholds are 68/32.
The position and period of the latest bar change while the bar is forming.
| Included file | Purpose / location |
|---|---|
| TRI_Adaptive_WPR_Zone_Bars.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 is 1 input. Change it on the Inputs tab of the properties. The English display name and the input name in the code are shown together.
InpOffsetValues and drawing change with the latest bar's high, low and close. They are also recalculated when history is added or corrected or settings change.
Compare with the same symbol, timeframe, period and loaded history. The display is not a forecast of future prices.
With Offset 0–3, the first 9 bars are hidden; with 4 or more, the first 2+2×Offset bars are hidden.
Calculated values involve floating-point rounding. Even if the close looks exactly on the boundary, the bar may or may not be filled.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
This product shows calculation results through plot buffers and does not place orders. It does not guarantee profit or future price movement.
When the price range of the whole calculation window is 0, no position is output.
It switches under the condition of a large price movement. The switching condition holds even if the high−low of all of the latest 10 bars is 0.
Check the allowed range of the inputs and the number of history bars. Outside the range, the indicator does not start, and the reason is shown in English in the Experts tab of the Toolbox. No explanation is shown on the chart.
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.
W=−(HH−C)×100/(HH−LL), K=100−|W|. Green if K>67+Offset, red if K<33−Offset. If the calculated K exactly equals a threshold, it is not colored.
In a calculation window with a price range, the same formula as %R of the same period is used. When the price range of the whole window is 0, this product leaves the value empty and does not color. It is not a product that reproduces the whole fixed-period %R.