MT5 indicators← Market Flow Levels 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

Market Flow Levels

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.

Indicator name: Market Flow LevelsMetaTrader 5Price chart

The 4 lines are not simple highest and lowest values over the same period

A new high and the hand-over of the opposite-side levelHighest highHigh after a lowLow after a highLowest lowDistinguish the origin of each color. Do not decide trades by color alone
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Green and redGreen is the level held as the highest high, and red is the level held as the lowest low.

2

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.

3

Update and expiryWhen an extreme is updated, the opposite-side level is handed over, and levels that are too old are taken again.

4 price linesDefault Maximum Age 999Not a display of bar counts
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
Maximum elapsed bars of the held reference bar / Maximum Age (bars)
InpMaxAge
999 → 50

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 settingsInpMaxAge = 999
Market Flow Levels default settings
Maximum Age 999. Check the colors and price positions of the 4 lines. Where they overlap, some colors are hidden.
View the screen in detail at full size
Market Flow Levels default settings (full size)
Settings change exampleInpMaxAge = 50
Market Flow Levels settings change example
Maximum Age changed to 50. Because old levels are taken again from a shorter range, the levels and update positions change.
View the screen in detail at full size
Market Flow Levels settings change example (full size)

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.

2

How to read it in 30 seconds

Match the 4 colors

Green: highest high / blue: high after a low / red: lowest low / purple: low after a high.

Reading the hand-over

With a new extreme, the opposite-side level is handed over. Each line is not an independent moving highest or lowest.

Maximum Age

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.

3

What it measures

The number of elapsed bars is managed internally, but the values drawn on screen are prices.

Update on each bar

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.

Exceeding the upper limit

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.

Opposite-side hand-over

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.

Calculation order

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.

4

Situations for reading the display

Multiple lines move together

Indicator
Extreme updates and hand-overs are working on the same bar.
Cross-check
Look at the high, low and the positions of the 4 colors.
Check
Check the relationships between the levels.
Caution
These are not multiple independent trading signals.

An old line suddenly moves

Indicator
It may have been taken again because Maximum Age was exceeded.
Cross-check
Cross-check the number of bars from the reference bar against the upper limit.
Check
A new high or new low is not the only cause of an update.
Caution
A line moving does not necessarily mean a sudden price change.

The 4 colors are not visible

Indicator
Lines may overlap at the same price.
Cross-check
Zoom in and look at the sections before and after.
Check
Distinguish missing lines from overlapping display.
Caution
Even if fewer lines seem to be visible, it is not necessarily abnormal.

Different from the change example

Indicator
Shortening to 50 bars changes the effect of the expiry.
Cross-check
Compare with the same timeframe and history.
Check
Look at the values and update positions, not only the scale.
Caution
The sensitivity does not change proportionally.
5

Steps for checking the display

1

Look at the default screen

Check the 4 colors and the price scale.

2

Check the target bar

Updates on the current bar are provisional until it closes.

3

Compare with the price

Distinguish updates from new highs or lows from updates due to expiry.

4

Compare conditions separately

When changing the upper limit, compare on a separate chart with the same history.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Market_Flow_Levels.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. When comparing different settings, using separate charts makes checking easier.

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 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.

Maximum elapsed bars of the held reference bar

English item name
Maximum Age (bars)
Input name
InpMaxAge
Default
999
Allowed range
Integer from 1 to 10000
Description
Default 999. When this is exceeded, the level is taken again from the extreme of the specified number of bars including the current bar.

Brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Switches the display only. The calculation conditions do not change.

Brand position

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Allowed range
Top left / Bottom left / Bottom right / Top right
Description
The default is bottom left.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer (pixels)
Description
Default 10. Negative numbers are treated as 0, and values above 4000 as 4000.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer (pixels)
Description
Default 10. Negative numbers are treated as 0, and values above 4000 as 4000.
8

Usage specifications

Current bar and history

The 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.

Does not place orders

This product is for display. It has no function to automatically execute trades, exits, stop orders or notifications.

Dependence on history

Builds up the state from the oldest bar. If the history range differs, results may change.

For on-screen display only

The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.

9

Troubleshooting and usage notes

No lines on the first bar

Only initialization is done on the oldest bar, and prices are shown from the 2nd bar.

Lines overlap

Lines can have the same reference price. Do not judge it as a fault from the number of colors alone.

Stops at the settings

Maximum Age is 1 to 10000. Out of range, loading is refused.

Different when the timeframe changes

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.

10

Technical information and specification details

Initialization

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.

Equal values

Normal extreme updates use strict comparison. When taken again due to expiry, the newest bar is chosen for equal values.

What is displayed

Draws 4 price series. There is no additional display of elapsed bar count graphs or explanatory text.