MT5 indicators← Candle Part Averages 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

Candle Part Averages

Divides 1 candle into "range", "body", "upper wick" and "lower wick", and shows the average of each in points, overlaid in a subwindow. The total of the wicks is also shown as 1 line.

Indicator name: Candle Part AveragesMetaTrader 5Subwindow

Divide the candle into parts → average each part → compare with 5 lines

Price (synthetic data, 120 bars)Displayed values (average range and average body: last 20 bars)Red: rangeGreen: body
Schematic of calculated values (synthetic data). This is not an actual terminal screen.
1

Difference between range and bodyBecause bars with a value of 0 are excluded from the denominator for each part, the number of bars averaged differs. The difference cannot be read as the average of the wicks or as the number of back-and-forth moves.

2

Height of the upper and lower wicksThe average length on bars where that wick exists. It does not represent how often wicks appear.

3

Overall levelFor each part, the average over bars whose length is not 0 is large. Distinguish this from the total number of bars and from price movement.

In points5 lines0 is the lower limitDoes not show direction
1

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.

Settings change example: these items are changed
Number of bars to average (InpPeriod)0 (all history) → 100

No other settings were changed. The left is the default settings and the right is the changed example. At phone width, they are stacked from the top in the same order.

Default settingsNumber of bars to average (InpPeriod): 0 (all history)
Candle Part Averages: MT5 screen with default settings
Default settings (0 = all history) — The upper pane is the price and the lower pane is this product. Read the heights of the 5 lines and the differences between them.
View the screen in detail at full size
Candle Part Averages: MT5 screen with default settings (actual size)
Settings change exampleNumber of bars to average (InpPeriod): 100
Candle Part Averages: MT5 screen with a settings change example
With the number of bars to average changed to 100 — The same situation, changed to a moving average of the last 100 bars. Recent changes show more than with all history.
View the screen in detail at full size
Candle Part Averages: MT5 screen with a settings change example (actual 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".

2

How to read it in 30 seconds

Difference between range and bodyBecause bars with a value of 0 are excluded from the denominator for each part, the number of bars averaged differs. The difference cannot be read as the average of the wicks or as the number of back-and-forth moves.
Height of the upper and lower wicksThe average length on bars where that wick exists. It does not represent how often wicks appear.
Overall levelFor each part, the average over bars whose length is not 0 is large. Distinguish this from the total number of bars and from price movement.
All history and a specified number of barsWith 0 bars, the calculation covers everything from the oldest bar of the history loaded in the terminal up to each bar. It is not limited to the range visible on screen. When the history increases or decreases, the values also change.
3

What it measures

Divides the candle into 4 parts and averages them

It divides 1 candle into 4 parts. The range is the difference between the high and low; the body is the size of the difference between the open and close; the upper wick is the length remaining above the body; and the lower wick is the length remaining below the body. Each is converted to points and averaged over the specified number of bars (with 0, from the oldest bar of the history loaded in the terminal up to each bar). Bars where the length of that part is 0 are not counted in the denominator of that part's average. The 5th line, "wick total", is the sum of the average upper wick and the average lower wick.

Range = (high − low) ÷ point. Body = |close − open| ÷ point. Upper wick = (high − close) for a bullish bar, or (high − open) for a bearish bar, divided by point. Lower wick = (open − low) for a bullish bar, or (close − low) for a bearish bar, divided by point. Average of each part = total over bars that are not 0 ÷ number of bars that are not 0. Wick total = average upper wick + average lower wick.

Difference between range and body

Because bars with a value of 0 are excluded from the denominator for each part, the number of bars averaged differs. The difference cannot be read as the average of the wicks or as the number of back-and-forth moves.

Height of the upper and lower wicks

The average length on bars where that wick exists. It does not represent how often wicks appear.

Overall level

For each part, the average over bars whose length is not 0 is large. Distinguish this from the total number of bars and from price movement.

This value alone cannot determine the future direction or the success of a trade. Read it together with the price chart.
4

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.

Scene 1

Only the range rises while the body does not change

Indicator
Only the average range is becoming larger. Because the denominator differs by part, this difference alone does not show that back-and-forth movement has increased.
Price
Check on the price side as well whether bars with long wicks are increasing.
Consideration
Cross-check against the price evidence and your trading plan made in advance.
Exclusion condition
Do not use the difference between averages as grounds for the number of back-and-forth moves or for a reversal.
Scene 2

The body has approached the range

Indicator
2 averages whose numbers of bars can differ are approaching each other. This does not necessarily mean that the number of bars moving in one direction has increased.
Price
Check on the price side as well whether bars in the same direction continue.
Consideration
Cross-check against the price evidence and your trading plan made in advance.
Exclusion condition
Do not use a growing body as grounds that the direction will continue. Direction is not included.
Scene 3

The average upper wick is higher than the lower wick

Indicator
The average length, limited to bars that have an upper wick, is larger than the average on the lower-wick side. It does not show that upper wicks appear on more bars.
Price
Check separately on the price chart how many bars have upper and lower wicks, and how the highs move.
Consideration
Cross-check against the price evidence and your trading plan made in advance.
Exclusion condition
Do not use a high upper wick alone as a reason to sell.
Scene 4

All 5 lines have come down together

Indicator
The averages over bars that are not 0 are becoming smaller for each part. Check the overall price movement separately.
Price
Check whether the price is staying within a narrow band.
Consideration
Cross-check against the price evidence and your trading plan made in advance.
Exclusion condition
Do not treat falling averages as evidence that the market has stopped.
5

Actual decision steps

1

Choose the symbol and timeframe

Choose the symbol and timeframe. If you specify a number of bars, confirm that at least that many bars of history are displayed.

2

Read the position relative to the reference

Read the heights of the 5 lines and the differences between them.

3

Cross-check against the price evidence

Check the same situation on the price chart as well, and compare it with the shapes of the candles.

4

Decide how to treat the current bar

On the current bar, the value moves as the high, low and close update. Decide in advance whether to judge only 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.

6

Installation and checking the package contents

Included fileLocation and purpose
TRI_Candle_Part_Averages.ex5The indicator itself for MetaTrader 5. Place it in MQL5/Indicators.
TRI_Candle_Part_Averages_Manual.htmlThe 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.

1

Open the data folder

In MT5, select "File → Open Data Folder".

2

Place the indicator file

Place the included TRI_Candle_Part_Averages.ex5 in MQL5/Indicators.

3

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.

4

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.

7

Settings

There is 1 calculation input. Open the properties from the Indicators List and change it there.

Number of bars to average

Input name
InpPeriod
Default
0 (all history)
Allowed range
An integer from 0 to 10000. Out of range, the indicator cannot be applied.
Description
0 covers everything from the oldest bar of the history loaded in the terminal up to each bar. It is not limited to the display range on screen. With 1 or more, that number of bars is the calculation window, and the average excludes bars with a value of 0 for each part from the denominator.

Line color and width

Default
Range = red, body = green, upper wick = blue dotted line, lower wick = orange dotted line, wick total = blue solid line. The lower limit of the subwindow is 0.
Where to change
You can adjust it on the Colors tab of the properties.
How to read
Read the heights of the 5 lines and the differences between them.
8

Usage specifications

Where the display starts

If the bar count is 0, display starts from the oldest bar. If it is 1 or more, display starts from the bar after 1 fewer bars than that count have passed.

Effect of where the history starts

With a bar count of 0, the starting point is the oldest bar of the history loaded in the terminal. If the starting point changes because history is added or deleted, the values also change. With a specified bar count, history before the specified window is not included in the calculation.

Handling of bars with 0

Bars where the length of that part is 0 are not counted in the denominator of that part's average. For example, bars without a wick do not lower the wick average.

Unit

The unit is point. For a currency pair quoted with 5 digits, 10 point corresponds to 1.0 pips. The meaning of point changes with the symbol.

Value range

All lines are 0 or greater, but the range average can be lower than the body average. With 2 bars of range 10 and 1 and body 10 and 0, the range average is 5.5 and the body average is 10. This is because 0 is excluded per component and the denominators differ; it is not a defect.

Handling of the current bar

The current bar is recalculated when the high, low or close is updated. When the bar closes, its value is also fixed.

When removing

Select this product in the Indicators List and delete it. This product has no recovery procedure using a license file.

9

Troubleshooting and usage notes

The line is not displayed

When a number of bars is specified, the number of bars displayed may be smaller than that number. Load the history and then check.

The values differ from another terminal

With 0 bars, the values change with the start position of the history. Specifying a number of bars makes comparison easier.

The wick lines stay at 0

This happens when there are only bars with no wicks at all. Using a higher timeframe makes wicks more likely to appear.

The display does not change after changing the settings

If the value is outside the allowed range (integers from 0 to 10000), this product is not applied.

The level changed after changing the timeframe

When the length of 1 bar changes, the length of each part also changes. The level also changes.

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 settings, symbol or timeframe also changes the values. Distinguish changes in the current bar from recalculation caused by added or corrected history.
10

Technical information and specification details

Calculation approach and display specifications

It divides the candle into range, body, upper wick and lower wick, converts them to points, and takes the average over the specified number of bars (all history with 0). Bars with a length of 0 are excluded from that part's denominator. The 5th line is the sum of the averages of the 2 wicks. All-history mode adds up, in order, everything from the oldest bar of the history loaded in the terminal up to each bar. It is not limited to the display range on screen. It uses 5 buffers for drawing. It does not use other indicators, external libraries, communication or order functions.

ItemContent
Version1.00
PlatformMetaTrader 5
Display5 lines in a subwindow (red, green, blue dotted, orange dotted, blue)
UnitPoints (average for each part)
Copyright noticeTrilogy 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.