Falcon AI | FVG FinderFalcon AI — FVG Finder
A free educational overlay that detects Fair Value Gaps (FVGs) — one of the core patterns in Smart Money Concepts (SMC) / ICT methodology.
What's a Fair Value Gap? A 3-candle imbalance: an impulsive middle candle moves price so fast it leaves a gap between the first and third candles — a range that barely traded. Price often returns to "fill" these gaps before continuing.
What it shows
• Green box — Bullish FVG (gap below price)
• Red box — Bearish FVG (gap above price)
• "FVG" tag — a new gap just formed
• Faded box — the gap has been filled / mitigated
Settings
• Min Gap Size (% of price) — filter out small gaps; raise for fewer, cleaner FVGs
• Fill behavior — Fade, Remove, or Keep gaps once mitigated
• Optional session filter — only mark gaps during your hours
• Max FVGs to keep, colors, tags, info panel
How to use it
Add it to your chart (any market/timeframe; built with futures like MNQ in mind)
Watch for price to return to an unfilled FVG — many traders study these as areas of interest
Combine with your own structure read and bias — your entry, your stop, your risk management
This indicator does NOT place trades, does NOT backtest, and has no entry, stop, or position-sizing logic. It's an educational overlay for studying the Fair Value Gap pattern.
Disclaimer: Educational use only. Not financial advice. Past pattern formations do not guarantee future price behavior — these are pattern detections, not trade recommendations. Always use a stop loss and manage your own risk. Trading futures involves substantial risk of loss. 指标

指标

Edward Smart Channel ReversalEdward Smart Channel Reversal is a trend-following and reversal-detection indicator designed to identify high-probability market turning points while keeping traders aligned with the dominant trend.
Based on the chart example, the indicator combines three key elements:
* **Dynamic Smart Channel** (upper and lower adaptive bands)
* **Trend Filter** (smoothed central trend line)
* **Reversal Signals** (bullish and bearish trigger zones)
### How It Works
The indicator builds an adaptive price channel that expands and contracts with market volatility.
#### Bullish Reversal Setup
A buy signal is generated when:
✅ Price interacts with or rejects the lower channel boundary
✅ Price reclaims the trend filter
✅ Momentum shifts from bearish to bullish
On the chart, the highlighted green zones show where buyers regained control after a pullback, leading to a sustained upward move.
#### Bearish Reversal Setup
A sell signal is generated when:
✅ Price tests the upper channel boundary
✅ Price loses strength around the trend filter
✅ Momentum shifts from bullish to bearish
The marked red zone demonstrates a classic bearish reversal where price failed to hold above the trend filter and initiated a strong downside move.
### Key Features
✔ Adaptive volatility-based channel
✔ Early trend reversal detection
✔ Dynamic support and resistance zones
✔ Reduced market noise through trend filtering
✔ Suitable for crypto, forex, indices, and stocks
✔ Works across multiple timeframes
### Trading Guidelines
**Long Entries**
* Look for bullish reversal signals near the lower channel.
* Confirm price acceptance above the trend filter.
* Use the lower channel as a risk-management reference.
**Short Entries**
* Look for bearish reversal signals near the upper channel.
* Confirm rejection below the trend filter.
* Use the upper channel as a risk-management reference.
### Market Insight from the Example
In the BTC/USD chart:
* The indicator successfully identified a bullish continuation near the lower channel support.
* A bearish reversal signal appeared near the upper channel and trend filter confluence before a significant decline.
* Later, another bullish signal emerged as price reclaimed the trend filter, helping traders participate in the recovery phase.
### Best Use Cases
* Trend reversals
* Pullback entries
* Breakout confirmation
* Swing trading
* Intraday trend following
**Edward Smart Channel Reversal** helps traders visualize trend structure, identify reversal zones, and improve entry timing by combining adaptive channels with smart trend filtering. As with any technical tool, it is best used alongside proper risk management and additional market confirmation.
指标

指标

