Reading up in blue
The up-state line is the highest of the lows. The state is kept until the high falls below this boundary.
Tracks the up and down state from the position of the highs and lows, and shows the switching boundary with blue and orange-red lines.
Blue lineThe highest of the lows recorded during the up state.
Orange-red lineThe lowest of the highs recorded during the down state.
Switching conditionsIt becomes down when the high falls below the blue boundary, and up when the low rises above the orange-red boundary. Being equal alone does not switch it.
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 price scale of the main chart and the positions of the candlesticks.
The up-state line is the highest of the lows. The state is kept until the high falls below this boundary.
The down-state line is the lowest of the highs. It changes to up when the low rises above this boundary.
There are no inputs for calculation conditions. Only the brand display can be adjusted.
It is neither a fixed-period moving average nor an up/down check of the close. It tracks the lows and highs while a state continues.
In the up state, it updates and holds the highest of the lows. The close alone does not decide the state.
In the down state, it updates and holds the lowest of the highs. When the state changes to the opposite, the boundary restarts from that bar's value.
If the high equals the up-state boundary, or the low equals the down-state boundary, that comparison alone does not cause a reversal.
The vertical axis is price. The color shows the state; it does not mean that blue is always above orange-red.
Load it on the main chart and tell blue and orange-red apart.
Check on closed bars first, and treat the latest bar separately.
Compare the high with the blue boundary and the low with the orange-red boundary.
There are no calculation settings, so compare different timeframes on separate charts.
| Included file | Purpose / location |
|---|---|
| TRI_Clear_Swing_Lines.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.
Calculation starts by treating the oldest available bar as a down state. If the length of loaded history differs, the state at the same date and time may differ.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
Only blue is shown in the up state and only orange-red in the down state. It is not a band that shows both at the same time.
Isolated values can be hard to see as a line. Zoom in and also check the bars before and after.
This is by design. There are no inputs to change the period or sensitivity.
Match the timeframe and the loaded history. The initial state of the history also affects the calculation.
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 updates the boundary and checks the condition for switching to down. After that, in the down state, it updates the boundary and checks the condition for switching to up.
Uses the high and low of the oldest bar as the initial values and starts from the down state.
The value determined by a bar's high and low is output on that bar. There is no function to treat the current bar as closed.