MT5 indicators← Bull Bear True Range 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

Bull Bear True Range

Builds an upside range and a downside range from the open, previous close, high and low, and averages each over the same period. Green and red are separate ranges; they do not foretell the direction in which price will move.

Indicator name: Bull Bear True RangeMetaTrader 5Separate window

Averages the upside and downside ranges separately, based on the open and previous close

Open, previous close, high, lowCalculate the upside and downside ranges separatelyAverage over the same N bars → green/red linesGreen and red are price ranges, not numbers of bars
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Green lineBull Range. The average of the upside range.

2

Red lineBear Range. The average of the downside range.

3

GapThe difference between the previous close and the open goes into both sides. Do not read the sum of the 2 lines as the same as ATR.

Units are priceThe 2 lines are averaged over the same periodGaps go into both sides
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
Averaging period
InpPeriod
14 → 30

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 settingsInpPeriod = 14
Bull Bear True Range default settings
Period 14. Green is the average range of the up side, and red is the average range of the down side.
View the screen in detail at full size
Bull Bear True Range default settings (full size)
Example of changed settingsInpPeriod = 30
Bull Bear True Range settings change example
Changed to period 30. Because the same section is averaged over a longer calculation window, the small changes in the lines are different.
View the screen in detail at full size
Bull Bear True Range settings change example (full size)

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 vertical axis of the separate window is adjusted automatically for each image, so do not compare values by on-screen height alone.

2

How to read it in 30 seconds

Distinguish the colors

Check which range green and red each represent.

Look at the height

Read each average range in price units.

Check the period

The period is shared by both lines.

3

What it measures

These are the average upside and downside ranges, not the number of rising or falling bars or volume.

Upside

Subtracts the smaller of the open and previous close from the larger of the high and previous close.

Downside

Subtracts the smaller of the low and previous close from the larger of the open and previous close.

Averages

Both are simple averages over the latest N bars.

Sum of the 2 lines

Because gaps are included in both sides, it is not simply the normal ATR split in two.

4

Situations for reading the display

Green is higher than red

Indicator
The average upside range is larger.
Cross-check
Also look at the open, high and low and gaps in that period.
Check
Distinguish which color is higher from the direction in which price moves.
Caution
It does not guarantee the direction or strength of the next bar.

The period was made longer

Indicator
The number of bars averaged has increased.
Cross-check
Compare the same symbol, timeframe and section.
Check
Read the changes in both lines.
Caution
The vertical axis of the image is adjusted automatically, so do not compare only by height on screen.
5

Steps for checking the display

1

Apply with the defaults

Check the 2 lines, green and red, with period 14.

2

Cross-check with bar prices

On bars with a gap, note that the difference from the previous close is added to both sides.

3

Choose the displays you need

To view only one side, switch the display switches. The period is shared by both sides.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Bull_Bear_True_Range.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 are 3 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.

Average period

Name shown on screen
Period
Input name
InpPeriod
Default
14
Allowed range
1–1000 bars
Description
Both the upside and downside take a simple average over this number of bars.

Show upside

Name shown on screen
Show Bull Range
Input name
InpShowBull
Default
true
Allowed range
true / false
Description
true shows the green Bull Range. false hides it; it does not mean the value is 0.

Show downside

Name shown on screen
Show Bear Range
Input name
InpShowBear
Default
true
Allowed range
true / false
Description
true shows the red Bear Range. If both are false, no lines are shown.
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.

Starting position

No line is drawn for the first N−1 bars. By default, it starts from the 14th bar. The first bar of the history has no previous close, so the calculation starts from high − open and open − low.

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

Only 1 line, or no lines, appear

Check both display switches and the number of history bars.

The sum of the 2 lines differs from ATR

By specification, gaps are counted on both sides. It is not a simple breakdown of ATR.

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

Formula

With H, L and O as the bar's high, low and open and P as the previous close, U=max(H,P)−min(O,P), D=max(O,P)−min(L,P). The display is the N-bar simple average of U and of D. On the first bar, U=H−O and D=O−L.

Relationship of the sum

On each bar with a previous close, U+D=true range+|O−P|. So the sum of the average lines includes, in addition to the average true range, the average of the absolute gap.