MT5 indicators← Smoothed Candle Run Confirm Arrows 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

Smoothed Candle Run Confirm Arrows

From the point where the state of the smoothed four-price average has continued, it checks the conditions of waiting, price distance, bullish/bearish bar and previous position in order, and shows arrows. Depending on the settings, nothing may appear for a long period.

Indicator name: Smoothed Candle Run Confirm ArrowsMetaTrader 5Main chart

How to read the display

1Compares the smoothed value with the four-price average2Checks the distance after a run3Flat and Mode also change the display
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Compares the smoothed value with the four-price averageIf the four-price average is above the smoothed value, an up run is counted; if it is equal or below, a down run.

2

Checks the distance after a runWhen the run continues for Start Bar bars, the open becomes the waiting reference. The sign of Confirm selects a distance condition in the same or the opposite direction.

3

Flat and Mode also change the displayEven if the distance condition is met, Flat can suppress the mark. Mode changes how the waiting state and the state after suppression are kept.

Record of conditions metMT5 onlyNot a trading instruction
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
Confirmation distance from the waiting reference / Confirm (points, signed)
InpConfirm
250 → 0

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 settingsInpConfirm = 250
Smoothed Candle Run Confirm Arrows default settings
Default Confirm=250, Flat=−250. There are no arrows in this published range. This is an example of settings where the condition is met only rarely, even over long history.
View the screen in detail at full size
Smoothed Candle Run Confirm Arrows default settings (full size)
Settings change exampleInpConfirm = 0
Smoothed Candle Run Confirm Arrows settings change example
Change example: Confirm (points, signed) = 0. An example where Confirm=0 skips the distance check and marks are visible. Flat=−250 still applies, so not every run start gets a mark.
View the screen in detail at full size
Smoothed Candle Run Confirm Arrows 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

Compares the smoothed value with the four-price average

If the four-price average is above the smoothed value, an up run is counted; if it is equal or below, a down run.

Checks the distance after a run

When the run continues for Start Bar bars, the open becomes the waiting reference. The sign of Confirm selects a distance condition in the same or the opposite direction.

Flat and Mode also change the display

Even if the distance condition is met, Flat can suppress the mark. Mode changes how the waiting state and the state after suppression are kept.

3

What it measures

From the point where the state of the smoothed four-price average has continued, it checks the conditions of waiting, price distance, bullish/bearish bar and previous position in order, and shows arrows. Depending on the settings, nothing may appear for a long period.

How the calculation works

Z2=(open+high+low+close)/4. For the oldest bar Z1=Z2; from the next bar on, Z1=(previous Z1+previous Z2)/2. If Z1<Z2 it is an up run; otherwise (including equality) it is down. When the run reaches Start Bar bars and the remembered direction is undetermined or opposite, waiting begins. With Confirm=0, Flat is checked on that bar, and if it passes, a mark is drawn. If Confirm is not 0, the current open is registered as the waiting reference.

Conditions and exceptions

The oldest bar is not included in the run count, and a bar can become a candidate from bar Start Bar+1 at the earliest. In Standard, the waiting reference is updated on each bar that meets the condition until the direction is fixed. The distance condition may be met on the very bar where waiting began. Waiting is replaced by an opposite candidate, and is cleared when the confirmation condition is met even if Flat is not satisfied. It is not a method that clears waiting immediately just because the bar turns the opposite color.

4

Situations for reading the display

Check the display conditions

Indicator
If the four-price average is above the smoothed value, an up run is counted; if it is equal or below, a down run.
Cross-check
Cross-check the prices and settings at the same time.
Check
Check the relationship with the previous bar and how equal values are handled.
Caution
Marks and levels are not instructions to place or close orders.

Compare setting differences

Indicator
Change example: Confirm (points, signed) = 0.
Cross-check
Use the same symbol, timeframe and history.
Check
Look at how the changed setting relates to the increase or decrease and the position of the marks.
Caution
The published settings are not recommended values.

Reading intervals without marks

Indicator
The oldest bar is not included in the run count, and a bar can become a candidate from bar Start Bar+1 at the earliest. In Standard, the waiting reference is updated on each bar that meets the condition until the direction is fixed. The distance condition may be met on the very bar where waiting began. Waiting is replaced by an opposite candidate, and is cleared when the confirmation condition is met even if Flat is not satisfied. It is not a method that clears waiting immediately just because the bar turns the opposite color.
Cross-check
Check the required history and whether the conditions are met.
Check
Do not treat the absence of marks as the calculation having stopped.
Caution
Nothing may be displayed during periods when the conditions are not met.
5

Steps for checking the display

1

Apply with the defaults

Load the history in MT5, and first apply only this product to the chart.

2

Check the role of the display

If the four-price average is above the smoothed value, an up run is counted; if it is equal or below, a down run.

3

Comparing settings

Put the default and the change example on separate charts, with the same symbol, timeframe and history.

4

Distinguish the forming bar

Closed Bars Only defaults to true. With false, marks on the forming bar can change, so distinguish them from the record on closed bars.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Smoothed_Candle_Run_Confirm_Arrows.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 9 inputs. Change them on the Inputs tab of the properties. The English item names defined in the source are shown together with the input names.

How the state is kept

English item name
Mode
Input name
InpMode
Default
Standard
Allowed range
Standard/Lock on Arm/Lock on Flat Reject
Description
Standard updates the direction when a mark is adopted. Lock on Arm also updates it when waiting is registered with a Confirm other than 0. Lock on Flat Reject also updates it when Flat prevented a mark.