CVD Delta Divergence [JOAT]CVD DELTA DIVERGENCE
A full-featured Cumulative Volume Delta engine with proper pivot-based divergence detection. CVD on its own is one of the cleanest reads of net flow you can produce without L2 data — but the value of CVD lives almost entirely in its divergence with price. CVD Delta Divergence builds the CVD properly (with footprint-API or reconstructed-tick options), then runs a strict pivot-vs-pivot divergence engine on top of it, with strength scoring and configurable cooldown.
Three data-source modes
CVD is only as good as the delta classification underneath it. Three modes are exposed:
Footprint API — uses TradingView's Footprint dataset when the instrument supports it. The cleanest read, equivalent to professional delta feeds.
Reconstructed — when Footprint is unavailable, reconstructs buy/sell from a configurable lower-timeframe stream (1m / 3m / 5m / 15m / 30m) using the standard tick rule. Optional intrabar volume weighting.
Auto — picks Footprint when present, falls back to Reconstructed. The recommended default.
This is unusual — most public CVD scripts hardcode one method. Auto-mode means the script works correctly on any instrument that has either dataset, without per-instrument configuration.
Four CVD anchors
Cumulative deltas need an anchor — running a sum from inception of data is rarely meaningful. Four anchoring modes:
Cumulative — never resets. Maximum context, slowest divergence detection.
Session Reset (default) — anchors at the start of each trading session. The most useful read for day-trading reference.
Day Reset — anchors at midnight exchange time.
Week Reset — anchors at week boundary. Good for swing-frame divergences.
Pivot-based divergence engine (the headline)
Slope-comparison divergence is noisy. CVD Delta Divergence uses proper pivots :
ta.pivothigh / ta.pivotlow on price with a configurable lookback (default 5 bars left/right).
At each confirmed pivot, the corresponding CVD value is recorded.
A divergence is built only when two price pivots and their CVD readings disagree directionally.
A minimum-strength filter (default 15.0 on a 0–100 scale) suppresses weak signals — strength is the normalised disagreement magnitude between the price-pivot motion and the CVD-pivot motion.
A strict HL/LL toggle requires the second pivot to strictly exceed/undershoot the first by a small fraction so equal-pivot edge cases do not produce noise divergences.
A cooldown per divergence class (default 3 bars) prevents back-to-back fires of the same class.
Four divergence classes are detected:
Regular Bull — price lower-low, CVD higher-low. Reversal up.
Regular Bear — price higher-high, CVD lower-high. Reversal down.
Hidden Bull — price higher-low, CVD lower-low. Trend continuation up.
Hidden Bear — price lower-high, CVD higher-high. Trend continuation down.
Divergence markers can be force-overlaid onto the main chart pane (toggleable) so you see them on price without flipping panes.
Visual system
Slope-coloured CVD line — bull / bear gradient based on the CVD's own short-term slope (configurable window).
Smoothed CVD overlay — toggleable EMA-smoothed CVD on top of the raw line. Useful for cutting through noisy 1m reconstructions.
Delta histogram — bar-by-bar delta as columns behind the CVD line. Useful for seeing per-bar flow vs cumulative flow.
Zero line and crossover alerts.
Divergence connecting lines — when a divergence fires, a connector line is drawn between the two pivots for visual proof.
A locked Lava palette (gold bull / orange-red bear / oxblood mid on a deep lava-black ground) gives the pane a distinctive flow-read identity.
Dashboard
Monospaced table, positionable to any of eight corners, with:
Current CVD value with sign.
CVD slope direction (Rising / Falling / Flat).
Active anchor mode.
Last divergence class with bar age.
Source mode in use (Footprint / Reconstructed).
Zero-cross status with bars-ago.
Alerts
Six alert conditions, each independently controllable:
Regular Bull Divergence
Regular Bear Divergence
Hidden Bull Divergence
Hidden Bear Divergence
CVD Crosses Zero
CVD Slope Flips
How to read it
Three reads, in order of conviction:
Regular divergence — the classic reversal read. Price made a new extreme, CVD did not. The flow that was needed to extend the move did not show up. A regular divergence at a known structural level is one of the highest-conviction reversal setups in tape reading.
Hidden divergence — the trend-continuation read. Price retraced, but CVD did not. The flow is still committed in the original direction even though price wavered. Often produces clean re-entry signals in trends.
CVD zero-cross + slope flip — the regime change read. Cumulative flow has rotated sides — what was net-buying is now net-selling (or vice versa). Useful as a "the tape has flipped" notification.
Suggested settings
Defaults are tuned for 5m–1H charts on liquid markets in Session Reset mode. For lower timeframes, drop pivot lookback to 3 and divergence window to 30. For higher timeframes, raise pivot lookback to 7–10 and switch anchor to Day Reset. The minimum strength threshold (15) is intentionally loose; raise to 25–30 if you want only the strongest divergences.
Originality / what's reused
CVD (cumulative volume delta) is public-domain market-structure language; the tick rule is standard. The implementation — the Auto/Footprint/Reconstructed source switch, the four-anchor reset logic, the pivot-based divergence engine with strict HL/LL gating and minimum-strength filter, the slope-coloured CVD with histogram backdrop, the force-overlay divergence markers, and the cooldown-per-class state machine — is JOAT-original and tuned together. No third-party code reused.
Open source
Published open-source under the default Mozilla Public License 2.0. The source is sectioned, every input has a tooltip, every helper is documented inline. The CVD engine, the source-mode router, the pivot logic, and the divergence engine are independent modules — adapt any single piece without reading the whole file.
Limitations
Reconstructed CVD is a proxy — the tick rule is the accepted public-market inference but it is not a direct read of bid vs ask volume. Footprint mode requires the TradingView Footprint dataset and is unavailable on some instruments. Pivot divergences are non-repainting once confirmed (they lag by the pivot's right-lookback) but the divergence between two pivots cannot fire until both are confirmed — so the second pivot's lag is the structural lag of the signal.
—
-made with passion by jackofalltrades
指标

指标

MTF Order Block Confluence [EmpArchitect]█ OVERVIEW
MTF Order Block Confluence maps active bullish and bearish Order Block zones across multiple timeframes and shows when same-direction zones overlap.
The script tracks the most recently formed active bullish and bearish OB on the chart timeframe, then checks whether higher-timeframe OB zones overlap that chart-timeframe zone within a configurable ATR tolerance.
“N TF” means N same-direction active OB zones overlap.
It maps multi-timeframe OB context. It does not provide entries, exits, targets, stop losses, probability scores, or trade signals.
█ WHAT IT MAPS
Order Block zones:
A bullish OB is the last down candle before a bullish structure break.
A bearish OB is the last up candle before a bearish structure break.
The OB zone is drawn from the origin candle’s high to low.
The script tracks one active bullish OB and one active bearish OB per supported timeframe.
Active means the zone has not been invalidated by a close through its far boundary.
This script does not use touch-based mitigation. A zone touch does not remove the OB. Only a close-through invalidates it.
█ MULTI-TIMEFRAME OVERLAP
The script anchors on the chart-timeframe OB and checks whether higher-timeframe OB zones overlap it.
Same-direction overlap only:
• Bull OB overlaps Bull OB
• Bear OB overlaps Bear OB
Opposite-direction overlap is not counted as confluence.
The overlap count is shown as:
• 1 TF = chart-timeframe OB only
• 2 TF = chart-timeframe OB overlaps one higher-timeframe OB
• 3 TF = chart-timeframe OB overlaps two higher-timeframe OBs
• 4 TF = chart-timeframe OB overlaps three higher-timeframe OBs
This is a structure-context read only. It does not mean price should react from the zone.
█ SUPPORTED TIMEFRAMES
The ladder is:
• 15m
• 1H
• 4H
• 1D
Run the script on 15m for the full ladder.
The script uses chart timeframe + higher timeframes only. It does not fake lower-timeframe OBs from a higher chart.
If a ladder timeframe is below the current chart timeframe, the dashboard marks it as below chart TF.
█ CONFIRMATION MODEL
The script uses confirmed candles only.
A new OB forms only after:
• a confirmed structure break
• a first close-cross of the relevant swing level
• a directional break candle
• a valid opposing origin candle
• minimum displacement strength
Weak displacement can consume the structure level without creating an OB.
Higher-timeframe values use confirmed snapshots from completed higher-timeframe candles. This is designed to avoid intrabar higher-timeframe flicker.
█ OB VALIDITY
Bullish OB:
A bullish OB remains active until price closes below the bottom of the zone.
Bearish OB:
A bearish OB remains active until price closes above the top of the zone.
Once invalidated, the OB stays inactive until a new OB forms.
Only the current active chart-timeframe OB zones are drawn. Historical OB zones are not retained on the chart.
█ OVERLAP TOLERANCE
OB zones rarely align perfectly by exact tick.
The script includes an ATR-based overlap tolerance so nearby zones can still count as overlapping when they are structurally close.
The default tolerance is 0.25 × ATR.
This is adjustable.
Lower values require stricter overlap.
Higher values allow wider buffered overlap.
The tolerance should be reviewed manually. It is a visual structure tool, not an automatic validation of zone strength.
█ DASHBOARD
The dashboard shows:
• Bull OB Stack
• Bear OB Stack
• Timeframes included in the stack
• Bull/Bear OB grade per timeframe
• Below-chart timeframe status
• Current supported ladder context
The dashboard grade is based only on the displacement strength of the candle that formed the OB.
Grade does not measure future performance.
█ ALERTS
Included context alerts:
• Bull OB 2+ TF overlap
• Bear OB 2+ TF overlap
Alerts fire when a same-direction OB overlap reaches 2 or more timeframes.
Alerts describe structure context only. They are not trade signals.
█ IMPORTANT LIMITATIONS
• Tracks only the most recently formed active OB per direction per timeframe
• Does not retain multiple historical OBs
• Does not select the nearest OB to current price
• Does not use touch-based mitigation
• Does not predict whether price will react from a zone
• Does not provide entries, stops, targets, or trade instructions
• Overlap depends on the selected ATR tolerance
• Best reviewed manually with the relevant higher timeframes
█ NOTES
• Pine Script v6
• Open-source
• Designed for 15m / 1H / 4H / 1D structure review
• Same-direction OB overlap only
• Built by EmpArchitect
• Educational structure-context tool only
• Not financial advice
• Not a signal service
指标

指标

指标

Relative Strength MatrixOverview
This script is based on work of @jfsrev 's indicator "Swing Data - ADR% / RVol / PVol / Float % / Avg $ Vol", which I modified heavily and left only the Relative Strength related calculations and added to these.
The Relative Strength Matrix is a contextual dashboard designed to help traders instantly identify whether a stock—and its corresponding industry or sector—is displaying true leadership or relative weakness. By tracking rolling price performance across multiple timeframes relative to the S&P 500 (SPX), the script visualizes market alpha directly on your chart via a clean, dynamic, and non-intrusive matrix panel.
Features and customization
Script has following main features and customization options:
Modifiable RS score calculation: you can dynamically adjust the mathematical percentage weights for the 2-Week (10d), 1-Month (21d), 3-Month (63d), and 6-Month (126d) momentum lookback periods straight from the UI settings.
Multi-Period Trend Tracking: Calculates and presents the real-time absolute percentage performance of the tracked industry ETF over different time periods. Results can be shown or hidden for each calculation separately.
Individual tickers can be mapped to target ETFs: You can form your own groups with individual tickers and specify benchmark ETF for them (e.g. Tickers: CRWD, S, PANW => Target industry: CIBR)
Industry specific mapping to target ETF: You can use TradingViews provided Industry-information and map the industry to specific ETF (e.g., TW Industry: Semiconductors => Target ETF: SMH)
Complete UI visuals customization: You can customize table position, sizes, background transparencies, border widths, and text colors.
Order for RS calculation
Relative Strength is checked and mapped in the following order:
Tier 1: Custom Groups (Fully User-Defined) - The script checks if the current ticker belongs to any of your 20 fully customizable thematic watchlists (e.g., Cybersecurity, Semis, Crypto Infrastructure). If found, it instantly binds the stock to your manually assigned thematic ETF.
Tier 2: Core Industries (User-Defined Mappings) – If not found in a custom group, the script screens the stock's native TradingView Industry against 30 available custom mapping slots to find your preferred benchmark tracking ETF.
Tier 3: Sector Fallback (Hardcoded) – If no custom group or industry mapping exists, the engine relies on a robust, hardcoded fallback architecture that maps the stock’s native TradingView Sector to its corresponding Select Sector SPDR ETF (e.g., Electronic Technology is mapped to XLK, Finance is mapped to XLF, Energy is mapped to XLE etc).
Tier 4: Global Catch-All – If a stock does not belong to any defined industry or sector, it defaults to SPY to guarantee a clean baseline calculation without script errors.
指标

Intra-Candle Pressure Dissector [MarkitTick]💡 A comprehensive analytical tool designed to look beyond traditional close-to-close price action. By breaking down individual candles into six distinct micro-components, this indicator evaluates the underlying buying and selling pressure driving the market. It synthesizes price dynamics, volume, and volatility into a singular, normalized FLOW score, offering a profound perspective on intra-bar mechanics.
✨ Originality and Utility
Most standard momentum oscillators and trend indicators rely heavily on closing prices, often masking the turbulent battle between buyers and sellers that occurs within the lifespan of a single candle. The originality of this indicator lies in its multi-dimensional weighting system. Instead of treating volume or price spread as isolated variables, it fuses them into a unified composite metric.
• Comprehensive Composite Scoring
The utility of this tool is evident in its ability to filter market noise. By assigning user-configurable weights to six different dimensions of price action, it allows traders to customize the sensitivity of the analysis. Whether analyzing higher timeframe macro trends or dissecting lower timeframe volatility, the script adapts by standardizing diverse datasets into a clean percentage-based oscillator.
• State Detection and Dashboard Integration
Beyond simple momentum, the indicator intelligently classifies the current market state into precise categories such as fake moves, absorption, and confirmed directional flow. This data is aggregated into an intuitive, non-intrusive on-chart dashboard, ensuring all critical metrics are immediately available without cluttering the primary viewing area.
🔬 Methodology and Concepts
The core of the indicator calculates a raw FLOW value based on a weighted sum of six distinct dimensions (D1 through D6). This raw sum is then normalized against its own historical range and smoothed via an Exponential Moving Average (EMA) to generate the final FLOW signal.
• The Six Core Dimensions
D1: Body Efficiency: Evaluates the size of the candle body relative to its entire high-to-low range. A larger body indicates higher efficiency and directional commitment.
D2: Wick Asymmetry: Compares the lower wick to the upper wick. A dominant lower wick suggests buying pressure (rejection of lower prices), while a dominant upper wick implies selling pressure.
D3: Volume Conviction: Multiplies the raw body efficiency by a normalized volume metric. High volume on a highly efficient candle signals strong market conviction.
D4: Inertia Score: Measures the continuation of momentum by multiplying the current candle's body by the previous candle's body, normalized against the Average True Range (ATR) squared.
D5: Spread Pressure: Calculates the difference between the bullish reach (close minus low) and bearish reach (high minus close) relative to the total range, isolating the dominant intra-candle force.
D6: Ghost Volume (Inverse): Identifies bars with high volume but disproportionately small bodies. This inverse metric detects potential absorption or exhaustion where effort (volume) does not yield a proportional result (price movement).
• Normalization and Acceleration
The composite FLOW score is dynamically min-max normalized over a rolling lookback window to map strictly between -100 and +100. Furthermore, the script calculates the second derivative (acceleration) of the FLOW line to determine if the prevailing pressure is intensifying or decelerating.
🎨 Visual Guide
The script employs a rich, data-dense visual hierarchy to communicate complex multi-dimensional states at a glance.
• FLOW Histogram and Signal Line
The primary visual component is a histogram with a superimposed signal line oscillating across a zero baseline.
Green Tones ( Strong/Weak Bull ): Indicate positive FLOW scores, with deeper greens representing pressure above the upper threshold.
Red Tones ( Strong/Weak Bear ): Indicate negative FLOW scores, with deeper reds representing pressure below the lower threshold.
Purple/Orange Tones: Represent anomalous states such as Fake Moves (Purple) or Volume Absorption (Orange).
• Buyer and Seller Bands
Translucent shaded areas above and below the zero line visually map the cumulative area of bullish and bearish pressure, aiding in the identification of shifting momentum cycles.
• On-Chart Markers and Labels
Acceleration Dots: Cyan dots appear when bullish pressure is rapidly intensifying, while pink dots highlight rapid bearish acceleration.
Text Labels: Distinct markers populate above or below specific candles to identify "FAKE BULL", "FAKE BEAR", or "ABS" (Absorption), serving as immediate contextual flags.
• The FLOW Dashboard
A fixed table displays real-time metrics, including the exact FLOW percentage, current pressure state, visual block-bar progress indicators for Ghost Volume and Conviction, and an assessment of trend acceleration.
📖 How to Use
This indicator is engineered for deep price action analysis and validation of structural market shifts.
• Validating Breakouts
When price breaches a key resistance level, consult the FLOW Signal Line. A true breakout should be accompanied by the signal line crossing into the "Strong Bull" threshold (e.g., > 65%). If the FLOW score remains weak despite a price advance, the move lacks structural backing.
• Spotting Fake Moves
The indicator explicitly flags fake moves. If the price closes higher than two bars ago, but the FLOW score is near the zero baseline or negative, the script detects a divergence between price and internal pressure, painting a "FAKE BULL" label. This is a critical warning that a reversal or trap may be imminent.
• Identifying Exhaustion and Absorption
High "Ghost Volume" metrics (D6) indicate heavy trading activity that fails to expand the candle's body. When the script flags "ABS", it highlights a zone where limit orders are likely absorbing aggressive market orders, often preceding a shift in market direction.
⚙️ Inputs and Settings
The script offers extensive modularity, allowing users to fine-tune the mathematical weighting and thresholds to suit various assets.
• Core Parameters
Signal Smoothing (EMA): Determines the responsiveness of the FLOW signal line. Lower values yield a faster, more volatile line, while higher values provide a smoother macro view.
Normalization Window: Sets the lookback period for calibrating the min-max boundaries of the FLOW oscillator and volume metrics.
• Higher Timeframe (HTF) Integration
Users can toggle the analysis to calculate dimensions based on a higher timeframe (e.g., evaluating 4-hour candle pressure while viewing a 15-minute chart), utilizing a non-repainting historical reference.
• Dimension Weights
Traders can manually adjust the fractional distribution (from 0.0 to 1.0) of all six dimensions (D1-D6). The script automatically recalculates the proportional weights based on the total sum inputted.
• Signal Thresholds
Allows customization of the percentage boundaries that define "Strong Bull", "Strong Bear", Fake Move sensitivities, and the volume threshold required to trigger an Absorption alert.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The foundation of the Intra-Candle Pressure Dissector rests on the principles of Market Microstructure and Volume Spread Analysis (VSA).
• Price Kinematics
By evaluating the first and second derivatives of the FLOW composite, the script treats price action as a physical object subject to the laws of kinematics. The FLOW line represents velocity, while the calculated momentum delta represents acceleration. This allows the indicator to identify whether the market forces driving a trend are gaining mass or dissipating, long before it is reflected in the closing price.
• Effort vs. Result Dynamics
Wyckoff's law of Effort vs. Result is mathematically codified in Dimension 3 (Volume Conviction) and Dimension 6 (Ghost Volume). A core academic tenet of auction market theory suggests that anomalous volume should result in anomalous price displacement. When the script identifies a high volume reading decoupled from body efficiency (normalized against the asset's ATR), it statistically isolates limit-order absorption—a signature of passive liquidity entering the market to halt momentum.
• Statistical Min-Max Scaling
Because raw volume and spread data are non-stationary and vary wildly across different assets, the indicator employs a dynamic Min-Max normalization theorem over a rolling window. This statistical grounding ensures the oscillator remains bounded and logically consistent, transforming abstract raw values into a standardized probability distribution that can be uniformly interpreted regardless of the traded instrument.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. 指标

