LT Regression Channel MT5
A full walkthrough of every setting across all 11 sections: core channel geometry, multi-timeframe overlays, signal modes, alerts, and the live dashboard. 84 inputs, nothing skipped.

These five inputs define the fundamental geometry of the regression channel. Every visual element and analytical feature in the indicator is built on top of these values.
Period (bars used for calculation)
int200Sets how many bars are included in the regression calculation. A higher value creates a smoother, slower-reacting channel. Ideal for swing and position traders.
| Range | Behavior | Recommended for |
|---|---|---|
| 100β150 | Responsive, reacts quickly | Intraday - M15 to H1 |
| 200 | Balanced (default) | H1 to H4 |
| 250β350 | Smooth, slow-moving | Swing / position - H4 to Daily |

Two channels on the same instrument: Period = 100 (tighter, more reactive) vs Period = 300 (wider, smoother). Shows how the period value affects channel sensitivity and width.
Polynomial Degree (1-9)
int4Controls the shape of the regression curve. Degree 1 draws a straight line. Degree 4 curves naturally to follow price cycles and market structure.
| Degree | Curve shape | Best for |
|---|---|---|
| 1 | Straight line (linear regression) | Strongly trending, smooth instruments |
| 2 | Gentle parabola | Moderate trends with slight curvature |
| 3β4 | Natural price cycle curve | Most instruments - balanced default |
| 5β9 | Tight, closely follows price | Specialized use; risk of over-fitting |
Higher degrees follow price more closely but can begin to over-fit historical data beyond degree 4β5, reducing the forward projection's reliability.

Side-by-side comparison: Degree 1 (straight center line, linear regression) vs Degree 4 (curved center line following price cycles). Same instrument, same period.
Inner Band Deviation
float1.27Sets the distance of the inner band from the center line, measured in standard deviations. Price touching this level often marks the boundary between normal and extended moves.
The inner band is the first deviation level. Within a well-established trend price often oscillates between the center line and the inner band. A move beyond it signals that price is starting to stretch.

Chart with the Inner Band (Aqua) annotated - showing how price touches and bounces off the inner band, acting as dynamic support or resistance during a trend.
Middle Band Deviation
float1.618Sets the distance of the middle band from the center line. This level acts as a key decision zone where breakouts or reversals frequently occur in trending markets.
1.618 is the golden ratio - a recurring level in both nature and financial markets. In practice, the middle band is where price often pauses, consolidates, or reverses after leaving the center zone.

Chart with the Middle Band (Red) annotated - showing price pausing, consolidating, or reversing at the 1.618 deviation level.
Outer Band Deviation
float2.618Defines the extreme outer boundary of the channel. Price reaching the outer band is statistically rare. A prime area to watch for exhaustion or reversal signals.
| Band | Default deviation | Statistical meaning |
|---|---|---|
| Inner | 1.27 | Normal extension - price reaches here regularly |
| Middle | 1.618 | Notable extension - key decision zone |
| Outer | 2.618 | Extreme extension - watch for exhaustion or reversal |

Chart with all three bands labeled and annotated - Inner (Aqua), Middle (Red), Outer (FireBrick) - and the zone fills between them clearly showing the three statistical boundaries.
These four inputs control two distinct extensions of the channel: the lag zone (how many recent bars are excluded from the calculation) and the future projection (how far the polynomial curve is extended forward).
Lag Bars (ignore recent N bars)
int0Tells the indicator to ignore the most recent N bars when computing the regression. Setting 5 to 20 smooths out the channel tip on fast-moving or noisy instruments.
When set to 0, the regression includes all bars up to the current candle - the channel tip can appear to jump on fast or volatile instruments. Setting Lag Bars to 5β20 anchors the tip to confirmed bars, producing a more stable channel end. The trade-off is that the channel's right edge will float ahead of the current price by N bars.

Chart with Lag Bars = 10 and Highlight Lag Zone Candles = true - grey-colored candles at the right edge of the historical channel, clearly separated from the active price action.
Future Projection Length
int50Sets how many bars ahead the channel is projected into the future. The projection continues the polynomial curve forward, revealing potential future support and resistance levels.
The projected channel extends the polynomial curve mathematically forward. It is not a prediction, but a continuation of the current trend shape - showing where the channel levels would be if the same curve held going forward.

