What to look at
A turn from a run of rising or falling closes.
Shows with dots, on the bar where it can be confirmed, a peak where rising closes fall on the next bar and a trough where falling closes rise on the next bar. High and low conditions can also be added if needed.
Magenta dotsShown on the bar that confirmed a peak in closes.
Light blue dotsShown on the bar that confirmed a trough in closes.
The gray line is optionalSetting Connect to true joins the base prices of the dots. By default, no line is drawn.
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.
A turn from a run of rising or falling closes.
A dot at the center's high or low appears at the horizontal position of the bar after the center.
It does not foretell future price movement or the next turn.
The conditions for the direction of closes to change and the display of dots and the connecting line are handled separately.
It is a peak when the center's close is higher than the next bar's, and the 2 closes on the older side rise in order toward the center.
It is a trough when the center's close is lower than the next bar's, and the 2 closes on the older side fall in order toward the center.
From just before the center, bars are skipped only while closes equal to the center's continue. The rise or fall is compared using the 1 bar beyond that and the 1 bar just before it.
With Close And High, the same order is also required for the highs at a peak and the lows at a trough. The bars compared are those selected by close.
First load only this product, and check the price bars and the horizontal position of the marks.
The bar with the mark is not necessarily the peak or trough. Look for the bar that is earlier by the number of bars each product waits.
Check Closed Bars Only and the latest bar, and distinguish closed-bar marks from the provisional display on the forming bar.
On a separate chart, change the settings one at a time. The published change example is an example to show the effect, not a recommended setting.
| Included file | Purpose / location |
|---|---|
| TRI_Close_Turn_Points.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.
InpTestInpSkipEqualInpDistanceInpConnectInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYA connecting line is drawn between dots once the later dot is decided. Do not interpret it as meaning that the line was already visible at the time on each past bar it passes through.
In this product, dots in the same direction may continue; it does not force alternating peaks and troughs.
A point is the unit of the smallest displayed digit of the symbol. It is not necessarily the same as a pip. For example, on a 5-digit forex quote, 5 points is 0.00005.
This is verified on the assumption that only subsequent bars are added after closed bars, with the same history and the same settings. Filling in or correcting the history, the loading start position, or recalculation with changed settings may change past results.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
Check the history needed for the judgment and the conditions for it to be met. It is not an indicator that shows a mark on every bar. Widen the visible range toward the past to check.
Adjust the margin of the price scale and the chart's visible range. Because the center price is placed on a different bar, it may be far from the candles.
This product places a mark on the bar where the conditions could be confirmed. It does not afterwards move marks back to the peak or trough bar from before the confirmation.
Distance applies only to the dots. The gray line is the center's high or low without the distance added.
Distance is an integer from 0 to 10000. Out of range, the calculation does not start.
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.
Let t be the confirming bar and c=t−1 the center. a is the bar just before the center (or beyond it when skipping equal values), and b=a−1. A peak is close[c]>close[t] and close[c]>close[a]>close[b]. A trough is all reversed.
A peak also needs high[c]>high[t] and high[c]>high[a]>high[b], and a trough also needs low[c]<low[t] and low[c]<low[a]<low[b].
A peak dot is high[c]+Distance×point, and a trough dot is low[c]−Distance×point. The connecting line is high[c] / low[c] respectively.
Dots are placed on the bar where confirmation was possible. Dots and lines are not placed on the center bar or on a bar further on, and there is no distance adjustment per timeframe or function to move dots to another price.