MT5 indicators← Adaptive %R Zone Bars product page日本語の取扱説明書

This product is in preparation for release. Product files are not yet distributed; the manual is published so that you can review its content. This manual is an English translation of the Japanese manual. Images (screens and figures) are not translated and may contain Japanese text or earlier names.

For Trilogy users

Adaptive %R Zone Bars

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.

Indicator name: Adaptive %R Zone BarsMetaTrader 5Main chart

Select the period → calculate the close position → color the bar

Select the period from recent price movementMeasure the close position K within the high-low rangeK above the upper threshold: green / below the lower threshold: redA calculation window with a price range of 0 and values inside the thresholds are not colored
Schematic diagram of how to read it. This is not an actual terminal screen.
1

GreenA bar where the close position K exceeds the upper threshold.

2

RedA bar where K is below the lower threshold.

3

Not coloredNot colored when the position is in between, or when the price range of the whole calculation window is 0.

Default thresholds are 70/30Normally 9 bars, 4 bars when the condition holdsColor is the close position
1

MT5 display and examples of changed settings

Compares the default settings and a settings change example on a screen with only this product applied.

Settings change example: these items are changed
Zone and period adjustment
InpOffset
3 → 1

All other inputs remain at their defaults. On a PC, the default is on the left and the change example on the right; at smartphone width they appear in the same order from top to bottom.

Default settingsInpOffset = 3
Adaptive %R Zone Bars default settings
Zone Offset 3. Green and red bars are overlaid on bars where the conditions are met.
View the screen in detail at full size
Adaptive %R Zone Bars default settings (full size)
Settings change exampleInpOffset = 1
Adaptive %R Zone Bars settings change example
Changed to Zone Offset 1. The thresholds are 68/32 and the normal period is 5 bars. At this scale, the difference from the defaults is hard to see, so also check the full-size image.
View the screen in detail at full size
Adaptive %R Zone Bars settings change example (full size)

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.

2

How to read it in 30 seconds

Position of the close

Read the low of the calculation window as 0 and the high as 100.

Period

Normally 3+2×Offset bars. Under the large-movement condition, 4 bars.

1 input

Offset changes the thresholds and the normal period at the same time.

3

What it measures

Shows the position of the close within the high-low range using a variable period.

Position K

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.

Period switching

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.

Role of Offset

Upper threshold=67+Offset, lower threshold=33−Offset, normal period=3+2×Offset. It is not a setting that changes only the thresholds.

Flat calculation window

If the highest high and lowest low of the search window are the same, the position is not calculated and no color is applied.

4

Situations for reading the display

The color changed

Indicator
The position of the close relative to the selected calculation window has changed.
Cross-check
Look not only at the close but also at the high-low range and the period switching.
Check
Read the product's bars separately from the candlestick colors.
Caution
It is not a color that guarantees a rise or fall.

Looks similar even after changing settings

Indicator
Some bars fall in the same zone under several settings.
Cross-check
Changing Offset also affects the period.
Check
Compare the target bars in the full-size display.
Caution
Offset and the number of colored bars do not necessarily have a monotonic relationship.
5

Steps for checking the display

1

Read with the default 3

Check it as a position display with a normal period of 9 bars and thresholds of 70/30.

2

Check the thresholds and period together

With Offset 1, the normal period is 5 bars and the thresholds are 68/32.

3

Distinguish the forming bar from history

The position and period of the latest bar change while the bar is forming.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Adaptive_WPR_Zone_Bars.ex5The 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.

1

Extract the ZIP

Extract the ex5 main file rather than leaving it in the compressed file.

2

Open the data folder

In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.

3

Apply this product

Refresh the Navigator or restart MT5, and apply it to the target chart. Place only 1 instance of the same product on 1 chart.

4

Check the settings and display

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.

7

Settings

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.

Zone and period adjustment

Name shown on screen
Zone Offset
Input name
InpOffset
Default
3
Allowed range
0〜30
Description
An integer that sets the thresholds and the normal period at the same time. At 0, the normal period is 3 bars and 4 bars when switched, so the period can become longer.
8

Usage specifications

Forming bar

Values 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.

Conditions for comparison

Compare with the same symbol, timeframe, period and loaded history. The display is not a forecast of future prices.

Initially hidden bars

With Offset 0–3, the first 9 bars are hidden; with 4 or more, the first 2+2×Offset bars are hidden.

Rounding at the boundary

Calculated values involve floating-point rounding. Even if the close looks exactly on the boundary, the bar may or may not be filled.

Only 1 instance of the same product on 1 chart

This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.

For on-screen display only

This product shows calculation results through plot buffers and does not place orders. It does not guarantee profit or future price movement.

9

Troubleshooting and usage notes

Parts without price movement are not colored

When the price range of the whole calculation window is 0, no position is output.

The period becomes 4

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.

Nothing is shown after entering inputs

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.

10

Technical information and specification details

Exact judgment

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.

Difference from the standard %R

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.