Scientific MACD Scientific MACD v5.1 — User Guide
An advanced momentum oscillator featuring eight scientifically-modeled moving average algorithms with adaptive signal generation and real-time calculation stability.
Overview
This indicator reimagines the traditional MACD through the lens of multiple scientific disciplines. Rather than relying on simple exponential moving averages, it offers eight distinct mathematical frameworks for calculating trend components—each derived from physics, biology, information theory, or behavioral science. The result is a highly adaptive momentum system that adjusts its sensitivity to market conditions through dynamic error-tracking and hybrid ensemble methods.
Core Architecture
Three-Component Structure
Like the classic MACD, this indicator maintains three essential elements:
Fast Line: Short-term trend component (default: 12 periods)
Slow Line: Long-term trend component (default: 26 periods)
Signal Line: Smoothed derivative of the MACD line (default: 9 periods)
Independent Algorithm Selection
Each component can use any of the eight available moving average types independently. This allows sophisticated combinations such as Wave fast + Entropy slow + Synaptic signal, creating multi-domain confirmation systems.
Scientific Moving Average Models
1. Wave Mechanics MA
A Fourier-inspired bandpass filter that decomposes price into harmonic components. Uses multiple sine wave harmonics (fundamental + overtones) centered around a mean price, with amplitude derived from period range. Higher harmonics receive decreasing weights. Ideal for identifying cyclical price structures and filtering noise through frequency domain analysis.
2. Thermodynamic Entropy MA
Applies information theory concepts to market returns. Calculates Shannon entropy across a 5-bin probability distribution of returns, then uses entropy ratio to adapt smoothing intensity. High entropy (disorder) increases smoothing; low entropy (trending) decreases smoothing. Adds small entropy-based adjustments to center the moving average.
3. Biological Synaptic MA
Implements Hebbian learning rules from neural biology. Maintains adaptive weights for recent price history that strengthen when current price movements correlate with past movements (associative learning). Weights decay exponentially with time and normalize between 0.5 and 2.0. Excels at capturing momentum persistence and regime changes.
4. Quantum Uncertainty MA
Models price as a quantum superposition of states with probabilistic amplitudes. Uses Gaussian distance functions to project current price onto historical basis states, then calculates expectation values. Incorporates decoherence (mixing with previous states) for stability. Naturally handles uncertainty and provides smooth transitions between trend states.
5. Fluid Dynamics MA
Treats price movement as fluid flow with Reynolds number classification. Calculates characteristic velocity, viscosity, and Reynolds number to determine flow regime. Laminar flow (low Re) uses diffusion-dominated smoothing; turbulent flow (high Re) uses advection-dominated smoothing. Includes stability clamps to prevent extreme deviations.
6. Network Cascade MA
Applies epidemiological SIR (Susceptible-Infected-Recovered) models to price trends. Models trend strength as infection rate spreading through market participants. Adaptive smoothing based on active infections (trend strength) with mean reversion as recovery increases. Beta parameter derived from return surprises relative to volatility.
7. Behavioral Economics MA
Incorporates Prospect Theory from psychology. Maintains an adaptation level (reference point) that updates slowly. Applies Tversky-Kahneman value functions with loss aversion (lambda = 2.25) and diminishing sensitivity (alpha = 0.88). Weights prices by psychological value rather than linear distance, emphasizing gains/losses relative to perceived anchors.
8. Hybrid Ensemble MA
Combines all seven models through inverse-error weighting. Tracks exponential moving average of prediction errors for each component model, then assigns weights inversely proportional to recent error. Automatically favors whichever scientific model best fits current market conditions. Displays real-time weight distribution table when enabled.
Signal Generation
Quality-Filtered Crossovers
Standard MACD crossovers are enhanced with statistical quality gates:
Bull Signal: MACD crosses above Signal while MACD is below zero and histogram exceeds 80th percentile of recent values
Bear Signal: MACD crosses below Signal while MACD is above zero and histogram below 20th percentile of recent values
High-Quality Signals
Additional filter requiring signal quality ratio (histogram magnitude divided by histogram volatility) to exceed 2.0. These appear as HQ↑ and HQ↓ markers, indicating statistically significant momentum shifts.
Visualization Features
Dynamic Color Coding
MACD Line: Lime/olive when above signal (bullish), red/maroon when below (bearish)
Histogram: Intensity varies with signal quality—brighter colors indicate stronger statistical significance
Signal Line: Orange for clear differentiation
Zero Line: Dashed gray reference
Volatility Zone: Gray fill between ±1 standard deviation of MACD values
Hybrid Weight Display
When Hybrid MA is selected and Show Hybrid Weights is enabled, a real-time table displays current ensemble weightings for all seven component models as percentages. Updates dynamically as market conditions favor different scientific approaches.
Key Input Parameters
Core Settings
Fast Length: Short-term lookback (2-200, default 12)
Slow Length: Long-term lookback (3-500, default 26)
Signal Length: Smoothing period for signal line (2-100, default 9)
Scientific Parameters
ZigZag Detection Depth: Influences cyclicality measures in Wave and Fluid models (3-20, default 5)
Real-Time Calculation Fix: Blends calculated values with current price during unconfirmed bars to prevent repainting artifacts
MA Configuration
Independent algorithm selection for Fast, Slow, and Signal components. Options: Wave, Entropy, Synaptic, Quantum, Fluid, Cascade, Behavioral, Hybrid.
Display Settings
Toggle for Hybrid weight table visibility.
Operational Workflow
Select appropriate lengths for your timeframe and trading style
Choose MA algorithms based on market characteristics:
Trending markets: Synaptic, Cascade, or Behavioral
Cyclical/ranging markets: Wave or Quantum
High volatility: Entropy or Fluid
Unknown regime: Hybrid (adaptive ensemble)
Enable Real-Time Calculation Fix for live trading to prevent repainting
Monitor standard crossovers for entry signals
Prioritize HQ (High Quality) signals for lower-risk entries
Use histogram color intensity to gauge signal strength
When using Hybrid, monitor weight table to understand which models are currently dominant
Best Practices
Use longer lengths (20-50-10) for swing trading, standard (12-26-9) for day trading
Combine complementary algorithms: fast Wave + slow Entropy captures cycles within noise-filtered trends
Enable Hybrid during regime uncertainty—it automatically selects optimal models
Disable Real-Time Calculation Fix for historical analysis, enable for live signals
Watch for divergence between MACD and price while monitoring histogram quality for confirmation
Volatility zone fill helps identify when MACD moves reach statistical extremes
This indicator provides mathematically sophisticated trend analysis. Algorithm selection significantly impacts signal characteristics—experiment with combinations to find optimal fit for your market and timeframe.
อินดิเคเตอร์และกลยุทธ์
Q-Trend + Keltner Squeeze ZonesThe indicator you are using is a **custom combination** of two distinct tools overlaid on the same chart in TradingView: **Q-Trend** (by tarasenko_) and a **Keltner Channel Squeeze** setup (with Bollinger Bands for squeeze detection). The result is a visual system designed to identify trend direction and manage positions with volatility-aware levels.
### 1. Q-Trend Component
**Purpose**: Determines the overall trend bias and generates entry/continuation signals.
**How it works** (core logic):
- It calculates a dynamic **trend line** (often labeled "Q-Trend Line" when visible) as the midpoint between the highest and lowest price over a long lookback period (default 200 bars).
- An **ATR-based buffer** (epsilon = ATR × multiplier, default 1.0) is added/subtracted to create upper and lower threshold bands around this trend line.
- Signals occur when price crosses or decisively moves beyond these thresholds:
- **Buy signal** → price breaks above the upper threshold (trend line + epsilon).
- **Sell signal** → price breaks below the lower threshold (trend line – epsilon).
- **Strong signals** incorporate additional conditions based on proximity to recent range extremes.
- Bar coloring (blue for bullish, red for bearish by default) and optional labels/arrows reinforce the trend direction.
**Practical role in your setup**:
- Acts as the **primary trend filter**.
- You only consider long positions when the chart shows bullish coloring/signals, and short positions when bearish.
### 2. Keltner Channel Squeeze Component
**Purpose**: Identifies periods of low volatility (compression) and potential directional breakouts, while providing dynamic support/resistance and trailing levels.
**How it works**:
- **Center line** → 20-period EMA of close (orange when visible) — serves as your visual midpoint reference.
- **Inner bands** → Center ± (ATR × inner multiplier). Default inner = 1.8 ATR.
- **Outer bands** → Center ± (ATR × outer multiplier). Default outer = 3.3 ATR.
- **Bollinger Bands** (optional, default hidden) → 20-period SMA ± 2 standard deviations — used only internally to detect a **squeeze** (when BB width < inner Keltner width).
- **Squeeze breakout arrows**:
- Lime up arrow below bar → bullish breakout (close above upper inner band after squeeze).
- Red down arrow above bar → bearish breakout (close below lower inner band after squeeze).
- **Labels** appear at key events:
- "SQUEEZE BREAK UP" / "SQUEEZE BREAK DOWN" on initial breakout.
- "REBALANCE UP" / "REBALANCE DOWN" when price returns inside the inner band after a breakout (potential mean-reversion or failure).
**Visual zones** (when fills are enabled):
- Upper red zone (between inner and outer upper bands) → potential short/rejection area in downtrends.
- Lower blue zone (between inner and outer lower bands) → potential long/rejection area in uptrends.
### Your Overall Strategy (as Described)
This is a **trend-following system with volatility-based scaling and protection**. It is designed to enter/add to positions in the direction of the prevailing trend while using the Keltner structure for timing and risk management.
**Key rules you follow**:
1. **Trend filter first** — Confirm direction with Q-Trend:
- Bullish (blue bars, Buy/Strong Buy signals) → only consider long trades.
- Bearish (red bars, Sell/Strong Sell signals) → only consider short trades.
2. **Addition (scaling in)**:
- In an **uptrend**: Add to longs when price pulls back **below the centerline** (mid Keltner/EMA) or touches/rejects the **inner lower band**.
- In a **downtrend**: Add to shorts when price rallies to the **inner upper band**.
- Rationale: These are temporary retracements within the trend, not reversals. Scaling here improves average entry price.
3. **Entry trigger**:
- Often initiated or confirmed by a Q-Trend Buy/Sell signal.
- Keltner breakout arrows (lime/red) can provide additional timing confirmation.
4. **Trailing stop-loss**:
- For **long positions**: Trail stop-loss below the **outer lower band** (lower_outer).
- For **short positions**: Trail stop-loss above the **outer upper band** (upper_outer).
- As price moves favorably, the outer band follows (via the shifting EMA + ATR), automatically locking in gains.
- Activate/tighten the trail upon entry (e.g., after a Buy signal or breakout arrow).
**Risk considerations**:
- Use position sizing appropriate to account risk (e.g., 1–2% per trade).
- The outer bands widen in high volatility → more room to breathe but larger potential loss.
- Avoid forcing trades in choppy/range-bound markets (Q-Trend signals become less reliable).
- Backtest on your specific instrument/timeframe (e.g., futures like ES/NQ) to validate behavior.
This setup rewards patience: wait for clear trend alignment (Q-Trend), add on volatility-supported pullbacks (Keltner inner/mid), and let winners run while protecting with adaptive trailing levels (Keltner outer). If you would like clarification on any parameter, visual adjustment, or addition of alerts for your exact rules, please specify.
RT Signals & Overlays Signals & Overlays™ is an all-in-one toolkit made up of more than 20+ features primarily focused on generating useful signals & overlays to fulfill any trader's technical analysis needs with relevant data.
Cyberpunk MACD Pulse EngineDescription
The Cyberpunk MACD Pulse Engine is a high-performance trend momentum oscillator designed for the modern trader operating in high-volatility environments. It reimagines classic MACD logic through a futuristic HUD (Head-Up Display) aesthetic and is now equipped with "Tactical Mode" switching capabilities—allowing you to swap your analytical focus instantly, much like upgrading hardware in a high-tech sprawl.
Core Systems
・Four Tactical Presets: Instantly recalibrate the engine between Standard, Fast (Scalp), Slow (Swing), or Neural Spike (Hyper-reactive) to match your specific trading style.
・Pulse Histogram: Features dynamic transparency and neon-fused clarity to visualize momentum acceleration and deceleration in real-time.
・Dual-Core Lines: MACD and Signal lines are rendered with a "Neon Glow" effect for maximum visibility during intense sessions.
・System Status HUD: An integrated interface in the top-right corner that monitors current status and active Tactical Mode without cluttering your focus.
・Optimized Logic: Built on Pine Script V5 to ensure lightweight, latency-free performance.
How to Use
1. Identify the Signal: Watch for the "System Reboot" (Cyan Triangle) for bullish reversals and "System Critical" (Magenta Triangle) for bearish shifts.
2. Monitor Intensity: When the histogram glows intensely, momentum is at its peak.
3. Tactical Tip: Use Neural Spike for spotting sudden volatility spikes, and switch to Slow (Swing) to confirm if the primary higher-timeframe trend is still intact.
概要
Cyberpunk MACD Pulse Engineは、現代のトレーダーのために設計された高性能トレンド・モメンタム・オシレーターです。クラシックなMACDを近未来的なHUD(ヘッドアップディスプレイ)の美学で再構築しただけでなく、状況に応じて設定を瞬時に換装できる**「タクティカル・モード」**を新たに搭載しました。ハイテク都市のハードウェアをアップグレードするように、分析の焦点を即座に切り替えることが可能です。
主な機能
・4つのタクティカル・プリセット: Standard、Fast (スキャルピング)、Slow (スイング)、Neural Spike (超高感度反応) から、自身のトレードスタイルに合わせてエンジンを即座に再調整できます。
・パルス・ヒストグラム: ネオンが融合したクリアな視覚効果と動的な透明度変化により、モメンタムの加速と減速をリアルタイムに視覚化します。
・デュアルコア・ライン: MACDとシグナルラインに「ネオングロー」エフェクトを施し、ボラティリティの高い局面でも最高の視認性を確保。
・統合HUD: ペインの右上に、現在のトレンドステータスと選択中のモードをフィードバック表示。集中力を削ぐことなく状況を把握できます。
・最適化されたロジック: Pine Script V5をベースに、軽量な動作とラグのない描画を実現しました。
使用方法
1. シグナルの確認: 強気の反転を示す「System Reboot(シアンの三角)」と、弱気への転換を示す「System Critical(マゼンタの三角)」に注目してください。
2. 勢いの測定: ヒストグラムの発色が鮮やかになった時、トレンドの勢いが最大に達していることを示します。
3. タクティカル・チップ: 急なボラティリティを検知するにはNeural Spikeを使用し、主要なトレンドが維持されているか確認するにはSlow (Swing)に切り替えて分析を補完してください。
Zen Measured Moves - Price Extension Targets Based on Prior Bar Overview
Zen Measured Moves identifies potential price extension targets by projecting the prior bar's range forward from breakout points. This indicator helps traders anticipate how far price might travel after breaking above a prior high or below a prior low.
How It Works
The indicator calculates three measured move targets in each direction:
Bullish Targets (from prior bar's high):
0.5x - Half the prior range (50% extension)
1x - Full prior range (100% extension)
2x - Double the prior range (200% extension)
Bearish Targets (from prior bar's low):
0.5x - Half the prior range (50% extension)
1x - Full prior range (100% extension)
2x - Double the prior range (200% extension)
Visual Signals
Blue circles above bars indicate bullish measured moves achieved:
Light blue (tiny) = 0.5x target hit
Medium blue (small) = 1x target hit
Dark blue (normal) = 2x target hit
Red circles below bars indicate bearish measured moves achieved:
Light red (tiny) = 0.5x target hit
Medium red (small) = 1x target hit
Dark red (normal) = 2x target hit
Data Window Outputs
All calculated values are available in the Data Window for analysis or export to Excel:
Target hit indicators (1/0 boolean values)
Actual target price levels
Bar type classifications (bullish/bearish)
Range measurements
Internal Bar Strength (IBS) values
Use Cases
Identify potential profit targets after breakouts
Gauge momentum strength by which targets are reached
Filter for high-momentum vs low-momentum moves
Backtest measured move reliability on your instruments
Export data for statistical analysis in Excel
Best Practices
Works on any timeframe or instrument
Most effective when prior bar has clear directional bias
Consider combining with volume or other confirmation indicators
Use IBS values to assess entry/exit quality within bars
EMA Multi Cross + SR Breaks & RetestsDescription
The EMA Multi Cross with Support & Resistance Break & Retest indicator combines trend-following moving averages with dynamic support and resistance zone detection to help traders identify trend direction, momentum shifts, and key price reaction areas in real time.
The indicator plots multiple Exponential Moving Averages (EMAs) to provide a clear view of short-, medium-, and long-term trends while automatically detecting high-volume support and resistance zones. It also highlights when these zones break or successfully hold, helping traders spot potential continuation or reversal opportunities.
Key Features
Multi-EMA Trend System
The indicator displays EMA 9, 13, 15, 21, 50, and 200 to help traders quickly assess trend structure and market momentum.
EMA Crossover Alerts
Alerts can be triggered when important EMA crossovers occur, helping traders capture momentum shifts and potential entries.
Cross alerts included:
EMA 9 crossing EMA 15
EMA 9 crossing EMA 21
EMA 13 crossing EMA 50
EMA 21 crossing EMA 200
Both bullish and bearish signals are supported.
Dynamic Support & Resistance Zones
The script automatically detects potential support and resistance areas based on price pivots and volume activity, plotting them as zones directly on the chart.
Stronger zones appear darker, helping traders quickly identify important reaction areas.
Break & Retest Detection
When price breaks a support or resistance zone, the zone changes appearance to visually confirm the breakout. If price returns and holds the level, the zone adjusts back, signaling a possible continuation.
This helps traders identify:
Breakouts
Failed breakouts
Retests
Trend continuation setups
Customizable Display
Users can enable or disable support & resistance detection and adjust detection sensitivity according to their trading style.
Typical Use Cases
• Trend-following entries using EMA alignment
• Breakout trading
• Retest confirmation entries
• Scalping and intraday setups
• Swing trading trend confirmation
CRR Market StructureCRR — Market Structure (Educational) is an educational chart overlay designed to help traders visualize market structure and price behavior in a clear, objective way.
This indicator focuses on:
Swing structure (HH, LH, HL, LL)
Break of Structure (BOS)
Change of Character (ChoCH)
Current market range
Optional internal Fibonacci levels
Optional confirmation filters (ATR, Volume, MACD, Gap detection)
Important
This script is NOT a trading strategy.
It does NOT generate buy or sell signals, does NOT predict future price, and does NOT provide financial advice.
It is strictly a visual and educational tool to support discretionary analysis.
How to Use This Indicator
This tool is intended to be used as a context and structure guide, not as a signal generator.
Market Structure Reading
HH / HL → Bullish structure
LH / LL → Bearish structure
Observe how price reacts after BOS or ChoCH events.
BOS vs ChoCH
BOS confirms continuation in the current trend.
ChoCH highlights a potential structural shift.
Strength is visually differentiated using optional filters.
Range Awareness
Yellow dotted lines represent the current active range.
Useful for identifying consolidation, expansion, or compression phases.
Fibonacci Context (Optional)
Internal Fibonacci levels visualize retracements inside the last structure range.
Designed for context only, not entries.
Community Usage Guidelines
This indicator is built to encourage shared learning and discussion:
Share charts showing clean BOS / ChoCH examples.
Compare structure behavior across different markets and timeframes.
Discuss price behavior, not signals.
Use screenshots to explain why structure matters.
If you publish ideas using this indicator:
Focus on market structure explanation.
Avoid calling entries or targets.
Keep analysis educational and transparent.
Final Notes
Market structure is not about prediction, but about understanding price behavior.
This tool aims to help traders see the market more clearly, reduce noise, and develop stronger analytical skills.
If you find this indicator useful:
Like
Share insights
Collaborate respectfully with the community
Adaptive Buy Sell Signal [AvantCoin]
A comprehensive customized indicator for different markets
🔴Before you start🔴:
Please note that this tool is designed to assist you in analyzing the market, and NOT to make buy/sell decisions for you. You should combine its data with your own strategies and indicators before making any trading choices
====================
Market-Specific Optimizations
Auto-Detection (or Manual Selection)
It automatically detects which market you're trading:
Forex (EUR/USD, GBP/USD, etc.)
Stocks (AAPL, TSLA, etc.)
Indices (NAS100, SPX, etc.)
Commodities (Gold, Silver, Oil)
Crypto (BTC, ETH, etc.)
avantcoin.com
Forex-Specific Features:
✅ Session Filters: Avoids low-liquidity Asian session
✅ Session backgrounds: Green for London/NY overlap (best trading time)
✅ Tighter ADX threshold (20) - good for Forex trends
✅ Lower volatility filter - skips dead zones
⚙️ Min Confluence: 5 (balanced)
⚙️ Cooldown: 5 bars
⚙️ Volume threshold: 1.3x (Forex has consistent volume)
avantcoin.com
Stocks-Specific Features:
✅ Market hours filter: Only signals during NYSE hours.
✅ Gap detection: Avoids trading immediately after large gaps up/down
✅ Higher ADX threshold (22) - Stocks trend differently
✅ Stricter volume requirement (1.5x) - Stocks vary more
⚙️ Min Confluence: 6 (higher quality)
⚙️ Cooldown: 3 bars (stocks move faster)
Indices (Nasdaq, S&P; 500):
✅ Similar to stocks but slightly more lenient
✅ Lower ADX (18) - Indices are smoother
⚙️ Min Confluence: 5
⚙️ Cooldown: 4 bars
Commodities (Gold, Silver, Oil):
✅ Highest ADX requirement (23) - Only trade strong trends
✅ Higher volatility filter (1.6x) - Commodities can be wild
⚙️ Min Confluence: 6
⚙️ Cooldown: 6 bars (avoid whipsaws)
Crypto:
✅ 24/7 trading (no session restrictions)
✅ Lower ADX (15) - Crypto is always volatile
✅ Much higher volume threshold (2.0x) - Crypto volume spikes
⚙️ Min Confluence: 4 (crypto moves fast)
⚙️ Cooldown: 3 bars
📊 Visual Enhancements:
Market Type Badge at top of table (Forex, Stocks, etc.)
Session Status:
Forex: Shows 🟢 LDN/NY, 🔵 London, 🟠 NY, 🔴 Asian
Stocks: Shows 🟢 Open or 🔴 Closed
Session Background Colors on chart (optional)
Current Settings Display: Shows your Min score, ADX threshold, Cooldown
⚙️ How to Use:
For Forex:
Enable "Avoid Asian Session"
Best signals during London/NY overlap
For Stocks:
Enable "Trade Stock Hours Only"
Watch for gap warnings
avantcoin.com
MAD RSIMAD RSI ~ by GForge
An adaptive trend-following indicator that combines RSI momentum with Median Absolute Deviation (MAD) volatility bands to identify trend direction, gauge regime strength, and generate entry/exit signals.
Core Concept
Most band-based indicators use Standard Deviation to measure volatility. The problem is that StdDev is highly sensitive to outlier candles — a single spike from news, earnings, or liquidation cascades can blow out the bands and distort signals. This indicator replaces StdDev with Median Absolute Deviation (MAD), a statistically robust volatility measure that resists outliers while still tracking genuine changes in market volatility. The result is more stable bands that better represent the true trading range.
RSI-Adaptive Mechanism
A smoothed RSI is calculated and used to dynamically scale the band width. The logic works as follows: when RSI is near 50 (neutral/indecisive), the bands stay at their base width. As RSI moves further from 50 in either direction — indicating stronger bullish or bearish momentum — the bands widen proportionally. This creates a self-adjusting system: during strong trends the bands expand to avoid premature exits, and during choppy consolidation they contract to keep signals responsive.
The RSI smoothing parameter applies an EMA on top of the raw RSI to control how quickly the adaptive multiplier responds. A low smoothing value makes the bands react quickly to momentum shifts. A higher value smooths out the adaptation, which can reduce whipsaws in noisy conditions.
Oscillator & Signal Logic
The indicator computes a Basis line (Simple Moving Average) and places the adaptive MAD bands above and below it. Price position within these bands is then normalized into an oscillator ranging from 0 to 100, where 0 means price is at the lower band, 50 means price is at the basis, and 100 means price is at the upper band.
Signals are generated when this oscillator crosses key thresholds:
A long signal fires when the oscillator crosses above the Long Threshold, indicating price has moved convincingly into the upper portion of the adaptive channel.
A short/exit signal fires when the oscillator crosses below the Short Threshold, indicating momentum has weakened and price is falling back within the channel.
The thresholds are independently configurable. For example, setting a Long Threshold of 80 means you require price to push well above the midpoint before entering, while a Short Threshold of 30 means you exit relatively early before price reaches neutral. This asymmetry can be tuned for different risk appetites — tighter thresholds produce more signals with smaller moves, wider thresholds produce fewer signals but filter out more noise.
Key Parameters
Source — the price input for all calculations. Close is standard, but hl2, hlc3, or ohlc4 can provide smoother behavior on volatile instruments.
RSI Length — controls the RSI lookback period. Longer values produce a smoother RSI that changes the adaptive multiplier gradually. Shorter values make it more reactive.
RSI Smoothing — additional EMA smoothing applied to the RSI before it feeds into the adaptive multiplier. Set to 1 for no extra smoothing.
Basis Length — the SMA period for the center line of the channel. This is the trend anchor. Longer values track slower trends, shorter values hug price more closely.
MAD Length — lookback for the Median Absolute Deviation calculation. Controls how many bars contribute to the volatility estimate. Longer values produce more stable bands, shorter values adapt faster.
Volatility Multiplier — the base scaling factor for band width before RSI adaptation is applied. Higher values widen the bands and reduce signal frequency. Lower values tighten them and increase signal frequency.
Visuals
A gradient cloud beneath price provides an at-a-glance read of trend regime and strength. Bar colors reflect the oscillator position. Signal markers appear as diamonds above and below bars.
Usage Notes
This is a tool to assist your analysis, not a standalone trading system. Always apply your own risk management and confirm signals with additional context.
Past performance does not guarantee future results.
Default settings are a starting point — optimize for your specific instrument, timeframe, and trading style.
The MAD calculation is particularly well-suited for instruments prone to sudden spikes or gap moves where Standard Deviation-based indicators tend to produce erratic signals.
Developed by GForge
Roboballs42 Auto Bull/Bear Flag (ZigZag) + Targets [Parallel]Roboballs42 • Auto Bull/Bear Flag (ZigZag) + Targets automatically detects bull flags and bear flags using a ZigZag-style pivot engine, draws a parallel flag channel anchored back to the flagpole (xB), and projects the channel only a limited number of bars into the future (no infinite rays).
While a flag is active, the script shows a live breakout arrow as soon as price breaks the channel intrabar. Once the breakout confirms, the arrow locks at the breakout candle and the flag is considered complete. Patterns that get invalidated (price breaks the “wrong side” of the flag) are automatically deleted to keep the chart clean.
If you enjoy this indicator and want to support the project, BTC donations are appreciated:
bc1qvda8daynuqhpx8e9g07ddyelhpmv4ja5wc9cmm
Key Features
Auto Bull Flags + Bear Flags
Parallel channel that extends left to the flagpole (no incomplete flags)
Limited forward projection (Projection bars) to avoid endless lines
Live breakout arrow (realtime) + locked arrow on confirmation
Measured-move target plotted on confirmed breakout
Invalidation cleanup (delete patterns when price violates the wrong side)
Custom controls: pivot sensitivity, pole size (ATR), flag depth %, max flag length, touch tolerance, breakout type, invalidation type, and memory limits
Notes
“Early pivots” can repaint like a standard fast ZigZag.
This indicator is a pattern-visualization tool, not financial advice.
Multi Trendlines from Pivots (>=3 Touches). DaliliIndicator Description
Multi Trendlines from Pivots (≥3 Touches)
This indicator automatically identifies and draws straight support and resistance trendlines based on confirmed price pivots. It is designed to approximate how a disciplined discretionary trader would draw trendlines, but does so algorithmically and consistently.
What it does
1. Pivot-based structure detection
The indicator first identifies swing highs and swing lows using a configurable pivot length. Only confirmed pivots are used, so lines do not repaint.
2. Line construction logic
For each side of the market:
• Pivot highs are used to construct resistance lines (drawn in red).
• Pivot lows are used to construct support lines (drawn in green).
All possible straight lines formed by pairs of pivots are evaluated.
3. Minimum touch requirement
A line is only considered valid if at least 3 pivot points fall on or very near that line. “Near” is defined by a volatility-adjusted tolerance using ATR (Average True Range), so the logic adapts across symbols and timeframes.
4. Multi-line output
The script does not stop at a single trendline. It draws as many valid lines as possible, up to a configurable maximum per side, prioritizing lines with the highest number of touches.
5. Dynamic updating
Lines are rebuilt only when new pivots form. Old lines are removed and replaced as structure evolves, keeping the chart clean and relevant.
Visual output
• Red straight lines: Resistance lines derived from pivot highs.
• Green straight lines: Support lines derived from pivot lows.
• Lines optionally extend to the right, projecting future support or resistance.
What it is not
• It does not curve or smooth lines.
• It does not use regression channels or moving averages.
• It does not rely on candle bodies unless explicitly modified.
• It does not repaint past structure.
Use case
This indicator is best suited for:
• Structural market analysis.
• Identifying confluence zones where multiple trendlines cluster.
• Swing trading and breakout/failure analysis.
• Overlaying objective structure on discretionary price action analysis.
If you want to further constrain it, the next logical refinements would be:
• Only downward-sloping resistance and upward-sloping support.
• Requiring touches to be higher highs or lower lows.
• Switching touches from pivots to raw candle highs/lows.
• Enforcing minimum bar separation between touches.
All of those can be layered on without changing the core architecture.
TX_Smart_Cross_Session_TrendFollowA Pine Script v5 strategy for Taiwan Index Futures (TX). Features macro pivot analysis, cross-session micro-structure (Chen Kuei concept), dynamic risk management, and smart trend-following logic.
GK Trend Ribbon SWING + PREPARE HUD
GK Trend Ribbon SWING + PREPARE HUD
Is a trend-following swing-trading indicator designed to identify high-probability directional bias, early trade preparation, and confirmed trend shifts using a volatility-adjusted zero-lag trend ribbon. This script is purpose-built for traders who value patience, structure, and confirmation, rather than fast scalping or candle-by-candle noise.
HOW IT WORKS
indicator is built around a Zero-Lag EMA (ZLEMA) to reduce traditional EMA delay while maintaining smooth trend behaviour. An ATR-based volatility envelope is applied above and below the ribbon to define dynamic trend boundaries. Trend states are determined as follows: Bullish mode: Price sustains above the upper volatility band with confirmation Bearish mode: Price sustains below the lower volatility band with confirmation Neutral mode: Price remains inside the ribbon range A trend change is only confirmed after multiple bar confirmation, helping filter false breakouts and market noise.
PREPARE SIGNALS
(Early Awareness)Before a confirmed trend flip, the indicator displays PREPARE GK BUY / PREPARE GK SELL warnings: These appear only on the live (unconfirmed) candle They act as early awareness, not entry signals They disappear if conditions are not confirmed This allows traders to prepare mentally and structurally without repainting past signals. Confirmed Signals Confirmed GK BUY / GK SELL signals are only printed after bar close and only when: A valid trend transition is confirmed Directional conditions persist The previous trend state is invalidated Once printed, confirmed signals do not repaint.
HUD BANNER
The integrated HUD provides real-time market state feedback: Bullish Mode Bearish Mode Neutral / Wait Prepare Buy / Sell warnings This allows quick decision-making without needing to interpret raw price action continuously. Inputs & Customisation Swing Ribbon Length – controls trend smoothness (higher = slower, stronger trends)ATR Length – volatility measurement period Band Multiplier – sensitivity of trend boundaries Confirmation Bars – number of bars required to confirm a trend shift.
RECOMENDED USEGE
Best suited for 15-minute, 30-minute, and higher time frames Designed for swing trading, not scalping Expect natural drawdown during trend development Works best when combined with proper risk management and market structure awareness
Important Notes This indicator does not predict price It reacts to confirmed market structure and volatility No indicator guarantees profitability Always use appropriate risk management Disclaimer This script is provided for educational and analytical purposes only .It is not financial advice .Trading involves risk, and users are responsible for their own trading decisions.
Double Trisectional Volatility BandsDouble Trisectional Volatility Bands (DTVB) | MisinkoMaster
Double Trisectional Volatility Bands (DTVB) is a volatility-based trend indicator designed to create smooth yet adaptive price envelopes capable of tracking trend structure while reacting to volatility expansion. The indicator emphasizes stability during consolidation while clearly highlighting strong price moves beyond normal market behavior.
This makes DTVB particularly suitable for traders seeking structured volatility envelopes that remain stable during noise yet clearly identify breakout and trend continuation phases.
Key Features
Double-layer trisectional smoothing for stable trend structure
Adaptive volatility bands responding to changing market conditions
Clear breakout detection through band expansion and price crossings
Dynamic candle coloring for immediate trend visualization
Automatic Long and Short markers on confirmed trend shifts
Designed to balance smooth structure with volatility responsiveness
Suitable for both breakout and trend-following strategies
How It Works
DTVB uses a multi-stage smoothing process that divides price behavior into layered components, allowing the central structure to remain smooth while still reacting to changing volatility conditions.
Instead of relying on a single smoothing pass, the indicator blends multiple smoothing layers to maintain structural consistency across varying market environments.
A volatility component then measures how far price deviates from this smoothed structure, and adaptive bands are constructed around the central value. When price moves outside these envelopes, it signals abnormal movement or potential trend continuation.
The result is a band system that stays stable during sideways markets yet expands when volatility increases, helping traders detect meaningful price transitions.
Inputs Overview
Source — Selects the price data used for calculations
Lookback Period — Controls the primary smoothing length used in the band structure
Factor — Adjusts the volatility multiplier controlling band width
Volatility Lookback — Defines the smoothing period applied to volatility calculations
Usage Notes
Designed for traders seeking smooth volatility envelopes
Breakouts occur when price crosses outside the bands
Band expansions often accompany strong trend movements
Works well for trend continuation and breakout confirmation
Best used alongside price structure or confirmation indicators
Parameters should be tuned according to asset volatility and timeframe
Summary
Double Trisectional Volatility Bands provide a smooth yet adaptive volatility envelope designed to highlight abnormal price movements while maintaining stable structure during consolidation. It is well suited for traders seeking structured breakout and volatility-aware trend analysis tools.
NTrades [IFVG Model + SMT]NTrades – IFVG Model + SMT
NTrades – IFVG Model + SMT is a multi-concept market structure indicator designed to identify high-probability intraday trading opportunities by combining Directional Fair Value Gaps (IFVG), Smart Money Technique (SMT) divergences, and Higher Timeframe (HTF) candle projections into one streamlined tool.
Key Features
✅ Directional IFVG Model
Detects and plots 15-minute Fair Value Gaps aligned with a selected daily market bias (Bullish or Bearish).
Filters FVGs using customizable lookback days and automatically extends zones for forward reference.
Focuses on post-NY open price inefficiencies for higher institutional relevance.
✅ SMT Divergence Detection
Identifies pivot-based SMT divergences between the main chart symbol and up to two external correlated markets.
Highlights bullish and bearish liquidity displacements using customizable styling.
Allows timeframe-specific SMT visibility for cleaner chart analysis.
✅ Adjacent 15M SMT Confirmation
Detects short-term SMT shifts between consecutive 15-minute candles.
Provides rapid confirmation of potential liquidity grabs and reversals using visual divergence lines.
✅ Higher Timeframe Candle Overlay
Displays projected HTF candles directly on the chart with optional Heikin Ashi smoothing.
Includes projected Open, High, Low, and Close levels for precision execution and context.
Supports automatic timeframe selection or fully customizable HTF settings.
✅ Advanced Customization
Adjustable visual styling for FVGs, SMT signals, and HTF candles.
Custom session opening time support.
Flexible projection levels and display options for cleaner workflow integration.
Market Regime AnalyzerStatistical regime detection with forward-looking transition probabilities. Combines drift testing, variance ratios, and volume delta to classify markets into 5 regimes and quantify transition probabilities.
What Regime Are We In, and What's Likely Next?
That's the question this indicator answers with statistical rigor and forward-looking probabilities.
The Problem:
Most traders classify regimes arbitrarily: "Bull if price > 200 MA" or "Bear if RSI < 30." These rules ignore statistical significance, volume confirmation, and mean reversion patterns. The result? Late entries, false signals, and confusion when markets transition.
The Solution:
Market Regime Analyzer combines drift detection, variance ratio testing, and volume delta analysis to classify markets into 5 distinct regimes. Then it calculates the probability of transitioning to each regime based on historical patterns.
The Benefit:
Know not just where you are, but where you're likely going - with probabilities, not guesses.
The Five Market Regimes
🟢 Strong Bull (Regime 1)
- Statistically significant upward drift (t-stat > 1.96)
- Strong buying pressure (volume delta > 0.3)
- No mean reversion detected
- **Trade:** Trend-following strategies, ride the momentum
🟢 Weak Bull (Regime 2)
- Upward drift present
- BUT weak volume OR mean reversion detected
- **Trade:** Reduce position size, tighten stops, prepare for consolidation
⚪ Consolidation (Regime 3)
- No statistically significant drift
- Mixed volume signals
- Mean reversion likely present
- **Trade:** Range-trading, avoid trend-following systems
🔴 Weak Bear (Regime 4)
- Downward drift present
- BUT weak volume pressure
- **Trade:** Cautious shorts, reduce exposure, prepare for bounce
🔴 Strong Bear (Regime 5)
- Statistically significant downward drift (t-stat < -1.96)
- Strong selling pressure (volume delta < -0.3)
- No mean reversion detected
- **Trade:** Trend-following shorts, protective puts
The Statistical Framework
1. Drift Detection with T-Statistics
Instead of guessing if there's a trend, we test it statistically.
How it works:
- Calculates mean return over lookback period
- Standardizes by volatility
- Compares to significance threshold (default 1.96 = 95% confidence)
What it tells you:
- T-stat > 1.96: Statistically significant uptrend
- T-stat < -1.96: Statistically significant downtrend
- In between: No significant trend (consolidation)
Why it matters:
Only trades trends that are statistically validated, not just visually apparent.
2. Mean Reversion Testing (Variance Ratio)
Based on Lo & MacKinlay (1988) research, this detects when markets are range-bound.
How it works:
- Compares variance at different time scales
- Variance Ratio < 0.8 indicates mean reversion
What it tells you:
- Mean reversion = NO: Trends can continue
- Mean reversion = YES: Expect price to return to mean, not breakout
Why it matters:
Prevents chasing breakouts in range-bound markets.
3. Volume Delta Analysis
Total volume tells you HOW MUCH traded. Volume delta tells you WHO won.
How it works:
- Buying pressure - Selling pressure = Volume Delta
- Normalized to show relative strength
What it tells you:
- Strong positive delta (>0.3): Buyers in control
- Strong negative delta (<-0.3): Sellers in control
- Weak delta: No clear winner
Why it matters:
Price can move up on weak buying or down on weak selling. Volume delta reveals the truth.
4. Transition Probability Matrix
Historical regime changes predict future regime changes.
How it works:
- Tracks every regime transition over last 100 bars (configurable)
- Builds probability distribution for next regime
- Updates continuously
Example:
Current: Strong Bull
Historical transitions from Strong Bull:
- Stayed Strong Bull: 45%
- Became Weak Bull: 30%
- Became Consolidation: 20%
- Became Weak Bear: 4%
- Became Strong Bear: 1%
What it tells you:
Strong Bull has 75% chance of staying bullish (45% + 30%), only 5% chance of bearish turn.
Why it matters:
Adapts to your specific market's behavior patterns.
How to Use This Indicator
Strategy Adaptation
In Strong Bull/Bear Regimes:
- Use trend-following strategies
- Wider stops, let winners run
- Add to positions on pullbacks
- High confidence in directional trades
In Weak Bull/Bear Regimes:
- Reduce position sizes by 50%
- Tighter stops
- Take profits earlier
- Prepare for regime change
In Consolidation:
- Switch to range-trading strategies
- Avoid trend-following systems
- Sell resistance, buy support
- Wait for regime change before trend trades
Risk Management
Position Sizing:
- Strong regime + high continuation probability (>60%) = Normal size
- Weak regime OR high transition probability = Half size
- Consolidation = Quarter size or skip
Stop Loss Placement:
- Strong regime: Use wider stops (2x ATR)
- Weak regime: Tighter stops (1x ATR)
- Consolidation: Very tight stops (0.5x ATR)
Entry Timing
Best entries:
- Regime just changed to Strong Bull/Bear
- High probability (>50%) of staying in current regime
- No divergence signals present
- Drift and volume delta aligned
Avoid entries:
- High probability of regime change
- Divergence signals appearing
- Mean reversion detected in trending regime
- Weak volume despite price movement
Reading the Dashboard
Current Regime
Color-coded for instant recognition:
- Dark Green = Strong Bull
- Light Green = Weak Bull
- Gray = Consolidation
- Light Red = Weak Bear
- Dark Red = Strong Bear
Annualized Drift
Expected annual return based on recent trend.
- Positive = Upward bias
- Negative = Downward bias
- Near zero = No directional edge
T-Statistic
Measures statistical significance of drift.
- > 1.96 = 95% confident in uptrend
- < -1.96 = 95% confident in downtrend
- Between = Not statistically significant
Mean Reversion
- Yes = Expect price to return to mean (range-bound)
- No = Trends can continue (trending market)
Volume Pressure
Normalized volume delta strength.
- > 0.3 = Strong buying
- < -0.3 = Strong selling
- Near 0 = Balanced
Transition Probabilities
Shows most likely next regime.
- Highest probability = Most likely outcome
- Evenly distributed = High uncertainty
- Concentrated = High confidence in direction
Practical Examples
Example 1: Strong Bull with High Continuation
Dashboard shows:
Current Regime: Strong Bull
Drift: +22% annualized
T-Stat: 3.2
Mean Reversion: No
Volume Pressure: +0.45
Probabilities:
→ Strong Bull: 50%
→ Weak Bull: 25%
→ Consolidation: 20%
→ Bears: 5%
Interpretation:
- Strong uptrend (t-stat 3.2 >> 1.96)
- No mean reversion = trends can continue
- Strong buying pressure (0.45 > 0.3)
- 75% chance stays bullish (50% + 25%)
Action:
- Full position size on long setups
- Use trend-following entries
- Wider stops (2x ATR)
- High conviction trades
Example 2: Weak Bull Before Consolidation
Dashboard shows:
Current Regime: Weak Bull
Drift: +8% annualized
T-Stat: 1.2
Mean Reversion: Yes
Volume Pressure: +0.15
Probabilities:
→ Strong Bull: 10%
→ Weak Bull: 30%
→ Consolidation: 50%
→ Weak Bear: 10%
Interpretation:
- Weak drift (t-stat 1.2 < 1.96)
- Mean reversion detected = range-bound likely
- Weak volume (0.15 < 0.3)
- 50% chance of consolidation
Action:
- Reduce long positions
- Tighten stops
- Prepare for range-bound trading
- Avoid new trend trades
Example 3: Regime Transition Alert
Previous: Weak Bull
Current: Consolidation
Volume divergence signal appeared:
Price made new high, volume delta weakened
Interpretation:
- Trend exhausted
- Buyers losing control
- Regime confirmed the transition
Action:
- Exit trend-following longs
- Switch to range-trading approach
- Wait for new regime before new directional trades
Settings Guide
### Regime Detection Period (50)
Number of bars for statistical calculations.
- **30-40:** More responsive, catches changes faster, more regime switches
- **50 (default):** Balanced for daily/4H charts
- **75-100:** More stable, fewer false regime changes, slower to adapt
Transition History Depth (100)
How much history to use for probabilities.
- **50-75:** Adapts quickly to recent behavior
- **100 (default):** Balanced robustness
- **150-200:** More stable probabilities, slower to adapt
Volume Delta Period (14)
Period for volume calculations.
- **7-10:** More sensitive to volume shifts
- **14 (default):** Standard period
- **20-30:** Smoother, less noise
Significance Threshold (1.96)
T-statistic required for trend classification.
- **1.64:** 90% confidence, more trend regimes detected
- **1.96 (default):** 95% confidence, balanced
- **2.58:** 99% confidence, very conservative, mostly consolidation
Best Practices
Do:
- Wait for regime confirmation (at least 3-5 bars in new regime)
- Use probabilities to size positions appropriately
- Combine with support/resistance for entries
- Respect mean reversion signals
- Adapt strategy to current regime
Don't:
- Trade every regime change immediately
- Ignore high transition probabilities
- Use trend strategies in consolidation
- Override statistical signals with gut feel
- Trade against Strong regimes without clear setup
Timeframe Recommendations
Daily Charts:
- Default settings work well
- Most reliable regime detection
- Best for swing trading
4H Charts:
- Use default or slightly higher lookback (60-75)
- Good for active swing trading
- More regime changes than daily
1H Charts:
- Reduce lookback to 30-40
- More noise, use with caution
- Better for intraday position trading
15M and below:
- Not recommended
- Too much noise for statistical validity
- Regimes change too frequently
Combining with Other Indicators
Works Well With:
Moving Averages
- Use regime for directional bias
- MAs for specific entry/exit points
Support/Resistance
- Regime shows context
- S/R shows specific levels
- High probability at confluence
Volume Profile
- Regime shows regime
- Profile shows where volume is
- Target high-volume nodes
RSI/MACD
- Regime provides context
- Momentum shows entry timing
- Combine for higher probability
Example Combined Setup
Regime: Strong Bull
Price: Above 200 MA
Level: Pullback to support
RSI: Oversold (30)
Volume Delta: Still positive
Setup: Long entry
Reason: Trend intact, healthy pullback, buyers still present
Divergence Signals
The indicator shows volume divergence warnings:
Bearish Divergence (Red Triangle Down)
- Price makes new high
- Volume delta makes lower high
- Warning: Buyers weakening, potential reversal
Bullish Divergence (Green Triangle Up)
- Price makes new low
- Volume delta makes higher low
- Warning: Sellers weakening, potential reversal
How to use:
- Divergence in Strong regime = early warning of regime change
- Confirms when regime actually transitions
- Don't trade divergence alone, wait for regime confirmation
Limitations
This Indicator Cannot:
**Predict black swan events** - Unexpected news overrides all technical regimes
**Work in all markets** - Needs liquid markets with reliable volume data
**Guarantee profits** - Probabilities are not certainties
**Replace fundamental analysis** - Technical regimes can diverge from fundamentals
Works Best:
- Liquid markets (major indices, forex, crypto, large-cap stocks)
- Daily and 4H timeframes
- Combined with other analysis
- With proper risk management
- In normal market conditions
Common Questions
"Why did the regime stay consolidation despite strong price move?"
The indicator detected mean reversion (variance ratio < 0.8), indicating the move will likely reverse. Or the move wasn't statistically significant (t-stat < 1.96). Trust the statistics over visual appearance.
"Probabilities show 30% for each regime. What does that mean?"
High uncertainty. The market is at an inflection point. Reduce position sizes and wait for clearer regime formation.
"Can I use this for day trading?"
Not recommended on timeframes below 1H. Statistical tests need sufficient data. Better suited for swing trading.
"Why does this show Strong Bull when my momentum indicators show weakness?"
Momentum can weaken while the trend remains statistically significant. The indicator focuses on drift and volume, not momentum. Consider it a different perspective.
Technical Notes
Volume Delta Approximation
Uses OHLCV data to approximate order flow:
- Buy volume ≈ Volume on up-closes
- Sell volume ≈ Volume on down-closes
- Delta = Buy - Sell
**Note:** Real order flow (from futures or Level 2) is more precise. This approximation works well on liquid markets.
Statistical Tests
Drift T-Test:
- Null hypothesis: No drift (mean return = 0)
- Reject if |t-stat| > threshold
- Based on standard hypothesis testing
Variance Ratio:
- Compares 2-period variance to 1-period variance
- Ratio = 1 for random walk
- Ratio < 1 for mean reversion
- Threshold of 0.8 based on empirical testing
Transition Probability Implementation
Due to Pine Script v5 limitations (no native 2D arrays), the 5×5 transition matrix is stored as a flat 1D array of 25 elements:
- Position maps to index: `row × 5 + col`
- Example: Transition from Regime 2 to Regime 4 is at index `1 × 5 + 3 = 8`
- Laplace smoothing (0.1) prevents zero probabilities
- Row sums normalized to calculate probabilities
This approach is computationally efficient and maintains statistical accuracy.
No Repainting
All calculations confirmed on bar close. Regime changes appear when the bar closes, not during formation. Historical analysis is accurate.
Alert Conditions
Regime Change
- Triggers when regime transitions to any new state
- Message shows new regime number (1-5)
Bearish Divergence
- Triggers when price makes new high but volume delta doesn't confirm
Bullish Divergence
- Triggers when price makes new low but volume delta doesn't confirm
Disclaimer
FOR EDUCATIONAL PURPOSES ONLY
This indicator uses statistical methods to analyze market regimes. It does not predict the future or guarantee trading success.
Markets are probabilistic, not deterministic. A 70% probability of staying bullish means 30% chance of regime change. Always use proper risk management.
Past regime transitions do not guarantee future transitions. Market structure can change. Statistical relationships can break down.
Never risk more than you can afford to lose. Use stop losses on every trade. Test thoroughly before live trading. Consult a qualified financial advisor.
© 2026 | Open Source
Statistical rigor meets practical application
stelaraX - Auto FibonaccistelaraX – Auto Fibonacci
stelaraX – Auto Fibonacci is an automatic Fibonacci plotting indicator that detects recent pivot highs and pivot lows and draws Fibonacci retracement and extension levels across the latest swing range. The script updates dynamically whenever a new pivot is confirmed, providing an always-current Fibonacci map without manual drawing.
For advanced AI-based chart analysis and automated Fibonacci interpretation, visit stelarax.com
Core logic
The indicator detects swing pivots using a user-defined pivot lookback:
* pivot highs are detected using pivot high confirmation
* pivot lows are detected using pivot low confirmation
When a new pivot is confirmed and both a recent high and low are available, the script:
* defines the swing range between the latest pivot high and pivot low
* draws Fibonacci levels across that range
* extends the levels forward by a configurable number of bars
The plotted level set includes retracements and extensions:
* -0.618 and -0.272
* 0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0
* 1.272 and 1.618
Extensions can be enabled or disabled via a dedicated setting.
Visualization
Fibonacci levels are plotted as horizontal lines and labeled with:
* the Fibonacci ratio
* the corresponding price value
Colors are assigned based on level type:
* 0 and 1 levels use a dedicated highlight color
* 0.5 uses a key level color
* standard retracement levels use a base fib color
* extension levels use a separate extension color
When a new pivot forms, the indicator clears the previous Fibonacci drawings and redraws the full set to keep the chart clean and current.
Use case
This indicator is intended for:
* automatic Fibonacci retracement mapping on the latest swing
* identifying potential reaction levels for pullbacks and continuations
* projecting extension targets beyond the current range
* level-based confluence with structure, liquidity, and zones
* multi-timeframe Fibonacci alignment
For a fully automated AI-driven chart analysis solution, additional tools and insights are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
TL Compress & StealthBreak v3.3Here is the simplified **Practical User Guide** for this indicator.
### **How to Read the Screen**
1. **The Dashboard (Table):** Tells you the current market health.
2. **Background Color:** Tells you the "Phase" of the market.
3. **Triangles:** The final signal to trade.
---
### **Step-by-Step Usage**
#### **1. WAIT (The Squeeze)**
* **Look for:** **Yellow** or **Orange** background.
* **Meaning:** The market is "Compressing" (quiet before a big move).
* **Action:** **Do nothing.** Wait for the breakout.
#### **2. GET READY (The Setup)**
* **Look for:** **Blue** (Bullish) or **Pink** (Bearish) background.
* **Meaning:** The market has pulled back and is "Ready" to launch.
* **Action:** Prepare your order. Watch for the signal.
#### **3. EXECUTE (The Signal)**
* **Look for:**
* 🟢 **Green Triangle (BUY):** When the trend is UP.
* 🔴 **Red Triangle (SELL):** When the trend is DOWN.
* **Dashboard Check:** Ensure the "TREND" row on the table matches your signal (e.g., TREND = UP for a Buy).
* **Action:** **Enter the trade immediately.**
---
### **Stop Loss & Exit Strategy**
* **Stop Loss (SL):**
* **For BUY:** Place SL just below the **Orange Line** (Slow EMA).
* **For SELL:** Place SL just above the **Orange Line** (Slow EMA).
* **Take Profit (TP):**
* Target a 1:1.5 or 1:2 Risk-Reward ratio.
* **Or:** Exit if the background color disappears or changes to the opposite color.
### **Important Note**
* **"Zero Delay" Mode:** The signals appear very fast. If the candle closes and the Triangle remains, the signal is valid. Do not enter if the signal flashes and disappears before the candle closes.
Relative Valuation Oscillator [QuantAlgo]🟢 Overview
The Relative Valuation Oscillator identifies statistical price deviations from fair value using logarithmic price analysis and standard deviation bands. It calculates how far current price has deviated from its mean on a logarithmic scale, normalized by volatility, to generate a centered oscillator that highlights periods when price is statistically stretched above or below its historical average, helping traders identify potential mean reversion opportunities and extreme valuation conditions across different timeframes and markets.
🟢 How It Works
The indicator's core methodology lies in its statistical approach to price valuation, where deviations are measured using logarithmic returns and normalized by standard deviation:
log_price = math.log(close)
mean_log_price = ta.sma(log_price, lookback_period)
standard_deviation = ta.stdev(log_price, lookback_period)
valuation_score = (log_price - mean_log_price) / standard_deviation
First, the script converts price to logarithmic form to account for percentage-based price movements rather than absolute dollar changes, ensuring the indicator works consistently across different price levels and asset classes.
Then, it calculates the mean log price over the specified lookback period to establish a baseline fair value reference:
mean_log_price = ta.sma(log_price, lookback_period)
Next, standard deviation measurement quantifies the typical volatility of log price around this mean, providing a statistical framework for defining normal versus extreme price behavior:
standard_deviation = ta.stdev(log_price, lookback_period)
The valuation score is then derived by measuring how many standard deviations the current log price sits from its mean, creating a normalized oscillator that fluctuates around zero:
valuation_score = (log_price - mean_log_price) / standard_deviation
Finally, threshold-based signal detection identifies extreme conditions when the valuation score exceeds user-defined standard deviation multiples:
is_overvalued = valuation_score > threshold_mult
is_undervalued = valuation_score < -threshold_mult
This creates a statistical mean reversion system that identifies when price has deviated significantly from its historical average on a volatility-adjusted basis, providing traders with objective measurements of relative over or undervaluation.
🟢 Signal Interpretation
▶ Undervalued Zone (Below Negative Threshold): Oscillator falling below the negative threshold line indicates price has deviated significantly below its statistical mean = Potential long/buy opportunities for mean reversion strategies
▶ Overvalued Zone (Above Positive Threshold): Oscillator rising above the positive threshold line indicates price has deviated significantly above its statistical mean = Potential short/sell or profit-taking opportunities
▶ Fair Value Range (Between Thresholds): Oscillator remaining between positive and negative threshold lines indicates price is trading within normal statistical bounds. Within this range, the zero line acts as a directional filter: oscillator above zero but below the upper threshold suggests bullish trend/momentum with price trading above its statistical mean = Trend-following long positions can be maintained; oscillator below zero but above the lower threshold suggests bearish trend/momentum with price trading below its statistical mean = Trend-following short positions can be maintained. The oscillator can remain in these directional zones during sustained trends until mean reversion occurs, signaled by crosses back toward zero or transitions to the opposite extreme threshold.
▶ Zero Line Crosses: Oscillator crossing above zero indicates transition from below-average to above-average valuation, confirming shift to bullish momentum = Potential trend-following long entry; crossing below zero indicates transition from above-average to below-average valuation, confirming shift to bearish momentum = Potential trend-following short entry or long exit. These crosses can signal both the start of directional trends and early mean reversion from extreme conditions.
🟢 Features
▶ Preconfigured Presets: Three optimized parameter sets for different trading approaches and timeframes. "Default" provides balanced sensitivity for swing trading on 4-hour and daily charts, generating signals at statistically significant deviations. "Fast Response" delivers more frequent signals for intraday trading on 5-minute to 1-hour charts, reacting quickly to short-term deviations with increased signal frequency. "Smooth Trend" focuses on major extremes for position trading on daily to weekly timeframes, filtering noise to identify only the most significant statistical outliers.
▶ Built-in Alerts: Five alert conditions enable automated monitoring of valuation extremes and transitions. "Overvalued Threshold Crossed" triggers when the oscillator crosses above the positive threshold, signaling potential overvaluation. "Undervalued Threshold Crossed" activates when the oscillator crosses below the negative threshold, signaling potential undervaluation. "Crossed Above Fair Value (0)" and "Crossed Below Fair Value (0)" provide alerts for zero line transitions, indicating shifts between above-average and below-average valuation. "Any Extreme Valuation" offers a combined alert for any threshold breach regardless of direction, allowing traders to monitor both extremes with a single alert setup.
▶ Color Customization: Six visual themes (Classic, Aqua, Cosmic, Cyber, Neon, plus Custom) accommodate different chart backgrounds and visual preferences, with distinct colors for overvalued, undervalued, and fair value conditions. Optional background highlighting with adjustable transparency (0-100%) tints the main chart background during extreme valuation periods, providing immediate visual context without requiring continuous oscillator monitoring. Optional overlay signals display small circle markers directly on the price chart above bars during overvaluation and below bars during undervaluation, allowing correlation of statistical extremes with specific price levels and candlestick patterns.
Combined Trend Indicator - OPTIMIZED Combined Trend Indicator - 10 in 1 (Optimized)
This powerful trend-following indicator combines 10 proven technical indicators into one unified signal system with weighted scoring.
Included Indicators:
RMI Trend Sniper
TS ALMA Smooth
CTI (Correlation Trend Indicator)
Sebastine Trend Catcher
TS Gunxo Trend Sniper
DEMA DMI ViResearch
MM For Loop (Misinkomaster)
DMI For Loop
Trend Oscillator
Stochastic For Loop
How It Works:
Calculates bullish/bearish signals from all 10 indicators
Applies weighted scoring (trend indicators get 2x weight)
Anti-whipsaw filter requires 2-bar confirmation
Displays color-coded trend line below price
Signal Levels:
🟢 Strong Bull (Dark Green) - Difference > 4 → BUY/HOLD
🟢 Weak Bull (Light Green) - Difference 1-4 → CAUTION
🔴 Weak Bear (Light Red) - Difference -1 to -4 → REDUCE
🔴 Strong Bear (Dark Red) - Difference < -4 → SELL/EXIT
Features:
✓ Real-time score display (Bull/Bear out of 13 points)
✓ Automated alerts for trend changes
✓ Optimized parameters for crypto/Bitcoin
✓ Minimal false signals through confirmation filter
Best Used For:
Daily (1D) timeframe, Bitcoin and major cryptocurrencies. Can be adapted for other timeframes and assets.
stelaraX - SupertrendstelaraX – Supertrend
stelaraX – Supertrend is a trend-following indicator based on the Average True Range (ATR). It dynamically adapts to market volatility and provides clear visual guidance for identifying bullish and bearish trend phases directly on the chart.
This indicator is part of the stelaraX ecosystem, focused on clean technical analysis and AI-supported chart evaluation.
stelarax.com
Core logic
The Supertrend is calculated using two user-defined parameters:
* ATR period
* volatility factor
The indicator uses ATR-based price bands to determine trend direction:
* bullish trend when price holds above the Supertrend level
* bearish trend when price holds below the Supertrend level
When price crosses the Supertrend line, the trend direction flips accordingly. The ATR factor controls the sensitivity of trend changes, with higher values producing fewer but stronger signals.
Visualization
The script plots a single Supertrend line directly on the price chart:
* green color during bullish trends
* red color during bearish trends
* broken line style to clearly show trend transitions
The minimalist design ensures that trend direction is immediately visible without cluttering the chart.
Use case
This indicator is intended for:
* identifying and following market trends
* defining dynamic trailing stop levels
* filtering trades in the direction of the dominant trend
* trend confirmation in combination with other indicators
For traders looking to combine classical trend tools with modern AI-driven chart analysis, additional tools and insights are available at stelarax.com
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
ninjactor fib (v6, Native Pivots, Non-Repainting)📐 Fibonacci Sequence Framework (Non-Repainting)
This indicator implements a structured Fibonacci sequence framework using confirmed, non-repainting pivots.
It automatically identifies Fibonacci boundaries, plots a precise Fibonacci level set with grouped color logic, and projects targets based on retracement depth.
The script is designed for clarity, accuracy, and object-based plotting, extending Fibonacci levels to the right while active and maintaining a clean chart by default.
🔹 Core Features
Non-Repainting Fractals
Uses confirmed 2-left / 2-right pivots (ta.pivotlow, ta.pivothigh)
Pivot labels are plotted on the correct historical bar
Automatic Fibonacci Boundary Detection
Long spreads:
Boundary 1 = pivot low (100%)
Boundary 2 = first pivot high after (0%)
Short spreads use the inverted logic
Direction can be set to Auto, Long Only, or Short Only
Exact Fibonacci Level Set
Retracements:
0.236 · 0.382 · 0.500 · 0.618 · 0.786 · 0.886
Extensions (targets):
1.127 · 1.272 · 1.618
Negative levels included:
-0.127 · -0.272 · -0.618
Grouped Color Logic
Red: 0.236 / 0.382 / 0.500 / 0.618, 1.618, negative levels
Blue: 0.786, 1.272, boundary lines
Green: 0.886, 1.127
Active target is highlighted with increased line thickness
Strict “Must Touch” Logic
Retracement levels are only considered valid if price actually touches them
Wick-based validation (not close-based)
Target hits must be touched exactly — no partial credit
Target Projection Rules
Retracements ≤ 0.618 → target = 1.618
0.786 retracement → target = 1.272
0.886 retracement → target = 1.127
Clean Object Management
Uses line and label objects (not plots)
Levels extend right while active
By default, only the current active spread is displayed
Optional history toggle to keep previous spreads
⚙️ Customization
Fully customizable color inputs
Adjustable opacity for:
Non-active levels
Active target line
Direction mode selection
History on/off control
📌 Notes
This is an indicator, not a strategy (no trade execution)
Designed for discretionary trading and confluence analysis
Built to be stable, readable, and Pine Script v6 compatible






















