MT5 indicators← Cycle Swing Marks 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

Cycle Swing Marks

Places a mark on the bar where the smoothed price has pulled back by a set amount from the held low or high. Small and large turns are recorded separately; what you read is the time when the turn could be confirmed, not the price top or bottom itself.

Indicator name: Cycle Swing MarksMetaTrader 5Separate window (fixed scale −1.2 to 1.2)

Pullback from the extreme → compared with the 250-bar average range → mark on the confirming bar

Separate window: 0−1: bottom confirmedHeld lowPullback at or above the base widthThe height is ±1, not a price. The mark is not moved back to the bar of the low.
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Thin dark green and brown barsSmall turns. Dark green −1 is the bar that confirmed a bottom, and brown +1 is the bar that confirmed a top.

2

Thick green and red barsLarge turns. Green −1 is a bottom, and red +1 is a top. They hold their extremes separately from the small turns.

3

Gray lineIt is ±1 only on bars with a small turn, and 0 otherwise. It is not a line that holds the current up or down direction.

Default: average range ×3 / large turns a further ×4±1 marks, not pricesDefault is closed bars onlyMT5, no account authentication
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
Pullback width multiplier / Range Multiple (1 to 50)
InpLength
3 → 1
Additional multiplier for large turns / Major Multiple (1 to 20)
InpMajorStrength
4 → 2
Use closed bars only / Closed Bars Only
InpClosedBarsOnly
true → false

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 settingsInpLength = 3 / InpMajorStrength = 4 / InpClosedBarsOnly = true
Cycle Swing Marks default settings
Defaults: Range Multiple 3, Major Multiple 4, Closed Bars Only true. There is no Major Low (thick green) in the displayed range. M1 is the timeframe shown when the display example was created; the price data is mainly at 30-minute intervals.
View the screen in detail at full size
Cycle Swing Marks default settings (actual size)
Settings change exampleInpLength = 1 / InpMajorStrength = 2 / InpClosedBarsOnly = false
Cycle Swing Marks settings change example
Change example: Range Multiple 1, Major Multiple 2, Closed Bars Only false. All 5 colors appear. Because 3 items were changed at the same time, the difference cannot be read as the effect of only 1 item.
View the screen in detail at full size
Cycle Swing Marks settings change example (actual size)

Published example: M1. This is an example to explain the display. The published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the included version has display settings for the brand text and QR code. The example with changed settings is not a set of recommended values. Details can be checked in the full-size view. Also check the vertical axis and units of the separate window. Except for products with a fixed scale, the scale changes with the settings and the displayed range.

2

How to read it in 30 seconds

Read the pullback amount

Smooths the selected price and checks how far it has pulled back from the held extreme. It is not decided by whether the candle is bullish or bearish alone.

Read the time of a mark

A bottom mark appears on the confirming bar where price pulled back upward, and a top mark on the confirming bar where price pulled back downward. They are not moved back to the position of the past extreme.

Read large and small separately

Large turns are decided with their own independent extremes. They are not simply a selected or enlarged version of the small turn marks.

3

What it measures

Measures the size of the smoothed price's pullback against the average high − low of 250 bars. It does not measure cycle length or the probability of a future turn.

Base width for small turns

The average of (high − low) over the latest 250 bars including the bar being decided × Range Multiple. 250 is fixed. It is not ATR and does not take into account the gap from the previous close.

Base width for large turns

The base width for small turns is multiplied by Major Multiple. However, the extreme and the direction are managed separately from the small turns. At 1, large and small turns have the same conditions.

Confirming bottoms and tops

If price moves strictly up from the low and the pullback is at or above the base width, a bottom is confirmed. If price moves strictly down from the high and the pullback is at or above the base width, a top is confirmed. After confirmation, the opposite extreme is searched for.

The base width also moves

The average range changes on every bar. Even if the price is the same as on the previous bar, a turn can be confirmed because the base width shrinks while price stays away from the extreme.

4

Situations for reading the display

A dark green −1 appeared

Indicator
Confirmation of a small bottom.
Cross-check
Cross-check the selected smoothed price and its pullback from the previous low.
Check
Read it as the time the pullback was confirmed, not the time of the low itself.
Caution
It is not an instruction about a future rise or a buy.

A red +1 appeared

Indicator
Confirmation of a large top.
Cross-check
Look at the high held by the large turn and the base width.
Check
Read it as a mark from a process separate from the small turns.
Caution
A small top mark does not necessarily appear on the same bar.

The gray line returned to 0

Indicator
There is no small turn on that bar.
Cross-check
Cross-check the ±1 on the previous bar with the following 0.
Check
Confirm that it is a line that records only the bars where a turn occurred.
Caution
It does not mean that the direction has returned to neutral.

Only a thick bar appeared

Indicator
This is when only a large turn was confirmed.
Cross-check
Look at the small turn bars and the gray line separately.
Check
Read it as: a large turn is possible even when the gray line is 0.
Caution
Do not think of large and small turns as a hierarchical filter.

Marks increased after changing settings

Indicator
The pullback threshold or the smoothing conditions have changed.
Cross-check
Compare 1 item at a time with the same history and display range.
Check
Check the change in confirmation times, not only the number of marks.
Caution
More marks do not mean higher accuracy.
5

