RSI FlipIndicator Description: RSI Flip (30/70 Threshold)
This indicator uses a 7-period Relative Strength Index (RSI) to detect potential market reversals based on classic momentum thresholds:
- RSI < 30 → triggers a Long Deal Signal (1) indicating potential bullish reversal.
- RSI > 70 → triggers a Short Deal Signal (2) indicating potential bearish reversal.
🔧 Features:
- Backtest-compatible output: Hidden plots emit 1 for long and 2 for short, enabling seamless integration with strategy scripts.
- Bias tracking: Internal bias state updates on each trigger, allowing for modular lifecycle logic.
- Background tinting ready: The bias variable can be used to drive visual overlays or downstream automation.
🧩 Integration Notes:
- Designed for symbol-specific use — no external feeds or dependencies.
- Ideal for modular signal stacking, lifecycle-safe deal initiation, or audit-grade strategy mapping.
Indicators and strategies
ahr999 Index BITSTAMP
Credits to discountry for making the original script.
reference:
Updates:
- Updated the historical data to use BITSTAMP:BTCUSD since BLX:BNC api is not working anymore
- Implemented a tooltip label displaying the latest AHR index value.
Liquidity Stress Index SOFR - IORBLiquidity Stress Index (SOFR - IORB)
This indicator tracks the spread between the Secured Overnight Financing Rate (SOFR) and the Interest on Reserve Balances (IORB) set by the Federal Reserve.
A persistently positive spread may indicate funding stress or liquidity shortages in the repo market, as it suggests overnight lending rates exceed the risk-free rate banks earn at the Fed.
Useful for monitoring monetary policy transmission or market/liquidity stress.
Earnings Day - Price Predictor [DunesIsland]It's designed to analyze and visualize historical stock price movements on earnings report days, focusing on percentage changes.
Here's a breakdown of what it does, step by step:
Key Inputs and Setup
User Input: There's a single input for "Lookback Years" (default: 10), which determines how far back in time (approximately) the indicator analyzes earnings data. It uses a rough calculation of milliseconds in that period to filter historical data.
Data Fetching: It uses TradingView's request.earnings function to pull actual earnings per share (EPS) data for the current ticker. Earnings days are identified where EPS data exists on a bar but not on the previous one (to avoid duplicates).
Price Change Calculation: For each detected earnings day, it computes the percentage price movement as (close - close ) / close * 100, representing the change from the previous close to the current close on that day.
Processing and Calculations (on the Last Bar)
Lookback Filter: It calculates a cutoff timestamp for the lookback period and processes only earnings events within that window.
Overall Averages:
Separates positive (≥0%) and negative (<0%) percentage changes.
Seasonality (Next Quarter Prediction):
Identifies the most recent earnings quarter (latest_q).
Predicts the "next" quarter (e.g., if latest is Q4, next is Q1;
Again, separates positive and negative changes, computing their respective averages.
Visual Outputs
Lookback: How far to fetch the data in years.
Average Change (Green): Showing the average of all positive changes.
Average Change (Red): Showing the average of all negative changes.
Seasonality Change (Green): Showing the average of positive changes for the predicted next quarter.
Seasonality Change (Red): Showing the average of negative changes for the predicted next quarter.
Purpose and Usage
This indicator helps traders assess a stock's historical reaction to earnings announcements. The overall averages give a broad sense of typical gains/losses, while the seasonality focuses on quarter-specific trends to "predict" potential movement for the upcoming earnings (based on past same-quarter performance). It's best used on daily charts for stocks with reliable earnings data. Note that quarter inference is calendar-based and may not perfectly match fiscal calendars for all companies—it's an approximation.
Modern Combo Crypto SuiteBlends long and short playbooks in one overlay with quick toggles.
Tracks EMA stacks, SuperTrend, WaveTrend, QQE, and volume to score bias.
Colors the chart background when watch/ready conditions align.
Fires alerts for imminent or fully aligned long/short setups.
Displays a live checklist table summarizing trend, momentum, and volume confidence.
Asia & London Session High/Low – EOD Segments (v4.5)What it does
Plots the Asia and London session high & low each day.
When a session ends, its high/low are locked (non-repainting) and drawn as horizontal segments that auto-extend to the end of that same day (no infinite rays).
Optional labels show the exact level at session close.
Toggle whether to keep prior days on the chart or auto-clear them on the first bar of a new day.
Why traders use it
Quickly see overnight liquidity levels that often act as magnets or barriers during the U.S. session.
Map session range extremes for breakout/reversal planning, partials, and invalidation.
Works great alongside VWAP, 8/20/200 MAs, or your NY session tools to build confluence.
How it works
You define the session windows (defaults: Asia 00:00–06:00, London 07:00–11:00).
While a session is active, the script tracks running high/low.
On the bar after the session ends, the level is finalized and drawn; the segment’s right edge updates each bar until EOD, then stops automatically.
Inputs
Session Timezone: “Exchange”, UTC, or a specific region (set this to match your venue).
Asia / London Session: editable HHMM-HHMM windows.
Show Asia / Show London: enable either/both sessions.
Keep history: keep or auto-delete previous days.
Show labels: price labels at session close.
Colors & width: customize high/low colors and line width.
Best practices
Use on intraday timeframes (1–60m).
For equities/futures, set timezone to your exchange (e.g., America/New_York). For FX/crypto, pick what matches your workflow.
Common tweak: London 08:00–12:00 local; Asia 00:00–05:00 or your broker’s definition.
Notes
Non-repainting: levels only print once the session is complete.
Designed to be light and reliable—no boxes, just clean lines and labels.
If you want NY session levels, midlines (50%), anchored stop-time, or alerts on touches, this script can be extended.
For educational use only. Not financial advice.
POSITION SIZER📊 POSITION SIZER - DUAL RISK MANAGEMENT (Long/Short) v5.1
🎯 WHAT IS THIS?
Professional risk management tool that automatically calculates the optimal position size for LONG and SHORT trades. Supports Forex, Stocks, Futures, Index CFDs, and Cryptocurrencies.
✨ KEY FEATURES
✅ Dual Risk Management - Independent calculations for Long and Short positions
✅ Auto/Manual Margin - Leverage control from 1x to 20x
✅ 5 Instruments - Forex, Stocks, Futures, CFDs, Crypto
✅ 2 SL Methods - Dynamic ATR or Structural (Highs/Lows)
✅ Complete Panel - 35+ real-time metrics
✅ Cost Calculation - Commission and Spread included
✅ Partial TP - Close profits at multiple points
✅ SL/TP Lines - Visual levels on chart
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ QUICK START
Open Pine Script Editor in TradingView
Create new indicator (+ → Scripts → Indicator)
Delete default code
Paste indicator code
Press Alt+Enter or Add to Chart
Panel appears automatically
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 MAIN INPUTS
1️⃣ CONFIGURATION
├─ 💰 Capital Total: Your trading capital
├─ ⚠️ Risk %: Risk per trade (recommended 0.5%-1%)
├─ 📊 Direction: Long/Short/Both
├─ 🧮 Auto Margin: Enable automatic leverage
└─ ⚡ Leverage Factor: 1x-20x multiplier
2️⃣ SL/TP STRATEGY
├─ 🛑 SL/TP Method: ATR or Structural
├─ 🎯 Risk:Reward Ratio: Example 2.0 = 1:2
├─ ATR Multiplier: If method = ATR
├─ Lookback Candles: If method = Structural
└─ SL Buffer: Extra safety distance in pips
3️⃣ COSTS (OPTIONAL)
├─ 💸 Include Commission: Add trading costs
└─ 📊 Include Spread: Add spread costs
4️⃣ INSTRUMENTS
├─ Asset Type: Forex/Stocks/Futures/CFDs/Crypto
└─ Lot Display: Micro/Mini/Standard/All (Forex only)
5️⃣ DISPLAY
├─ Show Panel: On/Off
├─ Show SL/TP Lines: On/Off
└─ Panel Position: Top/Bottom × Left/Right
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 PANEL EXPLANATION
HEADER:
🎯 Calculator - Calculation method used
- Auto/Manual/Out of Range
CONFIGURATION:
💰 Capital: Your total capital
⚠️ Risk: Money at risk per trade
📊 R:R: Risk/Reward ratio
🎲 Min. WR: Minimum win rate to break even
🏦 Max Margin: Maximum investment allowed
LONG SECTION:
🛑 SL | Price | Pips | % | Risk USD
🎯 TP | Price | Pips | % | Profit USD
💰 Nominal Value: Total investment USD
📊 Capital Used: Percentage of capital used
⚡ Leverage: Position multiplier
📦 Size: Lots/Shares/Contracts/Units
SHORT SECTION:
(Identical to LONG but inverted)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 PRACTICAL EXAMPLES
EXAMPLE 1: Forex Day Trader
─────────────────────────────
Capital: $2,000
Risk: 1% = $20 per trade
Method: ATR (2.0x, Period 14)
R:R: 2.0 (1:2)
Result:
├─ SL: 50 pips
├─ TP: 100 pips
├─ Size: 1 Micro lot
└─ Max Profit: $40 (Risk $20)
EXAMPLE 2: Stock Swing Trader
────────────────────────────
Capital: $25,000
Risk: 0.5% = $125 per trade
R:R: 3.0 (1:3)
Auto Margin: 1.5x
Result:
├─ SL: $190 (5 pips distance)
├─ TP: $210 (15 pips - 3x risk)
├─ Shares: 25 units
└─ Max Profit: $375 (Risk $125)
EXAMPLE 3: Crypto Scalper
────────────────────────
Capital: $1,000
Risk: 2% = $20 per trade
Auto Margin: 5x
Result:
├─ SL: $150 distance
├─ TP: $225 distance
├─ Units: 0.0001 BTC
└─ Max Profit: $30 (Risk $20)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
❓ FREQUENTLY ASKED QUESTIONS
Q: What does "1% Risk" mean?
A: You lose maximum 1% of capital per trade.
Capital $10,000 → Max loss $100
Q: ATR vs Structural - Which is better?
A: ATR = Based on volatility (dynamic)
Structural = Based on price levels (static)
Use ATR for volatile, Structural for ranging markets
Q: How do I enable auto leverage?
A: 1. Enable "Auto Margin Calculation"
2. Set "Leverage Factor" (1x-20x)
3. Margin calculates automatically
Q: Do costs affect SL/TP?
A: NO. Costs are informational only.
They reduce profits, not risk.
Q: Why is my position size so small?
A: Low risk %, wide SL, or small capital.
Solution: Increase risk % (carefully) or tighten SL
Q: Does it work on all timeframes?
A: YES. Better on D1, H4, H1.
Avoid very low timeframes (<5 min) due to spread
Q: What is "Min. WR"?
A: Minimum win rate to break even.
R:R 1:2 requires 33% win rate
R:R 1:3 requires 25% win rate
Q: Can I use for backtesting?
A: YES. Manually validate your strategy historically.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ TIPS & TRICKS
COMPARE SCENARIOS
├─ Try different R:R ratios
├─ Adjust leverage factors
└─ Watch how position size changes
VALIDATE YOUR STRATEGY
├─ Enter real price levels
├─ Compare theoretical vs actual
└─ Adjust based on market conditions
OPTIMIZE FOR YOUR STYLE
├─ Scalpers: Risk 2%, R:R 1:1
├─ Day Traders: Risk 1%, R:R 1:2
└─ Swing: Risk 0.5%, R:R 1:3
MONITOR COSTS
├─ Enable commission and spread
├─ See impact on profits
└─ Compare different brokers
USE AUTO MARGIN WISELY
├─ Keep safe capital aside
├─ Use 1.5x-2x only if needed
└─ Never use maximum (20x too risky)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 TROUBLESHOOTING
❌ Panel doesn't appear
✅ Solution: Ensure "Show Panel" = On
❌ Text too small
✅ Solution: Increase "Panel Font Size"
❌ Lines not visible
✅ Solution: Enable "Show SL/TP Lines"
❌ Position size is 0
✅ Solution: Increase capital or reduce SL distance
❌ Forex not calculating correctly
✅ Solution: Select Asset Type = "Forex"
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 RECOMMENDED LEARNING
Study Position Sizing
└─ Search: "Position Sizing" on YouTube
Understand Risk:Reward
└─ Search: "Risk Reward Ratio" on Google
Practice on Demo
└─ Always demo before real account
Do Manual Backtesting
└─ Validate strategy historically
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 CHANGELOG
V5.1 (CURRENT)
✅ Auto Margin Calculation fix
✅ 5 instrument support
✅ Improved Cost Calculation
✅ Optimized Panel (35+ metrics)
V5.0
✅ Advanced Modularity
✅ Manual/Auto Margin Support
✅ Configurable Leverage
V4.0
✅ Complete Panel
✅ Two SL/TP Methods
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
📌 IMPORTANT:
├─ NOT financial advice
├─ NO profit guarantee
├─ Use at your own risk
├─ ALWAYS use stop losses
├─ Practice on DEMO first
└─ Trading has risk of total loss
Author is NOT responsible for losses or gains.
Each trader is responsible for their decisions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎉 READY TO TRADE!
With this tool you have a professional position
sizing system. Remember the basics:
DISCIPLINE - Follow your plan
RISK - Never risk more than 1% per trade
PATIENCE - Don't go all-in every trade
ANALYSIS - Validate before entering
Good luck with your trading! 📈
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📞 SUPPORT
For issues or suggestions:
Ensure you're using Pine Script v6
Check that code compiles without errors
Provide detailed problem description
Happy Trading! 🚀
MarketMonkey-Indicator-Set-1 - GMMA open 🧠 MarketMonkey-Indicator-Set-1 — GMMA Open
GMMA (Guppy Multiple Moving Average) Toolkit for Trend Clarity & Timing
The MarketMonkey GMMA Open indicators brings a clean, high-performance visual of trend strength and direction using multiple exponential moving averages (EMAs) across short- and long-term time frames.
Designed for traders who want to see momentum shifts and market transitions as they happen, this version overlays directly on the price chart for quick and confident reads.
🔍 How It Works
* Short-term EMAs (3–15) track trader sentiment and momentum.
* Long-term EMAs (30–60) show investor trend commitment.
* The indicator dynamically colors the long-term EMAs:
* 🔵 Blue : Upward momentum
* 🔴 Red : Downward momentum
When the short-term group expands above the long-term group, it signals strength and potential continuation. Tightening or compression may warn of pauses or reversals.
💡 Features
* 12 adjustable EMA periods (customize your GMMA spacing)
* Automatic color shifts for trend clarity
* Live price flag for easy reference
* Compact ticker/date display in the top-right corner
* Minimalist, overlay-based design — no clutter, just clarity
📈 Best Used For
* Spotting early trend changes
* Confirming continuation or breakout setups
* Identifying compression zones before reversals
* Overlaying on ASX, S&P, FX, Gold, or Crypto charts
🔔 Part of the MarketMonkey Indicator Set series — tools built for real-world trend recognition and momentum trading.
Close vs SuperTrend % DiffOn Every Bar: SuperTrend and percent_diff are recalculated; the line plot updates with coloring.
On Visible Bars Only: High/low extremes and sums/counts accumulate via VC checks.
On Last Bar: Table refreshes with current stats, reflecting the visible view.
User Interaction: Zooming/panning triggers VC.barIsVisible() to recompute aggregates dynamically—no full history scan needed.
Edge Cases:
Empty visible range: High/low default to na; averages guarded against zero counts.
Division by zero in percent_diff: Unlikely, as st is ATR-based and rarely zero, but Pine handles na gracefully.
Performance: Efficient for long histories (e.g., daily charts over years) since stats are view-localized.
This indicator is useful for trend traders: Watch for percent_diff crossing zero for signals, and use the table to gauge visible volatility (e.g., if avg high > avg low in magnitude, bullish bias). Customize SuperTrend params (3,10) for different assets/timeframes. To extend, you could add alerts on threshold crosses or integrate dir for trend filters.
VOLUME PROFILE WITH FOOTPRINT AND IMBALANCEVOLUME PROFILE WITH FOOTPRINT AND IMBALANCE
A professional-grade market structure analysis tool that combines three powerful trading concepts into one comprehensive indicator: Volume Profile, Footprint Charts, and Imbalance detection. This script provides optimum-level market analysis for trading.
KEY FEATURES
1. Multi-Day Volume Profile
Customizable Row Density: Adjust price level granularity for precise volume distribution analysis
Point of Control (POC): Automatically identifies the price level with highest traded volume
Value Area Calculation: Highlights the price range containing 70% of the day's volume (customizable percentage)
Value Area High (VAH) & Low (VAL): Clear demarcation of institutional acceptance zones
Horizontal Volume Bars: Visual representation of buying vs. selling pressure at each price level
Color-Coded Volume: Distinguishes between value area volume and outlier volume for better visual clarity
2. Previous Day Reference Levels
Previous Day High/Low (PDH/PDL): Critical support/resistance levels from prior session
Previous Day POC: Yesterday's highest volume node - often acts as magnetic price level
Previous Day VAH/VAL: Prior session's value boundaries for gap analysis and mean reversion setups
All previous day levels extend into current session with customizable colors and line styles
3. Virgin Point of Control (VPOC)
Untouched POC Identification: Automatically tracks POC levels that haven't been revisited by price
Real-time Validation: Monitors whether subsequent price action has tested each historical POC
Multi-Day Tracking: Maintains VPOC levels across multiple sessions until filled
High-Probability Targets: Virgin POCs often act as magnets for future price action
4. Footprint Zone Analysis
Footprint Zone Detection: Identifies price levels touched only once during the session
Automated Ribbon Consolidation: Groups consecutive Footprint Zone into visual zones
Price Range Sensitivity: Automatically adjusts granularity based on instrument price
Historical Persistence: Consolidates previous day's footprint zones for multi-day context
Auction Failure Zones: Footprint Zone often indicate areas of poor liquidity and potential reversal points
5. Three-Candle Imbalance Detection
Bullish Imbalance
Bearish Imbalance
Visual Markers: Clear circular indicators on all three candles forming the imbalance
Customizable Colors: Separate colors for bullish and bearish imbalances
Gap Validation: Ensures meaningful price displacement before flagging imbalance
VWAP Balance HeatmapVWAP Balance Heatmap visually highlights where price stands relative to the dynamic equilibrium of bullish and bearish VWAP averages. The indicator builds two running VWAP arrays — one for bullish candles, one for bearish — then plots their averages and the midpoint between them. It fills the space between price and this midpoint, coloring it green when price is above balance and red when below. The result is a smooth heatmap that reveals whether the market is trading in premium or discount zones, helping you see shifts in momentum and balance without clutter or lag.
🔍 Kernel Market Dynamics🔍 Kernel Market Dynamics Pro - Advanced Distribution Divergence Detection System
OVERVIEW
Kernel Market Dynamics Pro (KMD Pro) is a revolutionary market regime detection system that employs Maximum Mean Discrepancy (MMD) - a cutting-edge statistical technique from machine learning - to identify when market behavior diverges from its recent historical distribution patterns. The system transforms complex statistical divergence analysis into actionable trading signals through kernel density estimation, regime classification algorithms, and multi-dimensional visualization frameworks that reveal hidden market transitions before traditional indicators can detect them.
WHAT MAKES IT ORIGINAL
While conventional indicators measure price or momentum divergence, KMD Pro analyzes distribution divergence - detecting when the statistical properties of market returns fundamentally shift from their baseline state. This approach, borrowed from high-frequency trading and quantitative finance, uses kernel methods to map market data into high-dimensional feature spaces where regime changes become mathematically detectable. The system is the first TradingView implementation to combine MMD with real-time regime visualization, making institutional-grade statistical arbitrage techniques accessible to retail traders.
HOW IT WORKS (Technical Methodology)
1. KERNEL DENSITY ESTIMATION ENGINE
Maximum Mean Discrepancy (MMD) Calculation:
The core innovation - measures distance between probability distributions:
• Maps return distributions to Reproducing Kernel Hilbert Space (RKHS)
• Computes empirical mean embeddings for reference and test windows
• Calculates supremum of mean differences across all RKHS functions
• MMD = ||μ_P - μ_Q||_H where H is the RKHS induced by kernel k
Three Kernel Functions Available:
RBF (Radial Basis Function) Kernel:
• k(x,y) = exp(-||x-y||²/2σ²)
• Gaussian kernel with smooth, infinite-dimensional feature mapping
• Bandwidth σ controls sensitivity (0.5-10.0 user configurable)
• Optimal for normally distributed returns
• Default choice providing balanced sensitivity
Laplacian Kernel:
• k(x,y) = exp(-|x-y|/σ)
• Exponential decay with heavier tails than RBF
• More sensitive to outliers and sudden moves
• Ideal for volatile, news-driven markets
• Faster regime shift detection at cost of more false positives
Cauchy Kernel:
• k(x,y) = 1/(1 + ||x-y||²/σ²)
• Heavy-tailed distribution from statistical physics
• Robust to extreme values and fat-tail events
• Best for cryptocurrency and emerging markets
• Most stable signals with fewer whipsaws
Implementation Details:
• Reference window: 30-300 bars of baseline distribution
• Test window: 10-100 bars of recent distribution
• Double-sum kernel matrix computation with O(m*n) complexity
• EMA smoothing (period 3) reduces noise in raw MMD
• Real-time updates every bar with incremental calculation
2. REGIME DETECTION FRAMEWORK
Three-State Regime Classification:
STABLE Regime (MMD < threshold):
• Market follows historical distribution patterns
• Mean-reverting behavior dominates
• Low probability of breakouts
• Reduced position sizing recommended
• Visual: Subtle background coloring
SHIFTING Regime (threshold < MMD < 2×threshold):
• Distribution divergence detected
• Transition period with directional bias emerging
• Optimal entry zone for trend-following
• Increased volatility expected
• Visual: Yellow/orange zone highlighting
EXTREME Regime (MMD > 2×threshold):
• Severe distribution anomaly
• Black swan or structural break potential
• Maximum caution required
• Consider hedging or exit
• Visual: Red/magenta warning zones
Adaptive Threshold System:
• Base threshold: 0.05-1.0 (default 0.15)
• Volatility adjustment: ±30% based on ATR ratio
• Regime persistence: 20-bar minimum for stability
• Cooldown periods prevent signal clustering
3. DIRECTIONAL BIAS DETERMINATION
Multi-Factor Direction Analysis:
Distribution Mean Comparison:
• Recent mean = SMA(normalized_returns, test_window)
• Reference mean = SMA(normalized_returns, reference_window)
• Direction = sign(recent_mean - reference_mean)
Momentum Confluence:
• Price momentum = close - close
• Volume momentum = volume/SMA(volume, reference_window)
• Weighted composite direction score
Trend Alignment:
• Fast EMA vs Slow EMA positioning
• Slope analysis of regression line
• Multi-timeframe bias confirmation (optional)
4. SIGNAL GENERATION ARCHITECTURE
Entry Signal Logic:
Stage 1 - Regime Shift Detection:
• MMD crosses above threshold
• Sustained for minimum 2 bars
• No signals within cooldown period
Stage 2 - Direction Confirmation:
• Distribution mean aligns with momentum
• Volume ratio > 1.0 (optional)
• Price above/below VWAP (optional)
Stage 3 - Risk Assessment:
• Calculate ATR-based stop distance
• Verify risk/reward ratio > 1.5
• Check for nearby support/resistance
Stage 4 - Signal Generation:
• Long: Regime shift + bullish direction
• Short: Regime shift + bearish direction
• Extreme: MMD > 2×threshold warning
5. PROBABILITY CLOUD VISUALIZATION
Adaptive Confidence Intervals:
• Standard deviation multiplier = 1 + MMD × 3
• Inner band: ±0.5 ATR × multiplier (68% probability)
• Outer band: ±1.0 ATR × multiplier (95% probability)
• Width expands with divergence magnitude
• Real-time adjustment every bar
Interpretation:
• Narrow cloud: Low uncertainty, stable regime
• Wide cloud: High uncertainty, shifting regime
• Asymmetric cloud: Directional bias present
6. MOMENTUM FLOW VECTORS
Three-Style Momentum Visualization:
Flow Arrows:
• Length proportional to momentum strength
• Width indicates confidence (1-3 pixels)
• Angle shows rate of change
• Frequency: Every 5 bars or on events
Gradient Bars:
• Vertical lines from price
• Height = momentum/ATR ratio
• Opacity based on strength
• Continuous flow indication
Momentum Ribbon:
• Envelope around price action
• Expands in momentum direction
• Color intensity shows strength
7. SIGNAL CONNECTION SYSTEM
Relationship Mapping:
• Links consecutive signals with lines
• Solid lines: Same direction (continuation)
• Dotted lines: Opposite direction (reversal)
• Maximum 10 connections maintained
• Distance limit: 100 bars
Purpose:
• Identifies signal clusters
• Shows trend development
• Reveals regime persistence
• Confirms directional bias
8. REGIME ZONE MAPPING
Unified Zone Visualization:
• Main zones: Full regime periods (entry to exit)
• Emphasis zones: Specific trigger points
• Historical memory: Last 20 regime shifts
• Color gradient based on intensity
• Border style indicates zone type
Zone Analytics:
• Duration tracking
• Maximum excursion
• Retest probability
• Support/resistance conversion
9. DYNAMIC RISK MANAGEMENT
ATR-Based Position Sizing:
• Stop loss: 1.0 × ATR from entry
• Target 1: 2.0 × ATR (2R)
• Target 2: 4.0 × ATR (4R)
• Volatility-adjusted scaling
Visual Target System:
• Entry pointer lines
• Target boxes with prices
• Stop boxes with invalidation
• Real-time P&L tracking
10. PROFESSIONAL DASHBOARD
Real-Time Metrics Display:
Primary Metrics:
• Current MMD value and threshold
• Risk level (MMD/threshold ratio)
• Velocity (rate of change)
• Acceleration (second derivative)
Signal Information:
• Active signal type and entry
• Stop loss and targets
• Current P&L percentage
• Bars since signal
Market Metrics:
• Directional bias (BULL/BEAR)
• Confidence percentage
• Win rate statistics
• Signal count tracking
Visual Design:
• Four position options
• Three size modes
• Five color themes
• Gauge visualizations
• Status banners
11. MMD INFO PANEL
Floating Statistics:
• Compact 3×4 table
• MMD vs threshold comparison
• Velocity with direction arrows
• Current bias indication
• Always-visible reference
FIVE COLOR THEMES
Quantum: Cyan/Magenta/Yellow - Modern, high contrast, optimal visibility
Matrix: Green/Red - Classic terminal aesthetic, traditional
Fire: Orange/Gold/Red - Warm spectrum, energetic feel
Aurora: Northern lights palette - Unique, beautiful gradients
Nebula: Deep space colors - Purple/Blue, futuristic
HOW TO USE
Step 1: Select Your Kernel
• RBF for normal markets (stocks, forex majors)
• Laplacian for volatile markets (small-caps, news-driven)
• Cauchy for fat-tail markets (crypto, emerging markets)
Step 2: Configure Bandwidth
• 0.5-2.0: Scalping (high sensitivity)
• 2.0-5.0: Day trading (balanced)
• 5.0-10.0: Swing trading (smooth signals)
Step 3: Set Analysis Windows
• Reference: 3-5× your holding period
• Test: Reference ÷ 3 approximately
• Adjust based on timeframe
Step 4: Calibrate Threshold
• Start with 0.15 default
• Increase if too many signals
• Decrease for earlier detection
Step 5: Enable Visuals
• Probability Cloud for volatility assessment
• Momentum Flow for direction confirmation
• Regime Zones for historical context
• Signal Connections for trend visualization
Step 6: Monitor Dashboard
• Check MMD vs threshold
• Verify regime state
• Confirm directional bias
• Review confidence metrics
Step 7: Execute Signals
• Wait for triangle markers
• Verify regime shift confirmed
• Check risk/reward setup
• Enter at close or next open
Step 8: Manage Position
• Place stop at calculated level
• Scale out at Target 1 (2R)
• Trail remainder to Target 2 (4R)
• Exit if regime reverses
OPTIMIZATION GUIDE
By Market Type:
Forex Majors:
• Kernel: RBF
• Bandwidth: 2.0-3.0
• Windows: 100/30
• Threshold: 0.15
Stock Indices:
• Kernel: RBF
• Bandwidth: 3.0-4.0
• Windows: 150/50
• Threshold: 0.20
Cryptocurrencies:
• Kernel: Cauchy
• Bandwidth: 2.5-3.5
• Windows: 100/30
• Threshold: 0.10-0.15
Commodities:
• Kernel: Laplacian
• Bandwidth: 2.0-3.0
• Windows: 200/60
• Threshold: 0.15-0.25
By Timeframe:
Scalping (1-5m):
• Test Window: 10-20
• Reference: 50-100
• Bandwidth: 1.0-2.0
• Cooldown: 5-10 bars
Day Trading (15m-1H):
• Test Window: 30-50
• Reference: 100-150
• Bandwidth: 2.0-3.0
• Cooldown: 10-20 bars
Swing Trading (4H-Daily):
• Test Window: 50-100
• Reference: 200-300
• Bandwidth: 3.0-5.0
• Cooldown: 20-50 bars
ADVANCED FEATURES
Multi-Timeframe Capability:
• HTF MMD calculation via security()
• Regime alignment across timeframes
• Fractal analysis support
Statistical Arbitrage Mode:
• Pair trading applications
• Spread divergence detection
• Cointegration breaks
Machine Learning Integration:
• Export signals for ML training
• Regime labels for classification
• Feature extraction support
PERFORMANCE METRICS
Computational Complexity:
• MMD calculation: O(m×n) where m,n are window sizes
• Memory usage: O(m+n) for kernel matrices
• Update frequency: Every bar (real-time)
• Optimization: Incremental updates where possible
Typical Signal Frequency:
• Conservative settings: 2-5 signals/week
• Balanced settings: 5-10 signals/week
• Aggressive settings: 10-20 signals/week
Win Rate Expectations:
• Trend following mode: 40-50% wins, 2:1 reward/risk
• Mean reversion mode: 60-70% wins, 1:1 reward/risk
• Depends heavily on market conditions
IMPORTANT DISCLAIMERS
• This indicator detects statistical divergence, not future price direction
• MMD measures distribution distance, not predictive probability
• Past regime shifts do not guarantee future performance
• Kernel methods are descriptive statistics, not AI predictions
• Requires minimum 100 bars historical data for stability
• Performance varies significantly across market conditions
• Not suitable for illiquid or heavily manipulated markets
• Always use proper risk management and position sizing
• Backtest thoroughly on your specific instruments
• This is an analysis tool, not a complete trading system
THEORETICAL FOUNDATION
The Maximum Mean Discrepancy was introduced by Gretton et al. (2012) as a kernel-based statistical test for comparing distributions. In financial markets, we adapt this technique to detect when return distributions shift, indicating potential regime changes. The mathematical rigor of MMD provides a robust, non-parametric approach to identifying market transitions without assuming specific distribution shapes.
SUPPORT & UPDATES
• Questions or configuration help via TradingView messaging
• Bug reports addressed within 48 hours
• Feature requests considered for monthly updates
• Video tutorials available on request
• Join our community for strategy discussions
FINAL NOTES
KMD Pro represents a paradigm shift in technical analysis - moving from price-based indicators to distribution-based detection. By measuring statistical divergence rather than price divergence, the system identifies regime changes that precede traditional breakouts. This anticipatory capability, combined with comprehensive visualization and risk management, provides traders with an institutional-grade toolkit for navigating modern market dynamics.
Remember: The edge comes not from the indicator alone, but from understanding when market distributions diverge from their normal state and positioning accordingly. Use KMD Pro as part of a complete trading strategy that includes fundamental analysis, risk management, and market context.
Custom Date MarkersCustom Date Markers - Pine Script Indicator
This indicator provides a powerful visual tool for technical and pattern analysis by allowing traders to mark up to 10 specific historical dates with customizable vertical lines on any chart. Each date can be assigned its own unique color, making it easy to categorize and distinguish between different types of events or market catalysts.
Primary Use Cases:
The indicator excels at identifying cyclical patterns and recurring market behavior. By marking significant dates such as earnings announcements, Federal Reserve meetings, dividend ex-dates, or seasonal events, traders can quickly visualize whether stocks consistently react in similar ways around these recurring dates. This is particularly valuable for discovering hidden patterns that might not be obvious from price action alone.
Practical Applications:
Earnings Analysis: Mark historical earnings dates to see if a stock tends to rally or sell-off before/after announcements
Macro Events: Identify how assets respond to FOMC meetings, CPI releases, or other economic data
Seasonal Patterns: Track dates that show recurring volatility or directional moves (like tax deadline periods, end-of-quarter re balancing, etc.)
Event Studies: Analyze the impact of company-specific events like product launches, FDA approvals, or leadership changes
Advanced Insights:
What makes this tool particularly interesting is its ability to reveal non-obvious correlations. For example, you might discover that a retail stock consistently experiences volume spikes 2-3 weeks before Black Friday across multiple years, or that certain tech stocks show weakness during specific conference dates. The color-coding feature allows you to layer multiple event types simultaneously—perhaps using red for bearish catalysts and green for bullish ones—creating a visual heat map of historical market reactions.
The indicator's 6-month default spacing (covering 4.5 years) is strategically designed to capture multiple business cycles while maintaining clarity on the chart. This timeframe is long enough to identify genuine patterns rather than coincidences, yet focused enough to remain relevant to current market conditions.
Pro Tip: Combine this indicator with volume analysis or other technical indicators to validate whether the patterns you observe are accompanied by meaningful market participation or if they're statistical noise.
[PS] Planetary Movements & Nakshatras - Adv Astrological Trading🌟 Planetary Movements & Nakshatras - Advanced Astrological Trading Indicator
📊 Overview
Planetary Movements & Nakshatras is a comprehensive Pine Script indicator that bridges ancient Vedic astrology with modern technical analysis. This powerful tool overlays planetary positions, transitions, alignments, and nakshatras (lunar mansions) directly on your price charts, providing unique insights into potential market movements based on celestial patterns.
🎯 Key Features
1. Real-Time Planetary Tracking
Displays current positions of 7 major celestial bodies: Sun ☉, Moon ☽, Mercury ☿, Venus ♀, Mars ♂, Jupiter ♃, and Saturn ♄
Shows each planet's current zodiac sign and nakshatra
Optional degree display for precise astronomical positioning
Color-coded labels for easy identification
2. Industry-Specific Intelligence
Choose from 15 industry classifications with customized planetary and nakshatra associations:
Technology - Mercury, Rahu, Uranus (Innovation & Communication)
Finance/Banking - Jupiter, Mercury, Venus (Wealth & Trade)
Healthcare/Pharma - Sun, Moon, Jupiter (Vitality & Healing)
Energy/Oil - Sun, Mars (Power & Energy)
Agriculture - Moon, Venus, Jupiter (Growth & Fertility)
Real Estate - Saturn, Mars, Venus (Property & Construction)
Media/Entertainment - Venus, Mercury, Moon (Arts & Creativity)
Transportation - Mars, Mercury, Moon (Movement & Travel)
Metals/Mining - Saturn, Mars, Sun (Minerals & Iron)
FMCG/Retail - Venus, Mercury, Moon (Commerce & Consumer Goods)
Telecom - Mercury, Rahu (Communication & Networks)
Automobile - Mars, Saturn, Mercury (Machinery & Engineering)
Defense - Mars, Sun, Saturn (War & Discipline)
Education - Jupiter, Mercury, Moon (Knowledge & Learning)
General - All planets (Universal application)
Primary planets for each industry are marked with ★ and highlighted with vibrant colors, while secondary planets appear muted.
3. 27 Nakshatras (Lunar Mansions)
Complete coverage of all 27 Vedic nakshatras from Ashwini to Revati:
Each nakshatra spans 13.33° of the zodiac
Industry-specific favorable nakshatras marked with ✓
Visual nakshatra boundaries with dotted lines
Configurable display: Lines, Labels, Both, or None
Enhanced visualization for auspicious nakshatras
4. Planetary Transitions & Sign Changes
Track when planets change zodiac signs (every 30°):
Triangle markers indicate sign transitions
Historical price impact displayed with each transition
Shows average upward ↑% and downward ↓% swing following the event
Significant transitions highlighted at chart bottom
Regular transitions appear at chart top
5. Planetary Alignments & Aspects
Detects major astronomical events:
Conjunctions - Planets in the same position (customizable orb: 1-15°)
Oppositions - Planets 180° apart (customizable orb: 1-15°)
Sun-Moon Conjunctions (New Moon) - Powerful market turning points
Sun-Moon Oppositions (Full Moon) - High volatility periods
Jupiter-Saturn Conjunctions - Major cycle indicators (every 20 years)
Background highlighting for major alignments
6. Advanced Pattern Detection System
Machine learning-inspired historical analysis:
Automatic Pattern Recognition - Identifies recurring planetary configurations
Swing Analysis - Calculates price movements following each event
Configurable Parameters:
Minimum Swing Threshold (0.5% - 50%)
Lookforward Period (5-180 days)
Minimum Occurrences (1-10 instances)
Statistical Tracking:
Count of pattern occurrences
Average upward swing percentage
Average downward swing percentage
Maximum upward swing
Maximum downward swing
Industry Relevance Filtering - Focus only on patterns relevant to your sector
7. Three Interactive Information Tables
📋 Industry Planet Guide Table (Configurable Position)
Shows primary planets to watch for your selected industry
Lists favorable nakshatras for optimal timing
Legend explaining symbols (★ = Primary, ✓ = Favorable)
Compact format with color-coded information
📊 Pattern Statistics Table (Configurable Position)
Historical performance data for all detected patterns
Sortable by significance
Columns: Pattern Name, Count, Avg↑%, Avg↓%, Max↑%, Max↓%, Relevance
Color-coded thresholds (green for bullish, red for bearish)
Industry relevance marked with ★
Shows up to 15 most significant patterns
🔮 Future Events Table (Configurable Position)
Projects planetary events up to 365 days into the future
Lists upcoming transitions, conjunctions, and oppositions
Shows historical average price impacts for each future event
Date, Event type, Sign/Nakshatra, Expected swing percentages
Significant events marked with ★
Displays up to 20 upcoming events
Table Positioning: Each table can be placed in any of 9 positions:
Top: Left, Center, Right
Middle: Left, Center, Right
Bottom: Left, Center, Right
8. Visual Enhancements
Nakshatra Boundary Lines - Dotted vertical lines every 27 bars
Color-Coded Events - Orange (Sun), Silver (Moon), Yellow (Mercury), Green (Venus), Red (Mars), Purple (Jupiter), Blue (Saturn)
Significance Highlighting - Bright colors for high-impact events, muted for regular events
Background Shading - Subtle yellow for Sun-Moon conjunctions, purple for Jupiter-Saturn conjunctions
Responsive Labels - Adjustable size (tiny, small, normal, large)
9. Astronomical Calculations
Julian Day Number conversion for precise date handling
Keplerian Orbital Elements for planetary position calculation
J2000 Epoch (January 1, 2000) as reference point
Accurate for historical, current, and future dates
Accounts for mean longitude and orbital mechanics
🎛️ Comprehensive Settings
Industry Settings
15 industry types with pre-configured planetary associations
Planets Group
Toggle planetary positions display
Toggle transition markers
Toggle alignment indicators
Planet Selection
Individual on/off switches for all 7 planets
Mix and match based on your trading strategy
Pattern Detection
Enable/disable pattern recognition
Minimum swing threshold (%)
Days to measure swing impact
Minimum pattern occurrences for validity
Highlight significant events
Filter by industry-relevant planets
Alignments
Conjunction orb (1-15°)
Opposition orb (1-15°)
Customizable sensitivity
Display Options
Label size selection
Show/hide degree measurements
Toggle all three information tables
Nakshatra display modes
Table Settings
Show/hide Future Events Table
Show/hide Pattern Statistics Table
Show/hide Industry Guide Table
Configure position for each table (9 positions)
Adjust future projection days (30-365)
Nakshatras
Display modes: Lines, Labels, Both, or None
Automatic favorable nakshatra highlighting
💡 Use Cases
Timing Market Entries & Exits
Identify high-probability periods using planetary alignments
Watch for favorable nakshatra transits in your industry
Track historical success rates of specific planetary configurations
Risk Management
Be aware of volatile periods (Full Moons, major transitions)
Reduce position sizes during unfavorable planetary periods
Increase exposure during auspicious nakshatra alignments
Industry-Specific Analysis
Technology stocks may respond to Mercury movements
Banking stocks may correlate with Jupiter-Venus alignments
Energy stocks may track Sun-Mars aspects
Long-Term Cycle Analysis
Jupiter-Saturn conjunctions mark major market cycles (20-year cycles)
Saturn transitions indicate sector rotation (2.5-year cycles)
Jupiter transitions show expansion/contraction phases (1-year cycles)
Intraday & Swing Trading
Moon transitions every 2.5 days for short-term timing
Mercury retrogrades for communication/tech sector volatility
Venus transitions for consumer goods and luxury items
Pattern Backtesting
Quantify historical price impacts of specific events
Build confidence in planetary timing strategies
Compare multiple patterns for optimal selection
📈 Performance & Optimization
Efficient Calculations - Optimized algorithms for minimal lag
Smart Pattern Storage - Tracks only significant patterns
Configurable Display Limits - Control label and line counts
Future Projection - Pre-calculates events without real-time overhead
Industry Filtering - Reduces noise by focusing on relevant patterns
🔧 Technical Specifications
Pine Script Version: 6
Chart Type: Overlay (true)
Max Labels: 500
Max Lines: 500
Max Boxes: 500
Calculation Method: Simplified Keplerian orbital mechanics
Date Range: Works for past, present, and future dates
Zodiac System: Tropical (Western) zodiac with Vedic nakshatras
🌙 Nakshatra Reference
All 27 nakshatras are supported with industry-specific favorable classifications:
Ashwini - Swift action, healing, pioneering (Tech, Auto, Transport)
Bharani - Transformation, restraint (Defense, Entertainment)
Krittika - Purification, cutting through (Energy, Real Estate, Metals)
Rohini - Growth, beauty, fertility (Finance, Agriculture, FMCG)
Mrigashira - Seeking, curiosity (Agriculture, Auto)
Ardra - Storm, transformation, breakthroughs (Tech, Telecom)
Punarvasu - Renewal, expansion (Agriculture, Transport, Telecom, Education)
Pushya - Nourishment, prosperity (Finance, Healthcare, Agriculture, Education)
Ashlesha - Control, mysticism (Healthcare)
Magha - Power, authority, leadership (Energy, Metals, Defense)
... and 17 more nakshatras with specific industry associations
🎨 Color Scheme
Sun ☉ - Orange (vitality, authority)
Moon ☽ - Silver (emotions, public)
Mercury ☿ - Yellow (communication, intellect)
Venus ♀ - Green (beauty, wealth, harmony)
Mars ♂ - Red (action, energy, conflict)
Jupiter ♃ - Purple (expansion, wisdom, fortune)
Saturn ♄ - Blue (restriction, discipline, structure)
📚 Trading Strategy Ideas
The Industry-Specific Strategy
Select your stock's industry classification
Focus only on primary planet transitions (marked with ★)
Wait for favorable nakshatra alignments (marked with ✓)
Check Pattern Statistics Table for historical success rate
Enter on confluence of favorable conditions
The Alignment Trading Strategy
Monitor Sun-Moon conjunctions (New Moons) for trend reversals
Track Sun-Moon oppositions (Full Moons) for volatility spikes
Use conjunction orb settings to fine-tune sensitivity
Compare with technical support/resistance levels
The Pattern Recognition Strategy
Enable Pattern Detection with your preferred parameters
Set minimum swing threshold based on your risk tolerance
Focus on patterns with high occurrence counts (5+)
Use Future Events Table to plan entries in advance
Backtest patterns in Pattern Statistics Table
The Nakshatra Timing Strategy
Identify favorable nakshatras for your industry
Wait for Moon to transit through favorable nakshatras
Combine with planetary transitions for stronger signals
Use nakshatra boundary lines for visual confirmation
⚠️ Disclaimer
This indicator is for educational and research purposes only. Planetary positions and astrological calculations should not be the sole basis for trading decisions. Always combine with fundamental analysis, technical analysis, and proper risk management. Past performance of planetary patterns does not guarantee future results. Trading involves substantial risk of loss.
🔄 Updates & Support
This indicator combines ancient wisdom with modern data analysis. While planetary positions are calculated using established astronomical formulas, the correlation between celestial events and market movements is a subject of ongoing research and debate. Use this tool as one component of a comprehensive trading strategy.
Simplified Fear & Greed Index (SFGI) by NeW📌 Overview
This indicator provides a Simplified Fear & Greed Index (SFGI), a general-purpose sentiment tool designed to analyze the psychological state of any single security or asset (including individual stocks, indices, and crypto). While traditional Fear & Greed indices are fixed on the broad market, the SFGI calculates sentiment based on the internal metrics of the specific asset currently viewed. The index ranges from 0 (Extreme Fear) to 100 (Extreme Greed).
📊 Methodology (Internal Factors)
The SFGI index is calculated by normalizing and combining several key factors over a rolling period:
Price Momentum: Deviation from a long-term Simple Moving Average (SMA).
52-Week Range Deviation: Current price position within the 52-week high-low range.
Volatility: Momentum of the Average True Range (ATR) / SMA of ATR.
A/D Line Momentum: Momentum of the Accumulation/Distribution Line, indicating the quality of buying/selling volume.
(Optional) Put/Call Ratio (PCR): The input Include Put/Call Ratio Factor allows you to include an external, broad-market factor (like USI:PC or INDEX:CPC) for correlation analysis.
⚠️ Important Note: Combine with Other Analysis
THIS IS A SIMPLIFIED SENTIMENT TOOL. This indicator is intended to be used only as a supplementary tool for market timing and sentiment confirmation. You must combine this index with comprehensive technical analysis (price action, volume, support/resistance) and fundamental research. Do not rely on this index alone for making any trading decisions. Use it to gauge the psychological state of the market for the specific asset you are viewing.
Nancy's All-In-One [Private] [Institutional]A Private Institutional Tool by Design
PRIVATE ACCESS ONLY
This script is not for public usage or those casually scrolling through the indicator library. This is a private tool, built for precision, and extremely powerful in the wrong hands. Used properly, it can unlock financial freedom yes, it’s that potent.
“This is the closest you’ll get to peeking behind the curtain of institutional strategy without having a Bloomberg terminal or a Wall Street badge.”
– KC Research
What It Does
The Nancy All-In-One is the culmination of thousands of hours of backtesting, real-world application, and tactical insights drawn from elite strategies used at places like Renaissance Technologies, proprietary desks, and private equity firms.
This version fuses:
DTT Root Candles & Time-Zone Price Levels (including NY Judas, Kyoto, Osaka, etc.)
Intraday Sessions & Micro Box Models (Turncoat, Bishop, Knight, Big Ben, etc.)
Quarterly Micro Cycles — breaks down time into high-probability 90-minute blocks
Fib-Based Inner Intervals — ideal for sniper-level scalps or early entries
SMT Divergences, PD High/Low, NWOG/NDOG/EHPDA setups
Multi-Timeframe Visualization (with user control over display resolution)
Every line, label, and box drawn has a purpose, engineered to expose fractal imbalances, liquidity traps, and premium/discount zones with surgical accuracy.
How to Use It
Use the 1M or 5M chart — This script was optimized with lower-timeframe precision in mind. It works higher up, but that’s not its primary edge.
Turn on sessions you want under Turn Modules On group. Each session represents a model with its own behavior (e.g. Osaka Model = Asia liquidity expansion).
Price Lines — The "DTT Root Candles" levels are critical. These are not random timestamps—they represent algorithmic triggers derived from real volume and timing analysis.
Quarterly Cycles — Use these to trade from zone-to-zone with context. Each 90-minute block often contains a reversal, breakout, or liquidity sweep.
SMT, PDHL, NWOG, NDOG — These are best used with confluence. The more boxes and lines that agree, the higher your confidence.
Built for Traders Who Know the Game
This is not a magic button. It’s a complex system that assumes you're willing to study it, adapt it, and integrate it into your own strategy. It’s a tool—not a signal generator. It won't tell you when to buy or sell, but it will show you exactly where institutions are hunting.
Settings & Customization
You can toggle each element on/off to declutter your chart.
Change label sizes, opacity, and styles to suit your preferences.
Adjust session times if you're not in EST (UTC-5 default).
Works Best With:
1M to 15M charts (although elements scale up)
Liquid FX pairs, indices (SPX, NAS100), BTC, and ETH
Time-sensitive entries (news, killzones, session opens)
Final Note
This was developed internally by Nancy and private anon entities, and is still being actively expanded. Portions of the code are open-source, but most logic is proprietary and reverse-engineering resistant.
If you don’t know what NWOG, EQH/PDH, or SMT are—this isn’t for you. If you do... welcome to the other side.
Chanlun - Strokes & Central ZonesChanlun Indicator - Strokes and Central Zones
This indicator implements Chan lun's core concepts:
Bi (Stroke): Basic price movement units formed by local highs and lows
Zhongshu (Central Zone): Overlapping areas formed by at least 3 strokes
Extension Lines: Visual guides for the latest central zone boundaries
Key Features:
Automatic stroke identification based on local extremes
Central zone detection with customizable colors
Extension lines for latest central zone (upper/lower bounds)
Separate colors for strokes within central zones
Price labels on the axis for zone boundaries
Settings:
Max Bars: Maximum K-lines to analyze (default: 4900)
Lookback Period: Period for finding local extremes (default: 5)
Min Gap Bars: Minimum bars between strokes (default: 4)
Customizable colors for strokes, zones, and extension lines
Aude - Minimal Session IndicatorMinimal Session Indicator
- The indicator allows users to highlight specific sessions (time range) on the chart.
- There are options to change the visual settings of the session box (BG color, Border color, Border style).
- Max 500 sessions drawn
VIX Overnight Unch or Up AlertThis indicator alerts when VIX opens the day unchanged or higher on the day. If in fact VIX opens up unchanged or higher, it will display near the first bar of the day, previous day's close time and level and the opening time and level. The close time is typically 16:15 New York Time and the opening time is 09:30 or the first print a few minutes later. I use TVC:VIX instead of CBOT because TVC for me is real time. I also use the 1 minute chart and the script is coded as 1 minute.
Goldbach Energy Curve⚡ Goldbach Energy Curve (G-Energy)
Precision phase-energy detection for professional traders
The Goldbach Energy Curve transforms raw market motion into a smooth, color-coded energy profile — revealing when price transitions between Accumulation, Manipulation, and Distribution states.
It blends advanced filtering with adaptive energy mapping to visualize market compression and expansion cycles in real time.
Use it to sense when momentum is building, fading, or rotating across phases — before structure or volume confirms the shift.
⚙️ How to Read the Energy Curve
Below 10 → Ultra-Low Energy Zone
Market in deep Accumulation — liquidity builds, volatility compresses, and smart money positions quietly.
10 – 33 → Rising Accumulation
Early signs of energy release; watch for breakout or expansion setups.
33 – 66 → Manipulation Phase
Transitional zone; expect false moves, liquidity grabs, and short-term volatility spikes.
Above 66 → Distribution Phase
Energy peaks — trend exhaustion, reversals, or large-scale profit-taking often emerge.
Align your directional bias with the market’s current energy state, from silent buildup to full distribution.
Features
Dynamic A / M / D phase tracking
Smooth histogram with adaptive curve overlay
Automatic background shading for instant context
Non-repainting and optimized for multi-timeframe analysis
Ideal for:
Institutional-style traders who value precision, clarity, and early insight into phase rotations.






