指标

指标

APEX Trend & Signal Engine [Viprasol]APEX Trend & Signal Engine — Regime-Aware Dual-Mode Toolkit
═══════════════════════════════════════════════════════════
THE PROBLEM IT SOLVES
═══════════════════════════════════════════════════════════
The single most expensive mistake in trading is using the wrong style for the
conditions — trend-following a sideways range (death by a thousand whipsaws), or
mean-reverting a strong trend (fighting a freight train). Most indicators apply ONE
style blindly and let you find out the hard way.
APEX reads the market REGIME first, tells you which style fits right now, and only
fires signals that match. When the market is trending it trend-follows; when it's
ranging it mean-reverts. Same tool, opposite logic, applied at the right time.
═══════════════════════════════════════════════════════════
HOW THE FOUR PILLARS WORK TOGETHER
═══════════════════════════════════════════════════════════
Every trade decision rests on four questions, and APEX answers each:
1. BIAS — long or short? A multi-factor Trend Midline (your choice of 8 MA types)
colored by a consensus of price position, slope, and directional movement.
2. REGIME — trend or range? ADX + Kaufman Efficiency Ratio classify the regime and
pick the favored mode (trend-follow vs mean-revert). This is the engine's core.
3. LOCATION — where is fair value? A premium/discount model: longs are only allowed
in discount (below equilibrium), shorts only in premium (above). Better entries,
better risk-reward.
4. SIGNAL + FILTER — the trigger, gated by regime, location, and trend-cloud
confluence, so low-quality signals are filtered out.
═══════════════════════════════════════════════════════════
SIGNALS
═══════════════════════════════════════════════════════════
• In a TRENDING regime: momentum entries in the trend direction (baseline reclaim with
rising/falling slope and directional-movement agreement).
• In a RANGING regime: mean-reversion entries when price tags an extreme band and
reverts.
• A colored dot marks a confluent signal; a gray ✕ marks a signal that LACKS confluence
(a hint to exit the opposite position rather than enter).
• Take-profit markers flag when price reaches an ATR-based target after a signal.
═══════════════════════════════════════════════════════════
FOUR OPTIONAL OVERLAYS
═══════════════════════════════════════════════════════════
• TREND MIDLINE — an MA baseline colored by multi-factor consensus (blue long / red
short / gray neutral-exhaustion), filled to price.
• ADAPTIVE ZONE — a Supertrend rendered as a dynamic support/resistance ZONE (support
beneath price in uptrends, resistance above in downtrends) rather than flip signals.
• TREND CLOUD — a modified Ichimoku Kumo (Donchian, EMA, or HMA engine) for trend
context; bullish above, bearish below.
• EXTREME ZONES — multi-band standard-deviation gradient zones marking where price is
statistically stretched and prone to revert (mean-reversion).
Each is independently toggleable so you keep the chart as clean as you like.
═══════════════════════════════════════════════════════════
5-STATE CANDLE COLORING & DASHBOARD
═══════════════════════════════════════════════════════════
Candles paint in five states from a 0-10 trend-strength score: strong buy, buy,
neutral, sell, strong sell (strong states solid, weaker states faded).
The dashboard reports, at a glance: Favored Mode (trend-follow / mean-revert), Regime
(trending/ranging + bias), Trend (increasing/decreasing), Strength (0-10), Volatility
(increasing/decreasing), Location (premium/discount), Session (Tokyo/London/NY/Void),
and the current Signal.
═══════════════════════════════════════════════════════════
HOW TO USE
═══════════════════════════════════════════════════════════
1. Leave Mode on "Auto" and read the dashboard's Favored Mode — trade with the regime.
2. Take colored signals that agree with the trend; treat gray ✕ marks as exit cues.
3. Respect Location — favor longs in discount, shorts in premium.
4. Use the Adaptive Zone / Extreme Zones as entry and target reference levels.
5. Tune Trend/Fast lengths and the ADX threshold to your market and timeframe.
═══════════════════════════════════════════════════════════
HONEST LIMITATIONS — PLEASE READ
═══════════════════════════════════════════════════════════
• No indicator predicts the future. APEX organizes context and signals; it does not
guarantee outcomes. Confirm on closed bars.
• Regime classification has a transition lag — the first bars of a new trend or range
can be mislabeled. The favored-mode readout is guidance, not gospel.
• Session hours are set in UTC and adjustable; verify they match your instrument.
• Volume-dependent and synthetic-feed instruments may read differently.
• Take-profit markers use a simple ATR target on one tracked signal — they are a
reference, not a backtest. This is a decision-support tool, not financial advice.
═══════════════════════════════════════════════════════════
CREDITS & ORIGINALITY
═══════════════════════════════════════════════════════════
This is an original toolkit built from public-domain technical-analysis methods,
implemented from their published formulas: Supertrend (Olivier Seban), Ichimoku Kinko
Hyo (Goichi Hosoda), Bollinger Bands / %B (John Bollinger), ADX/DMI (J. Welles Wilder),
Efficiency Ratio (Perry Kaufman), and the premium/discount equilibrium concept. The
regime-aware dual-mode architecture, the confluence/location gating, the strength model,
the overlays' construction, and all code are original Viprasol work. No third-party Pine
code is reused and no proprietary algorithms are included.
指标