Chart showing the future projection channel extending to the right of the last candle - lime/orange/yellow bands projecting forward into empty chart space.
Highlight Lag Zone Candles
boolfalseWhen enabled, colorizes lag zone candles so you can clearly see which bars are excluded from the calculation. Useful any time Lag Bars is greater than zero.
Enable this together with Lag Bars > 0 to visually identify exactly which candles are outside the regression window.
Lag Candle Color
color64,64,64 (dark grey)Sets the display color of candles inside the lag zone. The default dark grey visually separates lag candles from the active price bars within the channel range.
The Main Channel is the historical portion of the indicator - the regression channel drawn over confirmed past bars. These seven inputs control its visual appearance.
Show Center Line
booltrueToggles the regression curve itself (the statistical mean of price) on or off. The center line is the core reference point for all mean-reversion strategies.
The center line is the actual polynomial regression curve - the line that best fits all price bars in the calculation window. Disable it only if you prefer a cleaner chart with just the deviation band lines.

Chart with Show Center Line = true (center regression curve visible) vs = false (only the deviation bands visible). Shows how the center line acts as the mean-reversion reference.
Show Zone Fills
booltrueEnables colored fill between band pairs for instant visual zone recognition. Zone 1 fills between inner and middle bands. Zone 2 fills between middle and outer bands.

Chart with Show Zone Fills = true - dark blue fill between inner and middle bands, dark red fill between middle and outer bands. The zones provide instant visual context for price position.
Inner Band Color
colorAquaColor of the inner band line in the historical channel. The inner band is the first deviation level and often acts as dynamic support or resistance during trends.
Middle Band Color
colorRedColor of the middle band in the historical channel. The 1.618 deviation middle band is a key zone where breakouts and zone-to-zone transitions frequently occur.
Outer Band Color
colorFireBrickColor of the outer band in the historical channel. Price at the outer band is statistically extreme. A prime area for reversal signals or high-momentum continuation.
Zone 1 Fill (Inner-Middle)
color0,0,48 (very dark blue)Fill color for the zone between the inner and middle bands. Default very dark blue subtly marks the moderate price zone without distracting from the band lines.
Zone 2 Fill (Middle-Outer)
color48,0,0 (dark red)Fill color for the zone between the middle and outer bands. Default dark red signals that this is a more extreme area, approaching the statistical limits of the channel.
The Future Channel is the projected portion of the indicator - the polynomial curve extended forward beyond the last confirmed bar. A distinct color palette (bright limes, oranges, yellows) separates it visually from the historical channel at a glance.
Inner Band Color
colorLimeColor of the inner band in the future (projected) portion of the channel. Bright lime clearly distinguishes the future zone from the historical channel at a glance.

Close-up of the right edge of the chart - showing the transition from the historical channel (Aqua inner band) to the future channel (Lime inner band). The color change makes the projection boundary immediately obvious.
Middle Band Color
colorOrangeColor of the middle band in the future channel. The contrasting orange helps traders instantly identify which part of the chart is projection versus confirmed history.

Chart showing the Future Channel (FC) middle band in Orange contrasting against the historical Middle Band in Red - demonstrating the visual distinction between projection and history.
Outer Band Color
colorYellowColor of the outer band in the future channel. The outer band projection marks statistically extreme levels for the period ahead. Key areas to plan around.

Chart focusing on the FC outer band (Yellow) extending into future bars - the projected extreme level for the period ahead, useful for planning entry or exit zones.
Zone 1 Fill (Inner-Middle)
color0,48,0 (dark green)Fill color between the inner and middle bands of the future channel. Dark green visually communicates a potential bullish equilibrium zone in the projected area.

Chart with FC Zone 1 Fill enabled - dark green fill between the FC inner and middle bands in the projected area, communicating a neutral-to-bullish equilibrium zone.
Zone 2 Fill (Middle-Outer)
color48,24,0 (dark amber)Fill color between the middle and outer bands of the future projection. Dark amber signals a more extreme projected zone where significant price moves are more likely.

