Dual Trigger Channel
Overlays 2 lines on the price chart. Each line uses its own previous-bar value and the previous bar's close as references, updates only when the current close meets its condition, and otherwise keeps the previous bar's value.
Compare with the previous line and previous close → update under separate conditions → spacing between the 2 lines
Blue line (continuation line)Updates when the close is above both the previous bar's blue line and the previous bar's close, or below both.
Red line (pullback line)Updates when the close is above the previous bar's red line and below the previous close, or below the previous red line and above the previous close. Merely crossing the line does not update it.
Spacing between the 2 linesThe distance between 2 lines updated under different conditions. Do not conclude the market direction or back-and-forth movement from the spacing alone; check the price movement.
MT5 display and examples of changed settings
Only the price chart and this product are shown. Compare the default settings and the example of changed settings with the same symbol, timeframe and display range.
View the screen in detail at full size
View the screen in detail at full size
Example shown: synthetic data, 1-minute timeframe (M1). This is not the price movement of an actual symbol. The changed settings are an example to show the difference, not recommended values. You can enlarge it from "View the screen at full size".
How to read it in 30 seconds
What it measures
Separates the conditions under which the 2 lines move
The 2 lines both move by the difference between their own value on the previous bar and the current close, divided by the set number. What differs is the condition for moving. The blue line updates when the close is above both the previous bar's blue line and the previous close, or below both. The red line updates when the close is above the previous red line and below the previous close, or below the previous red line and above the previous close. A value equal to either reference does not meet the condition. On bars that do not meet the condition, the line stays at its previous value.
Blue line (continuation line)
Updates when the close is above both the previous bar's blue line and the previous bar's close, or below both.
Red line (pullback line)
Updates when the close is above the previous bar's red line and below the previous close, or below the previous red line and above the previous close. Merely crossing the line does not update it.
Spacing between the 2 lines
The distance between 2 lines updated under different conditions. Do not conclude the market direction or back-and-forth movement from the spacing alone; check the price movement.
When to use it in decisions
Read in the order "indicator → confirm with price → consider → conditions that do not apply". This is not a trading instruction; it is a way to organize the material for your decisions.
The blue line moves smoothly along the price
- Indicator
- The blue line's update condition is met and the line is moving. Check separately whether the price keeps advancing in the same direction.
- Price
- Check whether the price keeps making higher highs and higher lows, or lower highs and lower lows.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not decide that the direction will continue just because the price follows the blue line.
The red line stays flat
- Indicator
- No bar has met the condition that moves the red line. The previous level remains as it is.
- Price
- See whether the price is moving back and forth in a narrow range.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not treat a stopped red line as evidence that the market has stopped.
The spacing between the 2 lines widened
- Indicator
- The distance between 2 lines updated under different conditions is widening. Check separately which line moved and whether the price is moving in one direction.
- Price
- Compare the size of the price's advances and retracements.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not decide that the market is overheated from widening spacing alone.
The price crossed the red line to the other side
- Indicator
- Merely crossing the line does not meet the update condition. With a previous red line of 100, a previous close of 99 and a current close of 101, the red line is not updated. Also check the position relative to the previous close.
- Price
- Confirm on the price side as well whether a key level was broken.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not use a cross of the red line alone as a trading signal. It cannot be used automatically as a stop-loss position.
Actual decision steps
Choose the symbol and timeframe
Choose the symbol and timeframe, and confirm that the 2 lines are overlaid on the price chart.
Read the position relative to the reference
Check whether the blue line is following the price and whether the red line has stopped.
Cross-check against the price evidence
Compare the spacing between the 2 lines with how the price advances and retraces.
Decide how to treat the current bar
On the current bar, the line positions move. Decide in advance whether to read on closed bars or to wait for the bar to close.
What to decide before entering
This product does not place or close orders. If you trade, decide your reasons, acceptable loss and exit conditions separately, and do not leave them to the indicator alone.
What to check while holding a position
Give priority to your plan made in advance and to the price movement. Do not postpone a stop-loss or exit just because the indicator moves up or down.
Installation and checking the package contents
| Included file | Location and purpose |
|---|---|
| TRI_Dual_Trigger_Channel.ex5 | The indicator itself for MetaTrader 5. Place it in MQL5/Indicators. |
| TRI_Dual_Trigger_Channel_Manual.html | The manual for this product. Open it in a browser. |
Extract the ZIP first. MT5 only. This product does not require placing a license file or account authentication. Use the files without renaming them.
Open the data folder
In MT5, select "File → Open Data Folder".
Place the indicator file
Place the included TRI_Dual_Trigger_Channel.ex5 in MQL5/Indicators.
Place it on a chart
Refresh the Navigator or restart MT5, and apply this product to a chart of the symbol and timeframe you want.
Check the settings and display
Check with the default settings first. To change them, open this product's properties from the Indicators List. For the required number of history bars and where it is displayed, see Chapters 7 and 8.
To remove it, select this product in the chart's Indicators List and delete it.
Settings
There is 1 calculation input. Open the properties from the Indicators List and change it there.
Tracking divisor
- Input name
- InpFactor
- Default
- 2.0
- Allowed range
- 1.0 to 100.0. Out of range, the indicator cannot be applied.
- Description
- Determines how much of the difference from the close is closed on a bar that meets the condition. With 2.0 it is half the difference, and with 10.0 it is 1/10. The larger the value, the more slowly the lines move.
Line color and width
- Default
- Blue (RoyalBlue) and red (Crimson) solid lines, width 2. Shown overlaid on the price chart.
- Where to change
- You can adjust it on the Colors tab of the properties.
- How to read
- Read the blue line for how it follows the price and the red line for how it stops.
Usage specifications
Where the display starts
The oldest bar is used only as the starting point of the 2 lines, and no value is shown for it. Display starts from the 2nd bar.
Effect of where the history starts
The starting point is the close of the oldest bar. If the history before the displayed range increases or decreases, the starting point changes, and the subsequent values may change.
Unit
Same unit as the price. Both of the 2 lines are placed on the vertical axis of the price chart.
Bars where a line stops
On bars that do not meet the condition, that line stays at the same value as the previous bar. Appearing flat is normal behavior.
Handling of the current bar
On the current bar, the condition result changes each time the close moves. When the bar closes, its value is also fixed.
Additions and corrections to history
If the data provider adds or corrects past bars, recalculation runs from that range.
When removing
Select this product in the Indicators List and delete it. This product has no recovery procedure using a license file.
Troubleshooting and usage notes
The 2 lines overlap and look like 1 line
In sections with little back-and-forth, both lines can come to the same position. A larger divisor makes a difference more likely to appear.
The red line stays flat for a long time
No bar has met the condition. This is not an error. A smaller divisor makes the line move more easily.
The line is not displayed
Fewer than 2 bars may be displayed. Load the history and then check.
The display does not change after changing the settings
If the value is outside the allowed range (1.0–100.0), this product is not applied. Check whether it remains in the Indicators List.
The positions differ from another terminal
If the history starts at a different position, the starting point changes. Compare using history covering the same range.
Notes on use
- The indicator is information calculated from past and current prices. It does not guarantee profit, the future direction or the success of a trade.
- It does not place orders, close positions, send alerts or send email.
- Changing the settings, symbol or timeframe also changes the values. Distinguish changes in the current bar from recalculation caused by added or corrected history.
Technical information and specification details
Calculation approach and display specifications
The 2 lines are both updated to "previous value + (close − previous value) ÷ divisor" only on bars that meet the condition, and keep the previous value on bars that do not. The condition for the blue line is that the close is above both the previous blue line and the previous close, or below both; for the red line, that it is above the previous red line and below the previous close, or the reverse. The comparisons are strict greater-than or less-than, and equal values are not included. It uses 2 buffers for drawing and 2 internal buffers for calculation. It does not use other indicators, external libraries, communication or order functions.
| Item | Content |
|---|---|
| Version | 1.00 |
| Platform | MetaTrader 5 |
| Display | 2 lines, blue and red, on the price chart |
| Unit | Same units as the price |
| Copyright notice | Trilogy Inc. |
Status of the general reading
The situations and steps on this page are examples of linking calculated values to observation of the price. They do not guarantee the future direction, full compatibility, non-repainting or a light calculation load.