Consecutive bars of the smoothed state

English item name
Start Bar
Input name
InpStartBar
Default
2
Allowed range
Integer 1 to 100
Description
Counting starts from the bar after the oldest. When the state switches between up and down, the opposite side's run count is set to 0.

Confirmation distance from the waiting reference

English item name
Confirm (points, signed)
Input name
InpConfirm
Default
250
Allowed range
Integer from −100000 to 100000 points
Description
0 skips the distance check and the check of the original bar's bullish/bearish state (Flat still applies). A positive value checks movement in the same direction and a negative value movement in the opposite direction, together with whether the bar is bullish or bearish. See the technical information for details.

Distance condition from the previous position

English item name
Flat (points, signed)
Input name
InpFlat
Default
-250
Allowed range
Integer from −100000 to 100000 points
Description
The absolute value is used as the distance. A positive value updates the record in the same direction; a negative value updates the records in both directions with the high and low of the adopted bar. 0 means no suppression by distance.

Place marks on closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
With true, the mark on the forming latest bar is hidden. With false, the latest bar is drawn too. Conditions that use the current bar and the mark positions are updated. Past results are not guaranteed to stay unchanged if the history is corrected.

Brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Displayed with true. Calculated values 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
Negative values are treated as 0, and values above 4000 are treated as 4000.

Vertical margin

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

Usage specifications

Display only

It does not place, modify or close orders. There are no notifications or emails either.

Closed bars and history

Closed Bars Only=true hides marks on the latest forming bar. Corrections to the history or changes of the start position may change past results.

Mark positions

Up arrows are drawn 10 pixels below the low, and down arrows 10 pixels above the high. This is not a fixed distance in price.

Brand display

Shows Produced by Trilogy Inc. and a QR code to https://www.trgy.co.jp/. When the same medium is used on the same chart, the display is shared. There is no account authentication.

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 marks, or blanks in the middle

The oldest bar is not included in the run count, and a bar can become a candidate from bar Start Bar+1 at the earliest. In Standard, the waiting reference is updated on each bar that meets the condition until the direction is fixed. The distance condition may be met on the very bar where waiting began. Waiting is replaced by an opposite candidate, and is cleared when the confirmation condition is met even if Flat is not satisfied. It is not a method that clears waiting immediately just because the bar turns the opposite color.

The input is not accepted

Check the ranges and combinations in the settings. Keep the inputs for unused methods within range as well.

Display differs from other products

Z2=(open+high+low+close)/4. For the oldest bar Z1=Z2; from the next bar on, Z1=(previous Z1+previous Z2)/2. If Z1<Z2 it is an up run; otherwise (including equality) it is down. When the run reaches Start Bar bars and the remembered direction is undetermined or opposite, waiting begins. With Confirm=0, Flat is checked on that bar, and if it passes, a mark is drawn. If Confirm is not 0, the current open is registered as the waiting reference.

Displays overlap

Use separate charts, or adjust the brand position and margins. The images can also be checked at full size.

Display is cut off at the screen edge

In the published images, arrows at the edges or lines outside the screen may be missing. Adjust the vertical axis and horizontal position on a real chart to check. Content outside the image cannot be recovered from the full-size view.

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

Calculation and reference range

Z2=(open+high+low+close)/4. For the oldest bar Z1=Z2; from the next bar on, Z1=(previous Z1+previous Z2)/2. If Z1<Z2 it is an up run; otherwise (including equality) it is down. When the run reaches Start Bar bars and the remembered direction is undetermined or opposite, waiting begins. With Confirm=0, Flat is checked on that bar, and if it passes, a mark is drawn. If Confirm is not 0, the current open is registered as the waiting reference.

Initial values and exceptions

The oldest bar is not included in the run count, and a bar can become a candidate from bar Start Bar+1 at the earliest. In Standard, the waiting reference is updated on each bar that meets the condition until the direction is fixed. The distance condition may be met on the very bar where waiting began. Waiting is replaced by an opposite candidate, and is cleared when the confirmation condition is met even if Flat is not satisfied. It is not a method that clears waiting immediately just because the bar turns the opposite color.

Package contents and dependencies

Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.

Reservation on data display

The subwindow name and Data Window items have not been verified. When reading values, check the items in the actual terminal.

Sign of Confirm and equal values

Up waiting: with a positive value, high − reference open >= distance and close >= open; with a negative value, reference open − low >= distance and close <= open. Down waiting: with a positive value, reference open − low >= distance and close <= open; with a negative value, high − reference open >= distance and close >= open. The bullish/bearish bar comparison includes equal values. Up waiting stays green and down waiting stays red; a negative sign on Confirm does not swap the arrow colors.

Flat records

A mark is adopted if the distance between an up candidate's low and the up record E1, or between a down candidate's high and the down record E2, is |Flat| points or more. E1 and E2 start at 0. On adoption, E1 = that bar's low for up, and E2 = that bar's high for down. With Flat<0, the opposite side's record is also updated to the same bar's high/low. In other words, with a negative value, the high and low of the bar of the last adopted arrow become the next comparison reference. Reading a negative value as "only the value of the last opposite arrow" is inaccurate.

Waiting and prices of 0

Internally, no waiting is represented by a reference value of 0. Waiting registered on a bar with an open of 0 is not subject to confirmation. What was verified with normal positive price data is not guaranteed to hold for all conditions with prices of 0 or negative prices.