MT5 indicators← Rising Close Ratio 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

Rising Close Ratio

Draws the ratio of recent bars whose close was higher than the previous close. It is a blue line from 0 to 100 that counts bars, not price ranges.

Indicator name: Rising Close RatioMetaTrader 5Separate window

The number of matching bars, not the price range

Example: in 5 comparisons, 3 bars are above the previous closeHigherHigherSameHigherLower3 ÷ 5 × 100 = 60Equal closes also enter the denominator. It is not the number of bullish bars.
Schematic diagram of how to read it. This is not an actual terminal screen.
1

It compares with the previous closeIt does not compare with each bar's open. This is a different count from the candle colors.

2

Equal values enter only the denominatorIf the close equals the previous close, it is not counted among the higher bars.

3

The value moves in fixed steps1 bar is worth 100 ÷ period. With the default of 25, the steps are 4.

Close-to-close comparisonEqual values are not counted as higherNo notifications
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
Number of bars compared
InpPeriod
25 → 12

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 = 25
Rising Close Ratio default settings
The default Period is 25. Values move in steps of 4 and never land exactly on the fixed scale marks 75, 50 and 25.
View the screen in detail at full size
Rising Close Ratio default settings (full size)
Example of changed settingsInpPeriod = 12
Rising Close Ratio example of changed settings
The Period in the changed example is 12. The ratio for 1 bar becomes about 8.33, and the range aggregated also changes.
View the screen in detail at full size
Rising Close Ratio example of changed settings (full size)

Published example: M1. This is an example to explain the display. The example with changed settings is not a set of recommended values. Details can be checked in the actual-size view. Also check the vertical axis and units of the separate window. Except for products with a fixed scale, the scale changes with the settings and the displayed range.

2

How to read it in 30 seconds

Ratio of higher bars

Counts the bars among the latest Period bars that closed above the previous close. The size of the rise is not used.

Reading 50

Half of the aggregated bars were higher than the previous close. It does not mean rises and falls are balanced.

Latest value

It changes by 1 step when the forming close switches between being above the previous close and being at or below it.

3

What it measures

For the same 1 bar, a small rise and a large rise are counted with the same weight.

Basic formula

Value = 100 × number of higher bars ÷ Period. The aggregation includes the latest bar. Because it is used for comparison, the close one bar before the aggregation is also required.

Example with equal values

If 10 of 25 bars are higher, 10 are lower and 5 are the same, the value is 40. Even if the numbers of higher and lower bars are equal, the value is not necessarily 50. If all closes are the same, it is 0.

Fixed scale marks and actual steps

75, 50 and 25 are fixed scale marks. With the default of 25, the value moves in steps of 4, so the values around 50 are 48/52, around 75 are 72/76, and around 25 are 24/28.

Not the ratio of bullish bars

It is not a comparison of the close and open of the same bar. It counts only whether the close is higher than the previous close.

4

Situations for reading the display

Not 50 even with equal numbers of rises and falls

Indicator
A value below 50
Cross-check
Confirm that bars with equal values enter the denominator.
Check
Count separately the bars higher than, lower than and equal to the previous close.
Caution
Being below 50 does not necessarily mean there are more lower bars.

The line stays horizontal

Indicator
The same value continues
Cross-check
If the bar newly added and the old bar dropped have the same match count, the ratio does not change.
Check
Separate the count of bars from the price range.
Caution
Even if the price range is large, the value is the same if the match count is the same.

The right edge moves by 1 step

Indicator
Forming bar
Cross-check
See whether the relation between the close and the previous close has switched.
Check
Check Period and the step for 1 bar.
Caution
While the close stays on the same side, the ratio does not change even if the price moves.
5

Steps for checking the display

1

Check the period

The default is 25. The period appears in parentheses in the window name.

2

Convert the value to a number of bars

Value ÷ 100 × Period is the number of bars higher than the previous close. Watch for rounding of decimals in the display.

3

Separate the fixed scale marks

75, 50 and 25 are scale marks for reading position, not boundaries for doing anything.

4

Change the period and compare

The changed example is 25 → 12. Confirm that both the aggregation range and the weight for 1 bar change.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Rising_Close_Ratio.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'.

Using this product does not require allowing DLLs. 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 item name and input name defined in the source are shown together.

Number of bars compared

English item name
Period
Input name
InpPeriod
Default
25
Allowed range
Integer 2 to 1000
Description
How many recent bars form the denominator of the ratio. The first value requires the closes of Period + 1 bars.
8

Usage specifications

Values on the forming bar

When the latest close switches between being above the previous close and being at or below it, the value changes by 100÷Period. It does not change while it stays on the same side.

Display range and digits

The vertical axis is 0 to 100. The 0 and 100 lines overlap the window frame. The header shows Rising Close Ratio (period) and the value with 2 decimal places.

Steps by period

To reach exactly 50 the period must be even, and to reach exactly 25 or 75 it must be a multiple of 4. Having a scale line is separate from being able to take that value.

Notifications

This product has no point or notification functions.

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

Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.

9

Troubleshooting and usage notes

The first line does not appear

At least Period + 1 bars are required. With the default of 25, the first value is from bar 26. Check the history and the input range.

The heading shows 0.00

0 can appear even on bars without a line because there are not enough bars. However, when there are 0 higher bars, 0 is also a valid value. Check whether the line is drawn and whether there are at least Period + 1 bars.

The line differs after changing the period

The denominator and aggregation range change. The 12 in the display example is not a recommended value but an example to explain the difference in settings.

Out-of-range input

If the Experts tab shows Rising Close Ratio: Period must be 2 to 1000., return Period to within the range.

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 and equal values

Compares each close of the Period bars, including the latest bar, with the close 1 bar earlier. Only strictly higher cases count as 1 and all others as 0; the sum is multiplied by 100 ÷ Period.

History and recalculation

The value is determined from the closes of the latest Period + 1 bars, including the bar in question. With the same close data and settings, adding older history does not change the values of bars already calculated.

Conditions for 50

50 means the higher bars are half of the aggregation. Above 50, there are more higher bars than lower bars, but below 50 you cannot tell which is larger without also checking the number of equal bars.