Look at the color
Up is green and down is red. Even red bars are not negative bars.
Separates the up and down states by color and shows, as bars in a separate window, the distance from the switching boundary to the high or low.
Green barThe price difference of the high in the up state minus the highest of the lows.
Red barThe price difference of the lowest of the highs in the down state minus that bar's low.
Small barA state in which the distance to the boundary is small. Reaching 0 alone does not necessarily mean a reversal.
A screen with default settings and only this product loaded. There are no inputs for calculation conditions. The settings section below is for the brand display.
Published example: M1. An example to explain the display. The published image is a screen from before the brand display was added. The calculation and drawing conditions are the same, and the packaged version has display settings for brand text and a QR code. 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 display range.
Up is green and down is red. Even red bars are not negative bars.
A tall bar shows that the price is far from the boundary of that state. It is not the duration of the state.
If the value equals the boundary, the distance can be 0. The color switches when the boundary is strictly crossed.
Uses the same state rules as Clear Swing Lines. What it measures is the price difference to the boundary, not a percentage or a number of points.
That bar's high − the highest of the lows held in the up state.
The lowest of the highs held in the down state − that bar's low.
When the previous boundary is crossed, the state switches and the boundary restarts from that bar's value. It does not show negative bars.
Because these are price differences, do not compare bar heights of different symbols, price levels or timeframes as strength on the same scale.
Check the 0 line and the green and red bars in the separate window.
Start reading from the color and distance of closed bars.
Match up with the high and down with the low.
The calculation conditions are fixed. When comparing across timeframes, also check the scale of the price differences.
| Included file | Purpose / location |
|---|---|
| TRI_Clear_Swing_Histogram.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 4 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYThe high, low and close of the current bar move. Because the calculation is redone when history is added or corrected or settings are changed, past display may also change.
This product is for display. It has no function to automatically execute trades, exits, stop orders or notifications.
The state calculation is inside this product. There is no need to install Clear Swing Lines separately.
Starts by treating the oldest bar as a down state. A match is not guaranteed when the loaded history differs.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
This is the correct display. The down direction is shown by the red color, and the bar value is a non-negative distance.
There are no period or sensitivity inputs. The 4 items in the settings are for the brand display.
Check the vertical axis. A price difference of 0 or small values are hard to see on screen.
If the high or low of the latest bar changes, the state is recalculated. Distinguish it from closed bars.
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.
In the up state, it tracks the highest of the lows and switches to down when the high falls below it. In the down state, it tracks the lowest of the highs and switches to up when the low rises above it.
A value is output only for one of up and down. The other side is an empty value.
The vertical axis is the price difference. No ratio, percentage or point conversion is applied.