Chart with both FC zone fills enabled - dark green (inner-middle) and dark amber (middle-outer) in the projected area, showing the two projected statistical zones.
The indicator includes four distinct signal generation algorithms selectable via a single drop-down. All modes analyze price behavior in relation to the regression channel structure, but each responds to a different type of market condition.
Arrow Signal Mode
enumCombined SmartSelects which algorithm generates entry signals. Combined Smart blends Mean Reversion, Trend Following, and Zone Bounce into a single adaptive mode.
| Mode | How it works | Best market condition |
|---|---|---|
| Combined Smart | Adapts to market structure - blends all three approaches, weighting trend-following in steep channels and mean-reversion in flat channels | All conditions - recommended default |
| Mean Reversion | Signals when price has extended from the center and shows early signs of returning toward it. Signals appear near outer/middle bands pointing back to center | Flat, oscillating, ranging markets |
| Trend Following | Signals in the direction of the channel slope, looking for entries aligned with the ongoing directional move. Avoids counter-trend signals | Strongly trending markets - steep channel angle |
| Zone Bounce | Signals when price reaches a band level and shows behavior consistent with a rejection or bounce from that structural level | When using bands as dynamic support/resistance |
guides.ltRegressionChannelMt5.i22n1

Chart showing buy signals (upward green arrows below candles) and sell signals (downward red arrows above candles) plotted around the channel bands - Combined Smart mode active.
Show Signal Arrows
booltrueMaster toggle for signal arrows on the chart. Disable this to use the indicator purely as a channel analysis tool without any visible entry signal markers.

Chart with Show Signal Arrows = true (buy/sell arrows visible on bands) vs = false (clean channel-only view, no signal markers).
Buy Arrow Color
colorLimeColor of upward (buy) signal arrows. Lime green is highly visible against the dark channel background and immediately communicates a bullish signal direction.
Sell Arrow Color
colorRedColor of downward (sell) signal arrows. Red contrasts with buy arrows for instant directional reading without needing to check the arrow orientation.
Arrow Size (1-5)
int2Visual size of signal arrows, from 1 (smallest) to 5 (largest). Increase on higher timeframe charts where arrows need to stand out across more price candles.
Arrow Offset from Price (points)
int10Distance in points between the signal arrow and the candle high or low. Increase this value to prevent arrows from overlapping with long candle wicks.
The alert system has a master switch, five trigger types, and four delivery methods. Each is controlled independently. Enable Alerts must be ON before any other setting has effect. Email and Push require prior configuration in MT5 under Tools β Options.
Enable Alerts
boolfalseMaster switch for the entire alert system. All other alert settings are inactive unless this is turned on. Default is off to prevent noise during indicator setup.
All five trigger types and all four delivery methods are inactive until this master switch is turned on.
Alert Once Per Bar Only
booltruePrevents repeated alerts on the same candle. When true, each condition fires a maximum of one alert per closed bar, greatly reducing notification noise.
On Signal Arrow (Buy/Sell)
booltrueFires an alert when a Buy or Sell signal arrow appears. This is the most actionable trigger. Ideal for traders who want direct entry point notifications.
On Zone Change
booltrueTriggers when price crosses from one zone into another (for example, Inner to Middle). Useful for monitoring structural shifts in where price sits relative to the channel.
On Direction Change
booltrueTriggers when the channel slope reverses direction. A direction change can signal an emerging trend shift before it becomes obvious on the price chart itself.
On HTF Alignment Change
booltrueFires when the number of aligned timeframes changes (for example, from 2/3 to 3/3). Use this to track multi-timeframe confluences forming or breaking in real time.
On Band Touch
boolfalseTriggers when price touches any band. Disabled by default as it can be very frequent on volatile instruments. Enable only for specific band-touch strategies.
Popup Alert
booltrueDelivers alerts as a standard MetaTrader popup dialog. Turn off if you prefer non-intrusive delivery methods like sound or push notifications instead.
Sound Alert
booltruePlays an audio sound when an alert fires using the file set in Sound File. A quick audible cue lets you monitor markets without watching the screen continuously.
Sound File
stringalert.wavFile name of the .wav audio played for sound alerts. Place custom sound files in your MetaTrader Sounds folder and enter the filename here to personalize your alerts.
Custom .wav files go in: MetaTrader terminal folder β Sounds. The default alert.wav is included with every MT5 installation.
Email Notification
boolfalseSends an email when an alert fires. Requires email configured in MT5 Tools, Options, Email. Set up your email settings in MetaTrader before enabling this option.
Configure email delivery first in MT5: Tools β Options β Email.
Push Notification
boolfalseSends a push notification to your mobile MetaTrader app. Configure push notifications in MT5 Tools, Options, Notifications before enabling this feature.
Configure push notifications first in MT5: Tools β Options β Notifications.
The dashboard is a movable, foldable information panel overlaid directly on your chart. Drag it by its header bar to reposition it anywhere. Click the minimize button to fold it without disabling it.
Show Dashboard Panel
booltrueToggles the live information panel overlaying your chart. The dashboard shows price zone, channel width, angle, direction, and timeframe alignment at a glance.