Steps for checking the display

1

Apply with the defaults

Check Range Multiple 3, Major Multiple 4, Price Smoothing 1, SMMA, Close and Closed Bars Only true.

2

Prepare enough history

The first 250 bars prepare the average range and the initial state. Marks can appear at the earliest from the 251st bar being processed.

3

Separate color, sign and time

−1 is a bottom and +1 is a top. Distinguish thin bars from thick bars, and read the time of the confirming bar.

4

Change 1 item at a time

Change the multipliers or the smoothing on a separate chart. With false, also check that marks on the forming bar change.

6

Installation and checking the package contents

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

Pullback width multiplier

English item name
Range Multiple (1 to 50)
Input name
InpLength
Default
3
Allowed range
Integer 1 to 50
Description
The multiplier applied to the 250-bar average range. Default 3. It is not a period length or a number of points.

Additional multiplier for large turns

English item name
Major Multiple (1 to 20)
Input name
InpMajorStrength
Default
4
Allowed range
Integer 1–20
Description
Default 4. Applied further to the base width for small turns. The extremes and states of large and small turns are independent.

Price smoothing period

English item name
Price Smoothing (1 to 200)
Input name
InpSmoothing
Default
1
Allowed range
Integer 1 to 200
Description
Default 1. The price used for the decision is smoothed over this number of bars. The 250 bars of the average range are not changed.

Smoothing method

English item name
Smoothing Method
Input name
InpMethod
Default
SMMA
Allowed range
SMA / EMA / SMMA / LWMA
Description
Default SMMA. With period 1, every method gives the selected price itself.

Price to smooth

English item name
Smoothing Price
Input name
InpPrice
Default
Close
Allowed range
Close / Open / High / Low / Median / Typical / Weighted
Description
Default Close. Median=(high+low)/2, Typical=(high+low+close)/3, Weighted=(high+low+close×2)/4.

Use closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
true does not process the latest forming bar. With false, marks on the latest bar appear and disappear.

Brand display and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Switches the brand text and QR display on or off.

Brand display position

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Allowed range
Top left / Bottom left / Top right / Bottom right
Description
Choose from the four corners of the chart.

Brand horizontal offset

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer. Limited to 0 to 2000
Description
Adjusts the horizontal margin from the specified corner in pixels.

Brand vertical offset

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer. Limited to 0 to 2000
Description
Adjusts the vertical margin from the specified corner in pixels.
8

Usage specifications

Display height

The vertical axis is fixed at −1.2 to 1.2, and marks are at ±1. They are not prices, profits or strength scores. Large and small marks have the same height; look at the color and thickness.

Display after confirmation

When closed bars are added with the same settings and history, confirmed marks are not moved to past extremes. The false setting, which includes the forming bar, is not covered by this condition.

Recalculation

Results are recalculated on settings changes, correction or additional loading of history, and changes of the start position. In these cases, the marks are not guaranteed to stay unchanged.

Functions not included

There is no UseCycleFilter, no filtering by ZeroLag or RSI, and no notifications or orders.

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

The first mark does not appear

If there are 250 or fewer bars to process, it is in the preparation stage. Even with more, no mark appears unless the pullback width is reached. With true, the 1 forming bar is not counted.

The thick green is not visible

Even the published default image has no large bottom mark. Check the display range and the conditions for the independent large turns.

Bars appear to overlap

When large and small turns appear on the same side of the same bar, the thick and thin bars overlap. With Major Multiple 1, the conditions are the same.

The gray line does not draw waves

It is not a price swing line. It is a line connecting −1 at small bottoms, +1 at tops and 0 on other bars.

The mark on the latest bar moves

If Closed Bars Only is false, the decision is made again each time the price and the average range update. To use closed bars only, set it to true.

Inputs are not accepted

Check the multiplier 1 to 50, the large multiplier 1 to 20, the smoothing period 1 to 200, and the ranges of the specified price and method.

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

250-bar average and preparation period

High − low is averaged over 250 bars including the decision bar, and the small multiplier and the additional large multiplier are applied. Because the allowed smoothing period is up to 200, initialization is at the 250th bar, and turn decisions start from the next bar.

Starting value of the smoothing

SMA and LWMA are calculated once the period's bars are available. EMA starts from the first price, and SMMA starts from the first simple average. Whether the initial values match the standard MT4 indicators has not been verified.

State and equal values

Bottoms and tops are confirmed alternately for large and small turns separately. If the price stays the same, the extreme is not updated. A pullback equal to the base width is accepted, but a value equal to the extreme itself does not confirm a turn.

How the display works

It uses the 250-bar average on every bar, not a width fixed in the early part of the history. It does not draw candidates in the past and then erase them; it places a mark on the confirming bar where the threshold was reached. There is no filtering by ZeroLag or RSI.

Scope of the published images

M1 is the timeframe shown when the display example was made. The price data is mainly at 30-minute intervals, and the image does not show how often marks appear on actual 1-minute bars.

Scope of verification

The published images are screens from before the brand display was added. The on-screen display of the product with the brand display has not yet been verified.