Red comes from resistance
On a downward crossover, it updates to the highest high of Short+Long bars.
Updates support and resistance levels on crossovers of a swing price made from the high, low and close, and holds them together with a middle line.
Crossover evaluated internallyCompares the swing price with its simple average. These 2 series themselves are not shown on screen.
Updated only on a crossoverA strict downward crossover updates resistance, and an upward crossover updates support.
Held until the next crossoverResistance is red, support is green and the middle line is gray. It is not a band that always encloses the price above and below.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
On a downward crossover, it updates to the highest high of Short+Long bars.
On an upward crossover, it updates to the lowest low of the same number of bars.
Shown once the levels on both sides have been established.
The swing price is the average of the short-term highest high, lowest low and close. It differs from a moving average crossover of the close alone.
Calculates (highest high of Short bars+lowest low of Short bars+close)÷3.
Compares with the Long-bar SMA of the internal price. The condition is above on the previous bar and below on the current bar, or the reverse. Merely passing through an equal value is not a crossover.
With the default, a crossover can be evaluated from the 30th bar at the earliest. The corresponding line is empty until an actual crossover occurs.
Support and resistance hold extremes from different points in time. The lines may swap places or the price may be outside the band.
Load it with 5/25 and wait for the first crossover.
A crossover on the latest bar is provisional until the bar closes.
The lines come from past extremes, and there is no guarantee that they enclose the current price.
Changing Short or Long one at a time lets you read their effects separately.
| Included file | Purpose / location |
|---|---|
| TRI_Dynamic_Swing_Bands.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 6 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpShortInpLongInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYThe 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.
These are names that distinguish levels selected by calculation. They do not guarantee a rebound or that a trade will be executed.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
Check the history and whether crossovers occur. With Long=1, there is never a crossover.
Both support and resistance need to have been found once.
Short and Long are both 1 to 500. If out of range, loading is refused.
This is because levels from different points in time are held. Read them apart by color and origin.
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.
With t starting at 0, the internal price starts from S−1 and the average from S+L−2. A crossover is possible at S+L−1 at the earliest.
S+L bars including the crossover bar. Not S×L bars.
Because the high, low and close are used, the value is provisional until the end of that bar.