Close-up of the dashboard panel on a chart - showing the Price Zone field, Channel Width with status (EXPANDING/CONTRACTING/STABLE), and Channel Angle classification (STEEP/MODERATE/FLAT). Header bar visible at the top for dragging.
Position X
int10Sets the default horizontal position of the dashboard in pixels from the chart's left edge. You can also drag the panel manually to reposition it at any time.
Position Y
int30Sets the default vertical position of the dashboard in pixels from the chart's top edge. Adjust to keep the panel clear of your price action and indicator lines.
Show Price Zone
booltrueDisplays which price zone the current bar occupies (for example, OUTER HIGH, CENTER, INNER LOW). Color-coded: red for extreme zones, gold for middle, green for center.
| Zone label | Price location | Dashboard color |
|---|---|---|
| CENTER | At or near the regression mean | Green |
| INNER HIGH / INNER LOW | Between center line and inner band | Green |
| MIDDLE HIGH / MIDDLE LOW | Between inner and middle bands | Gold |
| OUTER HIGH / OUTER LOW | Beyond the middle band | Red |

Dashboard panel showing three different Price Zone readings: 'OUTER HIGH' in red, 'CENTER' in green, and 'MIDDLE LOW' in gold - demonstrating the color-coded zone display.
Show Channel Width
booltrueShows the current outer channel width in points plus whether it is EXPANDING, CONTRACTING, or STABLE. A key volatility metric for position sizing decisions.
An expanding channel signals increasing volatility - the market is moving with greater amplitude. A contracting channel often precedes a breakout or consolidation phase.

Dashboard panel showing the Channel Width field with three states: EXPANDING (with point value), CONTRACTING, and STABLE - illustrating how the volatility indicator changes during different market conditions.
Show Channel Angle
booltrueDisplays the channel slope angle in degrees with STEEP, MODERATE, or FLAT classification. A steep angle confirms a strong directional move. Flat signals choppy conditions.
Combine with the Price Zone reading: FLAT angle + OUTER HIGH is a stronger exhaustion signal than STEEP angle + OUTER HIGH (where the move may simply be a strong ongoing trend).

Dashboard panel showing the Channel Angle field at STEEP, MODERATE, and FLAT - with the degree value shown next to each classification.
Background Color
colorDarkSlateGrayBackground color of the dashboard panel. Dark slate gray default keeps the panel readable against any chart color scheme without distracting from price action.
Header Color
colorMidnightBlueColor of the dashboard header bar where the panel title appears. Drag this header bar to reposition the dashboard anywhere on your chart at any time.
Text Color
colorWhiteColor of the dashboard label and value text. White on dark backgrounds ensures maximum readability across different chart color themes and lighting conditions.
Success Color (green)
colorLimeColor used for bullish or healthy readings (for example, direction UP, zone CENTER). Bright green for immediate positive recognition when scanning the dashboard.
Warning Color (yellow)
colorGoldColor used for neutral or cautionary readings (for example, moderate alignment, expanding channel). Gold draws attention without triggering an immediate negative response.
Danger Color (red)
colorRedColor used for bearish or extreme readings (for example, direction DOWN, price OVERBOUGHT). Clear red for immediate danger recognition in the dashboard panel.
Price labels display the exact price level of each band at the right edge of the channel - useful for precise entry, stop-loss, and take-profit level planning without needing to manually read the price scale.
Show Price at Band Edges
boolfalseDisplays the exact price level of each band directly on the chart at the right edge of the channel. Helpful for precise entry, stop-loss, and take-profit planning.