Cyberbikes Fusion (SMAEMA+MACD+RSI)## Cyberbikes Fusion (SMAEMA+MACD+RSI)
### What it is
A **trend + momentum fusion** indicator. Instead of watching three separate tools, it folds them into one signal:
1. **SMA+EMA blend** — your 8 moving averages (4 EMAs + 4 SMAs at 9/21/80/200) are merged into one combined line, then smoothed into its own SMA and EMA. This is the **trend** backbone.
2. **MACD histogram** — the **momentum** of the trend (is it accelerating or fading).
3. **RSI** — **overbought/oversold** pressure (0–100).
All three are normalized to the same 0–100 scale and weighted-averaged into a single "universal" reading. A light-blue **EMA (thick)** and **SMA (thin)** are drawn from that, and the gap between them is painted **green when bullish / rising** and **red when bearish / falling**.
### What each piece tells you
| Component | Answers the question |
|---|---|
| Combined SMA+EMA | *Which way is the broader trend leaning?* |
| MACD | *Is momentum building or stalling?* |
| RSI | *Is price stretched (overbought/oversold)?* |
| **Green/red color** | *Are all of the above agreeing right now?* |
The whole point is **confluence** — the signal only commits to green or red strongly when trend, momentum, and RSI **agree**. When they disagree, they partially cancel and it sits neutral. That agreement-filter is what reduces false signals versus reading any one indicator alone.
### How to use it
**The green/red flip is the primary signal:**
- **Red → green** = bullish shift (trend + momentum turning up together). Look for **long** setups.
- **Green → red** = bearish shift. Look for **exits or shorts**.
**Best practice — treat it as confirmation, not a standalone trigger:**
1. **Direction first** — only take longs while it's green, shorts while it's red. Don't fight the color.
2. **Confirm your entries** — when your own setup (support bounce, breakout, pullback) lines up *and* the color agrees, that's a higher-probability entry.
3. **Watch for the EMA/SMA cross** — the thick EMA crossing the thin SMA marks the momentum turn; the alerts (`Bullish`/`Bearish`) fire there.
4. **Stay out of chop** — if the color is flickering green/red rapidly, the market is ranging and signals are unreliable. Wait for a clean, sustained color.
### Timeframe behavior
The smoothing length **auto-adjusts to your chart timeframe** (shorter on higher timeframes), so it stays responsive without re-tuning. Higher timeframes (4h/Daily) give cleaner, fewer signals; lower timeframes (1–15m) give more signals but more noise.
### Honest limitations
- It's a **blend of lagging + momentum** tools — it confirms moves, it doesn't predict tops/bottoms.
- In **sideways/low-volume** markets it will whipsaw like any MA-based system. Size down or stand aside.
- Best used **with** price-action and a risk plan (stops/position sizing), never as a sole auto-trade trigger.
---
Want me to **bake this description into the script as a header comment block** (so it travels with the code), or write it up as a short `.md` doc saved next to the `.pine` file? 指标

