Match the 4 colors
Green: highest high / blue: high after a low / red: lowest low / purple: low after a high.
Tracks 4 price levels from updates of highs and lows, the hand-over of the opposite-side level, and an upper limit on the number of elapsed bars.
Green and redGreen is the level held as the highest high, and red is the level held as the lowest low.
Blue and purpleBlue is the level tracked as the high after a low, and purple is the level tracked as the low after a high.
Update and expiryWhen an extreme is updated, the opposite-side level is handed over, and levels that are too old are taken again.
Compares the default settings and a settings change example on a screen with only this product applied.
Example shown: M1. This is an example for explaining the display. The published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the packaged version has display settings for the brand text and the QR code. 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.
Green: highest high / blue: high after a low / red: lowest low / purple: low after a high.
With a new extreme, the opposite-side level is handed over. Each line is not an independent moving highest or lowest.
When the number of elapsed bars of the held reference bar exceeds the upper limit, the extreme is searched again within that number of bars.
The number of elapsed bars is managed internally, but the values drawn on screen are prices.
Increases the elapsed bar count of each level by 1, and resets it to 0 when that bar's high exceeds the reference or its low falls below it.
With 999, when the elapsed bar count exceeds 999, the level is taken again from 999 bars including the current bar. For the same extreme, the newer bar is chosen.
When the highest high is updated, the low after a high is handed over to the lowest low. When the lowest low is updated, the opposite side is handed over.
The high-side hand-over is done first, and its result is used for the low-side hand-over. Do not interpret the lines as simple period extremes from their names alone.
Check the 4 colors and the price scale.
Updates on the current bar are provisional until it closes.
Distinguish updates from new highs or lows from updates due to expiry.
When changing the upper limit, compare on a separate chart with the same history.
| Included file | Purpose / location |
|---|---|
| TRI_Market_Flow_Levels.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. When comparing different settings, using separate charts makes checking easier.
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 are 5 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpMaxAgeInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYThe high, low and close of the current bar move. Because the calculation is redone when history is added or corrected or settings are changed, past display may also change.
This product is for display. It has no function to automatically execute trades, exits, stop orders or notifications.
Builds up the state from the oldest bar. If the history range differs, results may change.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
Only initialization is done on the oldest bar, and prices are shown from the 2nd bar.
Lines can have the same reference price. Do not judge it as a fault from the number of colors alone.
Maximum Age is 1 to 10000. Out of range, loading is refused.
The upper limit is a number of bars, not time. It is not a fixed time such as 999 minutes.
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.
On the oldest bar, the 4 elapsed bar counts are set to 0, and from the next bar they are increased, updated and handed over.
Normal extreme updates use strict comparison. When taken again due to expiry, the newest bar is chosen for equal values.
Draws 4 price series. There is no additional display of elapsed bar count graphs or explanatory text.