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.
Divide the candle into parts → average each part → compare with 5 lines
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.
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
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.
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.
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.
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.
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.
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.
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.
Actual decision steps
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.
Read the position relative to the reference
Read the heights of the 5 lines and the differences between them.
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.
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.
Installation and checking the package contents
| Included file | Location and purpose |
|---|---|
| TRI_Candle_Part_Averages.ex5 | The indicator itself for MetaTrader 5. Place it in MQL5/Indicators. |
| TRI_Candle_Part_Averages_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_Candle_Part_Averages.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 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.
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.
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.
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.
| Item | Content |
|---|---|
| Version | 1.00 |
| Platform | MetaTrader 5 |
| Display | 5 lines in a subwindow (red, green, blue dotted, orange dotted, blue) |
| Unit | Points (average for each part) |
| 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.