Arbitrage Detector [LuxAlgo]The Arbitrage Detector unveils hidden spreads in the crypto and forex markets. It compares the same asset on the main crypto exchanges and forex brokers and displays both prices and volumes on a dashboard, as well as the maximum spread detected on a histogram divided by four user-selected percentiles. This allows traders to detect unusual, high, typical, or low spreads.
This highly customizable tool features automatic source selection (crypto or forex) based on the asset in the chart, as well as current and historical spread detection. It also features a dashboard with sortable columns and a historical histogram with percentiles and different smoothing options.
🔶 USAGE
Arbitrage is the practice of taking advantage of price differences for the same asset across different markets. Arbitrage traders look for these discrepancies to profit from buying where it’s cheaper and selling where it’s more expensive to capture the spread.
For begginers this tool is an easy way to understand how prices can vary between markets, helping you avoid trading at a disadvantage.
For advanced traders it is a fast tool to spot arbitrage opportunities or inefficiencies that can be exploited for profit.
Arbitrage opportunities are often short‑lived, but they can be highly profitable. By showing you where spreads exist, this tool helps traders:
Understand market inefficiencies
Avoid trading at unfavorable prices
Identify potential profit opportunities across exchanges
As we can see in the image, the tool consists of two main graphics: a dashboard on the main chart and a histogram in the pane below.
Both are useful for understanding the behavior of the same asset on different crypto exchanges or forex brokers.
The tool's main goal is to detect and categorize spread activity across the major crypto and forex sources. The comparison uses data from up to 19 crypto exchanges and 13 forex brokers.
🔹 Forex or Crypto
The tool selects the appropriate sources (crypto exchanges or forex brokers) based on the asset in the chart. Traders can choose which one to use.
The image shows the prices and volumes for Bitcoin and the euro across the main sources, sorted by descending average price over the last 20 days.
🔹 Dashboard
The dashboard displays a list of all sources with four main columns: last price, average price, volume, and total volume.
All four columns can be sorted in ascending or descending order, or left unsorted. A background gradient color is displayed for the sorted column.
Price and volume delta information between the chart asset and each exchange can be enabled or disabled from the settings panel.
🔹 Histogram
The histogram is excellent for visualizing historical values and comparing them with the asset price.
In this case, we have the Euro/U.S. Dollar daily chart. As we can see, the unusual spread activity detected since 2016, with values at or above 98%, is usually a good indication of increased trader activity, which may result in a key price area where the market could turn around.
By default, the histogram has the gradient and smoothing auto features enabled.
The differences are visible in the chart above. On top is an adaptive moving average with higher values for unusual activity. At the bottom is an exponential moving average with a length of 9.
The differences between the gradient and solid colors are evident. In the first case, the colors are in sync with the data values, becoming more yellow with higher values and more green with lower values. In the second case, the colors are solid and only distinguish data above or below the defined percentiles.
🔶 SETTINGS
Sources: Choose between crypto exchanges, forex brokers, or automatic selection based on the asset in the chart.
Average Length: Select the length for the price and volume averages.
🔹 Percentiles
Percentile Length: Select the length for the percentile calculation, or enable the use of the full dataset. Enabling this option may result in runtime errors due to exceeding the allotted resources.
Unusual % >: Select the unusual percentile.
High % >: Select the high percentile.
Typical % >: Select the typical percentile.
🔹 Dashboard
Dashboard: Enable or disable the dashboard.
Sorting: Select the sorting column and direction.
Position: Select the dashboard location.
Size: Select the dashboard size.
Price Delta: Show the price difference between each exchange and the asset on the chart.
Volume Delta: Show the volume difference between each exchange and the asset on the chart.
🔹 Style
Unusual: Enable the plot of the unusual percentile and select its color.
High: Enable the plot of the high percentile and select its color.
Typical: Enable the plot of the typical percentile and select its color.
Low: Select the color for the low percentile.
Percentiles Auto Color: Enable auto color for all plotted percentiles.
Histogram Gradient: Enable the gradient color for the histogram.
Histogram Smoothing: Select the length of the EMA smoothing for the histogram or enable the Auto feature. The Auto feature uses an adaptive moving average with the data percent rank as the efficiency ratio.
تحليل الاتجاه
Quasimodo (QML) Pattern [Kodexius]Quasimodo (QML) Pattern is a market structure indicator that automatically detects Bullish and Bearish Quasimodo formations using confirmed swing pivots, then visualizes the full structure directly on the chart. The script focuses on the classic liquidity-grab narrative of the QML: a sweep beyond a prior swing (the Head) followed by a decisive market structure break (MSB), leaving behind a clearly defined reaction zone between the Left Shoulder and the Head.
Detection is built on pivot highs and lows, so patterns are evaluated only after swing points are validated. Once a valid 4 pivot sequence is identified, the indicator draws the pattern legs, highlights the internal triangle area to emphasize the grab, marks the MSB leg, and projects a QML zone that can be used as a potential area of interest for retests.
This tool is designed for traders who work with structure, liquidity concepts, and reversal/continuation triggers, and who want a clean, repeatable QML visualization without manually marking swings.
🔹 Features
🔸 Confirmed Pivot Based Structure Mapping
The script uses classic built-in pivot logic to detect swing highs and swing lows.
🔸 Automatic Bullish and Bearish QML Detection
The indicator evaluates the most recent 4 pivots and checks for a valid alternating sequence (High-Low-High-Low or Low-High-Low-High). When the sequence matches QML requirements, the script classifies the setup as bullish or bearish:
Bullish logic (structure reversal up):
- Left Shoulder is a pivot Low
- Head is a lower Low than the Left Shoulder (liquidity sweep)
- MSB pivot exceeds the Reaction pivot
Bearish logic (structure reversal down):
- Left Shoulder is a pivot High
- Head is a higher High than the Left Shoulder (liquidity sweep)
- MSB pivot breaks below the Reaction pivot
🔸 Full Pattern Visualization (Legs + Highlighted Core)
When a pattern triggers, the script draws:
Three main legs: Left Shoulder to Reaction, Reaction to Head, Head to MSB
A shaded triangular highlight over the internal structure to make the liquidity-grab shape easy to spot at a glance
🔸 QML Zone Projection
A QML Zone box is drawn using the price range defined between the Left Shoulder and the Head, then extended to the right to remain visible as price develops. This zone is intended to act as a practical reference area for potential retests and reaction planning after MSB confirmation.
🔸 MSB Emphasis
A dotted MSB line is drawn between the Reaction point and the MSB point to visually emphasize the confirmation leg that completes the pattern logic.
🔸 Clean Point Tagging and Directional Labeling
Key points are labeled directly on the chart:
- “LS” at the Left Shoulder
- “Head” at the sweep pivot
- “MSB” at the break pivot
A directional label (“Bullish QML” or “Bearish QML”) is also printed to quickly identify the detected bias.
🔸 Configurable Visual Style
All main visual components are user configurable:
- Bullish and bearish colors
- Line width
- Label size
🔸 Efficient Update Logic
Pattern checks are only performed when a new pivot is confirmed, avoiding unnecessary repeated calculations on every bar. The most recent pattern’s projected elements (zone and label positioning) are updated as new bars print to keep the latest setup readable.
🔹 Calculations
This section summarizes the core logic used for detection and plotting.
1. Pivot Detection (Swing Highs and Lows)
The script relies on confirmed pivots using the user inputs:
Left Bars: how many bars must exist to the left of the pivot
Right Bars: how many bars must exist to the right to confirm it
float ph = ta.pivothigh(leftLen, rightLen)
float pl = ta.pivotlow(leftLen, rightLen)
When a pivot is confirmed, its true bar index is the pivot bar, not the current bar, so the script stores:
bar_index
2. Pivot Storage and History Window
Each pivot is stored as a structured object containing:
- price
- index
- isHigh (true for pivot high, false for pivot low)
A rolling history is maintained (up to 50 pivots) to keep processing stable and memory usage controlled.
3. Sequence Validation (Alternation Check)
The pattern evaluation always uses the latest 4 pivots:
p0: Left Shoulder candidate
p1: Reaction candidate
p2: Head candidate
p3: MSB candidate
Before checking bullish/bearish rules, the script enforces alternating pivot types:
bool correctSequence =
(p0.isHigh != p1.isHigh) and
(p1.isHigh != p2.isHigh) and
(p2.isHigh != p3.isHigh)
This prevents invalid structures like consecutive highs or consecutive lows from being interpreted as QML.
4. Bullish QML Conditions
A bullish QML is evaluated when the Left Shoulder is a Low:
Head must be lower than Left Shoulder (sweep)
MSB must be higher than Reaction (break)
if not p0.isHigh
if p2.price < p0.price and p3.price > p1.price
// Bullish QML confirmed
Interpretation:
p2 < p0 represents the liquidity grab below the prior swing low
p3 > p1 represents the market structure break above the reaction high
5. Bearish QML Conditions
A bearish QML is evaluated when the Left Shoulder is a High:
Head must be higher than Left Shoulder (sweep)
MSB must be lower than Reaction (break)
if p0.isHigh
if p2.price > p0.price and p3.price < p1.price
// Bearish QML confirmed
Interpretation:
p2 > p0 represents the liquidity grab above the prior swing high
p3 < p1 represents the market structure break below the reaction low
6. Drawing Logic (Structure, Highlight, Zone, Labels)
When confirmed, the script draws:
Three connecting legs (LS to Reaction, Reaction to Head, Head to MSB)
A shaded triangle using a transparent “ghost” line to enable filling
A dotted MSB emphasis line between Reaction and MSB
A QML Zone box spanning the LS to Head price range and projecting to the right
Point labels: LS, Head, MSB
A direction label: “Bullish QML” or “Bearish QML”
7. Latest Pattern Extension
To keep the newest setup readable, the script updates the most recently detected pattern by extending its projected elements as new bars print:
QML zone right edge is pushed forward
The main label x position is pushed forward
This keeps the last identified QML zone visible as price evolves, without having to redraw historical patterns on every bar.
RSI For Loop | PWRSI For Loop – True Dominance Oscillator
RSI For Loop – True Momentum Dominance Through Historical Comparison
The Relative Strength Index (RSI) is excellent at measuring recent price change intensity, but a reading of 70 or 30 has completely different implications depending on the market regime. RSI For Loop removes this ambiguity by transforming RSI into a clean, zero-centered dominance / percentile-rank oscillator that always tells you exactly how strong or weak the current momentum is compared to recent history.
How it works
- Standard RSI is calculated normally (default length 46).
- A simple for-loop compares the current RSI value against the actual RSI value of every previous bar inside the user-defined lookback window (default 1 to 99 bars ≈ one full quarter on daily charts).
- Current RSI higher → +1 point
- Current RSI lower → –1 point
The resulting score ranges from –99 to +99 and is naturally centered around zero:
1. +40 = current momentum beats ~70 % of the last 99 bars (approximation)
2. –60 = current momentum is weaker than ~80 % of the last 99 bars (approximation)
3. Near zero = balanced or ranging market
Additional statistical layers
- A very long rolling median of the score (default 240 periods) serves as a slow, robust dynamic centerline
- Upper and lower 3σ bands are calculated from the standard deviation of the underlying RSI median (default length 60) to highlight truly rare extreme-dominance phases
- Asymmetric trend thresholds (default Long +15 / Short –28) reflect the empirical observation that downside momentum is usually sharper and faster
Origin and development
The core idea of using a for-loop on RSI was originally introduced by @viResearch in his invite-only “RSI For Loop” script.
While studying that concept I realised I needed an even more regime-robust strength gauge that looks back far enough to capture full market cycles (2–4 months). Therefore I completely rewrote the loop to compare against actual historical RSI values instead of fixed levels, added a 240-period median centerline, 3σ extreme bands, asymmetric thresholds, and visual signals. All parameters were extensively tested across dozens of major assets (BTC, ETH, SOL, SUI, BNB, XRP, TRX, DOGE, LINK, PAXG, CVX, HYPE, VIRTUAL + 20+ more cryptos; Magnificent 7 stocks, QQQ, SPX, XAUUSD) with the goal of achieving consistent profitability, high Sortino ratio and low drawdown in simple trend-following setups.
The final defaults represent the most robust compromise found — they keep you in real trends for dozens or hundreds of bars while staying almost silent in choppy, ranging markets.
Important Note
The optimization process is tailored to MY needs and have to be adjusted to you prefered timeframe!
I was mainly looking for an indicator that shows the underlying strength of an asset, the trend componant was only a bonus in my eyes.
How to use it
1. Green triangle below bar → score crosses above +15 → new bullish regime confirmed → enter or add to longs
2. Magenta triangle above bar → score crosses below –28 → exit longs or go cash/short
While score stays clearly positive → bullish bias hold
3. Score touching or breaking the 3σ bands → extreme conviction zone (add to winners or prepare for exhaustion)
Strength
Recommended defaults (My preference)
RSI length 46
Loop range 1–99
Long threshold +15
Short threshold –28
Median length 240
SD length 60
Recommended Universal Settings (Tested for low Max-Drawdown, high Sortino)
RSI length 44
Loop range 1–60
Long threshold +14
Short threshold –10
Median length 180
SD length 28
Works on every asset class, but the current settings are tuned for major liquid markets.
Disclaimer: This is not financial advice. Backtests are based on past results and are not indicative of future performance.
SMC Academy [PhenLabs]📊 SMC Academy
Version: PineScript™ v6
📌 Description
The SMC Academy indicator is a comprehensive educational tool designed to demystify Smart Money Concepts (SMC) for traders of all levels. Unlike standard indicators that simply print signals, this script uses a “Learning Phase” system that allows users to toggle between individual concepts—such as Market Structure, Liquidity, Imbalances, and Order Blocks—or view them all simultaneously. It lets you focus on one piece of the puzzle at a time.
🚀 Points of Innovation
Progressive Learning Modes: Toggle between 5 distinct phases to master concepts individually before using the Full Strategy Mode.
Educational Tooltips: Hover over labels to read detailed explanations of why a BOS, MSS, or Liquidity zone was identified.
Smart Filtering: Uses ATR and Volume integration to filter out low-quality Fair Value Gaps and weak Order Blocks.
HTF Dashboard: A built-in panel analyzes Higher Timeframe (4H) data to ensure you are trading in alignment with the broader trend.
🔧 Core Components
Market Structure Engine: Automatically detects Swing Highs and Lows to map out market direction using configurable swing lengths.
Liquidity Manager: Identifies unmitigated swing points that serve as Buy-Side (BSL) and Sell-Side (SSL) liquidity magnets.
Imbalance Detector: Highlights Fair Value Gaps (FVG) where price inefficiencies exist, using ATR thresholds to ignore noise.
Order Block Identifier: Locates the specific candles responsible for structure breaks, validated by volume analysis.
🔥 Key Features
Break of Structure (BOS): Automatically marks trend continuation signals with solid lines and color-coded labels.
Market Structure Shift (MSS): Identifies potential trend reversals when significant swing points are breached.
Dashboard Context: Displays the current trend direction and the 4H context directly on your chart.
Custom Alerts: Built-in alert conditions for structure breaks and new Order Blocks allow for automated tracking.
🎨 Visualization
Structure Lines: Solid lines indicate confirmed breaks (Green for Bullish, Red for Bearish).
Liquidity Zones: Dotted lines extending rightward indicate resting liquidity levels that price may target.
FVG Boxes: Shaded boxes highlight imbalance zones, automatically extending for a user-defined number of bars.
Dashboard: A clean, non-intrusive table in the top-right corner displays trend status and active mode.
📖 Usage Guidelines
Setting Categories
Learning Mode: Select from ‘1. Market Structure’ through ‘5. Full Strategy Mode’ to filter what appears on the chart.
Swing Detection Length: Default (5). Determines the sensitivity of the swing high/low detection.
Structure Break Type: Options (Close/Wick). Choose whether a candle close or just a wick is required to confirm a break.
Min FVG Size: Default (0.5 ATR). Filters out gaps smaller than this multiplier to reduce noise.
Filter Weak OBs by Volume: Default (True). Only highlights Order Blocks where volume exceeds the 20-period average.
✅ Best Use Cases
Educational Study: Isolate “Phase 1: Market Structure” to practice identifying trend changes without distraction.
Trend Following: Use “Phase 3: Imbalances” to find entry points within an established trend.
Reversal Trading: Combine “Phase 2: Liquidity” and “Phase 4: Order Blocks” to catch reversals at key levels.
⚠️ Limitations
Subjectivity: Market structure can be interpreted differently depending on the swing length settings used.
Ranging Markets: Like all trend-following concepts, false BOS/MSS signals may generate during choppy, sideways price action.
Repainting: While the signals are non-repainting once confirmed, the live candle may flash a signal before the close if “Close” mode is selected.
💡 What Makes This Unique
Interactive Learning: The inclusion of tooltip explanations transforms this from a simple tool into an active mentor.
Phase-Based Workflow: The ability to strip the chart back to basics at the click of a button is unique to the PhenLabs ecosystem.
🔬 How It Works
Swing Analysis: The script calculates pivot highs and lows based on your length input to define the structural landscape.
Break Validation: It checks if price crosses these pivot points to trigger BOS (Continuation) or MSS (Reversal) logic.
Volume Confirmation: For Order Blocks, it looks back inside the swing leg to find the specific candle responsible for the move, verifying it has significant volume.
💡 Note:
For the best experience, start in Phase 1 to calibrate your Swing Detection Length to the specific volatility of the asset you are trading before enabling Full Strategy Mode.
Order Block Finder [MHA Finverse]A comprehensive order block detection indicator that identifies institutional buying and selling zones with advanced volume filtering and King Order Block (KOB) detection.
Key Features
Dual Structure Detection
- Internal Order Blocks: Short-term zones based on 5-bar pivots for precise entries
- Swing Order Blocks: Higher timeframe zones based on 50-bar pivots for major support/resistance levels
- Toggle between structures or display both simultaneously
King Order Block (KOB)
The indicator automatically identifies the order block with the highest volume and marks it as the "King Order Block" - typically the most significant institutional zone that deserves priority attention. You can optionally color-code KOB blocks differently for instant visual recognition.
Intelligent Volume Filtering
Uses ATR or Cumulative Mean Range to filter out low-quality blocks and focus only on institutional-sized moves. This ensures you're trading zones where smart money has left clear footprints.
Volume Metrics Display
Each order block shows its actual volume and percentage contribution, helping you prioritize which zones to trade. Higher volume blocks indicate stronger institutional interest.
Flexible Lookback Periods
Choose from preset trading styles (Scalping: 50 bars, Day Trading: 150 bars, Swing Trading: 400 bars, Position Trading: 750 bars) or set custom lookback periods to match your strategy.
Advanced Mitigation Options
Select between Close or High/Low mitigation methods to control when order blocks are considered invalidated.
King Order Block (KOB)
The King Order Block is the order block with the highest volume among all active blocks on your chart. It represents the zone where the largest institutional activity occurred, making it the most significant level for potential reversals. When multiple order blocks are present, the KOB should be your primary focus as it typically offers higher probability setups. The indicator automatically identifies and marks the KOB with a special label, and you can optionally color-code it differently for instant visual recognition. KOB zones often produce stronger reactions when price returns to test them, allowing for more confident entries with tighter stop losses.
How to Use
1. For Short-Term Trading: Enable Internal Order Blocks to identify quick reversals and entries on lower timeframes.
2. For Position Trading: Enable Swing Order Blocks to find major institutional zones on higher timeframes.
3. Focus on KOB: When multiple blocks appear, prioritize the King Order Block as it represents the highest volume zone.
4. Volume Confirmation: Check the volume metrics - blocks with 30%+ volume contribution are typically stronger zones.
5. Entry Strategy: Wait for price to return to an order block, look for rejection signals (pin bars, engulfing patterns), then enter with stops below/above the block.
6. Adjust Lookback: Match the lookback period to your trading timeframe for optimal block visibility.
Color Themes
- Colored Mode: Distinct colors for bullish/bearish and internal/swing blocks
- Monochrome Mode: Professional grayscale palette for clean charts
Alert System
Comprehensive alerts for:
- Order block creation (internal/swing, bullish/bearish)
- Order block mitigation
- King Order Block events
Perfect for traders who follow Smart Money Concepts (SMC), institutional order flow, and supply/demand zones.
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice or trading recommendations. Past performance does not guarantee future results. Always conduct your own analysis, use proper risk management, and never risk more than you can afford to lose. Trading involves substantial risk of loss.
Impulse Trend Suite (LITE) v4🚀 Impulse Trend Suite (LITE) — v4
Smart trend visualization with precise flip arrows. A lightweight, momentum-filtered trend tool designed to stay clean, avoid repeated signals, and keep you focused only on real market direction.
📌 Core Features
Trend flip arrows (no spam, 1 signal per turn)
Continuous background zones (gap-free trend shading)
Adaptive Baseline + ATR structure channel
RSI + MACD momentum filter (suppresses weak signals)
Trend Status Panel (UP, DOWN, NEUTRAL)
🔍 Quick Guide
BUY setup = green arrow + green background
SELL setup = red arrow + red background
Stay in the move while color doesn’t change
ATR channel helps avoid chasing overextended candles
========================================================
📈 Works on Forex, Stocks, Crypto, Indices, Metals
⌚ Scalping • Intraday • Swing • Long-term
==========================================================
⚠️ Backtest before trading live.
Happy trading and many pips!
FVG Heatmap [Hash Capital Research]FVG Map
FVG Map is a visual Fair Value Gap (FVG) mapping tool built to make displacement imbalances easy to see and manage in real time. It detects 3-candle FVG zones, plots them as clean heatmap boxes, tracks partial mitigation (how much of the zone has been filled), and summarizes recent “fill speed” behavior in a small regime dashboard.
This is an indicator (not a strategy). It does not place trades and it does not publish performance claims. It is a market-structure visualization tool intended to support discretionary or systematic workflows.
What this script detects
Bullish FVG (gap below price)
A bullish FVG is detected when the candle from two bars ago has a high below the current candle’s low.
The zone spans from that prior high up to the current low.
Bearish FVG (gap above price)
A bearish FVG is detected when the candle from two bars ago has a low above the current candle’s high.
The zone spans from the current high up to that prior low.
What makes it useful
Heatmap zones (clean, readable FVG boxes)
Bullish zones plot below price. Bearish zones plot above price.
Partial fill tracking (mitigation progress)
As price trades back into a zone, the script visually shows how much of the zone has been filled.
Mitigation modes (your definition of “filled”)
• Full Fill: price fully trades through the zone
• 50% Fill: price reaches the midpoint of the zone
• First Touch: price touches the zone one time
Optional auto-cleanup
Optionally remove zones once they’re mitigated to keep the chart clean.
Fill-Speed Regime Dashboard
When zones get mitigated, the script records how many bars it took to fill and summarizes the recent environment:
• Average fill time
• Median fill time
• % fast fills vs % slow fills
• Regime label: choppy/mean-revert, trending/displacement, or mixed
How to use
Use FVG zones as structure, not guaranteed signals.
• Bullish zones are often watched as potential support on pullbacks.
• Bearish zones are often watched as potential resistance on rallies.
The fill-speed dashboard helps provide context: fast fills tend to appear in more rotational conditions, while slow fills tend to appear in stronger trend/displacement conditions.
Alerts
Bullish FVG Created
Bearish FVG Created
Notes
FVGs are not guaranteed reversal points. Fill-speed/regime is descriptive of recent behavior and should be treated as context, not prediction. On realtime candles, visuals may update as the bar forms.
Elev8+ Impulse LevelsElev8+ Impulse Levels | Smart Support & Resistance
Ever notice price rejecting “empty” areas on the chart—like it remembered something that isn’t obvious?
That “something” is often Institutional Impulse : footprints left behind by large, aggressive moves that get defended again days or weeks later .
Elev8+ Impulse Levels automatically detects these moments and projects the most important prices forward so you can see the structure most traders miss.
— — —
🧠 How It Works (The Logic)
This is not a typical support/resistance tool. It does not hunt swing highs/lows.
It looks for Market Intent —the “Perfect Storm” when two conditions align:
Volume Spike — buying/selling pressure significantly exceeds average volume (multiplier-based).
Volatility Expansion — the candle body is unusually large relative to recent ATR.
When both occur, the script marks the event and treats the impulse close as a key “line in the sand” that can influence future reactions.
— — —
🎯 How to Use These Levels
The script includes a Smart Line behavior that changes level styling based on how price interacts with it—so you can quickly separate two core setups:
1) The Defense (Bounce)
Visual: 🟢 Solid line (Fresh / Untouched)
What it means: Price has not yet traded through or “invalidated” the level.
What to look for: First return to the level → rejection / bounce behavior.
Why it matters: Large players often defend prior entries; first tests can react sharply.
2) The Flip (Break & Retest)
Visual: ◌ Dotted line (Broken / Re-priced)
What it means: A candle has closed through the level.
What to look for: Price returns to the dotted level from the other side (“kiss”) → continuation.
Why it matters: Broken support can act as resistance (and vice versa), similar to a breaker concept.
— — —
✨ Key Features
Smart Visualization — levels automatically transition from solid → dotted when broken to reduce chart noise.
Impulse Candle Highlighting — see the exact candle that created the level (origin clarity).
Fully Customizable Sensitivity — tune volume + size thresholds for Crypto, Forex, Futures, or Stocks.
— — —
🚀 The Elev8+ Workflow
Think of Impulse Levels as your map : it shows where reactions are most likely.
For entry timing, pair it with Elev8+ Pro Reversal to confirm the moment price reacts at these high-value zones.
— — —
Disclaimer: Trading involves risk. This tool is for educational/technical analysis purposes only and does not guarantee future results.
Buying Opportunity Score V2.1Overview
A composite scoring system (0-100) that identifies high-probability buying opportunities during market pullbacks. Validated through backtesting on SPY from 2010-2024.
How It Works
The indicator combines multiple fear and oversold signals into a single actionable score. When fear is elevated and the market is oversold, the score rises. Higher scores historically correlate with better forward returns.
Scoring Components
VIX Level (30 pts) - Market fear gauge
Drawdown (30 pts) - Distance from 52-week high
RSI 14 (12 pts) - Oversold confirmation
Bollinger Band (13 pts) - Statistical extreme
VIX Timing (15 pts) - Bonus when VIX declining from peak
Signal Levels
80+ = STRONG BUY (high conviction)
70-79 = BUY (consider entry)
60-69 = WATCH (monitor closely)
Below 60 = No signal
Backtest Results (SPY, 2010-2024)
70+ Signals: 85% win rate, 7.5% average 20-day return
80+ Signals: 100% win rate, 14% average 20-day return
Features
Statistics table showing 1Y, 3Y, 5Y rolling performance
Signal markers (green triangles) on buy signals
Outcome labels showing WIN/LOSS after measurement period
Multiple alert options
Works on SPY, QQQ, IWM (use VIX for all)
How To Use
Add to SPY, QQQ, or IWM (daily timeframe)
Wait for score to reach 70+ or 80+
Green triangle marks signal day
Check statistics table for recent performance
Set alerts for notifications
Alerts Available
STRONG BUY Signal (80+)
BUY Signal (70+)
Moderate Signal (60+)
Score Crossed 80/70
Score Dropped Below 70
Important Notes
Designed for daily timeframe on broad market ETFs
Signals confirm at end of day (bar close)
Statistics table shows rolling windows based on loaded data
Past performance does not guarantee future results
Adaptive Trend-Based Fib Extension + TrendlinesThis advanced analysis tool is designed to take the guesswork out of Fibonacci trading. By combining Adaptive Fibonacci Extensions with multi-method Pivot Detection, Dynamic Trendlines, and Horizontal Support/Resistance, this indicator provides a comprehensive roadmap for any market trend.
Learn volume trading - @pricevolumetraders
Key Features
Adaptive Fibonacci Engine: Unlike static tools, this indicator uses an ATR-based adaptive factor to adjust extension levels according to current market volatility.
Smart Trend Detection: Automatically identifies trend direction using EMA cross-overs or Higher High/Higher Low sequences to determine whether to plot Bullish or Bearish extensions.
Multi-Method Pivots: Choose from six different pivot detection methods, including Volume-Based, Fractal, ATR-Based, and Long Wick detection, to suit your specific trading style.
Automated Trendlines & S/R: High-probability diagonal trendlines and horizontal S/R levels are drawn only when they meet a minimum "touch" requirement and volume confirmation.
Institutional Zones: Highlights the "Golden Zone" between the 127.2% and 161.8% extension levels, where trends often reach exhaustion or find major targets.
How to Use
Trend Alignment: Use the built-in Dashboard to quickly identify the current trend (Bull/Bear) and RSI momentum.
The 3-Point Setup: The indicator automatically finds Point 1 (Trend Start), Point 2 (Impulse End), and Point 3 (Retracement/Last Touch) to project future price targets.
Entry Confirmation: Look for price action near the 61.8% or 78.6% Retracement levels for high-probability entries in the direction of the trend.
Targeting: Use the extension levels (100%, 127.2%, 161.8%) as your primary Take Profit zones.
Confluence: The strongest setups occur when a Fibonacci level aligns perfectly with a Horizontal S/R line or a Diagonal Trendline.
Technical Settings
Pivot Settings: Adjust 'Left' and 'Right' bars to change the sensitivity of swing high/low detection.
Fib Timeframe: You can anchor Fibonacci levels to a higher timeframe (e.g., 1-hour levels) while trading on a lower timeframe (e.g., 5-minute).
Volume Multiplier: Filter for horizontal levels that were formed with significant institutional volume.
Disclaimer: Trading involves significant risk. This tool is for educational and analytical purposes only and should be used in conjunction with a complete trading plan.
BK AK-Zenith💥 Introducing BK AK-ZENITH — Adaptive Rhythm RSI for Peak/Valley Warfare 💥
This is not another generic RSI. This is ZENITH: it measures where momentum is on the scale, then tells you when it’s hitting extremes, when it’s turning, and when price is lying through its teeth with divergence.
At its core, ZENITH does one thing ruthlessly well:
it matches the oscillator’s period to the market’s current rhythm—adaptive when the market is fast, adaptive when the market is slow—so your signals stop being “late because the settings were wrong.”
🎖 Full Credit — Respect the Origin (AlgoAlpha)
The core RSI architecture in this form belongs to AlgoAlpha—one of the best introducers and coders on TradingView. They originated this adaptive/Rhythm-RSI framework and the way it’s presented and engineered.
BK AK-ZENITH is my enhancement layer on top of AlgoAlpha’s foundation.
I kept the spine intact, and I added tactical systems: clearer Peak/Valley warfare logic, pivot governance (anti-spam), divergence strike markers, momentum flip confirmation, and a war-room readout—so it trades like a weapon, not a toy.
Respect where it started: AlgoAlpha built the engine. I tuned it for battlefield use.
🧠 What Exactly is BK AK-ZENITH?
BK AK-ZENITH is an Adaptive Period RSI (or fixed if you choose), designed to read momentum like a range of intent rather than a single overbought/oversold gimmick.
Core Systems Inside ZENITH
✅ Adaptive Period RSI (Rhythm Engine)
Automatically adjusts its internal RSI length to match current market cadence.
(Optional fixed length mode if you want static.)
✅ Optional HMA Smoothing
Cleaner shape without turning it into a laggy moving average.
✅ Peak / Valley Zones (default 80/20)
Hard boundaries that define “true extremes” so you stop treating every wiggle like a signal.
✅ Pivot-Based BUY/SELL Triangles + Cooldown
Signals are governed by pivots and a cooldown so it doesn’t machine-gun trash.
✅ Momentum Flip Diamonds (◇)
Shows when the oscillator’s slope flips—clean confirmation for “engine change.”
✅ Divergence Lightning (⚡)
Exposes when price is performing confidence while momentum is quietly breaking.
✅ War-Room Table / Meter
Bias, zone, reading, and adaptive period printed so you don’t “interpret”—you execute.
✅ Alerts Suite
Pivots, divergences, zone entries—so the chart calls you, not your emotions.
🎯 How to use it (execution rules)
1) Zones = permission
Valley (≤ Valley level): demand territory. Stalk reversal structure; stop chasing breakdown candles.
Peak (≥ Peak level): supply territory. Harvest, tighten, stop adding risk at the top.
2) Pivot triangles = the shot clock
Your ▲/▼ signals are pivot-confirmed with a cooldown. That’s intentional.
This is designed to force patience and prevent overtrading.
3) Divergence = truth serum
When price makes the “confident” high/high or low/low but ZENITH disagrees, you’re seeing internal change before the crowd does.
Treat divergence as warning + timing context, not a gambling button.
4) Meter/Table = discipline
If you can’t summarize the state in one glance, you’ll overtrade. ZENITH prints the state so your brain stops inventing stories.
🔧 Settings that actually matter
Adaptive Period ON (default): the whole point of ZENITH
Peak/Valley levels: how strict extremes must be
Pivot strength + Cooldown: your anti-spam governor
Divergence pivot length: controls how “major” divergence must be
The “AK” in the name is an acknowledgment of my mentor A.K. His standards—patience, precision, clarity, emotional control—are why this tool is built with governors instead of hype.
And above all: all praise to Gd—the true source of wisdom, restraint, and right timing.
👑 King Solomon Lens — ZENITH Discernment
Solomon asked Gd for something most people never ask for: not wealth, not victory—discernment. The ability to separate what looks true from what is true.
That is exactly what momentum work is supposed to do.
1) Honest weights, honest measures.
In Solomon’s world, crooked scales were an abomination because they disguised reality. In trading, the crooked scale is your own excitement: you see one green candle and call it strength. ZENITH forces an honest measure—0 to 100—so you deal in degree, not drama. A Peak is not “bullish.” A Peak is “momentum priced in.” A Valley is not “bearish.” A Valley is “selling pressure reaching exhaustion.”
2) Wisdom adapts to seasons.
Solomon’s order wasn’t chaos—there was a time to build, a time to harvest, a time to wait. Markets have seasons too: trend seasons, chop seasons, compression seasons, expansion seasons. Fixed-length RSI pretends every season is the same. ZENITH does not. It listens for rhythm and adjusts its internal timing so your read stays relevant to today’s market tempo—not last month’s.
3) The sword test: revealing what’s hidden.
Solomon’s most famous judgment wasn’t about theatrics—it was about revealing the truth beneath appearances. Divergence is that same test in markets: price can perform strength while the engine quietly weakens, or perform weakness while momentum secretly repairs. The ⚡ is not a prophecy. It’s a revelation: “what you see on price is not the full story.”
That’s ZENITH discipline: measure → discern → execute.
And may Gd bless your judgment to act only when the measure is clean.
⚔️ Final
BK AK-ZENITH is a momentum fire-control system: adaptive rhythm + extreme zones + pivot timing + divergence truth.
Use it to stop feeling trades and start weighing them. Praise to Gd always. 🙏
Elev8+ Impulse Levels | Smart Support & ResistanceElev8+ Impulse Levels | Smart Support & Resistance
Ever notice price rejecting “empty” areas on the chart—like it remembered something that isn’t obvious?
That “something” is often Institutional Impulse : footprints left behind by large, aggressive moves that get defended again days or weeks later .
Elev8+ Impulse Levels automatically detects these moments and projects the most important prices forward so you can see the structure most traders miss.
— — —
🧠 How It Works (The Logic)
This is not a typical support/resistance tool. It does not hunt swing highs/lows.
It looks for Market Intent —the “Perfect Storm” when two conditions align:
Volume Spike — buying/selling pressure significantly exceeds average volume (multiplier-based).
Volatility Expansion — the candle body is unusually large relative to recent ATR.
When both occur, the script marks the event and treats the impulse close as a key “line in the sand” that can influence future reactions.
— — —
🎯 How to Use These Levels
The script includes a Smart Line behavior that changes level styling based on how price interacts with it—so you can quickly separate two core setups:
1) The Defense (Bounce)
Visual: 🟢 Solid line (Fresh / Untouched)
What it means: Price has not yet traded through or “invalidated” the level.
What to look for: First return to the level → rejection / bounce behavior.
Why it matters: Large players often defend prior entries; first tests can react sharply.
2) The Flip (Break & Retest)
Visual: ◌ Dotted line (Broken / Re-priced)
What it means: A candle has closed through the level.
What to look for: Price returns to the dotted level from the other side (“kiss”) → continuation.
Why it matters: Broken support can act as resistance (and vice versa), similar to a breaker concept.
— — —
✨ Key Features
Smart Visualization — levels automatically transition from solid → dotted when broken to reduce chart noise.
Impulse Candle Highlighting — see the exact candle that created the level (origin clarity).
Fully Customizable Sensitivity — tune volume + size thresholds for Crypto, Forex, Futures, or Stocks.
— — —
🚀 The Elev8+ Workflow
Think of Impulse Levels as your map : it shows where reactions are most likely.
For entry timing, pair it with Elev8+ Pro Reversal to confirm the moment price reacts at these high-value zones.
— — —
Disclaimer: Trading involves risk. This tool is for educational/technical analysis purposes only and does not guarantee future results.
QUANT TRADING ENGINE [PointAlgo]Quant Trading Engine is a quantitative market-analysis indicator that combines multiple statistical factors to study trend behavior, mean reversion, volatility, execution efficiency, and market stability.
The indicator converts raw price behavior into standardized signals to help evaluate directional bias and risk conditions in a systematic way.
This script focuses on factor alignment and regime awareness, not prediction certainty.
Design Philosophy
Markets move through different regimes such as trending, ranging, volatile expansion, and instability.
This indicator attempts to model these regimes by blending:
Momentum strength
Mean-reversion pressure
Volatility risk
Trend filtering
Execution context (VWAP)
Correlation structure
Each component is normalized and combined into a single Quant Alpha framework.
Factor Construction
1. Momentum Factor
Measures directional strength using percentage price change over a rolling window.
Standardized using mean and standard deviation.
Represents trend continuation pressure.
2. Mean Reversion Factor
Measures deviation from a longer moving average.
Standardized to identify stretched conditions.
Designed to capture counter-trend behavior.
Directional Clamping
Mean-reversion signals are dynamically restricted:
No counter-trend buying during downtrends.
No counter-trend selling during uptrends.
Allows both sides only in neutral regimes.
This prevents conflicting signals in strong trends.
3. Volatility Factor
Uses realized volatility derived from price changes.
Penalizes environments where volatility deviates significantly from its norm.
Acts as a risk adjustment rather than a directional driver.
4. Composite Quant Alpha
The final Quant Alpha is a weighted blend of:
Momentum
Mean reversion (trend-clamped)
Volatility risk
The composite is standardized into a Z-score, allowing consistent interpretation across instruments and timeframes.
Signal Logic
Buy signal occurs when Quant Alpha crosses above zero.
Sell signal occurs when Quant Alpha crosses below zero.
Zero-cross logic is used to represent shifts from negative to positive statistical bias and vice versa.
Signals reflect statistical regime change, not trade instructions.
Volatility Smile Context
Measures price deviation from its statistical distribution.
Identifies skewed conditions where upside or downside volatility becomes dominant.
Highlights extreme deviations that may imply elevated derivative risk.
Exotic Risk Conditions
Detects sudden price expansion combined with volatility spikes.
Highlights environments where execution and risk become unstable.
Visual background cues are used for awareness only.
Execution Context (VWAP)
Measures price distance from VWAP.
Used to assess execution efficiency rather than direction.
Helps identify stretched conditions relative to average traded price.
Correlation Structure
Evaluates short-term return correlations.
Detects when price behavior becomes less predictable.
Flags structural instability rather than trend direction.
Visualization
The indicator plots:
Quant Alpha (scaled) with directional coloring
Volatility smile deviation
Price vs VWAP distance
Correlation structure
Signal markers indicate Quant Alpha zero-cross events and risk conditions.
Dashboard
A compact dashboard summarizes:
Trend filter state
Quant Alpha polarity and value
Individual factor readings
Current action state (Buy / Sell / Wait / Risk)
The dashboard provides a real-time snapshot of internal model conditions.
Usage Notes
Designed for analytical interpretation and research.
Best used alongside price action and risk management tools.
Factor behavior depends on instrument liquidity and volatility.
Not optimized for illiquid or irregular markets.
Disclaimer
This script is provided for educational and analytical purposes only.
It does not provide financial, investment, or trading advice.
All outputs should be independently validated before making any trading decisions.
ZLSMA AO Session Strategy by kernchentradingStrategy Logic
Trend Filter:
The ZLSMA is used to determine the prevailing short-term direction. Long signals are only considered when price is above the ZLSMA, while short signals are only considered when price is below it.
Momentum Confirmation:
The Awesome Oscillator is used to detect momentum shifts. Entries occur only when a multi-period sequence of rising or falling AO values is present, indicating the start of a new impulse.
Entries:
Long: Positive momentum in the AO combined with price trading above the ZLSMA
Short: Negative momentum in the AO combined with price trading below the ZLSMA
Only one position per direction is held at any time.
Exits:
Positions are closed when momentum weakens according to the AO or when a predefined pip threshold is reached.
Trading Hours:
The strategy uses a time filter and trades only during specified hours to avoid periods of low liquidity.
Parameters
ZLSMA length and offset
Position size (volume)
Timeframe and Notes:
I trade Gold using this strategy on the 5-minute and 15-minute charts. In flat, sideways market conditions, the ZLSMA has weaknesses. In such cases, it can be helpful to use an additional trend strength indicator (e.g., TSI). In general, the greater the distance between price and the ZLSMA, the more reliable the signal tends to be.
Structure Lite - Automatic Major Trend LinesStructure Lite — Automatic Major Trend Lines
Structure Lite automatically detects and plots major market structure using higher-timeframe pivot highs and lows.
It is designed to provide a clean, lightweight view of primary support and resistance without manual drawing or chart clutter.
This script focuses only on major structure and intentionally excludes short-term noise, advanced liquidity concepts, or signal logic.
Features
Automatically plots major resistance (red) and major support (green) trend lines
Uses higher-period pivots to reflect macro / swing structure
Lines extend right for forward projection
Keeps only the most recent major levels to reduce clutter
Optional toggle to hide all trend lines for a clean chart view
How to Use
Add the indicator to your chart
Adjust Major Pivot Period to control how swing-based the structure is
Higher values = fewer, more important levels
Lower values = more responsive structure
Use the plotted lines to:
Identify higher-timeframe support and resistance
Contextualize price action and trend bias
Toggle Hide All Trend Lines to quickly remove structure without removing the indicator
This tool is intended for context and structure awareness, not trade signals.
Design Philosophy
Structure Lite is intentionally minimal:
No alerts
No buy/sell signals
No predictions
No performance claims
It is built as a foundational structure tool that can be combined with the user’s own methodology.
Notes
Some inputs reference advanced features available in a separate professional version
These options are disabled here and included only for interface consistency
No external links, promotions, or monetization are included in this script
Disclaimer
Educational and informational purposes only.
This script does not provide financial advice or trade recommendations.
Past market behavior does not guarantee future results.
© 2025 GammaBulldog
Hosoda ZHosoda’s Clouds is a trend-following strategy designed to trade only long positions in traditionally trending markets with a strong bullish bias: SPY(D); DJI (D); NDX (D); XAUUSD (D); Tesla (D, H4, H1); AAPL (D, H4, H1); GOOG (D, H4); META (D, H4); NVDA (D, H4); AMZN(D, H4).
Strategy Parameters
Initial Capital: $10,000 USD.
Position Size: Risks 10% of your equity per trade.
Commission: 0.1%
Indicators
The strategy combines two main technical tools:
A. Ichimoku Cloud This is the core of the strategy. It calculates the classic lines:
• Tenkan-sen (Fast Line): Average of the highest high and lowest low of the last 9 periods.
• Kijun-sen (Base Line): Average of the last 26 periods.
• Cloud (Senkou Span A and B): Projects future support/resistance.
B. EMA 500 (Trend Filter)
• A 500-period Exponential Moving Average is calculated.
• Function: Serves as a very long-term trend filter. If the price is above the EMA 500, the market is considered bullish in the long term.
Entry Rules
• Bullish Cross (Bull Cross): The fast line (Tenkan) crosses above the base line (Kijun). This is the classic Ichimoku entry signal.
• Trend Filter (Optional):
•If you check the "Enable EMA Filter" box in the options, the system will only buy if the closing price is above the EMA 500.
•If the box is unchecked, it will ignore the EMA and buy based solely on the Ichimoku cross.
Exit Rules
A. Stop Loss (Loss Protection) It is a dynamic Stop Loss based on market structure, not a fixed percentage.
• At the moment of entry, the code looks back 12 bars (configurable in sl_bars_back) and finds the lowest price (low).
• It places the Stop Loss at that minimum level.
• Visual: Draws a dotted red line on the chart showing where your Stop Loss is.
B. Technical Take Profit (Exit due to Weakness) Lets profits run until the trend shows weakness.
• Condition: Closes the trade if the Tenkan line crosses below the bottom of the Cloud .
• This means short-term momentum has been lost and the price has entered or crossed below the cloud.
Statistics Panel
In the top right corner, the code draws a table (Panel) that updates in real-time or at the end of Backtesting. It shows:
• Total P&L: Net profit or loss in dollars.
• Win Rate: Percentage of winning trades.
• Trades: Total number of trades executed.
Summary
1. The script waits for the blue line (Tenkan) to cross over the red line (Kijun).
2. It verifies if the price is above the orange line (EMA 500) (if the filter is active).
3. If so, it BUYS.
4. It immediately places a Stop Loss at the low of the last 12 candles (red dotted line).
5. It keeps the trade open until the Stop Loss is hit or until the Tenkan line drops below the Cloud.
Customizable Settings
• Whether to use the EMA filter or not.
• The EMA length (default is 500).
• The Ichimoku periods (9, 26, 52 are standard).
• How many bars to look back to set the Stop Loss.
Adaptive RSI Pro# Adaptive RSI Pro / 自适应RSI专业版
[! (img.shields.io)](www.tradingview.com)
[! (img.shields.io)](www.tradingview.com)
[! (img.shields.io)](opensource.org)
Dynamic overbought/oversold thresholds + Multi-Timeframe analysis + Divergence detection + Signal statistics.
根据每个标的实际历史分布动态计算超买/超卖阈值,结合多时间框架分析、背离检测和信号统计。
**Pine Script v6** | **Last Update: 2025-12-17** | **v6.2**
---
## Emoji Legend / 信号图例
### Chart Signals / 图表信号
#### Buy Signals / 买入信号 (底部显示)
| Emoji | Signal Name | Condition | Priority | Action |
|-------|-------------|-----------|----------|--------|
| 🌟 | MTF + Extreme | 3+ timeframes oversold + Z<−2σ | ★★★★★ | **STRONG BUY** 强力买入 |
| 💎 | Divergence + Extreme | Bullish divergence in Z<−2σ zone | ★★★★☆ | **BUY** 买入 |
| 🔥 | Extreme Oversold | Z-Score crosses below −2σ (≈P2) | ★★★☆☆ | **BUY** 买入 |
| ⬆️ | Normal Oversold | Z-Score crosses below −1.5σ (≈P7) | ★★☆☆☆ | Consider buy 考虑买入 (默认隐藏) |
| ↗️ | Bullish Divergence | Price↓ RSI↑ (not in extreme zone) | ★☆☆☆☆ | Watch 观察 (潜在底部) |
#### Sell Signals / 卖出信号 (顶部显示)
| Emoji | Signal Name | Condition | Priority | Action |
|-------|-------------|-----------|----------|--------|
| 🌟 | MTF + Extreme | 3+ timeframes overbought + Z>+2σ | ★★★★★ | **STRONG SELL** 强力卖出 |
| 💎 | Divergence + Extreme | Bearish divergence in Z>+2σ zone | ★★★★☆ | **SELL** 卖出 |
| ❄️ | Extreme Overbought | Z-Score crosses above +2σ (≈P98) | ★★★☆☆ | **SELL** 卖出 |
| ⬇️ | Normal Overbought | Z-Score crosses above +1.5σ (≈P93) | ★★☆☆☆ | Consider sell 考虑卖出 (默认隐藏) |
| ↘️ | Bearish Divergence | Price↑ RSI↓ (not in extreme zone) | ★☆☆☆☆ | Watch 观察 (潜在顶部) |
> **Priority System / 优先级系统**: Only the highest priority signal is shown to prevent overlapping.
> 只显示最高优先级信号,避免叠加。
---
### Dashboard Status / 仪表盘状态
| Emoji | Status | Meaning |
|-------|--------|---------|
| 🟢 | EXTREME OVERSOLD | Z-Score < −2σ (≈P2.3), strong buy zone / 极端超卖区,强买区 |
| 🟡 | OVERSOLD | Z-Score < −1.5σ (≈P6.7), oversold / 超卖 |
| ⚪ | NEUTRAL | −1.5σ ≤ Z-Score ≤ +1.5σ, no signal / 中性,无信号 |
| 🟠 | OVERBOUGHT | Z-Score > +1.5σ (≈P93.3), overbought / 超买 |
| 🔴 | EXTREME OVERBOUGHT | Z-Score > +2σ (≈P97.7), strong sell zone / 极端超买区,强卖区 |
### MTF Status / 多周期状态
| Emoji | Meaning |
|-------|---------|
| 🟢 | Timeframe oversold / 该周期超卖 |
| 🔴 | Timeframe overbought / 该周期超买 |
| ⚪ | Timeframe neutral / 该周期中性 |
### Divergence Status / 背离状态
| Emoji | Meaning |
|-------|---------|
| 🟢 BULL DIV | Bullish divergence detected / 检测到看涨背离 |
| 🔴 BEAR DIV | Bearish divergence detected / 检测到看跌背离 |
| — | No divergence / 无背离 |
---
### Alert Emojis / 警报图标
| Emoji | Alert Type | Description |
|-------|------------|-------------|
| 🎯 | Smart Alert | V6 Unified Alert System / V6统一警报系统 |
---
## Overview / 概述
Traditional RSI uses fixed 30/70 thresholds, but different assets have different volatility characteristics.
传统RSI使用固定的30/70阈值,但不同标的有不同的波动特性。
**Solution**: Calculate thresholds using historical percentiles (P5-P95) + advanced features.
**解决方案**:使用历史百分位(P5-P95)计算阈值 + 高级功能。
---
## Features / 功能特性
### 🎯 Adaptive Thresholds / 自适应阈值
- **Z-Score Based Signals**: Uses statistical Z-Score (±2σ for extreme, ±1.5σ for normal) for consistent cross-asset performance
使用统计Z-Score(极端±2σ,普通±1.5σ)实现跨资产一致性
- **Percentile Lines**: Display P5/P10/P25/P50/P75/P90/P95 for visual reference
百分位线(P5-P95)作为视觉参考
- **Dual Display Modes**: Show Z-Score lines, Percentile lines, or both
双重显示模式:可选择显示Z值线、百分位线或两者
### 🔬 Auto-Adaptive Lookback / 自动自适应回看期
- **Statistical Formula**: Uses `n = (Z × σ / E)²` for optimal sample size calculation
统计公式:使用样本量公式自动计算最优回看期
- **Dual Volatility System**: Combines short-term (4× RSI length) and long-term volatility (configurable: 6M/1Y/2Y)
双重波动率系统:结合短期和长期波动率动态调整
- **Precision Control**: Choose High/Normal/Low precision (adjusts acceptable error margin)
精度控制:高/普通/低精度可选(调整统计误差容忍度)
- **Health Indicators**: Real-time validation of sample coverage, distribution spread, and statistical validity
健康度指标:实时验证样本覆盖率、分布宽度和统计有效性
### 📈 Auto-Adaptive Trend Filter / 自动自适应趋势过滤
- **Auto Mode**: Automatically selects optimal filter based on RSI volatility percentiles
自动模式:根据RSI波动率百分位自动选择最优过滤器
- **5 Filter Modes**: Fixed 50, Adaptive P50, SMA(RSI), BB(RSI), or Auto
5种过滤模式:固定50、自适应P50、RSI均线、布林带或自动
- **Smart Selection**: Low volatility → Fixed 50, Medium → Adaptive P50, High → BB(RSI)
智能选择:低波动→固定50,中波动→自适应P50,高波动→布林带
### 🌍 Multi-Timeframe RSI / 多时间框架RSI
- **3 Configurable Timeframes**: View RSI status across multiple timeframes (default: 1h/4h/D)
3个可配置时间框架:跨周期查看RSI状态(默认:1小时/4小时/日线)
- **Auto-Skip Duplicates**: Automatically detects and skips timeframes matching current chart
自动跳过重复:自动检测并跳过与当前图表相同的时间框架
- **Resonance Detection**: Triggers when 3+ valid timeframes agree (oversold/overbought)
共振检测:当3个以上有效时间框架一致时触发强信号
>
> **MTF Signal Confirmation Timing / 信号确认时机**
>
> - Current timeframe signals update in real-time, confirmed on bar close
> - Higher timeframe signals (e.g., Daily on 1H chart) only update after that timeframe's bar closes
> - **Best Practice**: Wait for current timeframe bar close before acting on MTF resonance signals
>
> - 当前图表周期的信号:实时更新,K线收盘确认
> - 高周期信号(如日线):仅在该周期K线收盘后更新
> - **最佳实践**:MTF共振信号建议在当前周期K线收盘后再做交易决策
### 💎 Auto-Adaptive Divergence Detection / 自动自适应背离检测
- **Auto Mode**: Automatically selects parameters based on asset volatility (using ATR)
自动模式:基于资产波动率(ATR)自动选择参数
- **4 Preset Modes**: Low Vol (3/40), Normal (5/60), High Vol (7/80), Crypto (10/120)
4种预设模式:低波动/普通/高波动/加密货币,分别对应不同的回看/范围参数
- **Extreme Zone Detection**: Distinguishes divergence in extreme zones (💎) vs normal zones (↗️↘️)
极端区域检测:区分极端区域背离(💎)和普通背离(↗️↘️)
- **Bullish/Bearish Divergence**: Price lower low + RSI higher low / Price higher high + RSI lower high
看涨/看跌背离:价格新低+RSI未新低 / 价格新高+RSI未新高
### 📊 Layered Signal Statistics / 分层信号统计
- **4-Tier Classification**: MTF Resonance (🌟) > Divergence+Extreme (💎) > Extreme Only (🔥❄️) > Normal (⬆️⬇️)
四层分级:多周期共振 > 背离+极端 > 仅极端 > 普通信号
- **Independent Tracking**: Each signal tier has separate count, average return, and win rate
独立跟踪:每层信号独立统计次数、平均收益、胜率
- **Signal Cooldown**: Optional cooldown period (default 5 bars) to prevent duplicate counting
信号冷却:可选冷却期(默认5根K线)防止重复计数
- **Real Forward Testing**: Calculates actual returns N bars after signal (configurable 5-100 bars)
真实前瞻测试:计算信号后N根K线的实际收益(可配置5-100)
---
## Z-Score 与 百分位:双重视角 / Dual Perspective
This indicator displays **both Z-Score and Percentile** to provide complementary views of the same RSI distribution.
本指标**同时显示Z-Score和百分位**,为同一RSI分布提供互补视角。
### Why Both? / 为什么同时显示?
**Fundamental Connection / 本质关联**:
两者都是描述RSI在历史分布中位置的统计方法。
Both are statistical methods describing RSI's position in historical distribution.
- **Z-Score(标准分数)**: `(RSI - 均值) / 标准差` - 基于正态分布假设
Based on normal distribution assumption.
- **百分位(Percentile)**: RSI在历史数据中的排名位置 - 不假设分布类型
RSI's ranking position in historical data - no distribution assumption.
**Complementary Advantages / 互补优势**:
| Dimension 维度 | Z-Score | Percentile 百分位 |
|------|---------|------------|
| **Cross-asset Consistency / 跨资产一致性** | ✅ Excellent 优秀 - BTC和SPY都用±2σ | ⚠️ Varies by volatility 因波动率不同而异 |
| **Statistical Rigor / 统计学严谨性** | ✅ Confidence intervals 置信区间、假设检验 | ⚠️ Non-parametric 非参数统计 |
| **Intuitive / 直观易懂** | ⚠️ Stats knowledge needed 需要统计学知识 | ✅ "Below 95% of history" "低于95%历史值" |
| **Use Case / 适用场景** | 📊 Quant backtesting 量化回测、信号触发 | 📈 Visualization 可视化、用户理解 |
### Conversion Reference / 转换对照表
**Quick Reference / 快速对照**(Assuming normal distribution / 假设正态分布):
| Z-Score | Percentile 百分位 | Meaning 含义 | Signal 信号类型 |
|---------|--------|---------------|----------|
| **±2.5σ** | **P0.6 / P99.4** | Extreme anomaly (outside 99% CI) / 极端异常(99%置信区间外) | Rare opportunity 罕见机会 |
| **±2.0σ** | **P2.3 / P97.7** | Extreme OB/OS (outside 95% CI) / 极端超买/超卖(95%置信区间外) | 🔥❄️ Extreme 极端信号 |
| ±1.5σ | P6.7 / P93.3 | Notable deviation / 显著偏离 | ⬆️⬇️ Normal 普通信号(默认) |
| ±1.0σ | P15.9 / P84.1 | Mildly strong/weak / 轻度偏强/偏弱 | — |
| 0σ | P50 | Median / 中位数 | — |
### Dashboard Dual Display / 仪表盘双重显示
**新版Dashboard已实现自动转换**:
```
┌─────────────────────────────────┐
│ ADAPTIVE RSI PRO 28.5 │
├─────────────────────────────────┤
│ Z-Score −2.15σ (≈P2) │ ← Z值 + 近似百分位
│ Percentile P5 (−1.5σ ~ −2σ) │ ← 百分位 + 对应Z值范围
│ Status 🟢 EXTREME OVERSOLD │
└─────────────────────────────────┘
```
**理解方式**:
- **从Z值看**:−2.15σ 表示超过95%置信区间,统计异常 → 对应约P2
- **从百分位看**:P5 表示低于95%历史值,极端超卖 → 对应约−1.5σ到−2σ之间
### Threshold Line Modes / 阈值线模式
**Unified Mode (Recommended) / Unified模式(推荐)** - Balances rigor and intuitiveness / 兼顾严谨性和直观性:
- Draws: Z-Score threshold lines (±2σ, ±1.5σ) / 绘制:Z-Score阈值线(±2σ、±1.5σ)
- Labels: Corresponding percentiles (≈P98, ≈P93, ≈P7, ≈P2) / 标注:对应百分位(≈P98、≈P93、≈P7、≈P2)
- Advantage: Instantly understand statistical meaning and historical position / 优势:一眼看懂统计意义和历史位置
**Other Modes / 其他模式**:
- `Z-Score`: Statistical threshold lines only / 仅显示统计学阈值线
- `Percentile`: Percentile lines only / 仅显示百分位线
- `Both`: Display both types (denser) / 同时显示两类线(较密集)
### Practical Examples / 实际应用示例
**Scenario 1: Identifying Extreme Opportunities / 场景1:识别极端机会**
```
Current RSI / 当前RSI: 25.3
Dashboard shows / Dashboard显示:
Z-Score: −2.35σ (≈P1)
Percentile: P5 (< −2σ)
Status: 🟢 EXTREME OVERSOLD
Interpretation / 解读:
• Statistical perspective / 统计学视角: Beyond 99% confidence interval (|Z| > 2.3) / 超过99%置信区间,极端异常
• Intuitive perspective / 直观视角: Lower than 99% of historical values / 低于99%的历史值都低,罕见超卖
• Conclusion / 结论: Strong buy signal 🔥 / 强力买入信号 🔥
```
**Scenario 2: Normal Signal Judgment / 场景2:普通信号判断**
```
Current RSI / 当前RSI: 63.8
Dashboard shows / Dashboard显示:
Z-Score: +1.52σ (≈P94)
Percentile: P90 (+1.5σ ~ +2σ)
Status: 🟠 OVERBOUGHT
Interpretation / 解读:
• Statistical perspective / 统计学视角: ~1.5 std dev, notably high but not extreme / 约1.5倍标准差,显著偏高但未极端
• Intuitive perspective / 直观视角: Higher than 90% of historical values / 高于90%的历史值,轻度超买
• Conclusion / 结论: Consider reducing position, not forced sell ⬇️ / 考虑减仓,非强制卖出 ⬇️
```
### Dashboard Display Logic / Dashboard显示逻辑
**Z-Score Row Display / Z-Score行显示**:
- Always shows current Z-value (2 decimal places) / 始终显示当前Z值(精确到2位小数)
- Auto-calculates approximate percentile: `≈P ` / 自动计算对应的近似百分位:`≈P `
- Uses Error Function for precise conversion / 使用误差函数(Error Function)精确转换
**Percentile Row Display / Percentile行显示**:
- Shows RSI's percentile range (P5, P10, P25, etc.) / 显示RSI所处的百分位区间(P5, P10, P25等)
- Labels corresponding Z-value range (e.g., `−1.5σ ~ −2σ`) / 标注对应的Z值范围(如:`−1.5σ ~ −2σ`)
- Helps understand what "P10" means statistically / 帮助理解"P10"的统计意义
**Color Association / 颜色关联**:
- Both rows use same status color (green/yellow/white/orange/red) / 两行使用相同的状态颜色(绿/黄/白/橙/红)
- Visually reinforces "same indicator, different expressions" / 视觉上强化"同一指标的不同表达"概念
---
### Dashboard Setups / 仪表盘配置
#### Full Mode (PC/Tablet)
Shows detailed stats, MTF status, and divergence info.
显示详细统计、MTF状态和背离信息。
#### Mobile Mode (Phone) / 手机模式
Simplified 3-row layout optimized for small screens.
极简3行布局,专为手机屏幕优化。
- Row 1: RSI Value / 第1行:RSI数值
- Row 2: Signal Status (Emoji) / 第2行:信号状态 (Emoji)
- Row 3: Trend/Filter Status / 第3行:趋势/过滤状态
### 📈 Dashboard Example / 面板示例
```
┌─────────────────────────────────┐
│ ADAPTIVE RSI PRO 35.2 │
├─────────────────────────────────┤
│ Status 🟢 EXTREME OVERSOLD │
│ Percentile P10 ↓ DOWN │
│ Lookback 456 ✅✅✅ │
├─────────────────────────────────├ (Full Mode Only)
│ ── MTF ── │
│ 1h | 4h | D 🟢 | ⚪ | 🟢 │
│ Resonance 🟢 3/4 OVERSOLD │
├─────────────────────────────────┤
│ Divergence 🟢 BULL (5/60) │
├─────────────────────────────────┤
│ ── STATS ── (20 bars) │
│ 🌟 MTF Buy(12) +4.2% | 83% │
│ 🌟 MTF Sell(8) +3.8% | 75% │
│ 💎 Div Buy(15) +3.5% | 80% │
│ 💎 Div Sell(11) +2.9% | 73% │
│ 🔥 Ext Buy(45) +2.1% | 67% │
│ ❄️ Ext Sell(38) +1.8% | 63% │
└─────────────────────────────────┘
```
**Health Indicators / 健康度指标**:
- ✅✅✅ = All healthy (所有健康): Sample coverage ≥ 80%, Distribution spread ≥ 15, Statistical validity ≥ 90%
- ⚠️ present = Warning (警告): One or more health checks failed, consider using Custom mode with larger lookback
---
## Chart Lines Guide / 图表线条指南
! (images/annotated_rsi_indicator.png)
### 📊 主要线条 / Main Lines
| 线条 | 颜色/样式 | 含义 | 作用 |
|------|----------|------|------|
| **RSI主线** | 黄色粗线 | 当前RSI值 | 实时跟踪相对强弱指标 |
| **P50 自适应中位数** | 白色阶梯线 | 动态中线 | 根据历史数据自动调整的中位数,比固定50更准确 |
### 🔴 超买阈值线 / Overbought Thresholds (上方红色)
| 线条 | Z-Score | 百分位 | 样式 | 信号 |
|------|---------|--------|------|------|
| **极端超买线** | +2σ | ≈P98 | 实线 | 触发 ❄️ 极端超买信号(强卖出) |
| **普通超买线** | +1.5σ | ≈P93 | 圆点虚线 | 触发 ⬇️ 普通超买信号(考虑卖出) |
### 🟢 超卖阈值线 / Oversold Thresholds (下方绿色)
| 线条 | Z-Score | 百分位 | 样式 | 信号 |
|------|---------|--------|------|------|
| **极端超卖线** | -2σ | ≈P2 | 实线 | 触发 🔥 极端超卖信号(强买入) |
| **普通超卖线** | -1.5σ | ≈P7 | 圆点虚线 | 触发 ⬆️ 普通超卖信号(考虑买入) |
### ⚪ 固定参考线 / Fixed Reference Lines
| 线条 | 位置 | 样式 | 作用 |
|------|------|------|------|
| **0线** | 底部 | 灰色点线 | RSI下边界 |
| **50线** | 中间 | 灰色点线 | 传统固定中线参考 |
| **100线** | 顶部 | 灰色点线 | RSI上边界 |
### 🎨 渐变填充区域 / Gradient Fill Zones
- **红色渐变**(上方):超买区域,颜色越深表示越极端
- P95-P90(深红)> P90-P75(中红)> P75-P50(浅红)
- **绿色渐变**(下方):超卖区域,颜色越深表示越极端
- P10-P5(深绿)> P25-P10(中绿)> P50-P25(浅绿)
### 💡 关键要点 / Key Points
**线条样式区分 / Line Style Distinction:**
- **实线** = 极端信号(±2σ),优先级高,统计上95%置信区间外
- **圆点虚线** = 普通信号(±1.5σ),优先级较低,显著偏离但未极端
**动态 vs 固定 / Dynamic vs Fixed:**
- **彩色线**(红/绿)= 根据历史波动动态调整,适应不同资产特性
- **灰色虚线** = 固定不变的参考线,用于传统RSI对比
**视觉层次 / Visual Hierarchy:**
- 线条粗细:RSI主线(最粗)> 极端阈值(粗)> 普通阈值(细)> 参考线(最细)
- 透明度:核心线条(不透明)> 百分位线(半透明)> 填充区(高透明)
---
## Settings / 设置
### RSI Settings / RSI设置
| Setting | Default | Description |
|---------|---------|-------------|
| RSI Length | 14 | RSI calculation period / RSI计算周期 |
| RSI Source | Close | Price source / 价格源 |
### Adaptive Settings / 自适应设置
| Setting | Default | Description |
|---------|---------|-------------|
| Lookback Mode | Auto | Auto (statistical formula) / Custom / 自动/自定义 |
| Custom Lookback | 252 | Only used in Custom mode / 仅自定义模式使用 |
| Precision | Normal | High/Normal/Low: Adjusts error tolerance / 精度等级 |
| History Depth | 1 Year | 6 Months / 1 Year / 2 Years for volatility calculation / 波动率历史深度 |
### Visual Settings / 视觉设置
| Setting | Default | Description |
|---------|---------|-------------|
| Threshold Line Mode | **Unified** | Unified(推荐)/Z-Score/Percentile/Both / 阈值线模式 |
| Show Gradient Fill | ON | Display background gradients / 显示背景渐变 |
| Show Dashboard | ON | Display dashboard panel / 显示仪表盘面板 |
| Dashboard Mode | Full | Full/Lite/Mobile(Phone) / 面板模式 |
| Dashboard Size | Normal | Tiny/Small/Normal/Large / 面板大小 |
| Dashboard Transparency | 30 | 0-100% transparency level / 透明度 |
| Bullish Color | #00E676 | Custom color for bullish signals / 牛市信号颜色 |
| Bearish Color | #FF5252 | Custom color for bearish signals / 熊市信号颜色 |
| RSI Line Color | #FFEB3B | RSI line color / RSI主线颜色 |
### Trend Filter / 趋势过滤
| Setting | Default | Description |
|---------|---------|-------------|
| Enable Trend Filter | OFF | Only trigger signals in trend direction / 趋势方向过滤 |
| Filter Mode | Auto | Auto/Fixed 50/Adaptive P50/SMA(RSI)/BB(RSI) / 过滤模式 |
### Alert Settings / 警报设置
| Setting | Default | Description |
|---------|---------|-------------|
| **🎯 Smart Alert** | **ON** | **V6 Unified Alert System** / V6统一警报系统 |
| Show Normal Signals | OFF | Display ⬆️⬇️ on chart / 图表显示普通信号 |
| Normal Signal Threshold | 1.5σ | Z-Score threshold (1.0-2.0σ) / 普通信号阈值 |
| Enable Signal Cooldown | ON | Prevent duplicate signal counting / 防止重复信号 |
| Cooldown Period | 5 bars | Bars between same signal type / 冷却K线数 |
### Multi-Timeframe / 多时间框架
| Setting | Default | Description |
|---------|---------|-------------|
| Enable | ON | Show MTF analysis / 显示MTF分析 |
| MTF Mode | **Auto** | **Auto** (Fractal Breakdown) / **Manual** (Fixed) / 自动/手动模式 |
| TF1/TF2/TF3 | 60/240/D | Timeframes (Manual mode only) / 时间框架(仅手动模式)|
### Signal Statistics / 信号统计
| Setting | Default | Description |
|---------|---------|-------------|
| Enable | ON | Track performance / 跟踪表现 |
| Forward Bars | 20 | Bars for return calculation / 收益计算K线数 |
### Divergence Detection / 背离检测
| Setting | Default | Description |
|---------|---------|-------------|
| Enable Detection | ON | Detect divergences / 检测背离 |
| Divergence Mode | Auto | Auto/Low Vol/Normal/High Vol/Crypto/Custom / 背离模式 |
| Custom Lookback | 5 | Only in Custom mode / 仅自定义模式使用 |
| Custom Range | 60 | Only in Custom mode / 仅自定义模式使用 |
**Auto Mode Presets / 自动模式预设**:
- Low Vol (蓝筹/ETF): Lookback 3, Range 40
- Normal (一般股票): Lookback 5, Range 60
- High Vol (成长股): Lookback 7, Range 80
- Crypto (加密货币): Lookback 10, Range 120
---
## Alerts / 警报
### 🎯 Smart Alert (V6 Unified System)
**The only alert method / 唯一的警报方式** - 自动聚合所有信号到一条富文本消息
Automatically aggregates all signals into a single rich-text message.
**Setup Steps / 设置方法**:
1. Keep "🎯 Smart Alert" enabled in indicator settings (default) / 指标设置中保持 "🎯 Smart Alert" 开启(默认)
2. When creating alert, select **"Any alert() function call"** / 创建警报时选择 **"Any alert() function call"**
3. Done! You'll receive real-time aggregated alerts / 完成!您会收到实时的聚合警报
**Message Example / 消息示例**:
```
AAPL: 🟢 BUY SIGNALS → 🌟MTF共振 💎背离 🔥极端 | RSI:25.3 Z:-2.1σ (≈P2)
AAPL: 🔴 SELL SIGNALS → ❄️极端 | RSI:78.5 Z:2.3σ (≈P98)
```
**Features / 特性**:
- ✅ **Real-time trigger / 实时触发** - Sends when condition met within bar / K线运行中触发条件即发送
- ✅ **Anti-flicker / 防闪烁** - Uses `varip` to prevent duplicate alerts from signal flickering within same bar / 使用 `varip` 防止信号闪烁导致同一K线内重复警报
- ✅ **Signal upgrade detection / 信号升级检测** - Alerts when stronger signal appears (e.g., 🔥Extreme → 🌟MTF) even on same bar / 同一K线内出现更强信号时也会触发(如:🔥极端 → 🌟MTF共振)
- ✅ **Full context / 完整上下文** - Includes RSI value, Z-Score, approximate percentile / 包含RSI值、Z-Score、近似百分位
- ✅ **Auto-aggregation / 自动聚合** - One message contains all triggered signals / 一条消息包含所有触发的信号
- ✅ **Buy/Sell independent tracking / 买卖独立追踪** - Buy and Sell alerts tracked separately / 买入和卖出警报独立追踪,互不干扰
**Signal Priority Levels / 信号优先级**:
| Level 等级 | Signal 信号 | Description 描述 |
|------------|-------------|------------------|
| 4 (Highest) | 🌟 MTF Resonance | Multi-timeframe agreement / 多周期共振 |
| 3 | 💎 Divergence | Divergence + Extreme zone / 背离+极端区 |
| 2 | 🔥❄️ Extreme | Extreme oversold/overbought / 极端超卖/超买 |
| 1 (Lowest) | ⬆️⬇️ Normal | Normal oversold/overbought / 普通超卖/超买 |
---
## Usage Tips / 使用建议
| Timeframe | Lookback | Use Case |
|-----------|----------|----------|
| Daily | 252 | Swing trading / 波段交易 |
| 4H | 1000 | Short-term / 短线 |
| 1H | 2000 | Day trading / 日内交易 |
**Best Practices / 最佳实践:**
1. Focus on 🌟 and 💎 signals (highest priority) / 优先关注 🌟 和 💎 信号(最高优先级)
2. Use MTF resonance for high-confidence entries / 使用 MTF 共振确认高置信度入场
3. Check win rate in stats before trading / 交易前查看统计胜率
---
## Changelog / 更新日志
### v6.2 - Smart Alert Anti-Flicker / 智能防抖警报 (Current / 当前版本)
- 🛡️ **Anti-flicker Mechanism / 防闪烁机制**: Fixed issue where signal flickering caused multiple duplicate alerts within same bar. Now uses `varip` to track alert status per bar. / 修复信号闪烁导致同一K线内发送多次重复警报的问题,使用 `varip` 追踪每根K线的警报状态。
- 📈 **Signal Upgrade Detection / 信号升级检测**: Tracks signal priority level (MTF=4, Divergence=3, Extreme=2, Normal=1). Sends new alert when stronger signal appears on same bar. / 追踪信号优先级等级。同一K线内出现更强信号时会发送新警报。
- 🔄 **Independent Buy/Sell Tracking / 买卖独立追踪**: Buy and Sell alerts are tracked independently, allowing direction changes within same bar. / 买入和卖出警报独立追踪,允许同一K线内捕捉方向变化。
### v6.1 - Mobile Experience / 移动端体验
- 📱 **Mobile Dashboard / 手机端面板**: Added simplified "Mobile" mode optimized for phone screens (RSI + Signal Emoji only). / 新增简化的"Mobile"模式,针对手机屏幕优化(仅显示RSI+信号Emoji)。
- 🔥 **Persistent Zone Status / 持续区域状态**: Mobile Dashboard now shows persistent extreme zone indicators when no new signal but RSI remains in zone: `🔥持续` (Extreme Oversold), `❄️持续` (Extreme Overbought), `⬆️区` (Oversold), `⬇️区` (Overbought). / 手机端面板现在显示持续极端区域指示器:无新信号但RSI仍在区域内时显示持续状态。
- 🔧 **UX Improvements / 用户体验优化**: Optimized font sizes and layout for small screens. / 优化字体大小和小屏幕布局。
### v6.0 - Alert System Simplification & V6 Optimization / 警报系统简化与V6优化
- 🎯 **Smart Alert System / 智能警报系统简化**:
- **Unified entry / 唯一警报入口**: Removed all legacy alertcondition, unified to V6 Smart Alert / 移除所有legacy alertcondition,统一为V6 Smart Alert
- **Real-time trigger / 实时触发**: Changed to `alert.freq_once_per_bar` for intra-bar response / 改为 `alert.freq_once_per_bar` 实现K线内实时响应
- **Smart dedup / 智能去重**: Rising edge detection (`signal and not signal `) / 上升沿检测,只在新信号出现时触发
- **Auto-aggregation / 自动聚合**: Single message with all signals + RSI + Z-Score + Percentile / 单条消息包含所有触发信号 + RSI + Z-Score + 百分位
- **Simplified settings / 简化设置**: Removed "Extreme Alerts" and "Normal Alerts", only Smart Alert toggle / 移除 "Extreme Alerts" 和 "Normal Alerts",只保留Smart Alert开关
- 🛠 **Performance Optimization / 性能优化**:
- Reduced `request.security` calls by 50% using Tuple Requests / 使用元组请求减少50%的`request.security`调用
- Implemented `str.format()` for cleaner and faster string processing / 实现`str.format()`使字符串处理更简洁高效
- 🧹 **Code Cleanup / 代码清理**:
- Refactored timeframe display and alert logic / 重构时间框架显示和警报逻辑
- Fixed plot limit issues and tuple assignment syntax / 修复绑点限制问题和元组赋值语法
- Unified plot titles with percentile annotations / 统一绑点标题与百分位标注
### v5.0 - Adaptive Fractal MTF / 自适应分形MTF
- 🧠 **Adaptive Fractal MTF / 自适应分形MTF**: New "Auto" mode automatically selects lower timeframes for precision structure analysis (Internal Fractal Resonance). / 新增"Auto"模式,自动选择更低时间框架进行精确结构分析(内部分形共振)。
- Daily Chart → Analyzes 1H & 4H / 日线图 → 分析1小时和4小时
- 1H Chart → Analyzes 5m & 15m / 1小时图 → 分析5分钟和15分钟
- 15m Chart → Analyzes 1m & 5m / 15分钟图 → 分析1分钟和5分钟
- 🛠 **Code Refactoring / 代码重构**: Implemented Pine Script v6 UDTs (Objects) and Methods for robust signal statistics. / 实现Pine Script v6 UDT(对象)和方法,增强信号统计的健壮性。
- 🎨 **Dashboard Optimization / 面板优化**: Enhanced string formatting using `str.format` for cleaner display. / 使用`str.format`优化字符串格式,显示更简洁。
### v4.0 - Pine Script v6 Upgrade / Pine Script v6升级
- 🚀 Upgraded entire codebase to **Pine Script v6** engine / 将整个代码库升级到 **Pine Script v6** 引擎
- ⚡ Optimization for better performance and future-proofing / 性能优化,面向未来
- 🛠 Maintenance updates for latest TradingView standards / 维护更新以符合最新TradingView标准
### v3.0 - Auto-Adaptive Systems / 自动自适应系统
- ✨ Auto-adaptive lookback using formula `n = (Z × σ / E)²` / 使用统计公式 `n = (Z × σ / E)²` 自动计算回看期
- ✨ Auto-adaptive trend filter with 5 modes / 5种模式的自动自适应趋势过滤器
- ✨ Auto-adaptive divergence detection with 4 presets / 4种预设的自动自适应背离检测
- ✨ Layered statistics (MTF/Divergence/Extreme/Normal) / 分层统计系统(MTF/背离/极端/普通)
- ✨ Signal cooldown to prevent duplicate counting / 信号冷却机制防止重复计数
- ✨ Health indicators for lookback validation / 回看期健康度指标验证
- ✨ Dashboard modes (Lite/Full) with customization / 面板模式(Lite/Full)支持自定义大小和透明度
- ✨ Dual volatility system (short + long-term) / 双重波动率系统(短期+长期)
### v2.1 - Signal Optimization / 信号优化
- ✨ Consolidated signals with priority system / 信号合并与优先级系统(无重叠)
- ✨ Emoji-based signal display / 基于Emoji的信号显示
- ✨ MTF timeframe auto-skip for duplicates / MTF时间框架自动跳过重复
### v2.0 - Pro Edition / 专业版
- ✨ Added Trend Filter, MTF RSI, Statistics, Divergence / 新增趋势过滤、MTF RSI、统计、背离检测
- ✨ Z-Score based signal triggering / 基于Z-Score的信号触发
### v1.0 - Initial Release / 初始发布
- ✨ Adaptive percentile-based thresholds / 自适应百分位阈值
---
## License
MIT License - Feel free to use, modify, and share.
MARKET CONDITIONS TOOLBOX PROMARKET CONDITIONS TOOLBOX PRO** is a visual market-state dashboard designed to summarize multiple technical conditions of the S&P 500 ETF (SPY) in a single table.
The script pulls SPY data from user-selectable higher timeframes (daily by default) and evaluates several widely used technical indicators, converting each into a simple **Bullish / Neutral / Bearish** status. The results are displayed in a compact table for quick reference.
Indicators included:
-Directional Strength (based on directional movement)
-MACD (positive vs. negative momentum)
-RSI (above or below midpoint)
-Stochastic Oscillator
-CCI
-Momentum Velocity (custom weighted momentum calculation)
-SPY daily candle direction (green/red/neutral)
Each indicator is assessed independently using objective threshold rules (for example, above or below zero or 50). No indicator is modified to repaint or look ahead.
An overall Market Condition is shown:
-Bullish when all indicators and the SPY daily candle align positively
-Bearish* when all indicators and the SPY daily candle align negatively
-Neutral when conditions are mixed
A simplified -Risk Status- (“Risk On”, “Risk Off”, or “Neutral”) mirrors this alignment to provide a high-level market context.
Key characteristics:
-Uses SPY as a broad market proxy
-Multi-timeframe capable via user inputs
-Non-predictive, informational display only
-No alerts, trade entries, exits, or signals
-Designed for market context, not automation
I use this tool really to gauge risk, when i'm paying with the direction of the market, when to risk off.
ORB Pro - NY Opening Range Breakout by Elev8+ORB Pro - NY Opening Range Breakout | Smart Support & Resistance
ORB Pro is a comprehensive, professional-grade toolkit designed for intraday traders who rely on the Opening Range Breakout (ORB) strategy.
Unlike standard ORB indicators that simply draw lines, this suite offers a complete dashboard-driven system that monitors four distinct sessions simultaneously, providing real-time status updates and precision alerts.
— — —
🎯 What is the Opening Range Breakout (ORB)?
The Opening Range is the price range established during the first period of the trading session (e.g., the first 15 or 30 minutes). This period represents the initial balance between buyers and sellers. A breakout from this range often signals the likely trend direction for the remainder of the session.
— — —
🚀 Key Features
1. Multi-ORB Monitoring
Stop switching settings constantly. This suite monitors four key ranges at once:
Pre-Market 15m (08:00 – 08:15 ET)
Pre-Market 30m (08:00 – 08:30 ET)
NY Cash Open 15m (09:30 – 09:45 ET)
NY Cash Open 30m (09:30 – 10:00 ET)
2. Smart Status Dashboard
A compact panel in the bottom-right corner gives you the live state of every session:
⏳ Waiting: The session has not started yet.
⚡ Forming: The range is currently being built.
↔️ Range: The range has formed, but price is still contained within the range.
🚀 BULL / 📉 BEAR: A confirmed breakout has occurred.
⛔ OFF: The session is disabled in settings.
3. "Dynamic Resolution" Technology
This is a unique pro feature.
Precision: The script always calculates the High/Low levels using 1-minute data , ensuring your support/resistance lines are pixel-perfect regardless of your chart timeframe.
Flexibility: Breakout signals (Alerts/Labels) are triggered based on your current chart timeframe. This allows you to trade a 5m or 15m breakout strategy while keeping 1m-level precision on your levels.
4. Visual Clarity
Breakout Labels: Automatically plots "BULL" or "BEAR" labels on the exact candle that confirms a breakout.
Profit Targets: Optional toggle to show 1x and 2x profit targets projected from the breakout level.
Time-Bound Signals: Signals are strictly time-bound to the active window to prevent late, low-quality alerts.
— — —
🛠️ How to Use
Add to Chart: Works best on intraday timeframes (1m, 5m, 15m).
Configure: Enable the sessions you trade (e.g., NY 15m) in the settings.
Wait for Forming: Watch the box form live. The dashboard will show "⚡ Forming".
Trade the Break: Wait for a candle Close outside the range. The dashboard will flip to "BULL" or "BEAR" and a label will appear.
Manage Risk: Use the opposite side of the range or the midline as your stop loss.
— — —
⚙️ Settings Overview
Global Settings: Toggle forming boxes, dashboard, and label visibility.
Breakout Method: Choose between Close (safer) or Wick (aggressive) for signal triggers.
Session Groups: Individually enable/disable the 4 distinct sessions and customize their colors/styles.
— — —
📝 Update Notes (Recent)
New PDH/PDL Levels: Added the ability to display Previous Day High and Previous Day Low lines on the chart.
Auto-Update & Cleanup: The PDH/PDL lines now automatically update daily and erase historical lines, ensuring only the current day's levels are visible to keep the chart clean.
Dashboard Positioning: Added a new setting to move the Status Dashboard to any corner of the screen.
Enhanced Customization: Added full styling options in settings for PDH/PDL lines and Dashboard positioning.
— — —
Disclaimer: This tool is for educational and analytical purposes only. Past performance of a strategy does not guarantee future results. Always manage your risk.
Market StateIdentifies market regime (Expansion, Crawl, Compression, Reversion, Chop) using VWAP-based auction theory and volatility analysis.
Full Description:
This indicator combines Auction Market Theory with Volatility Regime Detection to classify the current market state and highlight key auction events.
🎯 Market States (Background Colors)
EXPANSION (lime) — Strong directional move, price outside value zone
CRAWL (green) — Trending move with price acceptance
REVERSION (orange) — Mean reversion back to value after deviation
COMPRESSION (blue) — Tight range, accumulation/distribution phase
CHOP (red) — Choppy, directionless price action
📍 Event Markers
ACC↑ / ACC↓ — Price acceptance above/below VWAP (A of B bars closed on one side)
REJ — Rejection at extreme (breakout + long wick)
RCLM — Value reclaim (price returns to value zone)
LOSS — Value loss (price breaks out of value zone)
📊 Key Components
VWAP — Dynamic fair value reference
Value Zone — VWAP ± k×ATR band (configurable)
Range/ATR Ratio — Volatility regime detection
EMA Slope — Trend direction proxy
💡 Trading Logic
COMPRESSION → Wait for breakout
EXPANSION → Follow the trend
REVERSION/REJ → Look for mean reversion trades
CHOP → Avoid or scalp range boundaries
⚙️ Settings
All parameters are fully customizable: ATR length, acceptance window, rejection thresholds, compression/expansion levels, and visual toggles.
NCL Noise FilterOne of our Favorite Indicators - the NeoChartLabs Noise Filter.
FILTER OUT THE NOISE and focus on the moves that matter, toggle the settings to match your preference.
Or switch the Duration Setting to Institutional on a high timeframe (1W+) to locate great spot buying opportunities near cycle tops and bottoms.
Volume Filter: The volume filter automatically turns OFF when you switch to Major Macro Cycle or Institutional Baseline, as those high-timeframe structural breaks are often valid even on lower relative volume.
You can change the volume requirement by checking the volume of the current breakout bar against its Relative Volume (RVOL) - A setting of 0 turns this OFF.
A common professional standard is to require the breakout volume to be at least 1.5x to 2x higher than the 20-period average volume.
*we recommend using a higher volume setting on low timeframes under the 4HR to reduce false signals.
MTF Filter:
*we recommend to set at least 1 timeframe above your trade (i.e if you enter on the 2hour set to the 4 hour)
It prevents entering trades that are essentially minor pullbacks in a much larger opposing trend.
By integrating a higher timeframe EMA (e.g., a 200-period EMA from a 4x higher timeframe), you can filter out counter-trend trades that have a higher probability of failing.
ATR Filter:
Filters "Fake-Outs": It forces the price to not just "touch" the trendline, but to break it with enough force to clear the current average volatility.
Adaptive: Unlike a fixed pip/dollar amount, the ATR adjusts to the asset. On Bitcoin, the threshold might be $500; on a penny stock, it might be $0.05.
Bullish Cross: The price must close above the support trendline + (0.5 * ATR).
Bearish Cross: The price must close below the resistance trendline - (0.5 * ATR).
MACD Filter:
Bullish Crosses require the MACD Histogram to be increasing (showing positive momentum acceleration).
Bearish Crosses require the MACD Histogram to be decreasing (showing negative momentum acceleration).
RSI Filter:
Bullish Breakout (Cross of the lower/support trendline): You would want the RSI to be rising or above 50, showing that buyers are in control.
Bearish Breakdown (Cross of the upper/resistance trendline): You would want the RSI to be falling or below 50, showing sellers are in control.
Market Structure Shifts (CHoCH) - identifying Trends with bullish/bearish dashed horizontal lines for each CHoCH providing a cleaner visualization of the support or resistance level that price has just violated.
Duration Table for 1Week Charts
Trading Style Fractal Length (p) Pattern Span Confirmation Delay
Standard Swing 2 5 Weeks 2 Weeks
Intermediate Trend 5 11 Weeks 5 Weeks
Major Macro Cycle 10–20 21–41 Weeks 10–20 Weeks
Institutional Baseline 44 ~2 Years ~10 Months
Pi Strategy Cross Harmonicsstill customizing this one, buy and sell seems to off on alternate time settings.
a work in progress, see if this works for anyone.
thanks again.






