Right edge of the chart with price labels enabled - numeric price values printed at each band level (Inner, Middle, Outer) showing the exact price for each statistical boundary.
Label Color
colorWhiteColor of the price label text printed at each band edge. Default white stands out against most chart backgrounds for clear and quick price level reading.
Font Size
int8Size of the price label text. Increase on higher timeframe charts or large monitors where small text becomes difficult to read at normal zoom levels.
HTF1 overlays an independent regression channel calculated from a higher timeframe onto your current chart. It uses the blue color family (DodgerBlue / RoyalBlue / Blue) to distinguish it from the main channel. Default timeframe: H4 - ideal for intraday traders on M15βH1 who want higher-timeframe structural context without switching charts.
Enable HTF1
boolfalseActivates the first higher timeframe channel overlay. When enabled, a separate regression channel is calculated from the HTF1 timeframe and drawn on your current chart.

Chart with Enable HTF1 = true and Show on Chart = true - dotted blue H4 channel bands overlaid on top of the main channel (Aqua/Red/FireBrick bands). Both channels visible simultaneously.
Timeframe
enumH4Selects which timeframe HTF1 uses for its channel calculation. Default H4 is a popular choice for intraday traders who want higher timeframe structural context.
Show on Chart
boolfalseToggles whether the HTF1 channel lines are drawn on the chart. Enable to visually overlay the higher timeframe channel alongside your current timeframe channel.
Show Zone Fills
boolfalseEnables colored fills between the HTF1 band pairs. Disabled by default to reduce visual clutter. Enable when you want the HTF zone structure clearly visible.

Chart with HTF1 Show Zone Fills = true - very dark MidnightBlue and Navy fills visible within the H4 channel overlay, showing the structural zones of the higher timeframe.
Show Future Channel
booltrueProjects the HTF1 channel forward into future bars. On by default. Even a subtle HTF future projection adds valuable forward-looking higher timeframe context.
FC Projection (HTF bars)
int10Number of HTF bars the future channel projects forward. 10 H4 bars equals 40 hours of projection. A meaningful planning horizon for intraday setups.
10 H4 bars β 40 hours of forward projection.
Line Style
enumDotVisual style of the HTF1 channel lines. Dotted default separates HTF lines from the solid primary channel so you always know which level belongs to which timeframe.
Line Width
int1Thickness of the HTF1 channel lines. Keep thin by default to avoid cluttering the chart. Increase only if the HTF overlay needs more visual prominence.
Inner Band
colorDodgerBlueColor of the inner band in the HTF1 channel. The blue family clearly distinguishes HTF1 from the main channel and HTF2 at a glance.
Middle Band
colorRoyalBlueColor of the HTF1 middle band. A slightly darker blue than the inner band maintains visual hierarchy within the HTF1 color family on the chart.
Outer Band
colorBlueColor of the outermost HTF1 band. Dark blue marks the extreme level in the H4 channel. A high-conviction support or resistance area when price reaches it.
Zone 1 Fill
colorMidnightBlueFill color between the inner and middle bands of the HTF1 channel. Very dark blue keeps the HTF overlay subtle and non-distracting on a busy chart.
Zone 2 Fill
colorNavyFill color between the middle and outer bands in HTF1. Navy is darker than MidnightBlue, adding subtle visual depth to the outer HTF zone on the chart.
HTF2 adds a third regression channel from an even higher timeframe (default: Daily). It uses the purple color family (MediumOrchid / DarkOrchid / Purple) to stay visually distinct from both the main channel and HTF1. Together, HTF1 (H4) and HTF2 (D1) create a three-layer multi-timeframe framework.
Enable HTF2
boolfalseActivates the second higher timeframe channel overlay. Use alongside HTF1 to analyze your chart across three different timeframes simultaneously for maximum confluence.