Liquidity Dynamic TrendLiquidity Dynamic Trend is designed to help traders read trend behavior through the interaction between price, a dynamic trend boundary, and liquidity sweep reactions.
Many trend-following tools mainly focus on identifying when the trend has already changed. This can be useful for direction filtering, but the signal may appear only after price has already moved away from the reaction area. Liquidity Dynamic Trend takes a different approach. Instead of treating the dynamic trend line only as a trend-change boundary, it also treats the active line as a moving support or resistance area where liquidity may be tested.
When the market is in an uptrend, the lower dynamic line can act as a moving support zone. When the market is in a downtrend, the upper dynamic line can act as a moving resistance zone. These areas are not used as simple touch levels. The indicator waits for price to sweep the active line with the wick, then checks whether a short candle-pair confirmation appears after that sweep.
This workflow is intended to highlight moments where price tests liquidity around the active trend boundary and then reacts back, instead of generating a signal only after the trend line has already changed direction.
The workflow of the indicator is:
1. Calculate a dynamic trend line based on price and volatility.
2. Identify the current trend state.
3. In an uptrend, display the active lower line as dynamic support.
4. In a downtrend, display the active upper line as dynamic resistance.
5. Wait for price to sweep the active line with the wick.
6. Check for a confirming candle pair after the sweep.
7. Display a triangle only when the liquidity sweep and candle-pair confirmation occur together.
8. Ignore simple trend-line direction changes as standalone signals.
The creative purpose of this indicator is to connect trend direction with liquidity behavior. The dynamic line is not only a visual trend filter. It also works as an adaptive area where price may hunt liquidity, trigger stops, or test the strength of the active trend before continuing or reacting.
Bullish signal logic:
A bullish triangle may appear when the market is in an uptrend, price sweeps the lower dynamic support line with the lower wick of the current or previous candle, and then a bearish-to-bullish candle pair confirms the reaction.
This may suggest that price has tested liquidity below the dynamic support area and then shown a buying response.
Bearish signal logic:
A bearish triangle may appear when the market is in a downtrend, price sweeps the upper dynamic resistance line with the upper wick of the current or previous candle, and then a bullish-to-bearish candle pair confirms the reaction.
This may suggest that price has tested liquidity above the dynamic resistance area and then shown a selling response.
Key features:
• Dynamic trend boundary that adapts to market volatility.
• Trend line interpreted as moving support or resistance.
• Liquidity sweep detection through wick interaction with the active line.
• Candle-pair confirmation after the sweep.
• Triangle-only signals for cleaner chart reading.
• No signal generated from a simple trend-line color or direction change.
• Designed to identify sweep-and-reaction areas around the active trend boundary.
• Optional trend highlighting and alert conditions.
How to use:
A bullish triangle appears below price when price sweeps the dynamic support line and confirms with a bearish-to-bullish candle pair.
A bearish triangle appears above price when price sweeps the dynamic resistance line and confirms with a bullish-to-bearish candle pair.
The signal should be treated as a liquidity-reaction warning, not as a standalone buy or sell system. Traders may combine it with market structure, support and resistance, higher timeframe trend context, liquidity zones, and candle behavior.
The signal may be more meaningful when it appears near an important market structure area or after a clear pullback into the dynamic trend boundary. In sideways or low-volatility conditions, price may sweep the dynamic line more frequently, so additional confirmation is recommended.
Important note:
Liquidity Dynamic Trend is intended for technical analysis and educational use. It does not predict future price movement and does not guarantee trading results. Market conditions, volatility, timeframe, and symbol behavior can affect signal quality. Users should always apply proper risk management and use additional confirmation before making trading decisions.
指标

