MT5 indicators← AO MFI Marks 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

AO MFI Marks

Records with green and red dots the bars where the sign of AO and the level of MFI agree. The 2 EMAs are for reference and are not used to decide the dots. The dots are not arrows that show price direction.

Indicator name: AO MFI MarksMetaTrader 5Main chart

Dots for the upper-side condition are drawn below the low

AO > 0 + MFI ≥ upper level → green dotAO < 0 + MFI ≤ lower level → red dotGreen below the low, red above the highEMA crosses and slopes are not part of the dot conditions
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Green dotAO is positive and MFI is at or above the upper level. The dot is below the low.

2

Red dotAO is negative and MFI is at or below the lower level. The dot is above the high.

3

Blue and orange lines2 EMAs. They are shown independently of the dots.

A dot on every bar while the condition continuesMFI uses tick volumeClosed bars only by default
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
Fast EMA period
InpFastEMA
8 → 5
Slow EMA period
InpSlowEMA
21 → 13
MFI period
InpMFIPeriod
14 → 10
Upper level
InpUpperLevel
60 → 70
Lower level
InpLowerLevel
40 → 30

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 settingsInpFastEMA = 8 / InpSlowEMA = 21 / InpMFIPeriod = 14 / InpUpperLevel = 60 / InpLowerLevel = 40
AO MFI Marks default settings
2 EMAs and dots on bars where the conditions are met are shown. The position of a dot is separate from whether the condition is upper or lower.
View the screen in detail at full size
AO MFI Marks default settings (full size)
Settings change exampleInpFastEMA = 5 / InpSlowEMA = 13 / InpMFIPeriod = 10 / InpUpperLevel = 70 / InpLowerLevel = 30
AO MFI Marks settings change example
EMAs changed to 5/13, MFI to 10, and levels to 70/30. In this display example, there are fewer dots.
View the screen in detail at full size
AO MFI Marks settings change example (full size)

Example shown: 1-minute chart (M1). This is an example for explaining the display. 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

Reading the dot conditions

Both AO and MFI are required.

Separating the lines from the dots

The EMAs do not affect the dot calculation.

Reading consecutive dots as one state

They do not mean that a new event occurred on every bar.

3

What it measures

Cross-checks the sign of AO and the level of MFI on the same bar, and shows with dots when they agree.

AO

SMA 5 of the median price − SMA 34. Positive and negative values are used; if it is exactly 0, no dot appears.

MFI

Uses changes in the typical price and tick volume. It is not a value that directly shows actual money inflow or actual traded volume.

Dot conditions

Green is AO>0 and MFI≥ upper level; red is AO<0 and MFI≤ lower level. Each bar is judged independently.

Independent EMAs

The default is EMA 8 and 21 of the open. Each can be hidden with period 0.

4

Situations for reading the display

A red dot on a rising bar

Indicator
The dots do not use whether the bar is bullish or bearish as a condition.
Cross-check
Check the sign of AO and the MFI.
Check
Read it separately from the direction of the candlestick.
Caution
The dot color is not the direction of the next bar.

Dots continue during a sideways market

Indicator
MFI is 100 when both flows are 0. AO may still have a value.
Cross-check
Check whether AO is near 0 and what the MFI level is.
Check
Do not treat the dots as proof of strong price movement or money inflow.
Caution
Even a very small AO from rounding affects the condition.
5

Steps for checking the display

1

Distinguish lines from dots

The EMAs are a reference display; the dots are the AO and MFI condition.

2

Check the levels and closed bars

Read the upper and lower levels and Closed Bars Only.

3

Cross-check the values

AO and MFI can be checked in the Data Window.

6

Installation and checking the package contents

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

This product does not require DLL permission or enabling automated trading. When removed, this product's drawings are cleared.

7

Settings

There are 8 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.

Fast EMA period

Name shown on screen
Fast EMA Period
Input name
InpFastEMA
Default
8
Allowed range
0–500 bars
Description
0 hides the blue line. It does not affect the dots.

Slow EMA period

Name shown on screen
Slow EMA Period
Input name
InpSlowEMA
Default
21
Allowed range
0–500 bars
Description
0 hides the orange line. It does not affect the dots.

Price used for the EMAs

Name shown on screen
EMA Applied Price
Input name
InpLinePrice
Default
Open
Allowed range
7 applied prices
Description
The default is the open. It does not change the price used to calculate AO and MFI.

MFI period

Name shown on screen
MFI Period
Input name
InpMFIPeriod
Default
14
Allowed range
1–500 bars
Description
Number of bars m over which changes in the typical price and tick volume are summed.

Upper level

Name shown on screen
MFI Upper Level
Input name
InpUpperLevel
Default
60
Allowed range
0〜100
Description
The condition for a green dot is MFI at or above this value.

Lower level

Name shown on screen
MFI Lower Level
Input name
InpLowerLevel
Default
40
Allowed range
0〜100
Description
The condition for a red dot is MFI at or below this value. Whether the upper level is above the lower level is not checked.

Dots on closed bars only

Name shown on screen
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
true does not draw a dot on the latest bar. The EMAs are shown even while the bar is forming.

Dot spacing

Name shown on screen
Arrow Gap (pixels)
Input name
InpArrowGap
Default
8
Allowed range
0〜100 pixels
Description
Number of pixels on screen by which the dots are placed away from the low or high.
8

Usage specifications

Zero and rounding

If AO is exactly 0, no dot appears. The dot may change depending on the sign of a rounded value very close to 0, so the dots are not necessarily always the same as the standard AO display.

Sideways MFI

MFI is 100 even when both the positive and negative flows in the aggregation period are 0. Do not read 100 as actual money inflow.

Timing of dots

By default, a dot is shown on the closed bar once the next bar has started. With false, judgment is also made while the bar is forming, and dots can appear and disappear partway through.

Initial history

EMA starts from the 1st bar, AO from the 34th bar, MFI from bar m+1, and dots from bar max(34,m+1) onward. There is no notification function.

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

This product shows calculation results through plot buffers and does not place trade orders. It does not guarantee profit or future price movement.

9

Troubleshooting and usage notes

Only the EMAs are shown

Dots require the history that AO and MFI need, and both conditions. The line periods are not settings that increase the dots.

Dots continue on every bar

While the condition holds, a dot is placed on every bar. It is not a method that draws only the first 1 bar.

It does not start after changing inputs

An input outside the allowed range is refused at startup. Check the English reason shown on the Experts tab of the Toolbox, not an explanation on the chart, and confirm by returning to the default values.

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

MFI formula

TP=(high+low+close)/3. If TP is higher than the previous one, TP×tick volume is added to the positive flow; if lower, to the negative flow; the latest m changes are summed. If the negative flow is 0, the value is 100; otherwise 100−100/(1+positive/negative). A bar with the same TP is added to neither.

Independence of lines and judgment

The EMAs are 2 lines that exponentially smooth the selected price. AO is calculated from the median price and MFI from the typical price and tick volume; the EMA settings are not used for the dots.

Scope of cross-check with the standard

AO, MFI with periods 14, 10 and 5, and EMAs of the open with 8, 21, 5 and 13 and of the close with 8 and 21 have been cross-checked against the MT5 standard values. The sign of extremely small values does not always match, and agreement of the dots for all settings is not guaranteed.