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.
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.
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.
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.
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.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
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.
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.
Large turns are decided with their own independent extremes. They are not simply a selected or enlarged version of the small turn marks.
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.
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.
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.
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 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.
Check Range Multiple 3, Major Multiple 4, Price Smoothing 1, SMMA, Close and Closed Bars Only true.
The first 250 bars prepare the average range and the initial state. Marks can appear at the earliest from the 251st bar being processed.
−1 is a bottom and +1 is a top. Distinguish thin bars from thick bars, and read the time of the confirming bar.
Change the multipliers or the smoothing on a separate chart. With false, also check that marks on the forming bar change.
| Included file | Purpose / location |
|---|---|
| TRI_Cycle_Swing_Marks.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 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.
InpLengthInpMajorStrengthInpSmoothingInpMethodInpPriceInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYThe 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.
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.
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.
There is no UseCycleFilter, no filtering by ZeroLag or RSI, and no notifications or orders.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
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.
Even the published default image has no large bottom mark. Check the display range and the conditions for the independent large turns.
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.
It is not a price swing line. It is a line connecting −1 at small bottoms, +1 at tops and 0 on other bars.
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.
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.
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.
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.
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.
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.
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.
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.