stock-vs-industry using NQUSB benchmark idexesOriginal idea from Stock versus Industry by Tr33man .
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
═══ PRIMARY IMPROVEMENT: NQUSB Hierarchical Index Benchmarks ═══
The KEY improvement: Multi-Level Industry Granularity with Drill-Down/Drill-Up Navigation
From: Simple ETF Comparison (1 Level) Stock → Industry ETF (e.g., "SOXX" for all semiconductors)
To: NQUSB Hierarchical Comparison (4 Levels)
Level 4 (Primary): NQUSB10102010 → Semiconductors (most specific)
Level 3 (Secondary): NQUSB101020 → Technology Hardware and Equipment
Level 2 (Tertiary): NQUSB101010 → Software and Computer Services
Level 1 (Quaternary): NQUSB10 → Technology (broadest sector)
Users can now drill up and down the industry hierarchy to see how their stock performs against different levels of industry classification!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
═══ WHY THIS MATTERS ═══
Original Limitations:
Single comparison level - ETF only
No drill-down capability - Can't zoom in to more specific industries
No drill-up capability - Can't zoom out to broader sectors
ETF limitations - Not all industries have dedicated ETFs
Arbitrary mappings - Manual ETF selection may not represent true industry
Improved Capabilities:
4-level hierarchical navigation - Drill-down and drill-up through industry classifications
361 NQUSB official indices - NASDAQ US Benchmark Index structure
Official NASDAQ classification - Industry-standard taxonomy
Large Mid Cap (LM) option - Focus on larger companies when needed
Enhanced UI - Clear level indicators and full index descriptions
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
═══ EXAMPLE: ANALYZING NVDA (Semiconductors) ═══
Level 4 - Primary (Most Specific):
NQUSB10102010 - Semiconductors
→ NVDA vs. AMD, AVGO, QCOM, TXN, etc. (direct competitors)
Level 3 - Secondary (Broader):
NQUSB101020 - Tech Hardware & Equipment
→ NVDA vs. AAPL, CSCO + semiconductors
Level 2 - Tertiary (Even Broader):
NQUSB101010 - Software and Computer Services
→ NVDA vs. all tech hardware
Level 1 - Quaternary (Broadest):
NQUSB10 - Technology Sector
→ NVDA vs. entire technology sector
You can now zoom in to see direct competitors or zoom out to understand macro sector trends - all in one indicator!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
═══ COMPARISON SUMMARY ═══
Original Version:
Comparison System: Industry ETFs
Industry Levels: 1 (flat ETF mapping)
Total Classifications: ~140 industries
Hierarchy Navigation: ❌ No
Data Source: Manual ETF curation
Improved Version:
Comparison System: NQUSB Official Indices
Industry Levels: 4 (hierarchical drill-down/up)
Total Classifications: 361 NQUSB indices
Hierarchy Navigation: ✅ 4-level drill navigation
Data Source: NASDAQ official taxonomy
Large/Mid Cap Option: ✅ LM variant toggle
Level Indicator: ✅ to labels
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
═══ ADDITIONAL FEATURES ═══
Dual Comparison System - Toggle between ETF mode (original) and Index Benchmark mode (NQUSB hierarchy)
Better Fallback Logic - Manual Override > NQUSB Index > ETF > SPY default
Enhanced Display - 4-row information table with full NQUSB index description
Backward Compatible - All original ETF mappings still work, existing charts won't break
Large Mid Cap Toggle - Optional "LM" suffix for focusing on larger companies only
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
For complete documentation, data files, technical details, and the full NQUSB hierarchy structure, visit the GitHub repository.
The result: More accurate, more flexible, and more comprehensive industry strength analysis - enabling traders to understand exactly where their stock's performance comes from by drilling through multiple levels of industry classification.
Educational
NIFTY Futures Premium %WEALTHCON inspired NIFTY FAD % indicator . Please use Nifty spot chart in overlaying chart
F&O Premium % (Universal)Wealthcon inspired FAD % Indicator. Please use FUTURES chart in the overlaying Chart
Task 5- Bar relations High and LowIdentifies if the H/L/C of a bar is trending or not , have to fix the spacing of the icons so we can see all of them together rather than bunching on top of each other.
PSP - Precision Swing Point (NQ / ES / YM)Inspired by Gxt
A very simple indicator detecting PSP between NQ ES and YM.
RSI Rate of Change (ROC of RSI)The RSI Rate of Change (ROC of RSI) indicator measures the speed and momentum of changes in the RSI, helping traders identify early trend shifts, strength of price moves, and potential reversals before they appear on the standard RSI.
While RSI shows overbought and oversold conditions, the ROC of RSI reveals how fast RSI itself is rising or falling, offering a deeper view of market momentum.
How the Indicator Works
1. RSI Calculation
The indicator first calculates the classic Relative Strength Index (RSI) using the selected length (default 14). This measures the strength of recent price movements.
2. Rate of Change (ROC) of RSI
Next, it computes the Rate of Change (ROC) of the RSI over a user-defined period.
This shows:
Positive ROC → RSI increasing quickly → strong bullish momentum
Negative ROC → RSI decreasing quickly → strong bearish momentum
ROC crossing above/below 0 → potential early trend shift
What You See on the Chart
Blue Line: RSI
Red Line: ROC of RSI
Grey dotted Zero Line: Momentum reference
Why Traders Use It
The RSI ROC helps you:
Detect momentum reversals early
Spot bullish and bearish accelerations not visible on RSI alone
Identify exhaustion points before RSI reaches extremes
Improve entry/exit precision in trend and swing trading
Validate price breakouts or breakdowns with momentum confirmation
Best For
Swing traders
Momentum traders
Reversal traders
Trend-following systems needing early confirmation signals
MACD No Consecutive Signals alfanetZecusdt 2min
Macd crossing signal with histogram try it and you don't regret
KING DR. DAILY RANGE BOXES
Shows DR (entire session high/low) and IDR (opening range)
Displays from 7:30 PM to 6:00 PM next day
Customizable colors and styles for each day
⚡ 2. SWING VIOLATIONS
When price breaks DR high/low AND there was a prior swing point
Timing: 11:00 PM to 6:00 PM next day
Draws lines from swing points to show valid breakouts
📊 3. EXPANSION & VIOLATION STATS
Expansion: Pips moved beyond DR high/low (11 PM to 11 PM next day)
Violation: Pips moved during 11 PM to 11 PM period
Live updating statistics above/below DR levels
📅 SPECIAL FRIDAY HANDLING
Extends through weekend until Monday 11 PM
Tracks expansion and violations across the gap
Purpose: Identify valid breakouts, track range expansion, and measure price movement beyond session ranges with professional-grade accuracy.
Wyckoff Accumulation/Distribution - Enhanced by ChakraWyckoff Accumulation/Distribution - Enhanced Indicator
Overview
An advanced Pine Script v6 indicator that detects Wyckoff accumulation and distribution patterns using RSI-based trend analysis, pivot detection, and volume confirmation. This enhanced version improves upon traditional Wyckoff indicators with cleaner code, English variable names, and additional market structure signals.
Key Features
Wyckoff Phase Detection
Accumulation Phase:
SC (Selling Climax): Bottom pivot with extreme bearish RSI and high volume
AR (Automatic Rally): First bounce after selling climax
ST (Secondary Test): Retest of lows without extreme RSI
SOS (Sign of Strength): Strong bullish breakout with volume confirmation ⭐ NEW
Distribution Phase:
BC (Buying Climax): Top pivot with extreme bullish RSI and high volume
DAR (Automatic Reaction): First drop after buying climax
DST (Distribution Secondary Test): Retest of highs
SOW (Sign of Weakness): Strong bearish breakdown with volume confirmation ⭐ NEW
Market Structure Events
Spring: False breakdown (RSI crosses above lower band) with background highlight
UTAD (Upthrust After Distribution): False breakout (RSI crosses below upper band) with background highlight
Visual Features
Range Boxes: Automatically draws consolidation ranges (gray) that change color on breakout:
🟢 Green = Accumulation (bullish breakout)
🔴 Red = Distribution (bearish breakout)
Pivot Markers: Orange triangles show regular (non-Wyckoff) pivot points
Bar Coloring: Lime bars for bullish trends, purple bars for bearish trends
Color-Coded Labels: All Wyckoff events clearly marked with descriptive text
Customizable Settings
RSI Settings:
RSI Length (default: 14)
Trend Sensitivity (default: 20) - Higher values = more sideways detection
Pivot Settings:
Pivot Length (default: 5) - Controls pivot point detection sensitivity
Display Options:
Toggle range boxes on/off
Toggle regular pivot markers
Toggle bar coloring by trend
Customize label text color
Advanced Detection:
Volume Confirmation toggle - Require high volume for climax events
Volume Threshold (default: 1.5x) - Adjustable volume multiplier
Alerts
8 comprehensive alert conditions:
Selling Climax (SC)
Buying Climax (BC)
Spring detection
UTAD detection
Sign of Strength (SOS)
Sign of Weakness (SOW)
Range Breakout
Improvements Over Original
✅ Pine Script v6 (latest version)
✅ English variable names (was Turkish)
✅ Fixed DAR label bug (was showing "AR")
✅ Added SOS (Sign of Strength) detection
✅ Added SOW (Sign of Weakness) detection
✅ Optional volume confirmation toggle
✅ Organized input groups for better UX
✅ Enhanced visual options
✅ Comprehensive alert system
✅ Cleaner, more maintainable code structure
Best Use Cases
Timeframes: Works on all timeframes; best on 4H, Daily, or Weekly
Markets: Stocks, Forex, Crypto, Indices
Trading Style: Swing trading, position trading, market structure analysis
Combine With: Support/Resistance, Volume Profile, Order Flow analysis
How It Works
The indicator uses RSI to identify market states (sideways, bullish, bearish) and combines this with pivot point detection and volume analysis to identify key Wyckoff events. When price is ranging (RSI between upper/lower bands), it draws a box. On breakout, the box color changes to indicate accumulation or distribution, helping traders identify smart money positioning.
Tips for Use
Lower Trend Sensitivity (10-15) for more signals in trending markets
Higher Trend Sensitivity (25-30) for clearer signals in choppy markets
Enable Volume Confirmation in high-volume markets (stocks, major crypto)
Disable Volume Confirmation in low-volume or forex markets
Watch for Spring/UTAD events within boxes for potential reversals
Version: 1.0
Pine Script: v6
Author: Chakrapani Chittabathina
Mark Minervini SEPA Swing TradingMark Minervini Complete Technical Strategy with buy signals and full dashboard showing all the parameters.
Micro/Mini P&L [LDT]Overview
Micro/Mini P&L is a risk and P&L visualization tool built primarily for futures traders.
It provides accurate dollar-based calculations for either micros or minis, regardless of which contract type you are currently charting.
The indicator automatically detects your instrument (NQ, MNQ, ES, MES, YM, RTY, CL, GC, etc.) and adjusts point-value data accordingly, allowing you to chart one contract while evaluating risk for another.
This removes the need for manual conversions and keeps your position data consistent at all times.
Although optimized for futures, the tool also works on any other asset for general trade-level visualization.
Features
• Automatic instrument detection for major futures markets including NQ/MNQ, ES/MES, YM/MYM, RTY/M2K, CL/MCL, GC/MGC and others.
Point-value logic adjusts instantly based on the detected symbol ensuring accurate calculations without manual configuration.
• Micro/Mini display toggle, allowing you to calculate dollar values for either contract type regardless of which contract is on your chart.
Useful for traders who prefer charting minis whilst trading micros or the opposite.
• Trade-level visualization, including Entry, Take Profit and Stop Loss levels with automatically drawn lines and optional TP/SL zone shading for clear and structured display on the chart.
• Dynamic P/L calculations, showing both point-based and dollar-based metrics in real time.
This includes TP/SL dollar values, points to target/stop, real-time P/L and an optional risk-reward ratio.
• Adaptive risk table, displaying contract counts from 1 up to your selected maximum, total dollar risk for each row and highlighting your chosen contract size.
This provides a straightforward method for evaluating risk, scaling and position sizing.
• Customizable display options, including color settings, label visibility, extension length, bar offsets and table positioning.
This allows the tool to remain clean, unobtrusive and easy to integrate into any chart layout.
Purpose
This tool is designed to give futures traders a clear, consistent and reliable way to view dollar-accurate risk per contract without performing manual conversions.
Whether you trade micros or minis, the displayed values always align with your selected contract type, even when charting the opposite market.
BHUVANA Fibonacci squeezed 50%–61.8% bandThis indicator is designed based on XAUUSD and in the 5 min time frame,When it looks like upstairs it is BUY trend (uptrend),Wjen it looks like downstairs the trend is sell (ie)Down trend)
Swing mapping: Finds the active high/low over a user-defined lookback and computes Fib 50% and Fib 61.8%.
Squeeze detection: Measures the distance between 50% and 61.8%. If the band width is ≤ (ATR × multiplier), the zone is flagged as a Squeeze.
Breakout entries (on close):
Long when price crosses up through 50% while squeezed.
Short when price crosses down through 61.8% while squeezed.
Risk framework: Auto-plots stop lines from the signal bar:
Long SL = swing low; Short SL = swing high.
Visuals: Fib lines (50/61.8) + optional yellow zone highlight during squeeze.
cc AJ TIME WITH TIME EXTENSIONcc AJ TIME WITH TIME EXTENSION – Flexible Session & Time-Based Highlighter (v6)
A fully customizable Pine Script® indicator that lets you highlight specific times of day using three different calculation methods and draw extended background rectangles (session boxes) forward in time.
Features:
• Up to 6 independent time rules
• Three selectable detection methods for each rule (you can combine them):
– Direct minute match (e.g. when the current minute = your target)
– Addition method (hour + minute = target value)
– Subtraction method (minute − hour = target value)
• Each rule can independently color candles (barcolor) and/or draw a price-level rectangle
• Rectangles automatically extend right for a user-defined duration (hours + minutes)
• Individual control over fill color, opacity, border color, and border thickness
• Works on any timeframe and any symbol
• Uses UTC+2 as reference timezone (common for many European/London-based sessions – change in code if needed)
Perfect for marking custom session windows, recurring intraday time windows, or any personal time-based confluences you trade.
No external data, no repainting, no hidden calculations – completely transparent and compliant with TradingView House Rules.
Educational / personal use only • Not financial advice
IC Opposite Candle Zones – BOXESWhat this does
✔ Detects bullish & bearish institutional candles
✔ Finds the last opposite candle before it
✔ Creates a zone using that candle’s full wick range
✔ Draws it with actual boxes that extend forward
✔ Deletes old boxes so your chart doesn’t get cluttered
Hamaada RangeThis indicator plots the Daily DR/IDR range (19:30–23:00 NY) for each weekday, Monday to Friday.
It automatically draws the Daily Range (DR) and Initial Daily Range (IDR) highs, lows, midlines, and opening price.
Each day’s DR/IDR box extends into the following session for clarity and projection.
All lines and colors are fully customizable per-day.
Tracks 3-bar swings after the DR window closes.
Automatically detects when price violates the DR high or low.
Draws a “Swing Violation Line” from the last valid swing to the end of the extension period.
Friday DR extends to next Monday and supports cross-week swing violation detection.
Background shading, labels, and opening lines are optional.
Designed for precision session modeling in NY timezone (America/New_York recommended).
Price Action - Bar CountDrawing from Al Brooks' emphasis on session rhythms in his books, this counts bars from market opens, resetting at US (0930-1600 ET), HK (0930-1200,1300-1600 HKT), or London (0800-1630 GMT) if selected. Labels every N bars (default 2) below, with custom colors per session and after-hours gray. Up to 79 in regular color, then faded. Helps track opening range tests and two-legged moves—focus on first hour dynamics for high-probability trades.
Price Action - H/L BarBased on Al Brooks' "Bar by Bar" (Chapter 09A, p.45-50) and "Trends" (p.98-105), this marks H (higher high with close above mid) and L (lower low with close below mid) swings. Marking pauses after each, resuming on pullback. Labels "H" above and "L" below bars for swing counting in trends or ranges. Key: Markets form two legs—use for measured moves or failed breakouts, always in context of prior extremes.
Price Action - Trend BarFrom Al Brooks' "Trading Price Action Trends," this indicator colors strong trend bars. Bull trend bars (green body ≥50%, close ≥60% up range, larger than 1.5x average) highlight buyer control, while bear trend bars (red body ≥50%, close ≤40% down range) show seller dominance. Use to identify trend resumption or climaxes. Philosophy: Trends persist until tested—focus on high-probability entries after pullbacks, avoiding barbwire noise.
Price Action - Reversal BarInspired by Al Brooks' "Trading Price Action Reversals," this indicator detects potential bull and bear reversal bars. Bull reversals require a green bar with close above mid-range, small upper tail (≤30%), large lower tail (≥30%), and low below previous low without significant overlap. Bear reversals are the opposite. Triangles mark these setups for early reversal signals in trends or climaxes. Remember, markets test extremes—use with trend lines for confirmation, as single bars are often traps without a second leg.
Recursive WMA Angle StrategyDescription: This strategy utilizes a recursive Weighted Moving Average (WMA) calculation to determine the trend direction and strength based on the slope (angle) of the curve. By calculating the angle of the smoothed moving average in degrees, the script filters out noise and aims to enter trades only during strong momentum phases.
How it Works:
Recursive WMA: The script calculates a series of nested WMAs (M1 to M5), creating a very smooth yet responsive curve.
Angle Calculation: It measures the rate of change of this curve over a user-defined lookback period and converts it into an angle (in degrees).
Entry Condition (Long): A long position is opened when the calculated angle exceeds the Min Angle for BUY threshold (default: 0.2), indicating a strong upward trend.
Exit Condition: The position is closed when the angle drops below the Min Angle for SELL threshold (default: -0.2), indicating a sharp trend reversal.
Settings:
MA Settings: Adjust the base lengths for the recursive calculation.
Angle Settings: Fine-tune the sensitivity by changing the Buy/Sell angle thresholds.
Date Filter: Restrict the backtest to a specific date range.
Note: This strategy is designed for Long-Only setups.





















