MT5 indicators← Close Turn Points 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

Close Turn Points

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.

Indicator name: Close Turn PointsMetaTrader 5Price chart

The turn in closes is confirmed on the bar after the center

Dot height is the center's high or lowCandidate barConfirming barConfirmed 1 bar laterShown here
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Magenta dotsShown on the bar that confirmed a peak in closes.

2

Light blue dotsShown on the bar that confirmed a trough in closes.

3

The gray line is optionalSetting Connect to true joins the base prices of the dots. By default, no line is drawn.

1 bar after the centerDefault judges by close onlyClosed bars only is the default
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
Judgment method / Test
InpTest
Close Only → Close And High (Low For Troughs)
Skip equal closes / Skip Equal Closes Before The Turn
InpSkipEqual
true → false
Dot distance / Distance From The High Or Low (points, 0 to 10000)
InpDistance
0 → 5
Connect the dots with a line / Connect The Points With A Line
InpConnect
false → true

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 settingsInpTest = Close Only / InpSkipEqual = true / InpDistance = 0 / InpConnect = false
Close Turn Points default settings
Evaluates with the close only, and skips identical closes that continue before the center. There are no lines connecting the dots.
View the screen in detail at full size
Close Turn Points default settings (actual size)
Settings change exampleInpTest = Close And High (Low For Troughs) / InpSkipEqual = false / InpDistance = 5 / InpConnect = true
Close Turn Points settings change example
Changed to add the high/low condition, not skip equal values, use a distance of 5 points and show the connecting line. Some marks are cut off at the edge of the visible range.
View the screen in detail at full size
Close Turn Points settings change example (actual 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

What to look at

A turn from a run of rising or falling closes.

Where does it appear

A dot at the center's high or low appears at the horizontal position of the bar after the center.

What it does not do

It does not foretell future price movement or the next turn.

3

What it measures

The conditions for the direction of closes to change and the display of dots and the connecting line are handled separately.

Peak

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.

Trough

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.

Skipping equal values

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.

Additional high/low condition

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.

4

Situations for reading the display

The dot is to the right of the center

Indicator
Peak / trough dots
Cross-check
The preceding center and the confirming close
Check
Check whether it is placed on the confirming bar
Caution
The dot height is not necessarily the high or low of the confirming bar.

Equal closes continue

Indicator
Dot after a flat section
Cross-check
Skip Equal Closes
Check
Check the 2 bars before the skipped section
Caution
This setting does not skip all equal values or equal highs.

Fewer after adding a condition

Indicator
Close And High setting
Cross-check
Both close and high / low
Check
Check both conditions on the same comparison bars
Caution
Adding a condition does not guarantee the frequency of marks.

A connecting line appeared

Indicator
Gray segment line
Cross-check
Base prices of the old and new dots
Check
Read the time of each dot, not the line
Caution
When a later dot appears, the line is also joined across the past section in between.
5

Steps for checking the display

1

Look from the default settings

First load only this product, and check the price bars and the horizontal position of the marks.

2

Find the candidate bar

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.

3

Distinguish the forming bar

Check Closed Bars Only and the latest bar, and distinguish closed-bar marks from the provisional display on the forming bar.

4

Compare one item at a time

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.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Close_Turn_Points.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.

Judgment method

English item name
Test
Input name
InpTest
Default
Close Only
Allowed range
Close Only / Close And High
Description
Compares the close only, or the close plus the high at a peak and the low at a trough.

Skip equal closes

English item name
Skip Equal Closes Before The Turn
Input name
InpSkipEqual
Default
true
Allowed range
true / false
Description
Skips only closes equal to the center's that continue just before the center.

Dot distance

English item name
Distance From The High Or Low (points, 0 to 10000)
Input name
InpDistance
Default
0
Allowed range
Integer 0 to 10000 points
Description
Added to the center's high for a peak and subtracted from the center's low for a trough. This distance is not added to the values of the connecting line.

Connect the dots with a line

English item name
Connect The Points With A Line
Input name
InpConnect
Default
false
Allowed range
true / false
Description
With true, gray segment lines. The line joins the center's highs and lows and may not match dots that have a distance applied.

Closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
true does not place marks on the latest forming bar. They are shown at the update when the last bar needed for the judgment has closed and the next bar has started. With false, marks appear and disappear with the price movement of the latest bar.

Brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Switches the display only. The calculation conditions 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
Default 10. Negative numbers are treated as 0, and values above 4000 as 4000.

Vertical margin

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

Usage specifications

Lines and confirmation time

A 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.

Sequence of peaks and troughs

In this product, dots in the same direction may continue; it does not force alternating peaks and troughs.

point and pip

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.

History and the forming bar

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.

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 are found

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.

Marks are cut off at the edge

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.

Bar for the mark

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.

The dots and the line do not line up

Distance applies only to the dots. The gray line is the center's high or low without the distance added.

An input was rejected

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.

10

Technical information and specification details

Bars compared

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.

When highs and lows are also used

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].

Output values

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.

How the display works

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.