指标

Machine Learning Point Forecast with SR [SS]Hello,
Releasing the Machine Learning Point Forecast indicator, let's get into it!
What It Is
This indicator is a price forecasting indicator built on a simple but powerful idea borrowed from machine learning: markets tend to behave similarly when they're in similar states.
Instead of relying on a fixed formula (like a moving average crossover or a fixed RSI threshold), this indicator constantly asks a different question every bar:
"Out of the last 200 bars, which ones looked most like right now and what happened next, those times?"
It answers that question using K-Nearest Neighbors (KNN), a classic non-parametric machine learning technique, applied to four hand engineered features that describe the shape and momentum of price action. The result is plotted directly on the chart as a series of horizontal price targets, each one a literal price level the model thinks is worth watching, based on what similar historical setups did.
The Theory
Feature Engineering: Describing "What a Bar Looks Like"
Raw OHLC data isn't directly comparable across time (a $2 move means something different at $50 than at $500), so the model first converts each bar into four normalized descriptors:
Composite candle shape: the combined magnitude of the high, low, and close moves relative to the open, expressed as a single Euclidean value. This captures how "stretched" or volatile a candle was.
Close slope: the rate of change of a 14-period linear regression of price, normalized by price. This captures short-term trend acceleration/deceleration.
RSI slope: the rate of change of a 14-period linear regression of RSI. This captures whether momentum itself is accelerating or stalling, independent of price.
Return slope: the rate of change of a 14-period linear regression of bar-to-bar percentage returns. This captures whether volatility/returns are trending up or down.
Together, these four numbers form a fingerprint for every bar, not just where price is, but how it's moving and accelerating.
Standardization: Putting Everything on the Same Scale
Each of the four features is converted into a z-score over a rolling window (default 100 bars):
z = (value − rolling mean) / rolling standard deviation
This step matters because the four raw features live on completely different scales. Z-scoring puts them all in "standard deviations from normal" terms, so no single feature can dominate the similarity comparison just because its raw numbers happen to be bigger.
The K-Nearest Neighbors Search
With four standardized features per bar, every bar in history is now a point in 4-dimensional space. The model searches the last N bars (default 200, the "Historical Search Window") and calculates the Euclidean distance between the current bar's 4D fingerprint and every historical bar's fingerprint:
distance = √
The K historical bars (default 5) with the smallest distance are kept, these are the "nearest neighbors," i.e., the historical moments that most closely resembled the current setup across all four dimensions simultaneously.
Inverse Distance Weighted Forecasting (IDWF)
This is the forecasting step. For each of the K neighbors, the model already knows what actually happened: the real forward return that occurred over the next N bars (the "Forecast Bars Forward" setting) after that historical analog appeared.
Those K historical outcomes are blended into a single forecast using inverse distance weighting closer matches (smaller distance) get more influence over the final number than weaker matches:
forecast return = Σ(return × weight) / Σ(weight), where weight = 1 / distance
That weighted return is applied to the current close to produce the point target — the model's price forecast.
This entire approach:
feature engineering
standardization
KNN
Distance weighted aggregation
is a form of case-based / analog forecasting. It's the same family of technique used in some quantitative pattern-matching strategies and academic time series KNN research: rather than fitting one global formula to all market conditions, it lets the data itself decide what "similar" means, bar by bar.
How It Works on the Chart
Point-Forecast Lines
Once per closed bar, the model draws a flat, dashed, horizontal line at the calculated target price, extending forward indefinitely. Green lines mean the model's weighted forecast is bullish (target above current price); red means bearish.
Each line behaves like a real price target:
It disappears the instant price actually reaches it (high touches an upside target, or low touches a downside target).
It ages out automatically — only a capped number of lines (default 20, adjustable) are kept on screen. Once that cap is hit, the oldest surviving forecast is dropped to make room for the newest one.
Grouping Nearby Targets
Because a new forecast is generated every bar, it's common for the model to repeatedly point at roughly the same price over several bars in a row. Rather than stacking near duplicate lines, any new target that lands within a configurable percentage of an existing active target gets merged, the two are averaged into one line, and that line's label updates accordingly.
This has a useful side effect: the more a price level keeps attracting merges, the more "agreed upon" that level has been across many bars' worth of model runs informally, a cluster of merged calls is a stronger zone of interest than an isolated, never-revisited line.
Reading the Signals in Practice
This indicator is best treated as a contextual map of historically-analogous price targets, not a standalone buy/sell signal generator. A few practical ways to use it:
Confluence, not isolation. Treat each TP line as one vote. A target line that lines up with an existing structural level (a prior swing high/low, VWAP, a round number) is more interesting than one floating in open air.
Watch for clustering. Because nearby targets merge, a chart where forecasts keep collapsing into the same line over time is the model expressing genuine conviction about that price. A chart full of scattered, never-merged lines suggests the model is seeing a noisier, less consistent setup right now.
Use Avg Fit Distance as a confidence dial. A low distance means "this is a well-worn pattern"; a high or rising distance means "this is a less familiar regime, be more skeptical of the target." % Bullish/Bearish tells you how unanimous the analogs are. 100%/0% is a much stronger statement than 60%/40%, even if the point target is identical.
New forecasts only print once per closed bar (not on every tick), so the model won't spam new lines intrabar, but a line can still vanish intrabar the instant its target is actually touched.
Honest Limitations
This is a similarity heuristic, not a trained, validated, or backtested predictive model. "What happened after similar setups in the past" is not a guarantee of what happens next.
Small windows (low K, short lookback) make the model fast and reactive but noisier; large windows make it smoother but slower to adapt to genuine regime change.
Like any pattern-matching tool, it can be confidently wrong, a low Avg Fit Distance means the pattern matched well, not that the outcome is certain.
It's intended as one input among several in a broader trading process — not a substitute for risk management, market structure analysis, or your own judgment.
I hope you all enjoy and find it helpful!
As always, safe trades to all! 指标

