OPEN-SOURCE SCRIPT
Harborside Regime Channel [JOAT]

Harborside Regime Channel [JOAT]
Introduction
Harborside Regime Channel is an open-source regime-mapping indicator built to classify whether the market is expanding, compressing, reclaiming balance, or losing structural support inside a live adaptive channel.
The script is designed for traders who need context before they interpret any other signal.
Instead of asking only whether price is above or below a moving average, Harborside studies a pivot-fed centerline, adaptive outer rails, higher-timeframe directional agreement, and volatility compression state at the same time.
The result is a channel that behaves more like an institutional market map than a simple trend overlay.
The problem Harborside solves is regime clarity.
Many trend tools keep printing directional color even while the market is actually compressing inside a narrowing structure.
Many channel tools show a band but do not explain whether that band is healthy, fragile, extended, or aligned with higher-timeframe pressure.
Harborside addresses that by combining channel structure, expansion behavior, and higher-timeframe bias in one chart-first framework.

Core Concepts
1. Pivot-Fed Structural Center
Harborside does not anchor its regime center to a fixed moving average alone.
Instead, confirmed swing highs and swing lows are used to build a rolling center reference.
That center is then smoothed to create a structural balance line.
This matters because the center is linked to confirmed market geometry rather than only to lagging price averages.
The channel therefore breathes with the underlying structure of the market.
2. Adaptive Outer Rails
The upper and lower rails are derived from ATR-scaled expansion around the structural center.
This means the channel naturally widens when volatility expands and contracts when price compresses.
Because the rails are smoothed, they remain readable instead of flickering excessively during intrabar noise.
This creates a cleaner map for determining whether price is stretching, reverting, or breaking into a new directional phase.
3. Regime Flips on Confirmed Structural Breaks
A bullish regime is not assigned merely because price is green for a few bars.
A regime flip occurs when price confirms through the adaptive outer band in the relevant direction.
That regime is then maintained until the opposing side is confirmed.
This makes the indicator more stable than reactive color-on-close style tools.
4. Compression Detection
Harborside measures band width relative to its own historical baseline.
When the band compresses below the configured threshold, the script identifies a meaningful reduction in expansion state.
This compression state is important because trend-following logic behaves very differently when the market is coiled than when it is already moving freely.
Compression is shown directly on the chart and carried into the dashboard state.
5. Projection Rails
The script extends projected center, upper, and lower rails forward using current center slope and ATR-scaled projection logic.
These projected rails are not predictions in the magical sense.
They are forward references showing where the current regime geometry would continue if the active slope persists.
That gives the trader a usable visual frame for stretch, continuation, and mean-reversion decisions.
6. Higher-Timeframe Bias Alignment
Higher-timeframe bias is requested using offset logic intended to avoid repaint-style behavior from incomplete higher-timeframe bars.
Fast and slow higher-timeframe EMA structure is used to determine whether broad directional pressure is supportive, opposing, or neutral.
Harborside does not force the higher-timeframe filter on the user.
It can be enabled or disabled depending on workflow.
7. Regime Health and Confidence
Harborside includes a confidence-style scoring model built from displacement, slope, compression state, and directional bias alignment.
This score is not intended to be a trade system on its own.
It is a context gauge.
A high score means the active regime has cleaner structural support.
A low score means the visible state is weaker or more fragile.

