Pooled Rank Balance
It finds the relative rank of the current close over a long period and a short period, and smooths their difference with 6 for the current bar and 4 for the previous bar. Read the relative difference of the ranks against 0.5. This 1 line alone does not determine the absolute level of each rank or the direction of the market.
Long and short ranks → smooth the difference at 6:4 → difference from 0.5
Above 0.5The smoothed rank difference is on the side where the long rank is higher. It does not mean the long rank is in the upper half and the short rank in the lower half.
Below 0.5The smoothed rank difference is on the side where the short rank is higher. It does not represent a rise or fall of the market.
Near 0.5The smoothed rank difference is small. This also happens when both ranks are high or both are low, or when the differences of the current and previous bars cancel out. It does not necessarily mean a sideways market.
MT5 display and examples of changed settings
Only the price chart and this product are shown. Compare the default settings and the example of changed settings with the same symbol, timeframe and display range.
View the screen in detail at full size
View the screen in detail at full size
Example shown: synthetic data, 1-minute timeframe (M1). This is not the price movement of an actual symbol. The changed settings are an example to show the difference, not recommended values. You can enlarge it from "View the screen at full size".
How to read it in 30 seconds
What it measures
Measures the position within the ordering over a long and a short length
It puts all the highs, lows and closes of the period's bars into 1 pool (3 times as many values as bars). It counts how many values in the pool are smaller than the current close and divides by the number of values to turn it into a position from 0 to 1. It finds this for 2 lengths, long and short, and averages "the long position" and "1 minus the short position". Finally, it mixes the current value and the value of 1 bar earlier at 6 to 4 and shows the result.
Above 0.5
The smoothed rank difference is on the side where the long rank is higher. It does not mean the long rank is in the upper half and the short rank in the lower half.
Below 0.5
The smoothed rank difference is on the side where the short rank is higher. It does not represent a rise or fall of the market.
Near 0.5
The smoothed rank difference is small. This also happens when both ranks are high or both are low, or when the differences of the current and previous bars cancel out. It does not necessarily mean a sideways market.
When to use it in decisions
Read in the order "indicator → confirm with price → consider → conditions that do not apply". This is not a trading instruction; it is a way to organize the material for your decisions.
Rose above the 0.7 line
- Indicator
- The smoothed difference between the long rank and the short rank is far to the positive side.
- Price
- Check the price movement over both the long and the short period. Do not judge a pullback from this value alone.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not use a rise above 0.7 alone as a reason to buy. It can happen even while the price keeps falling.
Fell below the 0.2 line
- Indicator
- The smoothed difference between the long rank and the short rank is far to the negative side.
- Price
- Check the price movement over both the long and the short period. Do not judge a rebound from this value alone.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not use a fall below 0.2 alone as a reason to sell.
Moving near 0.5
- Indicator
- The smoothed rank difference is small. This includes cases where both ranks are high or both are low, and where the differences of the current and previous bars offset each other.
- Price
- Check separately whether the price has a direction or is moving sideways. This cannot be decided from values near 0.5 alone.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not use a crossing of 0.5 itself as a signal.
Stays near an end (0 or 1)
- Indicator
- The smoothed difference between the long and short ranks is large. It is not a value that shows only one of the ranks.
- Price
- Check whether the price's highs or lows keep being renewed within the period.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not read it as a fixed overheated or undervalued level, or as a rate of profit.
Actual decision steps
Choose the symbol and timeframe
Choose the symbol and timeframe, and confirm that at least as many bars of history as the long period are displayed.
Read the position relative to the reference
Using 0.2, 0.5 and 0.7 as references, read which band the current value is in.
Cross-check against the price evidence
Check the price movement over both the long and the short period on the price chart.
Decide how to treat the current bar
The value of the current bar moves. Decide in advance whether to read on closed bars or to wait for the bar to close.
What to decide before entering
This product does not place or close orders. If you trade, decide your reasons, acceptable loss and exit conditions separately, and do not leave them to the indicator alone.
What to check while holding a position
Give priority to your plan made in advance and to the price movement. Do not postpone a stop-loss or exit just because the indicator moves up or down.
Installation and checking the package contents
| Included file | Location and purpose |
|---|---|
| TRI_Pooled_Rank_Balance.ex5 | The indicator itself for MetaTrader 5. Place it in MQL5/Indicators. |
| TRI_Pooled_Rank_Balance_Manual.html | The manual for this product. Open it in a browser. |
Extract the ZIP first. MT5 only. This product does not require placing a license file or account authentication. Use the files without renaming them.
Open the data folder
In MT5, select "File → Open Data Folder".
Place the indicator file
Place the included TRI_Pooled_Rank_Balance.ex5 in MQL5/Indicators.
Place it on a chart
Refresh the Navigator or restart MT5, and apply this product to a chart of the symbol and timeframe you want.
Check the settings and display
Check with the default settings first. To change them, open this product's properties from the Indicators List. For the required number of history bars and where it is displayed, see Chapters 7 and 8.
To remove it, select this product in the chart's Indicators List and delete it.
Settings
There are 2 calculation inputs. Open the properties from the Indicators List and change them there.
Fast period
- Input name
- InpShortPeriod
- Default
- 10
- Allowed range
- An integer from 1 to 10000. Out of range, the indicator cannot be applied.
- Description
- The number of bars for measuring the recent relative rank. The usual naming of short and long assumes settings where the short period is smaller than the long period, but equal values and a reversed order can also be entered.
Slow period
- Input name
- InpLongPeriod
- Default
- 252
- Allowed range
- An integer from 1 to 10000. Out of range, the indicator cannot be applied.
- Description
- The number of bars for measuring the position over the longer view. A larger value requires a longer history.
Line color and width
- Default
- Red (Crimson) solid line, width 2. The display range of the subwindow is fixed at 0–1, with gray dotted lines at 0.2 and 0.7.
- Where to change
- You can adjust it on the Colors tab of the properties.
- How to read
- Using 0.2, 0.5 and 0.7 as references, read which band the value is in.
Usage specifications
Where the display starts
Display starts from the bar after as many bars as the longer of the short and long periods have passed. With the defaults, the first displayed bar is the 253rd bar counted from the oldest bar. Bars before that have no value.
Value range
The value is always 0 or greater and 1 or less. The display range of the subwindow is also fixed at 0–1.
Unit
There is no unit. It is the long/short rank difference, smoothed and converted to 0–1. Compare levels under the same period and history conditions.
When identical values appear
Values equal to the close are not counted as “smaller values”. If the high, low and close are all the same over the required period, the long and short ranks are both 0, and the displayed value is 0.5.
Handling of the current bar
The current bar is recalculated each time the high, low or close moves. When the bar closes, its value is also fixed.
Additions and corrections to history
If the data provider adds or corrects past bars, recalculation runs from that range.
When removing
Select this product in the Indicators List and delete it. This product has no recovery procedure using a license file.
Troubleshooting and usage notes
The line is not displayed
The number of bars displayed may be smaller than the long period. Make the long period smaller, or load the history and then check.
Always stuck at 0 or 1
The long period may be too long or too short compared with the market's cycle. Change the period and check.
The display does not change after changing the settings
If a value is outside the allowed range (integers from 1 to 10000), this product is not applied. Check whether it remains in the Indicators List.
The left side disappeared after making the long period larger
The position where the display starts is determined by the longer period. Increasing the period moves the display start to the right by that amount.
The same value was entered for the short and long periods
The calculation also works with the same value. In that case, the long rank and the short rank are equal, so the calculated value is 0.5.
Notes on use
- The indicator is information calculated from past and current prices. It does not guarantee profit, the future direction or the success of a trade.
- It does not place orders, close positions, send alerts or send email.
- Changing the period, symbol or timeframe also changes the values. Distinguish changes in the current bar from recalculation caused by added or corrected history.
Technical information and specification details
Calculation approach and display specifications
It puts the highs, lows and closes of the period's bars into 1 pool, divides the number of values smaller than the current close by (3 × bars − 1), and turns it into a position from 0 to 1. It averages the long position and 1 minus the short position, mixes the current value and that of 1 bar earlier at 6 to 4, and shows the result. It uses 1 buffer for drawing and 1 internal buffer for calculation. It does not use other indicators, external libraries, communication or order functions.
| Item | Content |
|---|---|
| Version | 1.00 |
| Platform | MetaTrader 5 |
| Display | 1 red line in a subwindow (fixed at 0–1), gray dotted lines at 0.2 and 0.7 |
| Unit | None (a ratio from 0 to 1) |
| Copyright notice | Trilogy Inc. |
Status of the general reading
The situations and steps on this page are examples of linking calculated values to observation of the price. They do not guarantee the future direction, full compatibility, non-repainting or a light calculation load.