MA Confluence Engine [Viprasol]MA Confluence Engine — 15-MA Consensus Ribbon
═══════════════════════════════════════════════════════════
ONE CROSSOVER IS AN OPINION. FIFTEEN MAs AGREEING IS A TREND.
═══════════════════════════════════════════════════════════
A single moving-average crossover whipsaws constantly — two lines tangle in chop and
fire signal after signal that goes nowhere. MA Confluence Engine replaces that one
fragile opinion with the agreement of a 15-MA ribbon. It only signals when most of the
ribbon agrees on direction, stands aside when the ribbon squeezes together (a
compressed ribbon IS chop), and on every signal it draws a complete trade plan:
Entry, TP1, TP2, TP3 and Stop Loss.
═══════════════════════════════════════════════════════════
HOW THE CONSENSUS WORKS
═══════════════════════════════════════════════════════════
The engine builds a ribbon of 15 moving averages, spaced from a fast base length
upward (e.g. 10, 18, 26 … 122). Every bar it measures two things across all 15:
• How many is price trading ABOVE?
• How many are SLOPING UP?
These combine into a single CONSENSUS SCORE from 0 to 100:
100% = price above all 15 MAs AND all 15 rising (a fully stacked uptrend)
0% = price below all 15 AND all 15 falling (a fully stacked downtrend)
50% = mixed — the ribbon disagrees
A long signal fires only when consensus rises through your bullish threshold
(default 75%), a short when it falls through the bearish threshold (default 25%).
Half-hearted moves where the ribbon disagrees never trigger.
═══════════════════════════════════════════════════════════
THE TRADE PLAN — DRAWN ON THE LAST SIGNAL
═══════════════════════════════════════════════════════════
The moment a signal fires, the engine projects five levels forward and labels each
with its price:
• ENTRY — at the signal close
• STOP LOSS — your risk distance away (ATR or %); this distance defines 1R
• TP1 / TP2 / TP3 — at your chosen R-multiples of that risk (default 1R / 2R / 3R)
Only the most recent signal's plan is shown, so the chart stays clean. The dashboard
mirrors the exact prices, and every alert carries the full plan (Entry/SL/TP1/TP2/TP3)
so it's ready for journaling or automation.
═══════════════════════════════════════════════════════════
THE RIBBON IS ITS OWN CHOP FILTER
═══════════════════════════════════════════════════════════
When a market chops, moving averages of every length collapse onto each other — the
ribbon goes flat and thin. The engine measures RIBBON WIDTH (the spread of the 15 MAs,
normalized by ATR) and skips signals whenever the ribbon is compressed below your
threshold. A second Kaufman Efficiency-Ratio gate confirms price is actually trending.
Filtered crosses are drawn faintly (✕) and counted, so you SEE what was avoided.
═══════════════════════════════════════════════════════════
21 VERIFIED, LICENSE-CLEAN MOVING AVERAGES
═══════════════════════════════════════════════════════════
Build the ribbon from any one of:
SMA, EMA, WMA, RMA, VWMA, DEMA, TEMA, HMA, ALMA, T3, McGinley, ZLEMA, KAMA, FRAMA,
VIDYA, SuperSmoother, Gaussian, Laguerre, Kalman, LSMA, Median.
Each is implemented from its published formula and credited to its author. Jurik's JMA
is deliberately excluded — it is a proprietary, trademarked product whose every
open-source "version" is an unlicensed reverse-engineering.
═══════════════════════════════════════════════════════════
DASHBOARD
═══════════════════════════════════════════════════════════
• Live consensus score, with price-above and sloping-up counts (x of 15)
• Ribbon width + chop state, trend-regime efficiency reading
• Last signal direction and the full Entry / TP1 / TP2 / TP3 / SL prices
• Whipsaws filtered
═══════════════════════════════════════════════════════════
FEATURES
═══════════════════════════════════════════════════════════
• 15-MA ribbon colored by consensus (red → green) or simple bull/bear, with fill
• Entry/TP1/TP2/TP3/SL level lines + labels on the latest signal
• Choppy-regime background shading + faint markers on filtered crosses
• Direction filter (Both / Longs / Shorts)
• Stop in ATR or %, take-profits as R-multiples
• Alerts for long, short, and chop — signal alerts include the full trade plan
• Full MA sub-parameter control (ALMA, T3, KAMA, Gaussian, Laguerre, Kalman, VIDYA, McGinley)
═══════════════════════════════════════════════════════════
HOW TO USE
═══════════════════════════════════════════════════════════
1. Choose an MA type, base length, and spacing for the ribbon.
2. Wait for a signal — it only fires when the ribbon fans out and aligns (consensus
through your threshold) in a trending regime.
3. Use the drawn Entry / SL / TP1 / TP2 / TP3 as your trade plan; scale out at the TPs.
4. Raise the consensus thresholds and ribbon-width minimum to make signals stricter
(fewer, cleaner) — the whipsaw-filtered count shows the filter working.
═══════════════════════════════════════════════════════════
HONEST LIMITATIONS — PLEASE READ
═══════════════════════════════════════════════════════════
• Signals are evaluated on bar close; act on confirmed bars to avoid intrabar flicker.
• A consensus system enters LATER than a single fast crossover — it trades fewer,
higher-quality moves and will sit out fast reversals. That trade-off is the point.
• The TP/SL levels are a risk framework, not a prediction — markets do not owe you 3R.
• Volume MAs (VWMA) and the regime math need reliable data; some synthetic forex/CFD
feeds are less meaningful.
• This is a decision-support tool, not financial advice. Trade at your own risk.
═══════════════════════════════════════════════════════════
CREDITS & ORIGINALITY
═══════════════════════════════════════════════════════════
MA methods credited to their authors: Wilder (RMA), Mulloy (DEMA/TEMA), Hull (HMA),
Legoux & Kouzis-Loukas (ALMA), Tillson (T3), McGinley, Kaufman (KAMA/Efficiency Ratio),
Ehlers (ZLEMA, SuperSmoother, Gaussian, Laguerre, FRAMA), Chande (VIDYA), Kálmán
(Kalman). All formulas are public-domain / published methods. Every line of Pine — the
MA dispatcher, the 15-MA consensus engine, the ribbon chop filter, the trade-plan
projection, and the visualization — is original Viprasol work written from the
published formulas. No third-party Pine code is reused; no proprietary algorithms included.
指标

Bucket 3 Momentum Bucket 3 Momentum
A backtestable daily-chart momentum strategy for ASX equities, built on a four-layer confirmation model: a trade fires only when the weekly trend grants permission, daily structure is intact, a price trigger confirms demand, and risk/extension checks pass.
The weekly layer is the gatekeeper — price above a rising 30-week SMA with healthy weekly RSI — so it won't buy dips in stocks that have quietly left a Stage-2 uptrend. The daily layer confirms the structure (price above the 50/150 DMAs, 50DMA flat-to-rising) with a damage veto for collapsing RSI, fresh 20-day lows, or bearish DMI. Entry triggers on a 5-day breakout with a strong close, but only once a tunable setup score is met (RSI curl + signal cross, fast-MACD turn, DMI recovery, improving RS vs XJO). An anti-chase filter blocks entries stretched too far above the 20EMA.
Positions are sized by defined risk (default 1.5% per trade), with the initial stop below the pullback swing low, floored at 1 ATR. Three exits execute: initial hard stop, a 1.5×ATR trailing stop that ratchets up only, and a structural trend-failure exit.
Built to be backtest-honest — weekly data uses the completed-bar pattern to avoid repaint/lookahead bias, structural decisions act on bar close, protective stops fill intrabar. An on-chart table shows each layer's status, live score, and current state. Tunable throughout; benchmarked against the XJO, so other universes need the benchmark and liquidity floor adjusted.
For education only — not financial advice. Past backtested performance does not guarantee future results. 策略

指标

