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.
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.
It compares with the previous closeIt does not compare with each bar's open. This is a different count from the candle colors.
Equal values enter only the denominatorIf the close equals the previous close, it is not counted among the higher bars.
The value moves in fixed steps1 bar is worth 100 ÷ period. With the default of 25, the steps are 4.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
Counts the bars among the latest Period bars that closed above the previous close. The size of the rise is not used.
Half of the aggregated bars were higher than the previous close. It does not mean rises and falls are balanced.
It changes by 1 step when the forming close switches between being above the previous close and being at or below it.
For the same 1 bar, a small rise and a large rise are counted with the same weight.
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.
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.
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.
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.
The default is 25. The period appears in parentheses in the window name.
Value ÷ 100 × Period is the number of bars higher than the previous close. Watch for rounding of decimals in the display.
75, 50 and 25 are scale marks for reading position, not boundaries for doing anything.
The changed example is 25 → 12. Confirm that both the aggregation range and the weight for 1 bar change.
| Included file | Purpose / location |
|---|---|
| TRI_Rising_Close_Ratio.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'.
Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.
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.
InpPeriodWhen 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.
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.
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.
This product has no point or notification functions.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.
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.
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 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.
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.
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.
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.
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.