Pine Script® indicator
Trend Analysis
Market Open Line - 9:30 AM ETI've created a PineScript indicator that draws a horizontal line at the exact opening price from 9:30 AM Eastern Time.
Key Features:
Detects when the market opens at 9:30 AM ET
Captures the opening price at that exact time
Draws a horizontal line that extends from 9:30 AM through the rest of the trading session
Resets daily for a fresh line each trading day
Includes an optional label showing the price level
I tried to find other scripts that performed this same function on all chart types (i.e. Renko) but no other scripts worked for all use cases.
Cheers!
Pine Script® indicator
Master Yoda (10-in-1) v1.0 [R2D2]Yoda (10-in-1) v1.0
Master Yoda 10-in-1 is a comprehensive, professional-grade trading suite designed to consolidate your entire workflow into a single indicator. By combining 10 core technical indicators (plus a bonus 11th ) into one modular overlay, this tool overcomes the "max indicator" limit on charts while providing deep, multi-timeframe (MTF) market analysis.
This script operates on a philosophy of Filters vs. Triggers :
Filters : Define the environment (e.g., Is the trend Bullish? Is Volatility low?).
Triggers : Execute the precise entry (e.g., Price crosses VWAP, MACD crosses Zero).
1. EMA Filter (The Trend Backbone)
Type : Trend Filter
Logic : Uses Fast (Default: 9) and Slow (Default: 21) Exponential Moving Averages.
How to Use:
Trend-Following Mode : Select this in settings to trade only when the Fast EMA is above the Slow EMA.
Counter-Trend Mode : Select this to catch reversals (Fast EMA below Slow EMA).
Visual : The background color changes Green/Red based on this trend alignment.
2. MACD (Momentum Trigger)
Type : Momentum Trigger
Logic : Standard (12, 26, 9) convergence divergence.
How to Use:
Zero-Line Cross : Unlike standard signal crosses, this module triggers signals when the MACD line crosses the Zero Line.
Bullish : Crosses Over 0.
Bearish : Crosses Under 0.
3. RSI (Safe Bottom Finder)
Type : Mean Reversion Filter
Logic : Relative Strength Index (Length 14).
How to Use:
Filter Logic : The script only permits Long signals when RSI is in "safe" territory (Oversold, default < 30) and Short signals when Overbought (default > 70).
Strategy : Prevents buying at the absolute top or selling at the absolute bottom.
4. VWAP (Institutional Value)
Type : Mean Reversion Trigger
Logic : Volume Weighted Average Price with Standard Deviation Bands.
How to Use:
Mean Reversion : Designed for counter-trend trading.
Long Trigge r: Price crosses the Lower Band (Value Zone).
Short Trigger : Price crosses the Upper Band (Premium Zone).
5. Stoch RSI (The Scalper's Edge)
Type : Momentum Filter (High Sensitivity)
Logic : Stochastic Oscillator applied to RSI data.
How to Use:
Fast Signals : Best used on lower timeframes (5m, 15m) for scalping.
Bullish : %K line crosses %D line while below the Oversold threshold (20).
6. TTM Squeeze (Volatility Breakout)
Type : Volatility Trigger
Logic : Measures Bollinger Bands inside Keltner Channels.
How to Use:
Squeeze (Red Dot) : Volatility is compressing. A big move is imminent. Wait.
Fire (Green Dot) : Volatility has expanded. Trade the breakout.
Visuals : Dots appear at the bottom of the chart to indicate Squeeze status.
7. ADX (Trend Strength)
Type : Chop Filter
Logic : Average Directional Index.
How to Use:
Filter Chop : Trading in a flat market is dangerous. ADX filters out trades unless the trend strength is > 25.
Confirm Direction : Ensures the DI+ (Bulls) or DI- (Bears) is dominant.
8. SuperTrend (Trailing Stop)
Type : Trend Filter
Logic : ATR-based trailing stop (Factor 3.0, Length 10).
How to Use:
Bias Enforcement : If the line is Green, only Longs are allowed. If Red, only Shorts.
Stop Loss : Use the SuperTrend line as your dynamic trailing stop-loss level.
9. MFI (Volume-Weighted RSI)
Type : Volume Filter
Logic : Money Flow Index.
How to Use:
Smart Money : Confirms if volume supports the price action.
Filter : Only permits trades when MFI confirms an extreme (Overbought/Oversold) to avoid false breakouts on low volume.
10. ATR Channels (Reversal Bands)
Type : Reversal Trigger
Logic : Moving Average ± (ATR * Multiplier).
How to Use:
Statistical Extremes : When price hits the outer ATR bands, it is statistically extended.
Signal : Triggers a reversal trade (Long at Lower Band, Short at Upper Band).
Bonus : 11. PSAR (Parabolic SAR)
Type : Trend Filter
Logic : Parabolic Stop and Reverse.
How to Use:
Visual Bias : Purple dots below price = Bullish Trend. Purple dots above = Bearish Trend.
Dashboard & Visuals
Status Table : A "Heads Up Display" in the top-right corner shows the real-time status (BULL/BEAR) of every enabled indicator.
Buy/Sell Labels : Triangle shapes on the chart indicate confirmed entry points based on your active Triggers and Filters.
Dynamic Background : Shaded background highlights the dominant EMA trend direction.
Alerts
The script comes with built-in alert conditions for automation:
Yoda Long : Triggers when all active filters pass and a Long trigger fires.
Yoda Short : Triggers when all active filters pass and a Short trigger fires.
How to Configure
You do not need to use all 10 indicators at once! Use the Settings menu to toggle them based on your strategy:
Trend Trading : Enable EMA, SuperTrend, and MACD.
Scalping : Enable Stoch RSI and VWAP.
Breakouts : Enable TTM Squeeze and ADX.
Disclaimer : This tool is for educational purposes only. Past performance does not guarantee future results. Always manage your risk.
Pine Script® indicator
Pine Script® indicator
Vector Logic: Gator Trend Hunter [v 2.0]MAJOR UPDATE: Added Trend Rider Logic to prevent premature exits.
"Stop getting shaken out of winning trades."
🛑 The Problem:
Most trend-following indicators have a fatal flaw: they exit too early . As soon as a strong trend pauses to take a breath, standard momentum indicators (like MACD or moving average crosses) panic and signal an exit, forcing you to watch from the sidelines as the stock rips higher without you.
✅ The Solution: The "Trend Rider" Logic
The VL: Gator Trend Hunter is an institutional-grade trend system designed to solve the problem of premature exits. It combines the legendary Williams Alligator volatility logic with a 200 Double EMA macro filter, but with a critical twist:
Instead of exiting when lines cross (which is noisy), this script uses a Structure Break Exit . It will keep you in the trade as long as the price candles close above the Alligator's Teeth (the Red Balance Line). This acts as a "Guard Rail," allowing the price to wiggle, pullback, and test support without killing your position.
_______________________________________
🧠 How It Works
1. The Macro Filter (200 DEMA) 🌊
The script first checks the "Big Picture" trend direction.
• Price > Orange Line = 🟢 Longs Only.
• Price < Orange Line = 🔴 Shorts Only.
2. The Trigger (The Alligator) 🐊
It waits for the Alligator lines to "Sleep" (contract/tangle) and then "Eat" (expand).
• LONG: When the Green line crosses above the Red line and price breaks out.
• SHORT: When the Green line crosses below the Red line and price breaks down.
3. The Ride (The Secret Sauce) 🏄♂️
Once in a trade, the script ignores minor crossovers . It only signals an EXIT if the price physically closes beyond the Red Guard Rail.
_______________________________________
📖 The Playbook: How to Trade It
• The Setup: Look for the Macro Trend Line (Orange) to be sloping up.
• The Entry: Wait for the Cyan "BUY" Label . This appears when the Alligator wakes up and expands (you will see the "Gator Cloud" turn bright Blue).
• The "Sit on Your Hands" Phase: This is the hardest part of trading. You will see red candles. You will see pullbacks. Do not sell. Trust the Red Line. As long as the "Gator Cloud" remains visible and price is above the Red line, the trend is healthy.
• The Exit: Sell only when the Yellow "X" appears. This confirms that the trend structure has actually broken.
_______________________________________
⚡ Key Features
• Bi-Directional: Works for both Bull markets (Longs) and Bear markets (Shorts).
• State Machine: No signal spam. You get one clean entry signal, and then silence until the exit.
• Live Dashboard: A status panel in the bottom right corner shows you:
📊 Macro Trend: Bullish/Bearish.
🐊 Gator Phase: Sleeping vs. Expansion.
🎯 Active Action: Long, Short, or Wait.
💎 Best For:
• Trending Assets: High Beta Stocks (NVDA, TSLA), Crypto (BTC, ETH), and Commodities.
• Timeframes: Optimized for 4H and Daily charts to catch major swings.
Part of the Vector Logic Labs quantitative suite.
Pine Script® indicator
VA Rejection SignalsSimple Buy and Sell Signals for when price is bearish or bullish from value areas.
Pine Script® indicator
Vector Logic: Gator Trend Hunter
Stop getting shaken out of winning trades.
Most trend-following indicators have a fatal flaw: they exit too early . As soon as a strong trend pauses to take a breath, standard momentum indicators (like MACD or moving average crosses) panic and signal an exit, forcing you to watch from the sidelines as the stock rips higher without you.
The Solution: The "Trend Rider" Logic
The VL: Gator Trend Hunter is an institutional-grade trend system designed to solve the problem of premature exits. It combines the legendary Williams Alligator volatility logic with a 200 Double EMA macro filter, but with a critical twist:
Instead of exiting when lines cross (which is noisy), this script uses a Structure Break Exit. It will keep you in the trade as long as the price candles close above the Alligator's Teeth (the Red Balance Line). This acts as a "Guard Rail," allowing the price to wiggle, pullback, and test support without killing your position.
How It Works:
The Macro Filter (200 DEMA): The script first checks the "Big Picture."
Price > Orange Line = Longs Only.
Price < Orange Line = Shorts Only.
The Trigger (The Alligator): It waits for the Alligator lines to "Sleep" (contract/tangle) and then "Eat" (expand).
LONG: When the Green line crosses above the Red line and price breaks out.
SHORT: When the Green line crosses below the Red line and price breaks down.
The Ride (The Secret Sauce): Once in a trade, the script ignores minor crossovers. It only signals an EXIT if the price physically closes beyond the Red Guard Rail.
How to Use This Indicator (The Playbook):
The Setup: Look for the Macro Trend Line (Orange) to be sloping up.
The Entry: Wait for the Cyan "BUY" Label. This appears when the Alligator wakes up and expands (you will see the "Gator Cloud" turn bright Blue).
The "Sit on Your Hands" Phase: This is the hardest part of trading. You will see red candles. You will see pullbacks. Do not sell. Trust the Red Line. As long as the "Gator Cloud" remains visible and price is above the Red line, the trend is healthy.
The Exit: Sell only when the Yellow "X" appears. This confirms that the trend structure has actually broken.
Features:
Bi-Directional: Works for both Bull markets (Longs) and Bear markets (Shorts).
State Machine: No signal spam. You get one clean entry signal, and then silence until the exit.
Dashboard: A live status panel in the bottom right corner shows you the Macro Trend direction, the Gator Phase (Sleeping vs. Expansion), and your current Active Signal.
Best For:
Trending Assets: High Beta Stocks (NVDA, TSLA), Crypto (BTC, ETH), and Commodities (Gold, Silver).
Timeframes: Optimized for 4H and Daily charts to catch major swings.
Part of the Vector Logic Labs quantitative suite.
Pine Script® indicator
Aura V14
Aura V14 is a minimalist, high-precision trend engine specifically engineered and optimized for the 15-minute (15m) timeframe.
It operates on a "Triple Consensus" logic, harmonizing three of the most powerful algorithmic filters into a single, clutter-free interface:
Lorentzian Machine Learning Score: Analyzes multi-factor momentum (RSI, MFI, ADX) to ensure statistical edge.
Alpha Trend Engine: Tracks institutional money flow and volatility-adjusted trend direction.
Magic Trend (CCI-Based): Confirms price breakouts and sustained momentum.
Designed for the minimalist trader, Aura removes all visual noise by eliminating lines and oscillators. It features a unique soft background "glow" that instantly identifies the market's aura: a soothing green for bullish strength and a muted red for bearish dominance.
Key Features:
15m Optimization: Fine-tuned for medium-frequency trading, filtering out low-timeframe noise while capturing significant moves.
Zero-Line Interface: Keep your charts clean and focus on price action.
Triple-Filter Validation: Signals only appear when all underlying algorithms reach a perfect consensus.
Pine Script® indicator
Arbitrage Monitoring [ZurvanEG]⯁ Advanced Multi-Market Arbitrage & Liquidity Scanner
◇ Overview
This professional-grade analysis suite is designed to detect, validate, and visualize cross-exchange price inefficiencies in real-time. Unlike standard gap scanners, this engine employs a Statistical Validation Layer to filter out market noise, ensuring that only high-quality, actionable Arbitrage opportunities are presented.
Whether analyzing Crypto Assets across centralized exchanges or Forex & Commodities across top-tier brokers, this tool transforms fragmented liquidity data into a unified, actionable dashboard.
◈ Dual-Engine Architecture
The system adapts its scanning logic based on the asset class:
⬥ Crypto Mode: Scans a network of major CEXs (Binance, OKX, Kraken, etc.) with specific algorithms for USDT-paired volatility and volume weighting.
⬥ Forex Mode: Connects to premium liquidity providers (OANDA, Saxo, IC Markets) to monitor fiat pairs and Gold (XAUUSD), calibrated for tight spreads and high-frequency precision.
◈ Operational Modes & Scanning Logic
This system offers two distinct engine modes, allowing traders to switch between Deep Granular Analysis and Broad Market Surveillance:
⬥ Deep Dive (Chart Asset Focus)
⬦ Precision Analysis: This mode directs the full processing power of the script to the single asset currently displayed on your chart.
⬦ Dynamic Ticker Recognition: It automatically extracts the base asset (e.g., “BTC” from “BTCUSDT”) and instantly queries the entire network of supported exchanges (20+ sources) to find the absolute best Buy/Sell prices available globally.
⬥ Multi-Asset Scanner (Watchtower Mode)
⬦ Market-Wide Surveillance: Acts as a background radar system. Instead of focusing on one chart, it continuously monitors a user-defined “Asset Universe” (up to 5 custom instruments) simultaneously.
⬦ Resource Balancing: The engine intelligently allocates resources to track the spread quality for your entire watchlist in real-time, regardless of which symbol is currently on your chart.
◈ Smart Validation & Risk Engine
Unlike simple price-gap tools, this indicator employs a multi-layered Statistical Verification Engine to filter out noise and ensure actionable opportunities.
⬥ Z-Score Contextualization:
Instead of relying on fixed percentage thresholds, the engine calculates the Standard Deviation (Z-Score) of the current spread relative to its recent history. This distinguishes statistically significant anomalies from normal market volatility.
⬥ Stagnancy Protection (Anti-Freeze):
Automatically detects and quarantines exchanges with “frozen” data feeds. If a price remains unchanged for a user-defined number of bars, the source is flagged as stale to prevent false signals caused by API disconnects or illiquid order books.
⬥ Liquidity & Volume Filters:
Ensures that price gaps are backed by real market depth. The engine filters out “ghost” arbitrage opportunities on exchanges with insufficient volume, protecting traders from getting trapped in illiquid positions.
⬥ Stability Counters:
Requires an opportunity to persist for a minimum number of consecutive bars (Stability Bars) before validation. This rules out HFT (High-Frequency Trading) flickers and latency-based ghosts that are impossible to execute manually.
◈ Visualization Suite & Intelligent Dashboard
This indicator bridges the gap between raw data processing and visual decision-making, offering two synchronized layers of market insight:
⬥ The Arbitrage Cloud (Chart Overlay)
⬦ Spatial Spread Representation: Unlike traditional line indicators, this feature renders the arbitrage opportunity as a dynamic, semi-transparent cloud directly on your price chart. It visualizes the physical gap between the Global Best Buy Price (Lowest Ask) and the Global Best Sell Price (Highest Bid).
⬦ Contextual Volatility Analysis: By overlaying this cloud on the asset’s candles, traders can instantly assess the magnitude of the spread relative to current price action. You can visually correlate spread widenings with specific market events, support/resistance breakouts, or liquidity crunches without needing to look at a separate oscillator.
⬦ History Tracking
Instead of a fleeting snapshot, the Arbitrage Cloud renders the complete historical trajectory of price inefficiencies directly on your chart.
Contextual Backtesting: By plotting the cloud historically, you can visually backtest how spreads behave during specific market events (e.g., news releases, volatility spikes). This allows you to identify recurring patterns in liquidity fragmentation.
Visualizing Spread Expansion/Contraction: See exactly when opportunities opened and closed in the past. The cloud’s width dynamically reflects the magnitude of historical arbitrage windows, helping you distinguish between fleeting wicks and sustained profitable trends.
Correlation Analysis: Directly correlate spread widenings with price action (support/resistance, breakouts) to refine your entry and exit strategies based on proven historical behavior.
⬥ Command-Center Dashboard
A professional-grade, tabular overlay designed to act as your central monitoring station. It goes beyond simple data display to provide actionable metrics:
⬦ Micro-Trend Sparklines: Integrated mini-charts within the table columns visualize the recent trajectory of the spread over the last Nbars. This allows you to identify whether an opportunity is expanding (opening up) or compressing (closing down) at a glance, without changing your chart timeframe.
⬦ Net Profit & ROI Logic: The dashboard includes a sophisticated Fee Adjustment Engine. Instead of showing theoretical “Gross Profit,” it optionally deducts user-defined trading fees (e.g., 0.1% maker/taker) and transfer costs. This presents the “True Net Profit,” filtering out opportunities that look good on paper but are unprofitable after costs.
⬦ Composite Quality Scoring (0-100): To simplify decision-making, the engine synthesizes multiple data points into a single “Quality Score.”
◈ Alert System
Receive alerts only for opportunities that pass all validation filters (Z-Score, Stability, Volume). A built-in Smart Cooldown prevents notification spam, ensuring each alert is a distinct, actionable event.
Every notification includes the essential data:
⬦ Asset & Spread %
⬦ Specific Buy/Sell Venues
◈ Conclusion
The Arbitrage Monitoring represents a paradigm shift from standard retail indicators to institutional-grade market analysis. By synthesizing real-time liquidity fragmentation, statistical rigor (Z-Score), and cross-venue data aggregation, this engine solves the primary challenge of modern trading: Data Reliability. It does not merely flag price differences; it mathematically validates the quality and executability of those inefficiencies before they appear on your screen.
For the discretionary trader, it acts as a Market Truth Revealer, exposing the hidden liquidity mechanics behind a single candle. For the quantitative arbitrageur, it serves as a robust Signal Validation Layer, filtering out latency noise to isolate genuine alpha.
Whether deployed for High-Frequency Scalping in Crypto or Precision Hedging in Forex, this tool transforms the chaotic landscape of global pricing into a structured, actionable, and visually intuitive roadmap. It is the ultimate instrument for traders who demand to see the entire market, not just a single exchange.
Pine Script® indicator
MASU+ v7.2 (NW+ELM+BOS)# MASU+ v7.2 — Institutional Multi-Strategy Framework (NW + ELM + BOS)
## Overview
MASU+ v7.2 is an advanced multi-strategy trading system that combines institutional-grade Smart Money Concepts (SMC), machine learning signal filtering, and adaptive risk management into a single unified framework. The strategy is designed for intraday and swing trading across forex, indices, and commodities.
The core philosophy is **high-confluence entries only** — every trade must pass through multiple independent filters before execution, ensuring that only the strongest setups are taken.
---
## Key Components
### 1. Nadaraya-Watson Kernel Ribbon
An 8-line non-parametric regression ribbon built on a Fibonacci bandwidth grid (3, 5, 8, 13, 21, 34, 55, 89). The ribbon acts as a dynamic trend filter with three operating modes:
- **Strict** — all 8 lines must be perfectly ordered
- **Relaxed** — a configurable threshold of ordered pairs (default 6/7)
- **Expansion** — ribbon width is increasing in the trend direction
The bandwidth can operate in **Fixed** or **Adaptive** mode. In Adaptive mode, bandwidth auto-scales based on ATR-normalized volatility, making the ribbon more responsive in volatile conditions and smoother in calm markets.
### 2. ELM Neural Filter (Extreme Learning Machine)
A lightweight online-learning neural network that trains in real time on 7 normalized features:
- RSI, Rate of Change, Distance from EMA 200, ADX, NW Kernel Slope, Ribbon Order Score, and Relative Volume
The ELM predicts price direction over a configurable lookahead window (default: 5 bars) and outputs a probability score (0–1). Key v7.2 improvements include:
- **Weight decay regularization** to prevent parameter drift
- **Real-time accuracy calibration** — the ELM tracks its own prediction accuracy and adjusts its voting weight accordingly. An ELM with <50% accuracy effectively gets silenced.
- The ELM can act as a soft vote (bonus confluence), a hard blocker, or influence position sizing — all configurable.
### 3. Smart Money Concepts (SMC)
Full institutional order flow toolkit:
- **Order Blocks** — bullish/bearish engulfing patterns with body-to-range ratio filtering
- **Fair Value Gaps (FVG)** — imbalance detection with ATR-scaled minimum size
- **Liquidity Sweeps** — stop hunt detection at recent swing highs/lows
- **Break of Structure (BOS)** — pivot-based market structure tracking
- **Demand/Supply Zones** — impulse-based zones that auto-expire when violated
### 4. BOS Immediate Entry (v7.2)
A dedicated scalp-style entry that fires **immediately** when a Break of Structure is detected — no confirmation bars required. Features:
- **TP = 0.75 × ATR** — tight scalp target for quick profit capture
- **Aggressive trailing** — activates at just 0.1 × ATR from entry with a 0.15 × ATR offset
- **Full confluence gate** — BOS entries require the same high confluence score (≥ 7.0) as all other entries, preventing low-quality breakout chasing
### 5. Multi-Timeframe (MTF) Filter
Higher timeframe EMA alignment check (default: 4H). Both fast and slow EMAs on the higher timeframe must agree with the trade direction, and price must be on the correct side of the fast EMA.
### 6. Order Flow Analysis
- **VWAP** with 3 standard deviation bands (±1σ, ±2σ, ±3σ)
- **Cumulative Volume Delta (CVD)** — divergence detection between price and volume delta
- **Volume Profile POC** — Point of Control visualization
---
## Confluence Engine (v7.2)
Every entry — whether trend-following, breakout, mean-reversion, or BOS — must achieve a **minimum weighted confluence score of 7.0** (out of a maximum 7.5 with default weights).
Each filter contributes a configurable weight:
| Filter | Default Weight |
|---|---|
| MTF Alignment | 2.0 |
| NW Ribbon | 1.5 |
| ELM AI | 1.0 (calibration-adjusted) |
| Order Flow | 1.0 |
| Smart Money | 1.0 |
| ADX Trend Strength | 0.5 |
| NW Slope Direction | 0.5 |
| **Total** | **7.5** |
With the default threshold of 7.0, nearly all filters must agree before a trade is placed. This dramatically reduces noise trades and false signals.
---
## Risk Management
### Volatility Regime Adaptation
The strategy classifies the market into 4 regimes and adapts SL/TP accordingly:
| Regime | SL Mult | TP Mult |
|---|---|---|
| High Vol + Trending | 1.5× ATR | 2.5× ATR |
| High Vol + Ranging | 1.2× ATR | 1.8× ATR |
| Low Vol + Trending | 1.5× ATR | 2.5× ATR |
| Low Vol + Ranging | 1.0× ATR | 1.5× ATR |
### Trailing Stop
Configurable trailing stop that activates at 25% of the TP distance (default) with a tight 0.2 × ATR offset. Designed to lock in profits early while giving trades room to breathe.
### Kelly Criterion Sizing
Position size is dynamically calculated using the Kelly formula based on real-time win rate and win/loss ratio, capped at 25% to prevent over-leverage.
### Quality-Based Sizing
Signal confluence score directly affects position size: high-quality setups get full allocation, moderate setups get 80%, and weaker setups get 60%.
### Equity Guard
Automatic circuit breaker that pauses trading after a configurable number of consecutive losses (default: 5) or when drawdown exceeds a threshold (default: 15%). Resumes after a cooldown period to prevent emotional revenge trading.
### Cost-Aware Filter
Estimates total round-trip cost (spread + commission) and blocks entries where ATR is too small relative to trading costs. Prevents churning in low-volatility environments.
---
## Entry Types
1. **Trend Following** — EMA crossover + volume spike + bullish/bearish trend confirmation
2. **Breakout** — New high/low break + volume spike + EMA filter alignment
3. **Mean Reversion** — Bollinger Band extreme + RSI oversold/overbought + ranging regime
4. **BOS Scalp** — Immediate entry on Break of Structure with tight TP and aggressive trailing
All entries require: session filter ✓ | confluence ≥ 7.0 ✓ | R:R check ✓ | cost filter ✓ | equity guard clear ✓ | ELM not blocking ✓
---
## Dashboard
A comprehensive real-time institutional dashboard displays:
- Multi-timeframe trend alignment (15M / 1H / 4H)
- NW Ribbon state and bandwidth scale
- ELM AI probability, accuracy, and confidence weight
- Volatility regime classification
- Order flow and Smart Money signals
- Confluence score with quality rating
- Adapted SL/TP levels with regime multipliers
- Kelly position sizing
- Equity guard status with drawdown tracking
- BOS entry status
- Session detection (London / New York / Asia / Overlap)
- Active demand/supply zone count
---
## What's New in v7.2
- **Confluence threshold raised to 7.0** for all entry types — only the highest-conviction trades are taken
- **BOS immediate entry** — no confirmation bar delay; enters on the breakout candle itself
- **BOS TP = 0.75 × ATR** — tighter scalp target optimized for quick captures with trailing doing the heavy lifting
- **Unified confluence gate** — BOS entries now use the same min_confluence_score as standard entries (no separate hardcoded threshold)
---
## Recommended Settings
- **Timeframe:** 1H (primary), with 4H MTF filter
- **Session:** 09:00–22:00 (covers London + New York)
- **Assets:** Forex majors, Gold (XAUUSD), US indices (NAS100, SPX500)
- **Account:** Works with standard lot sizing; commission and spread inputs should be adjusted to your broker
---
## Disclaimer
This strategy is provided for educational and research purposes. Past performance does not guarantee future results. Always backtest thoroughly and trade with proper risk management. The ELM neural component learns in real time and its accuracy varies across market conditions.
Pine Script® strategy
YY FX NINJA FX piyasasında özellikle gold paritesinde nadaraya watson indikatörü ile beraber kullanımı uygun
Pine Script® indicator
DEMATR StrategyThe DEMATR Guard is a sophisticated trend-following strategy built to capture momentum while shielding you from high-volatility traps. It leverages the speed of Double EMAs, the structural context of the Ichimoku Cloud, and an adaptive volatility engine.
Core Logic
The Engine: Dual DEMA cross (8/21) for rapid signal detection with less lag than traditional moving averages.
The Trend Shield: Ichimoku Cloud filter ensuring entries only occur in bullish territory (above Span A and B).
Volatility Guard: Automatic ATR-based filtering that rejects signals when the market is overextended or hyper-volatile.
The Safety Floor: A 50 EMA baseline used as a structural exit to preserve capital during trend reversals.
What the DEMATR Guard Handles Automatically
The script takes care of the mechanical heavy lifting: DEMA crossovers, Ichimoku Cloud positioning, EMA 50 floor exits, and the rejection of excessive volatility (ATR Filter).
Your Essential Checklist (Human Discretion)
While the script handles the math, your value as a trader comes from analyzing what a backtest cannot see. When you see a BUY triangle, check these points:
Volume: Is there a noticeable volume spike on the signal candle?
VRVP: Is there a heavy "volume wall" (resistance) right above you? If the path is clear, it's a higher-quality trade.
Space to Run: Ensure there is at least 2-3% of room before the next major horizontal resistance.
Future Cloud: Look to the right—is the Ichimoku cloud green for the future period?
ADX: Is the trend strength above 15? Avoid taking signals in dead or sideways markets.
Interpreting "ATR!" Markers
The orange "ATR!" cross signals a rejected entry. This means the trend was valid, but the price move was too violent or overextended. These markers are designed to protect you from "buying the peak" of an exhausted rally.
Pine Script® strategy
Sweep Trend Chop Filter (STCF)Sweep Trend Chop Filter (STCF) is a price‑action trend tool that colors candles based on trend strength, momentum shifts, and chop conditions. It combines a 4‑MA stack with a CISD state‑machine to highlight true bullish/bearish moves while filtering out noise. A fast, visual trend filter for any timeframe.
Bullish: MA9 > MA18 ≥ MA27 ≥ MA50 → bars colored green
Bearish: MA9 < MA18 ≤ MA27 ≤ MA50 → bars colored red
Otherwise = Chop (yellow)
MA Stack (Primary Trend): Uses four moving averages (9/18/27/50) with a loosened stacking rule to identify trend bias.
CISD State (Momentum Confirmation): Confirms flips only on confirmed bars by tracking a red→green (bearish → bullish) or green→red (bullish → bearish) transition, then measuring follow‑through using the Noise Filter tolerance. When met, CISD can temporarily color bars even if the MA stack hasn’t aligned yet.
Full Candle Coloring: Bodies, wicks, and borders are colored for immediate visual clarity, with optional overlay of the 4 MAs.
Inputs
Noise Filter (0–1): Tighten/loosen CISD confirmation sensitivity (default 0.7).
Swing Period: For future extensions (placeholder).
MA Type: EMA (default) or SMA.
MA Lengths: 9 / 18 / 27 / 50 (editable).
Colors: Bullish, Bearish, Chop.
Toggle: Show/Hide MAs.
Tips & Notes
Go to Settings of Chart (not the indicator) and Disable Colored Body, Wick, and Outline.
Use STCF to stay with trend, avoid chop, and time transitions with CISD confirmation.
Best paired with higher‑timeframe confluence and risk controls.
No signals/alerts are fired—visual filter only.
Pine Script® indicator
Pine Script® indicator
Proximal Range Filter [LuxAlgo]The Proximal Range Filter indicator provides a robust range/noise-filtering solution that utilizes an L1 soft-thresholding approach to determine market trends while minimizing lag and erratic price movements.
🔶 USAGE
The indicator is primarily used to identify the current trend direction and significant price shifts while ignoring minor market noise. It appears as a colored line on the price chart, transitioning between bullish and bearish states.
🔹 Trend Identification
Users can determine the current market sentiment by looking at the color of the filter line and the associated gradient fill:
A green line and fill indicate a bullish trend, suggesting that price is consistently overcoming the upper noise threshold.
A red line and fill indicate a bearish trend, suggesting that price is consistently breaking below the lower noise threshold.
🔹 Trend Switches
The indicator plots "Trend Switch Dots" at the specific point where a trend reversal is confirmed. These dots appear at the previous filter level to highlight the origin of the new trend direction. This visual cue helps traders identify the exact moment the filter "stepped" in a new direction.
🔹 Responsiveness and Volatility
By adjusting the inputs, traders can tailor the filter to different trading styles:
For high-volatility assets (like Crypto), increasing the ATR Multiplier can help filter out "fakeouts" that occur during consolidation.
In trending markets, a higher Adaptation Rate (μ) allows the filter to track price changes more aggressively once the noise threshold is exceeded, reducing lag.
A lower ATR Multiplier combined with a lower Adaptation Rate creates a more "stepped" filter, useful for identifying major support/resistance levels created by the filter's flat periods.
🔶 DETAILS
The core of this indicator is the L1 Proximal Filter logic. Unlike standard moving averages that react to every price tick, this filter uses a "Soft-Thresholding" mechanism to isolate meaningful price action from random volatility.
🔹 Calculation Logic
The filter operates through a specific prediction-adaptation cycle:
Noise Threshold : The script calculates a dynamic threshold using a 200-period ATR multiplied by the user-defined setting. This ensures the filter's sensitivity scales automatically with the asset's current volatility.
State Prediction : The algorithm predicts the next state based on the previous filtered value and the current velocity (the rate of change).
Adaptive Blending : The prediction is blended with the new incoming source data using the Adaptation Rate (μ). This creates a temporary "candidate" value for the filter.
Soft-Thresholding : The difference between the candidate value and the previous filter state is evaluated. If the absolute difference is less than the threshold, the velocity is set to zero (the filter remains flat). If it exceeds the threshold, the threshold value is subtracted from the absolute difference to calculate the "meaningful" signal.
This mathematical approach ensures that only price movements strong enough to overcome the statistical noise (the ATR threshold) result in a change to the filter's value.
🔹 Trend Switch Dots
The Trend Switch Dots are plotted with a -1 offset. This is because a trend change is only confirmed once the current bar's filter value moves relative to the previous bar. The dot marks the price level where the "breakout" from the previous noise range occurred.
🔶 SETTINGS
Source : The price data used for calculation (typically the Close price).
ATR Multiplier : Defines the noise threshold. Higher values require larger price movements to change the filter's value, resulting in a smoother output that ignores more "whipsaws."
Adaptation Rate (μ) : Controls how fast the internal prediction adapts to price changes. A value of 1.0 reacts most aggressively to new data, while lower values provide more smoothing during the adaptation phase.
Pine Script® indicator
Singular Spectrum Decomposition [LuxAlgo]The Singular Spectrum Decomposition indicator is a powerful analytical tool that decomposes price action into distinct, interpretable components—Trend, Periodic cycles, and Noise—using the Singular Spectrum Analysis (SSA) methodology.
It provides traders with a clear view of underlying market structures and offers a jump-free, extrapolated trend forecast based on Linear Recurrence Relations (LRR).
Warning: This decomposition is displayed retrospectively ; historical values observed are subject to repainting .
🔶 USAGE
The indicator operates by analyzing a specific window of recent price data to extract its most significant internal dynamics. It splits the "messy" raw price into four visual layers:
Trend (Overlay): The primary low-frequency component, plotted directly on the price chart. This represents the core directional bias of the asset.
Long Term Periodic (P1): The most dominant cyclical component, typically representing major swings or seasonalities.
Short Term Periodic (P2): The second most dominant cycle, capturing faster oscillations and intermediate pullbacks.
Noise: The high-frequency residual data that lacks a consistent pattern, useful for identifying market volatility or "washout" periods.
🔹 Cycle Exhaustion (P1/P2 Extremes)
Traders can monitor the separate indicator pane to identify when cyclical components (P1 and P2) reach historical extremes. When the Long Term Periodic (P1) line begins to curve back toward the zero line after a prolonged extension, it often signals "cycle exhaustion," suggesting that the current swing is losing momentum and a reversal or consolidation may be imminent.
🔹 Trend-Forecast Confluence & Mean Reversion
The dashed Trend extrapolation acts as a projected path for the market's core bias. If the current market price is significantly far from the solid Trend line while the forecast indicates a flattening or reversal, traders can look for mean-reversion opportunities. A price returning to a rising Trend forecast confirms the trend's strength, while a price crossing through a flat Trend forecast suggests a structural shift.
🔹 Timing Entries with Dashboard Metrics
The "Average Period" displayed on the dashboard provides a mathematical blueprint for entry timing. For example, if the Short Term (P2) Average Period is 20 bars, a trader might look for long entries approximately 10 bars after a peak (the expected trough). By aligning these peak-to-trough measurements with the Trend's direction, users can improve the precision of their entries within a trending market.
🔹 Filtering Fakeouts with the Noise Component
The Noise component helps distinguish between high-conviction moves and market "static." A sharp price breakout accompanied by a relatively flat Noise component suggests a sustainable, structurally supported move. Conversely, if a breakout occurs while the Noise component is spiking aggressively, it may indicate a "washout" or a liquidity-driven fakeout that lacks a fundamental trend shift.
🔶 DETAILS
The script implements a full SSA pipeline: Embedding (creating a trajectory matrix), Singular Value Decomposition (via eigendecomposition of the covariance matrix), and Diagonal Averaging (reconstructed the time series).
🔹 Jump-Free Extrapolation
A common issue with LRR-based forecasts is a vertical "jump" at the connection point between historical data and the forecast. This tool solves this by calculating the relative deltas of the LRR projection and anchoring them to the final value of the smoothed SSA reconstruction. This ensures a seamless visual transition while maintaining the mathematical integrity of the projected trajectory.
🔹 Dashboard Metrics
The indicator includes a real-time dashboard that calculates the "Average Period" of the periodic components using zero-crossing detection. This allows traders to quantify the frequency of cycles (e.g., a 40-bar cycle vs. a 15-bar cycle) without manual measurement.
🔶 SETTINGS
Window Length (L): The embedding window. Larger values capture longer cycles and provide a smoother trend, but may increase lag in the decomposition.
Buffer Length (N): The number of recent bars used for the static decomposition.
Forecast Length: The number of bars to extrapolate the Trend component into the future.
Show Trend on Price: Toggles the visibility of the reconstructed trend line on the main chart.
Show Periodic/Noise: Toggles the visibility of the individual sub-components in the indicator pane.
Show Extrapolation: Enables or disables the dashed forecast line for the trend.
Dashboard Settings: Controls the visibility, position, and size of the metrics table.
Pine Script® indicator
Donchian BO with SAR & Fixed TargetDonchian breakout Strategy for Long & Short. Helps in identifying trades.
Pine Script® strategy
Sessions [ARCHI]Trading Session Highlighter
Overview
Sessions highlights the four major forex trading sessions directly on your chart with colored boxes: **Sydney**, **Asia (Tokyo)**, **London**, and **New York**. Instantly see which session is active, where the high/low of each session was, and how sessions overlap.
🔑 Key Features
📦 **Session Boxes** — Each session is drawn as a transparent box spanning the session's high-to-low range. The box updates in real time as new highs and lows are printed.
🏷️ **Centered Labels** — Session names are displayed at the top-center of each box for quick identification.
🌍 **4 Major Sessions** — Sydney (Yellow), Asia/Tokyo (Blue), London (Green), New York (Red). All times are based on UTC.
☀️ **DST / Summer Mode** — One-click toggle to adjust session times for Daylight Saving Time. When enabled, Sydney, London and New York sessions shift by 1 hour. Asia (Tokyo) is unaffected as Japan does not observe DST.
🎨 **Fully Customizable Colors** — Adjust box background and border colors independently for each session.
📈 How to Use
Session Context
- Know **which session you're trading in** — different sessions have different volatility and liquidity profiles.
- **Asia** tends to range, **London** tends to trend, **New York** brings the most volatility.
Session High/Low as Support & Resistance
- The **high and low of each session** often act as intraday support and resistance levels.
- A break of the **Asia session high/low** during London open is a classic setup.
Overlap Zones
- The **London–New York overlap** (13:00–16:30 UTC) is the highest volume period in forex.
- Look for the biggest moves and best setups during overlaps.
Kill Zones
- Use session boxes to identify **kill zones** — the first 1–2 hours of London and New York where institutional order flow is heaviest.
## ⚙️ Settings
| Parameter | Default | Description |
|-----------|---------|-------------|
| Summer Mode (DST) | Off | Shifts session times by -1 hour for DST |
| Sydney Box | Yellow (90% transparent) | Sydney session background color |
| Sydney Border | Yellow (60% transparent) | Sydney session border color |
| Asia Box | Blue (90% transparent) | Asia session background color |
| Asia Border | Blue (60% transparent) | Asia session border color |
| London Box | Green (90% transparent) | London session background color |
| London Border | Green (60% transparent) | London session border color |
| NY Box | Red (90% transparent) | NY session background color |
| NY Border | Red (60% transparent) | NY session border color |
🕐 Default Session Times (UTC, Winter)
| Session | Start | Duration | End |
|---------|-------|----------|-----|
| Sydney | 23:00 | 1h | 00:00 |
| Asia (Tokyo) | 00:00 | 9h | 09:00 |
| London | 08:00 | 8.5h | 16:30 |
| New York | 13:00 | 9h | 22:00 |
💡 Tips
1. Works best on **M5 – H1** timeframes for clear intraday session visualization.
2. On **higher timeframes** (H4+), boxes may overlap significantly — consider using on intraday charts only.
3. Combine with VWAP, volume profile, or order flow tools for confluence-based entries at session boundaries.
4. The **London open** and **New York open** are statistically the best times for breakout trades.
Pine Script® indicator
Relative Strength Sector RankingRelative Strength Sector Ranking
This indicator provides a real-time relative strength analysis of your stock against the top 10 constituents of its sector. By automatically detecting the sector (Technology, Financials, etc.) and comparing performance over your chosen timeframe (1D, 1W, 1M, etc.), it assigns a clear Percentile Rank (e.g., 9/10) to help you identify sector leaders and laggards.
Key Features:
Auto-Sector Detection: Automatically selects the top peers based on the stock's GICS sector.
Dynamic Ranking: Sorts and ranks the stock against industry giants like NVDA, JPM, or XOM.
Visual Dashboard: A clean, transparent table displays the full leaderboard and your stock's specific standing.
Customizable: Choose your timeframe and adjust the visual style to match your chart's aesthetic.
How to Use:
Add the indicator to your chart.
The script will auto-detect the sector and display the top 10 peers in the top-right corner.
Check your stock's Rank and Score to gauge its relative strength.
Use the settings to change the timeframe (e.g., verify if a stock is a leader on the 1M chart but lagging on the 1W).
Pine Script® indicator
Automatic Trendline [Metrify]Metrify Automatic Trendlines is an auto-drawing support/resistance channel built around pivot clustering + scoring, not “connect two perfect points”. The script continuously collects swing pivots (high/low) over a configurable lookback window, then searches for the best single support line and the best single resistance line that behave like a human-drawn trendline: multiple interactions, controlled slope, limited break-throughs, and (most importantly) still relevant to the current price. (configurable in "Max Relevance Distance" input)
The fundamental problem with algorithmic trendlines is subjectivity. To solve this mathematically, we treat trendlines as a statistical regression problem with specific constraints. We do not use linear regression on all candles, instead, we use a brute-force iterative approach on specific "Pivot Points."
The logic operates on a simple premise: Generate every possible line between past swing points, validate them against price history, score them based on fit, and render only the winner.
The Calculation Engine (f_find_best_line)
This function contains the primary computational load. It performs a nested loop operation:
Outer Loop (newer): Iterates through recent pivots.
Inner Loop (older): Iterates through older pivots to form a candidate line segment.
For every pair of pivots (P1,P2), we calculate the slope (m) and the y-intercept concept. This gives us a tentative trendline equation:
y=mx+c
The Scoring Matrix
We assign a score to each candidate line based on weighted heuristics:
Touch Count (touches * 2.8): The primary driver. More touches = higher statistical significance.
Recency (recency * 1.2): Lines originating closer to the current price action are weighted higher.
Tightness (avgErr): We calculate the average distance of all touches from the line. A "tighter" fit (lower error) increases the score.
Penalties:
violations * 2.2: False breaks heavily penalize the score.
barBreakRatio * 2.0: If the line cuts through candle bodies (even if pivots are fine).
The line with the highest localBest score is returned as the dominant trendline.
What you can use it for?
This is a structure visualizer that tries to keep a clean, current S/R channel on screen with volatility-aware rules. It’s not a signal generator, it doesn’t predict breakouts, and it won’t always draw something, if the market is messy and no line survives the filters, it will show none instead of hallucinating geometry. If you need more lines (multiple concurrent channels), that’s a different design tradeoff (and usually becomes clutter + false confidence fast).
Pine Script® indicator
Stock Expansion Pullback SignalStock Expansion Pullback Signal
This indicator highlights pullback opportunities that occur after strong expansion candles confirmed by volatility and momentum.
Concept:
1. Expansion Detection:
Candle range exceeds ATR × multiplier
Strong body structure (momentum candle)
RSI confirms directional momentum
2. Pullback Phase:
Price retraces into:
EMA fast/slow zone
OR a defined VWAP proximity band
3. Signal:
A signal prints when pullback conditions occur within a configurable number of bars after the expansion.
Features:
• ATR-based expansion filter
• RSI momentum confirmation
• EMA structure context
• VWAP proximity detection
• Adjustable expansion validity window
• Alert-ready conditions
Notes:
Designed for intraday and swing environments.
Works across stocks, indices, crypto, and forex.
Signals are informational and do not guarantee outcomes.
Always forward test before live application.
Pine Script® indicator
Linear Regression Channel (Std Error) & TrendThis indicator plots a Linear Regression Channel that dynamically adapts to price action using a rolling lookback period. It is designed to assist traders in identifying the dominant trend direction and statistical volatility extremes.
Methodology & Calculations
Center Line (Basis): Calculated using the ta.linreg function. It represents the "best-fit" straight line through the price data over the specified length, serving as a mean-reversion anchor.
Outer Bands: Constructed using Standard Deviation (ta.stdev) multiples added to and subtracted from the center line. These bands expand and contract based on market volatility.
Trend Logic: The color of the channel is determined by the slope of the Linear Regression line. A positive slope turns the channel Green (Uptrend), while a negative slope turns it Red (Downtrend).
Key Features
Trend Visualization: The background color provides an instant visual cue of the market regime.
Visual Signals (UP/DN): Small triangular labels appear when the slope polarity flips (e.g., from negative to positive), marking a potential trend change.
Dynamic Support/Resistance: The Upper and Lower bands act as dynamic levels where price is statistically overextended, often leading to mean reversion or consolidation.
Alerts Included
Trend Change (UP): Triggered when the LinReg slope turns positive.
Trend Change (DOWN): Triggered when the LinReg slope turns negative.
Price > Lower Band: Potential mean reversion (bounce) signal.
Price < Upper Band: Potential mean reversion (pullback) signal.
Settings
Length: Adjusts the lookback period for the regression calculation (Default: 100).
Multiplier: Adjusts the width of the bands based on Standard Deviation (Default: 2.0).
Disclaimer: This tool is for educational purposes and technical analysis only. Past performance does not guarantee future results. Always manage your risk.
Pine Script® indicator
Trend Road Map█ OVERVIEW
Trend Road Map is a volatility-based trend indicator built around a dynamic ATR channel that defines the current market regime and visualizes it as a structured “trend road.”
Instead of relying on classic moving average crossovers, the indicator filters price movement relative to a base moving average and a minimum ATR-based deviation threshold. This removes minor fluctuations and focuses only on meaningful market shifts.
█ CONCEPTS
Markets spend most of their time fluctuating around equilibrium near a moving average. A strong trend begins when price moves a meaningful distance away from that average relative to current volatility.
The indicator operates in three steps:
- Calculates a base moving average (SMA / EMA / WMA / HMA).
- Verifies whether price deviation exceeds an ATR-based minimum threshold.
- Smooths the filtered average and builds a volatility channel (“Road”) around it.
If price closes above the upper boundary → bullish regime activates.
If price closes below the lower boundary → bearish regime activates.
Additionally, the indicator includes an ATR-based distance heatmap.
Market observation shows that even in strong trends, price rarely moves extremely far away from its moving average. When distance becomes relatively large compared to volatility, price often retests the MA.
The heatmap visualizes this distance dynamically, helping traders assess whether the move is balanced or overstretched.
█ FEATURES
Minimum Deviation Filter:
MA updates only when |Price – MA| > ATR × Multiplier
reduces noise and false regime shifts
Smoothed Trend Axis:
- additional smoothing (EMA / RMA / WMA / SMA)
- stabilizes the central structure of the channel
Volatility Channel (“Road”):
- width = ATR × Road Width Multiplier
- dynamically adapts to current volatility
- channel fill:
• light gray – bullish regime
• dark gray – bearish regime
Optional Candle Coloring:
- candles can reflect the active regime direction
- fully toggleable in settings
Regime Change Signals:
- green circle below the bar → start of BULL regime
- red circle above the bar → start of BEAR regime
Re-entry (🚦):
- appears when price re-enters the channel after a breakout
- signals a return to equilibrium conditions
Distance Heatmap:
- vertical gradient bar displayed on the right side
- smooth color transitions from neutral to warning levels
- based on ATR-relative distance from the smoothed MA
Heatmap settings:
- Max ATR Distance for Heatmap – defines the maximum ATR distance used for scaling
- Heatmap Cells – controls gradient resolution (number of segments)
Dynamic Status Label:
- displays current market zone (Clear Road / Normal Range / Warning Zone / Danger Zone)
- automatic text color adjustment based on background brightness
Alerts:
- Bull Entry
- Bear Entry
- Re-Entry
█ HOW TO USE
Add the indicator to your chart → Indicators → search for
“Trend Road Map”
Basic interpretation:
- Price above upper boundary + light gray channel fill = active bullish regime
- Price below lower boundary + dark gray channel fill = active bearish regime
- Price inside the channel = equilibrium / transitional phase
Parameters should be adjusted depending on whether the indicator is used as a strict trend filter or as a wider price channel tool.
█ APPLICATIONS
Trend Road Map is primarily a trend indicator. Its main purpose is to define the active market regime and filter trading conditions.
It can be used as a directional filter for momentum tools such as RSI or MACD.
For example:
- consider LONG signals only when a bullish regime is active
- ignore signals that go against the dominant direction
Channel Breakout Trading
Breakouts outside the “Road” can be traded directly. However, confirmation from other tools is recommended, such as:
- RSI above 50 during bullish breakout (but not extremely overbought),
- increasing momentum,
- no major resistance directly ahead.
Price Channel / Mean Reversion (with wider bands)
By increasing the Road Width multiplier, the indicator can function as a structured price channel.
In this configuration, traders may apply band-to-band mean reversion strategies.
As with any mean reversion approach, probability improves when combined with additional tools, such as:
- pivot levels,
- Fibonacci retracements,
- key support and resistance zones.
█ NOTES
This indicator was not designed as a standalone trading strategy, but primarily as a market filtering and context tool.
Parameters should be adjusted according to the instrument and, most importantly, according to the strategy and function the indicator is intended to serve (trend filter, breakout tool, or structured channel).
Volatility varies significantly across markets and timeframes — optimization is essential for consistent performance.
Pine Script® indicator






