Golden Cross Screener# Golden Cross Screener — find the *fresh* crosses, not last month's
## The problem this solves
TradingView's built-in screener can already filter for a 50/200 moving-average crossover. But if you've actually used it, you know the catch: it surfaces every name in a crossed-up *state*, so a cross that fired this morning sits in the same list as one from three weeks ago. There's no native way to ask "which stocks crossed in the last day or two" — and for a signal where timing is the entire edge, that's a real gap.
This screener closes it. It adds a true **recency dimension** to the golden cross, so you can isolate the crosses that *just happened* and leave the stale, already-extended ones behind.
## What it does
Built for the **Pine Screener**, this script scans a watchlist and exposes a set of columns you can filter and sort on:
- **GC today** — fires (1) only on the bar the 50 crosses above the 200. Run it end-of-day for a clean list of that session's fresh golden crosses.
- **GC recent** — flags (1) any cross within a window you set (default 5 bars), so you never miss one because you scanned a day late.
- **Bars since GC** — the column the native screener doesn't have: a precise count of how many bars have passed since the cross. Sort ascending and the freshest signals rise to the top. Filter `0–3` and weeks-old crosses simply disappear.
- **50 > 200 state** — the standing condition, for when you want every name currently in a golden-cross posture rather than the event itself.
- **MA gap %** — how far the fast MA sits above the slow one. A small gap means the cross is fresh and tight; a large gap means it happened long ago and price may be extended.
- **Price vs fast %** — where price sits relative to the fast MA, so you can drop names that have already rolled back under it.
Lengths are configurable, and you can switch between SMA (the classic golden cross) and EMA (faster, earlier signals) with a single input.
## How to set it up
1. Open the **Pine Screener** (top-left screener-type dropdown → Pine Screener).
2. Add this script to your favorites (the star) so the screener can see it.
3. Point it at a watchlist and set the timeframe to **Daily** — the 50/200 golden cross is a daily-chart signal.
4. Filter the columns. A few recipes to start with:
- *Today's fresh crosses:* `GC today = 1`
- *Anything from the last few days:* `Bars since GC` between `0` and `3`
- *Clean crosses only:* add `Price vs fast % ≥ 0` so price is still above the fast MA
- *Tight, just-crossed setups:* keep `MA gap %` in a small range to weed out extended names
## On-chart use too
Add it to any chart as a normal indicator and you get the two moving averages drawn plus green/red triangles marking each golden and death cross — handy for eyeballing a name the screener surfaces before you commit.
## Honest notes
A 50/200 golden cross is a **lagging, trend-confirmation signal** by design — by the time the slower average is crossed, part of the move has already happened. This tool is built to help you act on crosses *promptly* and filter for *quality*, not to promise a specific outcome. It pairs best with your own confirmation: relative strength, volume, and the broader trend.
Two practical points. **Bars since GC** only has a value when the cross occurred within the history the script loaded for each symbol, so a name that's been in a golden-cross state for a very long time may show blank rather than a large number — which is fine here, since you're filtering for *small* values and the blanks (the stale ones) correctly fall out. And because the screener reads the last bar of the selected timeframe, keep it on Daily for the classic signal — a "golden cross" on an intraday timeframe means something different.
## Settings summary
- **Fast / Slow MA length** — defaults 50 / 200.
- **MA type** — SMA (classic) or EMA (faster).
- **Recent cross window** — how many bars back "GC recent" looks (default 5).
Open-source, so the logic is fully visible — read it, tweak it, make it yours. Feedback and suggestions are welcome in the comments.
## Disclaimer
This script is for research and educational purposes and is not financial advice. Moving-average crossovers are lagging signals and do not predict future price. Always do your own analysis and manage risk before acting on any screen result. 指标

Nexus Global 15m ORBIntroduction
The Nexus Global 15m ORB indicator is a comprehensive opening range tool designed to map the initial 15-minute price action across the three major global trading sessions: Tokyo, London, and New York. Beyond simply marking the high and low of the opening range, this script integrates Fibonacci-based Optimal Trade Entry (OTE) zones, mathematical trend extensions, and Higher Timeframe (HTF) structural confluence to help traders identify high-probability reversal and continuation zones.
Core Concepts & What It Does
Opening Range Breakout (ORB) strategies rely on the volatility generated at the start of a trading session. The first 15 minutes often establish a support and resistance framework for the hours that follow. This indicator automatically detects these 15-minute windows and projects the range forward until the next session begins.
However, a standard ORB is often not enough to build a complete trading plan. To address this, the indicator incorporates:
- Internal Fibonacci Levels & OTE Zone: Calculates key retracement levels (38.2% and 50%) and highlights a specific Optimal Trade Entry (OTE) box between the 61.8% and 78.6% levels of the session's range.
- Session Trend Extensions: Projects standard Fibonacci extensions (0.618, 1.272, and 1.618) outward from the ORB high and low to serve as dynamic take-profit targets or exhaustion levels.
- HTF Institutional Pivots: Pulls structural swing highs and lows from a user-defined higher timeframe (e.g., 4-hour) and calculates its own macro Fibonacci levels. When these macro levels intersect with the micro 15m ORB range, the indicator highlights them as "Institutional Pivots."
How It Calculates (Underlying Logic)
- Session Tracking: Uses time() functions to detect the exact 15-minute timeframe of the Tokyo (0845-0900 JST), London (0800-0815 GMT), and New York (0930-0945 EST) opens. It dynamically tracks the high and low during this window and locks the values once the window closes.
- Internal Mathematics: The range size (rng) is calculated as ORB High - ORB Low. Internal levels are found by subtracting percentages of the range from the ORB High (e.g., ORB High - (rng * 0.5) for the 50% level).
- HTF Confluence: Utilizes request.security() alongside ta.highest() and ta.lowest() over a customizable lookback period to establish the macro structural range. It then checks if the macro 38.2%, 50%, or 61.8% levels fall sequentially inside the current active ORB boundaries, plotting them distinctly when true.
- Performance Optimization: To ensure the indicator does not cause chart lag (a common issue with heavy line/box drawing scripts), the drawing engine is restricted to update visual arrays strictly on barstate.islast, ensuring lightning-fast load times even on the 1-minute chart.*
How to Use It
- Breakout & Retest: Watch for price to break the ORB High or Low, and then wait for a retracement back to the 38.2% or 50% internal levels to join the trend toward the 1.272 or 1.618 extensions.
- OTE Reversals: If a false breakout (fake-out) occurs, look for price to return to the highlighted OTE Zone (61.8% - 78.6%). This zone often acts as a strong area of defense for institutional order flow, providing excellent risk-to-reward entries back toward the opposite side of the ORB.
- Institutional Pivots: When an HTF line populates inside the session range, treat it as a heavy magnet or resistance. Trades taken in confluence with these pivots carry a much higher structural weighting.
Originality & Usefulness
While there are many ORB tools on TradingView, the vast majority only display horizontal lines for the high and low. This script is highly original because it combines micro-session timing with macro-structural Fibonacci confluence. By mashing up session tracking with HTF swing analysis and deep optimization drawing methods, it provides a complete, lag-free institutional framework in a single indicator, saving traders from needing multiple overlapping scripts to achieve the same result. 指标