Features
Input Parameters
Channel Structure:
Bias and Context:
Projection:
Display:
How to Use This Indicator
Step 1: Read the State from the Chart First
Start with the channel itself.
Is price controlling the upper side of the structure, the lower side, or compressing near the center?
The rails and cloud are meant to answer that visually before the dashboard is consulted.
Step 2: Check Compression Before Chasing Direction
If the compression box is active, treat the market as coiled rather than trending cleanly.
That does not mean price cannot move.
It means breakout quality matters more than ordinary directional drift.
Step 3: Use Projection Rails as Forward Reference
Projection rails are best used for context.
If price is already far outside projected geometry, the market may be stretched.
If price is traveling inside projected structure, continuation is behaving more normally.
Step 4: Compare Local Regime to HTF Bias
If the local regime and higher timeframe agree, directional conditions are cleaner.
If they disagree, treat the move with more caution.
That disagreement often marks either a pullback or a weak local thrust against broader pressure.
Step 5: Use Health and Confidence as Filters, Not Commands
High confidence does not guarantee follow-through.
Low confidence does not guarantee failure.
The score is there to grade structural quality, not to replace decision-making.
Indicator Limitations
Originality Statement
Harborside Regime Channel is original in the way it combines a pivot-fed structural center, ATR-adaptive regime rails, explicit compression logic, forward projection rails, and optional higher-timeframe agreement into one coherent chart-first overlay.
The value of the script is not any one component in isolation.
It is the way those components interact to show whether the market is healthy, stretched, compressing, or structurally aligned.
Disclaimer
This indicator is provided for educational and informational purposes only.
It does not provide financial advice, investment advice, or trading recommendations.
Any regime reading can fail, reverse, or degrade suddenly due to news, liquidity changes, or ordinary market uncertainty.
Always use independent confirmation and risk management.
Introduction
Harborside Regime Channel is an open-source regime-mapping indicator built to classify whether the market is expanding, compressing, reclaiming balance, or losing structural support inside a live adaptive channel.
The script is designed for traders who need context before they interpret any other signal.
Instead of asking only whether price is above or below a moving average, Harborside studies a pivot-fed centerline, adaptive outer rails, higher-timeframe directional agreement, and volatility compression state at the same time.
The result is a channel that behaves more like an institutional market map than a simple trend overlay.
The problem Harborside solves is regime clarity.
Many trend tools keep printing directional color even while the market is actually compressing inside a narrowing structure.
Many channel tools show a band but do not explain whether that band is healthy, fragile, extended, or aligned with higher-timeframe pressure.
Harborside addresses that by combining channel structure, expansion behavior, and higher-timeframe bias in one chart-first framework.
Core Concepts
1. Pivot-Fed Structural Center
Harborside does not anchor its regime center to a fixed moving average alone.
Instead, confirmed swing highs and swing lows are used to build a rolling center reference.
That center is then smoothed to create a structural balance line.
This matters because the center is linked to confirmed market geometry rather than only to lagging price averages.
The channel therefore breathes with the underlying structure of the market.
2. Adaptive Outer Rails
The upper and lower rails are derived from ATR-scaled expansion around the structural center.
This means the channel naturally widens when volatility expands and contracts when price compresses.
Because the rails are smoothed, they remain readable instead of flickering excessively during intrabar noise.
This creates a cleaner map for determining whether price is stretching, reverting, or breaking into a new directional phase.
3. Regime Flips on Confirmed Structural Breaks
A bullish regime is not assigned merely because price is green for a few bars.
A regime flip occurs when price confirms through the adaptive outer band in the relevant direction.
That regime is then maintained until the opposing side is confirmed.
This makes the indicator more stable than reactive color-on-close style tools.
4. Compression Detection
Harborside measures band width relative to its own historical baseline.
When the band compresses below the configured threshold, the script identifies a meaningful reduction in expansion state.
This compression state is important because trend-following logic behaves very differently when the market is coiled than when it is already moving freely.
Compression is shown directly on the chart and carried into the dashboard state.
5. Projection Rails
The script extends projected center, upper, and lower rails forward using current center slope and ATR-scaled projection logic.
These projected rails are not predictions in the magical sense.
They are forward references showing where the current regime geometry would continue if the active slope persists.
That gives the trader a usable visual frame for stretch, continuation, and mean-reversion decisions.
6. Higher-Timeframe Bias Alignment
Higher-timeframe bias is requested using offset logic intended to avoid repaint-style behavior from incomplete higher-timeframe bars.
Fast and slow higher-timeframe EMA structure is used to determine whether broad directional pressure is supportive, opposing, or neutral.
Harborside does not force the higher-timeframe filter on the user.
It can be enabled or disabled depending on workflow.
7. Regime Health and Confidence
Harborside includes a confidence-style scoring model built from displacement, slope, compression state, and directional bias alignment.
This score is not intended to be a trade system on its own.
It is a context gauge.
A high score means the active regime has cleaner structural support.
A low score means the visible state is weaker or more fragile.
Features
- Pivot-fed centerline: The regime center is anchored to confirmed swing structure rather than a static average alone
- Adaptive outer rails: ATR-scaled bands expand and contract with changing volatility conditions
- Confirmed regime flips: Bull and bear states change only after confirmed structural breaks through the active channel rails
- Compression box: Important volatility contraction zones are shown directly on the chart instead of being hidden in a separate pane
- Projection rails: Forward rails extend the current channel geometry into future bars for context and stretch awareness
- Higher-timeframe bias filter: Optional HTF directional alignment helps separate local moves from larger directional pressure
- Regime-colored candles: Candle coloring reflects the active state without relying on cluttered symbols or arrows
- Band cloud rendering: The active channel body is filled to make directional structure readable at a glance
- Health and confidence diagnostics: The dashboard summarizes regime quality in compact form
- Six-row dashboard: The display was intentionally reduced so the chart remains the primary source of information
- Confirmed-bar alerts: Alerts are available for regime flips, compression holds, center reclaims, HTF alignment, and high-health states
Input Parameters
Channel Structure:
- Swing Length: Number of bars required on both sides to confirm pivots used by the structural center
- Band Multiplier: ATR multiplier used to define the channel width
- Center Smoothing: Smoothing applied to the structural midpoint
- Band Smoothing: Smoothing applied to the upper and lower rails
Bias and Context:
- Bias Timeframe: Higher timeframe used for optional directional confirmation
- Compression Lookback: Baseline window used to measure channel contraction
- Compression Threshold: Band-width threshold below which the market is treated as compressed
- Volume Bias Filter: Volume impulse threshold used to label directional support
Projection:
- Projection Bars: Number of bars projected forward
- Projection ATR Multiplier: Width factor used for forward rails
- Projection Slope Multiplier: How strongly current center slope influences the forward center projection
Display:
- Show Band Cloud toggle
- Show Compression Box toggle
- Show Projection Rails toggle
- Recolor Candles toggle
- Show Dashboard toggle
How to Use This Indicator
Step 1: Read the State from the Chart First
Start with the channel itself.
Is price controlling the upper side of the structure, the lower side, or compressing near the center?
The rails and cloud are meant to answer that visually before the dashboard is consulted.
Step 2: Check Compression Before Chasing Direction
If the compression box is active, treat the market as coiled rather than trending cleanly.
That does not mean price cannot move.
It means breakout quality matters more than ordinary directional drift.
Step 3: Use Projection Rails as Forward Reference
Projection rails are best used for context.
If price is already far outside projected geometry, the market may be stretched.
If price is traveling inside projected structure, continuation is behaving more normally.
Step 4: Compare Local Regime to HTF Bias
If the local regime and higher timeframe agree, directional conditions are cleaner.
If they disagree, treat the move with more caution.
That disagreement often marks either a pullback or a weak local thrust against broader pressure.
Step 5: Use Health and Confidence as Filters, Not Commands
High confidence does not guarantee follow-through.
Low confidence does not guarantee failure.
The score is there to grade structural quality, not to replace decision-making.
Indicator Limitations
- Pivot-based structure is intentionally confirmed after the swing forms, so the centerline will never anticipate future pivots
- Projection rails are structural references, not forecasts of what price must do next
- HTF alignment is delayed by design because the script uses completed higher-timeframe values for safer non-repainting behavior
- Compression can persist longer than expected, so directional patience is still required
- Harborside is a context framework and should not be treated as a guaranteed entry system on its own
Originality Statement
Harborside Regime Channel is original in the way it combines a pivot-fed structural center, ATR-adaptive regime rails, explicit compression logic, forward projection rails, and optional higher-timeframe agreement into one coherent chart-first overlay.
The value of the script is not any one component in isolation.
It is the way those components interact to show whether the market is healthy, stretched, compressing, or structurally aligned.
Disclaimer
This indicator is provided for educational and informational purposes only.
It does not provide financial advice, investment advice, or trading recommendations.
Any regime reading can fail, reverse, or degrade suddenly due to news, liquidity changes, or ordinary market uncertainty.
Always use independent confirmation and risk management.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.