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.
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.
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.
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.
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.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
If the four-price average is above the smoothed value, an up run is counted; if it is equal or below, a down 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.
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.
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.
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.
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.
Load the history in MT5, and first apply only this product to the chart.
If the four-price average is above the smoothed value, an up run is counted; if it is equal or below, a down run.
Put the default and the change example on separate charts, with the same symbol, timeframe and history.
Closed Bars Only defaults to true. With false, marks on the forming bar can change, so distinguish them from the record on closed bars.
| Included file | Purpose / location |
|---|---|
| TRI_Smoothed_Candle_Run_Confirm_Arrows.ex5 | The 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.
Extract the ex5 main file rather than leaving it in the compressed file.
In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.
Refresh the Navigator or restart MT5, and apply it to the target chart. When comparing different settings, using separate charts makes checking easier.
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.
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.
InpModeInpStartBarInpConfirmInpFlatInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYIt does not place, modify or close orders. There are no notifications or emails either.
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.
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.
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.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
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.
Check the ranges and combinations in the settings. Keep the inputs for unused methods within range as well.
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.
Use separate charts, or adjust the brand position and margins. The images can also be checked at full size.
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.
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.
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.
Only MT5 itself and this manual. Account authentication, external indicators and DLLs are not required.
The subwindow name and Data Window items have not been verified. When reading values, check the items in the actual terminal.
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.
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.
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.