Chart with all three channels visible: main (Aqua/Red/FireBrick solid bands), HTF1 (dotted blue), HTF2 (dotted purple) - showing how the three timeframes nest together on a single chart.
Timeframe
enumD1Selects which timeframe HTF2 uses. Default Daily. Combining H4 and D1 creates a powerful framework covering intraday to daily market structure.
H4 (HTF1) + D1 (HTF2) is the classic intraday-to-daily framework: three channels covering your primary chart, the session structure, and the daily bias simultaneously.
Show on Chart
boolfalseToggles visibility of the HTF2 channel lines. The purple color family keeps HTF2 visually distinct from both the main channel and HTF1's blue family.
Show Zone Fills
boolfalseEnables colored fills between the HTF2 band pairs. Keep off by default. Enable when you specifically want the Daily zone structure clearly visible on the chart.
Show Future Channel
booltrueProjects the HTF2 channel forward. On by default. The Daily channel future projection gives a longer-term structural view of where price may be heading.
FC Projection (HTF bars)
int10Number of HTF2 bars projected forward. 10 Daily bars equals 2 trading weeks of projection. A useful medium-term planning horizon for swing traders.
10 Daily bars β 2 trading weeks of forward projection.
Line Style
enumDotVisual style of HTF2 lines. Dotted default matches HTF1. Both appear as dotted overlays to signal they are higher timeframe reference levels, not primary bands.
Line Width
int1Thickness of HTF2 lines. Thin by default to minimize chart clutter when all three channels (main, HTF1, HTF2) are visible simultaneously on the chart.
Inner Band
colorMediumOrchidColor of the inner band in the HTF2 channel. The purple family clearly separates HTF2 from HTF1 (blue) and the main channel.
Middle Band
colorDarkOrchidColor of the HTF2 middle band. A deeper purple than the inner band maintains visual hierarchy within the HTF2 color scheme across the chart overlay.
Outer Band
colorPurpleColor of the outermost HTF2 band. Dark purple marks the extreme level in the Daily channel. A high-conviction boundary representing significant structural interest.
Zone 1 Fill
colorDarkMagentaFill color between the inner and middle bands of HTF2. Dark magenta keeps the fill subtle while staying within the HTF2 purple family color palette.
Zone 2 Fill
colorIndigoFill color for the outer zone in HTF2. Indigo is among the darkest purples, visually signaling that the HTF2 outer zone is a statistically extreme price boundary.
Four system-level settings: CPU performance mode, non-repainting historical lock, line style for locked channels, and the internal name used when running multiple instances on the same chart.
Enable Performance Mode
boolfalseWhen enabled, the indicator skips tick-by-tick recalculation and only updates on bar close. Significantly reduces CPU load on fast symbols or slower trading machines.
Enable on M1βM5 charts, index or crypto symbols with very high tick rates, or when MT5's CPU meter shows high usage from the indicator. You lose tick-level precision but bar-close accuracy is fully preserved.
Lock Channel at Bar Close
boolfalseLocks the channel position at each bar's closing price for a strictly non-repainting historical view. Ideal for backtesting and verifying historical strategy performance.
When OFF (default): the channel updates on every tick - the right edge moves live with price. When ON: each bar's channel position is permanently locked at its closing price, giving an accurate picture of what the channel looked like at the close of any past bar with no repainting.

Chart with Lock Channel at Bar Close = true - channel lines shown as dashed lines (locked historical data) rather than the solid lines of live mode. Useful for reviewing past setups or sharing backtesting screenshots.
Historical Line Style
enumDashSets the visual style for channel lines when Historical Mode is active. Dashed lines visually communicate that the channel is displaying locked historical data.
Indicator Name
stringLT Regression Channel MT5Internal name used to label all chart objects created by the indicator. Change this when running multiple instances on the same chart to prevent naming conflicts.
For example: two instances with different Period settings - set the first to "LT_RC_100" and the second to "LT_RC_300" - to prevent them from overwriting each other's chart objects.
Getting the Most Out of the Indicator
- Multi-timeframe workflow: Enable HTF1 (H4) and HTF2 (D1) first to identify higher timeframe zone confluence before looking for entries on your primary chart.
- Signal mode selection: Use Combined Smart as your default. Switch to Mean Reversion in clearly ranging markets and Trend Following during strong directional moves.
- Dashboard at a glance: OUTER HIGH (red) + STEEP angle + direction UP suggests the market may be extended. CENTER (green) + EXPANDING + MODERATE is a healthier trending environment.
- Lag Bars for stability: If the channel tip jumps erratically on volatile instruments, set Lag Bars to 5-15 to anchor the channel to confirmed bars.
- Performance Mode: Enable on M1-M5 charts or when MT5 CPU usage is high with multiple indicators open. You retain full bar-close accuracy.
- Historical Mode for review: Enable when reviewing past signals or presenting backtests. The dashed, non-repainting lines show an honest picture of what the channel looked like at each bar close.