Smarter Money Concepts - Wyckoff Springs & Upthrusts [PhenLabs]📊Smarter Money Concepts - Wyckoff Springs & Upthrusts
Version: PineScript™v6
📌Description
Discover institutional manipulation in real-time with this advanced Wyckoff indicator that detects Springs (accumulation phases) and Upthrusts (distribution phases). It identifies when price tests support or resistance on high volume, followed by a strong recovery, signaling potential reversals where smart money accumulates or distributes positions. This tool solves the common problem of missing these subtle phase transitions, helping traders anticipate trend changes and avoid traps in volatile markets.
By combining volume spike detection, ATR-normalized recovery strength, and a sigmoid probability model, it filters out weak signals and highlights only high-confidence setups. Whether you’re swing trading or day trading, this indicator provides clear visual cues to align with institutional flows, improving entry timing and risk management.
🚀Points of Innovation
Sigmoid-based probability threshold for signal filtering, ensuring only statistically significant Wyckoff patterns trigger alerts
ATR-normalized recovery measurement that adapts to market volatility, unlike static recovery checks in traditional indicators
Customizable volume spike multiplier to distinguish institutional volume from retail noise
Integrated dashboard legend with position and size options for personalized chart visualization
Hidden probability plots for advanced users to analyze underlying math without chart clutter
🔧Core Components
Support/Resistance Calculator: Scans a user-defined lookback period to establish dynamic levels for Spring and Upthrust detection
Volume Spike Detector: Compares current volume to a 10-period SMA, multiplied by a configurable factor to identify significant surges
Recovery Strength Analyzer: Uses ATR to measure price recovery after breaks, normalizing for different market conditions
Probability Model: Applies sigmoid function to combine volume and recovery data, generating a confidence score for each potential signal
🔥Key Features
Spring Detection: Spots accumulation when price dips below support but recovers strongly, helping traders enter longs at potential bottoms
Upthrust Detection: Identifies distribution when price spikes above resistance but falls back, alerting to possible short opportunities at tops
Customizable Inputs: Adjust lookback, volume multiplier, ATR period, and probability threshold to match your trading style and market
Visual Signals: Clear + (green) and - (red) labels on charts for instant recognition of accumulation and distribution phases
Alert System: Triggers notifications for signals and probability thresholds, keeping you informed without constant monitoring
🎨Visualization
Spring Signal: Green upward label (+) below the bar, indicating strong recovery after support break for accumulation
Upthrust Signal: Red downward label (-) above the bar, showing failed breakout above resistance for distribution
Dashboard Legend: Customizable table explaining signals, positioned anywhere on the chart for quick reference
📖Usage Guidelines
Core Settings
Support/Resistance Lookback
Default: 20
Range: 5-50
Description: Sets bars back for S/R levels; lower for recent sensitivity, higher for stable long-term zones – ideal for spotting Wyckoff phases
Volume Spike Multiplier
Default: 1.5
Range: 1.0-3.0
Description: Multiplies 10-period volume SMA; higher values filter to significant spikes, confirming institutional involvement in patterns
ATR for Recovery Measurement
Default: 5
Range: 2-20
Description: ATR period for recovery strength; shorter for volatile markets, longer for smoother analysis of post-break recoveries
Phase Transition Probability Threshold
Default: 0.9
Range: 0.5-0.99
Description: Minimum sigmoid probability for signals; higher for strict filtering, ensuring only high-confidence Wyckoff setups
Display Settings
Dashboard Position
Default: Top Right
Range: Various positions
Description: Places legend table on chart; choose based on layout to avoid overlapping price action
Dashboard Text Size
Default: Normal
Range: Auto to Huge
Description: Adjusts legend text; larger for visibility, smaller for minimal space use
✅Best Use Cases
Swing Trading: Identify Springs for long entries in downtrends turning to accumulation
Day Trading: Catch Upthrusts for short scalps during intraday distribution at resistance
Trend Reversal Confirmation: Use in conjunction with other indicators to validate phase shifts in ranging markets
Volatility Plays: Spot signals in high-volume environments like news events for quick reversals
⚠️Limitations
May produce false signals in low-volume or sideways markets where volume spikes are unreliable
Depends on historical data, so performance varies in unprecedented market conditions or gaps
Probability model is statistical, not predictive, and cannot account for external factors like news
💡What Makes This Unique
Probability-Driven Filtering: Sigmoid model combines multiple factors for superior signal quality over basic Wyckoff detectors
Adaptive Recovery: ATR normalization ensures reliability across assets and timeframes, unlike fixed-threshold tools
User-Centric Design: Tooltips, customizable dashboard, and alerts make it accessible yet powerful for all trader levels
🔬How It Works
Calculate S/R Levels:
Uses the highest high and the lowest low over the lookback period to set dynamic zones
Establishes baseline for detecting breaks in Wyckoff patterns
Detect Breaks and Recovery:
Checks for price breaking support/resistance, then recovering on volume
Measures recovery strength via ATR for volatility adjustment
Apply Probability Model:
Combines volume spike and recovery into a sigmoid function for confidence score
Triggers signal only if above threshold, plotting visuals and alerts
💡Note:
For optimal results, combine with price action analysis and test settings on historical charts. Remember, Wyckoff patterns are most effective in trending markets – use lower probability thresholds for practice, then increase for live trading to focus on high-quality setups.
趨勢分析
Vesperis v8.1 by JaeheeVesperis v8.1 by Jaehee
Overview
This script is a short-side trading strategy designed for trend-following conditions where bearish momentum aligns across multiple independent filters. It does not aim to predict tops or bottoms. Instead, it waits for confirmation that the market has entered a strong downtrend and then manages trades with structured risk controls.
Core Components
The strategy combines several classical concepts but applies them in a multi-filter consensus framework to reduce false signals:
• SSL Hybrid Filter → Defines directional bias using an EMA-based signal line
• MOBO Bands (modified Bollinger framework) → Measures volatility compression and breakout expansion
• EMA 20/50/100 Alignment → Confirms bearish structure when shorter averages remain under longer ones
• ADX Strength Gate → Trades are permitted only when trend strength (Wilder’s ADX) is above a chosen threshold
• Heikin Ashi Smoothing → Provides visual clarity and reduces noise in trend recognition
• Cooldown Rule → After a losing trade, the system waits a configurable number of bars before re-entry to enforce discipline
Risk Management
• Take-Profit (TP) and Stop-Loss (SL) are dynamically attached to each entry
• TP and SL are ratio-based relative to the entry price
• Cooldown logic prevents immediate re-entries after losses
• Position sizing is based on percentage of equity, with commissions factored in for realistic simulation
Visualization
• EMA 20/50/100 ribbon with soft gradient colors
• MOBO band plotted with contrasting tones for clarity
• SSL baseline overlay
• ADX values displayed every 10 bars for contextual strength
• Background shading highlights bullish vs bearish trend regimes
• Heikin Ashi candle coloring for directional bias emphasis
Why This Combination?
Each component addresses a different market dimension:
• Direction (SSL, EMA alignment)
• Volatility & Breakout Context (MOBO Bands)
• Strength (ADX filter)
• Trade Discipline (Cooldown rule)
When layered together, they reduce the chance of acting on a single misleading condition. For example, a close under MOBO support is acted upon only if ADX confirms strong momentum and EMA structure validates a broader bearish regime. This multi-gate approach balances selectivity with responsiveness, aiming for consistent entries during trending phases rather than over-trading in sideways conditions.
Important Notes
• This script is a strategy, not just an indicator. It performs backtestable entries and exits within TradingView’s framework
• Default properties include realistic assumptions: commission, slippage approximation, and percentage-based position sizing
• Results will vary by market and timeframe; this tool does not guarantee outcomes and should be combined with independent risk management
• Invite-only access ensures controlled distribution
Compliance with TradingView House Rules
• No external links, promotions, or contact information
• Clear explanation of what, how, and why without revealing full code logic
• Highlights originality: consensus-based filter design with combined ADX, SSL, MOBO, EMA gating
• Provides conceptual and educational value to traders while remaining distinct from classic single-element scripts
Romisaurus Custom Indicator v5.1Ultra clean confluence engine for serious momentum traders. It maps demand and supply zones, optional FVGs, MTF EMA bias, ATR and volume filters, VSA hammers, liquidity sweeps, and smart premarket breakouts. Patterns are labeled and everything anchors to price, so signals print only when multiple edges align. Add it to your chart, flip on your favorite filters, and hunt high probability moves with confidence.
Live Trading Metrics DashboardReal-Time Trading Data Table for Chart Analysis
This clean and professional dashboard displays essential trading metrics directly on your chart in an easy-to-read table format. Perfect for traders who need quick access to key volatility and momentum data without cluttering their chart with multiple indicators.
Key Metrics Displayed:
IBD Relative Strength (RS):
Professional Formula: Uses Investor's Business Daily methodology
Multi-Timeframe Analysis: Weighted calculation across 3, 6, 9, and 12-month periods
Performance Indicator: Shows how the instrument performs relative to its historical price action
Real-Time Updates: Values update with each bar for current market conditions
1.5 ATR (Average True Range):
Volatility Measurement: 14-period ATR multiplied by 1.5 for extended range analysis
Stop-Loss Placement: Ideal for setting dynamic stop-loss levels
Risk Management: Helps determine appropriate position sizing based on volatility
Breakout Targets: Useful for setting profit targets on breakout trades
1.5 ATR Percentage:
Relative Volatility: Shows 1.5 ATR as a percentage of current price
Cross-Asset Comparison: Enables volatility comparison across different instruments
Position Sizing: Helps calculate risk per trade as percentage of price
Market Context: Understand volatility relative to instrument value
How to Interpret:
Positive IBD RS: Instrument showing strength relative to historical performance
Negative IBD RS: Instrument showing weakness relative to historical performance
Higher ATR Values: Increased volatility, wider stops needed
Higher ATR %: Greater relative volatility for the instrument's price level
Perfect For:
Day traders needing quick volatility reference
Swing traders using IBD methodology
Position traders managing risk with ATR-based stops
Any trader wanting clean, organized data display
Swing Breakout System(Mastersinnifty)Description
The Swing Breakout System is a structured price-action tool that identifies potential breakout opportunities around recent market swings. It dynamically plots entry levels, protective stops, and multiple profit targets while managing trades with optional trailing stops and re-entry logic. A built-in statistics panel summarizes performance metrics in real-time, giving traders immediate insights into system behavior.
How It Works
Detects potential breakout zones around significant swing structures.
Signals possible long or short entries when price breaks these zones.
Automatically generates entry, stop-loss, and profit targets based on volatility-adjusted calculations.
Includes features for breakeven stop adjustment, trailing stop management, and partial/full exits.
Provides optional re-entry conditions after pullbacks.
Displays a stats panel summarizing total trades, target hits, and win rates for performance tracking.
Why It’s Unique
Unlike conventional breakout tools that simply highlight price levels, the Swing Breakout System combines breakout detection with dynamic trade management. It not only identifies breakout entries but also:
Adapts stop-loss and targets based on market volatility.
Tracks performance with a live statistics panel, helping traders measure effectiveness without external tools.
Provides optional re-entry logic after pullbacks, allowing traders to re-engage with strong trends.
Integrates partial exits, breakeven stops, and trailing stops into a single workflow.
This makes it a self-contained breakout and trade-management suite, rather than just a level-marker indicator.
Inputs
Swing Length – defines how far back swing structures are detected.
Volatility Length – used for adaptive stop and target calculations.
Target Multipliers – customize risk/reward levels.
Initial & Trailing Stop Controls – adjust stop management behavior.
Re-entry Buffer – fine-tunes pullback re-entry conditions.
Toggle options – enable/disable stats panel, trailing after profit targets, or full exits at the first target.
Use Case
Helps traders systematically identify breakout opportunities based on swing structures.
Provides rule-based trade management to reduce discretionary errors.
Tracks performance metrics in real time for ongoing strategy evaluation.
Can be applied to multiple markets and timeframes, including intraday, swing, and positional trading.
Disclaimer
This script is for educational and informational purposes only. It is not financial advice or a guarantee of performance. Trading involves risk, and past results do not imply future returns. Always backtest thoroughly and apply sound risk management before using in live markets.
Average True Ranges with IBD RSAdvanced ATR Analysis with IBD Relative Strength
This comprehensive indicator combines Average True Range (ATR) analysis with IBD (Investor's Business Daily) Relative Strength calculation, providing both volatility measurement and momentum analysis in one powerful tool.
Key Features:
ATR Analysis:
Standard ATR: Customizable period (default 14) with multiple smoothing options
1.5x ATR: Extended range for wider stop-loss and target calculations
Smoothing Options: Choose between RMA, SMA, EMA, or WMA for ATR calculation
Customizable Colors: Distinct colors for easy visual identification
IBD Relative Strength:
Professional RS Formula: Uses the same calculation method as Investor's Business Daily
Multi-Timeframe Analysis: Compares current price to 3, 6, 9, and 12-month performance
Weighted Calculation: 40% weight on 3-month, 20% each on 6, 9, and 12-month performance
Zero-Based Scale: Values above 0 indicate outperformance, below 0 indicate underperformance
Trading Applications:
Volatility-Based Stops: Use ATR and 1.5x ATR for dynamic stop-loss placement
Position Sizing: ATR helps determine appropriate position size based on volatility
Relative Strength Analysis: IBD RS identifies stocks with superior momentum
Market Timing: High RS values often precede strong price moves
Risk Management: Combine volatility (ATR) with momentum (RS) for comprehensive analysis
Technical Details:
ATR Calculation: True Range smoothed over selected period with chosen method
IBD RS Formula: (40% × 3M) + (20% × 6M) + (20% × 9M) + (20% × 12M) - 100
Display: Separate pane indicator with customizable colors for each component
How to Interpret:
High ATR: Increased volatility, wider stops needed
Low ATR: Reduced volatility, tighter stops possible
Positive IBD RS: Stock outperforming market over measured periods
Negative IBD RS: Stock underperforming market over measured periods
Customizable Parameters:
ATR calculation length
Smoothing method for ATR
Individual colors for ATR, 1.5x ATR, and IBD RS lines
Perfect for swing traders and position traders who want to combine volatility analysis with relative strength momentum in their decision-making process. Particularly useful for stock selection and risk management.
Market Structure: HH/HL/LH/LL (v6, simple)What it does
Labels swing High/Low and classifies structure as HH / HL / LH / LL after confirmation.
Uses confirmed fractals (pivothigh/pivotlow) → no repaint after confirmation (there is a right-bar confirmation delay).
Optional swing connectors (lines), optional plain H/L when structure label is not applicable.
Plots last confirmed High/Low levels as reference.
Alerts when a new HH/HL/LH/LL is formed.
How it works
Swings are detected with ta.pivothigh() / ta.pivotlow() using user-defined left and right.
A pivot is confirmed only after right bars on the right—this is the only delay. Once confirmed, the label does not repaint.
Inputs
Left bars & Right bars – fractal sensitivity.
Connect swings with lines – draw lines between consecutive swings.
Show bullish (HH/HL) / Show bearish (LH/LL) – filter what to display.
Show plain H/L – draw H/L when classification is not HH/HL/LH/LL yet.
Recommended settings
1H–4H: left=2, right=2 (responsive).
1D+: left=3, right=3 (cleaner swing map).
Alerts provided
HH formed – new Higher High confirmed.
HL formed – new Higher Low confirmed.
LH formed – new Lower High confirmed.
LL formed – new Lower Low confirmed.
Use them to automate structure tracking or feed your strategy rules.
Tips
Trend up: a sequence of HH + HL; Trend down: LH + LL.
Combine with VWAP/EMA, liquidity zones, or volume/CVD to avoid chasing late signals.
The script is intentionally simple and lightweight; BOS/CHoCH can be added in a future update.
Limitations / Notes
Because the tool relies on confirmed pivots, signals are delayed by right bars.
This is not financial advice and not a buy/sell system on its own.
Changelog
v1.0 – Initial public release (Pine v6). Structure labels, swing connectors, last levels, and alert set.
Keywords
market structure, hh hl lh ll, swing, fractal, pivothigh, pivotlow, trend, structure labels, price action
Dynamic Trade Signals & Analytics(Mastersinnifty)1. Overview
The Dynamic Trade Signals & Analytics indicator is an advanced tool designed to help traders visualize trade signals, manage positions, and analyze past trade performance. It combines signal generation, swing tracking, and risk management tools into a single chart overlay, giving traders a structured way to review market opportunities and their outcomes.
________________________________________
2. Core Logic
• Uses an ATR-based calculation to detect potential trend shifts.
• Confirms buy/sell signals only when price action validates the trend change.
• Applies user-defined filters to display only Long trades, Short trades, or Both.
• Calculates stop-loss levels dynamically from recent swing highs/lows and trend-based
signals.
• Tracks trades with entry/exit levels, timestamps, and percentage performance.
• Displays results in a Swing Percentage Table and offers a Lot Size Calculator for capital-based position sizing.
________________________________________
3. Key Features
• 🔹 Dynamic Buy/Sell signal generation with confirmation logic
• 🔹 Swing-based and trend-based stop-loss labeling
• 🔹 Real-time Swing P&L Table with entry/exit details and net returns
• 🔹 Integrated Lot Size Calculator for capital-based risk management
• 🔹 Customizable table positions and time zone display
• 🔹 Clean visual overlays with buy/sell markers and optional background highlights
________________________________________
4. Uniqueness
Unlike simple signal scripts, this indicator combines signal detection, performance tracking, and position sizing tools into one framework. The trade tables and lot calculator allow traders not only to see entry/exit signals but also to evaluate historical performance and manage risk more effectively without leaving the chart.
________________________________________
5. How to Use
1. Add the indicator to your chart.
2. Configure inputs:
a. Swing Table → Show/hide, position, and trade filter
b. Lot Size Calculator → Define capital & lot size
c. Timezone → Select preferred display format
3. Watch for buy/sell markers confirmed by the indicator.
4. Use swing or trend-based stop-loss levels as potential reference points.
5. Review the Swing Table for trade history and P&L percentages.
6. Use the Lot Size Calculator to quickly estimate position sizing based on available funds.
________________________________________
6. Disclaimer
This indicator is intended for educational and analytical purposes only. It does not predict future market outcomes or guarantee profitability. Trading financial markets carries risk, and users are solely responsible for their trading decisions. Always test on demo accounts and use sound risk management practices before applying to live markets.
Dual Stochastic Oscillator for trend + momentum confirmationTRADE ORBIT: Dual Stochastic Oscillator
This indicator combines two stochastic oscillators with different lookback periods to help traders identify short-term momentum shifts in the context of a broader trend.
🔹 Features:
Stochastic (5,3,3): Captures short-term momentum and overbought/oversold signals.
Stochastic (50,3,3): Acts as a long-term filter to determine the overall market trend.
Dual plotting: Both oscillators are displayed on the same panel for easy comparison.
Bands & Highlighting: Default 80/20 levels mark potential reversal zones, with shaded background for clarity.
🔹 How to Use:
When the short stochastic (%K 5) crosses above the long stochastic (%K 50) in the oversold zone → potential buy signal.
When the short stochastic (%K 5) crosses below the long stochastic (%K 50) in the overbought zone → potential sell signal.
Traders can also use the long stochastic as a trend filter:
Stay long only when %K (50) is above 50.
Stay short only when %K (50) is below 50.
🔹 Best For:
Swing traders looking for trend confirmation.
Intraday traders who want to filter signals with higher timeframe momentum.
Anyone combining stochastic with other tools (moving averages, support/resistance, price action).
⚠️ Note: This tool does not provide financial advice. Always combine with risk management and other confirmation signals.
🏛️ INSTITUTIONAL TRENDLINE v8 • Open Source🏛️ INSTITUTIONAL TRENDLINE v8 • Open Source
Adaptive S/R discovery with ML scoring, MTF confluence, and event-driven alerts
What it does (in one breath):
This indicator auto-discovers institutional-grade trendlines / dynamic support & resistance, scores them for quality using a dual-regime ML model (trend vs. range), validates them with multiple techniques (Theil–Sen, Huber, ATR/RSI/MACD/EMA, MTF confluence), then tracks breakouts, retests, failed breaks, proximity/touch events, and learns from outcomes to adapt over time. A visual panel summarizes stats, and optional heatmap/zones show where price is most “supported” or “capped”.
🚀 Quick Start (2 minutes)
Add to chart and leave defaults.
At the top of Inputs:
🎛️ Preset → choose your style: Scalper, Swing, Investor (or Custom).
🧬 Market Profile → pick Crypto/FX/Stocks + style or “Auto by Timeframe”.
Keep 🎯 Accuracy Mode = Quantum AI and ⚡ Performance = Maximum Quality if your device handles it.
Turn on 💥 Breakout Signals and 🚨 Alerts if you want notifications.
Read the right-side panel: Active Lines, Avg Q, Best Line, Market State, Nearest S/R, Top-3 lines, Pattern, Touch counts.
That’s it. You’ll see thinner, professional trendlines, small labels, optional zones, and tasteful break/retest markers.
🧠 How it works (plain English)
Discovery: It samples price pairs (with a swing-pivot bias) and fits many candidate lines.
Inlier-only R²: Instead of punishing outliers, it measures how tight touching bars are to a line.
ML Quality (0–100): Six signals (Touches, Volume @ touches, RSI, MACD, Volatility, Duration) are weighted differently for Trend vs Range regimes.
Validation: Rejects lines that disagree across Theil–Sen and Huber regressions (>15% slope deviation), fail slope/ATR filters, or lack MTF confluence.
Live tracking: Once a line is on the chart, the script watches for Breakouts → Retests → Failed breaks, and logs outcomes to continually re-weight the ML model (if enabled).
🎛️ Inputs (top section first)
1) Presets & Profiles (at the top)
🎛️ Preset
Scalper – lower lookbacks, faster, more signals.
Swing – balanced lookbacks, 2–4 lines per window.
Investor – longer lookbacks, fewer but stronger lines.
Custom – you control everything below.
🧬 Market Profile
Tailors thresholds for Crypto / FX / Stocks and your style (Scalper / Swing / Investor). Choose Auto by Timeframe to adapt from your chart resolution.
These two choices set “effective” requirements under the hood (min quality, R², proximity windows, cleanup cadence, etc.) so you don’t have to micromanage.
2) 🤖 Machine Learning Engine
Enable ML Enhancement – turns the adaptive scoring on/off.
ML Sensitivity – caps the maximum achievable score (lower = stricter).
Adaptive Learning – updates weights after each confirmed outcome.
Outcome Window (bars) & Target (ATR) – define when a breakout is counted as success or fail for learning.
Dual-Regime Models – separate weight sets for Trend and Range.
Tip: If results look “too picky,” raise ML Sensitivity slightly (e.g., 0.85→0.95).
3) 🎯 Accuracy & Filters
Minimum Touch Points / Quality / R² – base requirements for new lines.
Multi-Algorithm Validation – confirms slope across three regressions.
Volume / RSI / MACD / EMA / ATR filters – optional evidence checks.
No-Repaint Strict (HTF closed only) – for purists; fewer but cleaner MTF confirmations.
4) 🧠 Pro Logic / MTF
Swing-Anchored Sampling Bias – increases hits on meaningful swings.
HTF 1 / HTF 2 – reference frames for confluence (e.g., 4H & 1D).
HTF Bars to Scan / Touches Needed – how much agreement to demand.
Geometric Midline Agreement – proximity to HTF midlines (20-SMA).
Midline Distance Threshold (×ATR) – how strict that midline check is.
5) 💎 Visual System
Display Trendlines / Zones / Smart Labels / Breakout Signals / Heatmap – toggle pieces on/off.
Visual Theme & Color Intensity – pick a palette; v8 lines are thinner with subtle gradients.
Highlight Top-3 Lines – faint halo on the three highest-quality lines.
Limit Signal Markers / Bar – prevents clutter in fast moves.
Tip: For the cleanest chart: show Trendlines + Breakouts, keep Zones semi-transparent, and enable Heatmap only when you want confluence context.
6) 🚨 Alerts
Enable Smart Alerts – master switch.
Alert Quality Threshold – only alert for lines ≥ this Q%.
Base Proximity (ATR) & Slope-Adaptive Proximity – how close is “near”.
Retest / Failed-Break Windows – how long after a break to track.
Per-Line Cool-Off (bars) – spacing to avoid spam.
Consolidated JSON Alert/Bar – single JSON payload with all events per bar (great for bots).
Fire Inline Alerts (verbose) – pop real-time alerts the moment events occur.
Alert names (mapped to alertconditions):
🆕 New S/R Created
📍 Approaching Trendline
🎯 Touching Trendline
🟢 Bullish Breakout / 🔴 Bearish Breakdown
♻️ Bullish Retest / ♻️ Bearish Retest
⛔ Failed Break
7) ⚡ Performance
Performance Mode – quality vs speed.
Max New Lines per Lookback/Bar – caps how many fresh lines a bar can add.
Cleanup Interval (bars) & Max Lines to Keep – automatic memory & clutter control.
Theil–Sen Sampled Pairs – fewer = faster; more = robust.
📈 How to read the chart
Lines:
Color = Support (green) or Resistance (red) at current price.
Thickness/Style = relates to Quality and Touches (higher Q = slightly bolder).
Labels show a badge (💎 🏆 ⭐ ✅ 📊) with Q%. Tooltip lists touches, R², price@line, lookback, and which evidences are ON.
Zones: Soft confidence corridors around lines (ATR-scaled).
Heatmap: A faint background tint—dominant support, resistance, or neutral/confluence.
Break markers: tiny ▲ / ▼ (or 🚀/💀 when very strong). Retests and failed breaks are tagged separately.
Top-3 glow: subtle halo on the three best lines right now.
🧭 Trading workflow (example)
Scenario A – Trend continuation
Market panel shows TREND; Top-3 lines include two rising supports ≥90% Q.
Price approaches one of them → Touch → Bullish breakout above a local resistance line.
Wait for ♻️ Retest of that broken line from above; if RSI>50 & MACD>0 (shown in panel), open a long with stop just under the line or zone.
Exit partials at next resistance line; trail under the line.
Scenario B – Range fade
Panel says RANGE; heatmap is neutral/confluence.
Price tags a high-Q red line and prints Touch without breakout, while RSI>60 cools off.
Enter a mean-revert short with stop above the line; target midrange or next green line.
If a Bullish breakout fires during the trade → respect the Failed Break logic; exit quickly.
Scenario C – Breakout trader
Filter only lines with Q ≥ 90% and alerts ON.
When Breakout triggers with strength ≥ 4/7 (see panel), take a starter.
Add on Retest if it prints within your retest window and confluence still looks good.
Manage risk with ATR or zone width.
This is a levels & event indicator. It doesn’t replace your system; it gives objective lines and objective events around those lines.
✅ Best-practice setup
Presets/Profiles: Start with Swing + your Market Profile.
ML Sensitivity: 0.90–0.95 for most markets.
Alerts: Set Alert Quality ≥ 85–90, Cool-Off = 4–6 bars.
MTF: Use 4H + 1D on intraday; 1D + 1W on daily charts.
Clutter control: Max Lines ~200, Cleanup ~50 bars, Signal cap 6/bar (defaults are sensible).
No-repaint strict: Turn on for signal review; turn off if you want more frequent MTF confirmations in real time.
🔬 Research Mode (optional)
Enable 🧪 Research Mode to track win-rates by quality buckets. The panel shows Win% so you can calibrate your thresholds per market.
⚠️ Notes & limitations
This is open-source research software. Past performance ≠ future results.
Learning requires time: the ML engine adapts after outcomes; don’t expect instant magic.
Very low-liquidity symbols may produce fewer reliable lines; increase lookbacks or tighten filters.
MTF data uses request.security with no lookahead; turning No-Repaint Strict on can further reduce signals.
🧩 Troubleshooting
“Too many lines.” Raise Min Quality / R², lower Max Lines, or reduce cap per lookback.
“Too few lines.” Lower Min Quality a bit, raise ML Sensitivity, or choose an easier Preset/Market Profile.
“Alerts are spammy.” Raise Alert Quality, increase Cool-Off, increase Proximity threshold.
“Performance is slow.” Use Balanced / Fast, reduce Theil–Sen pairs, or extend Cleanup Interval.
📦 Included alertconditions (for one-click alert rules)
New S/R Created
Approaching Trendline
Touching Trendline
Bullish Breakout / Bearish Breakdown
Bullish Retest / Bearish Retest
Failed Break
Enjoy, share feedback, and feel free to fork.
If you publish ideas using it, please credit “INSTITUTIONAL TRENDLINE v8 • OS” so other traders can find the open-source original. Happy trading! 🫶
HiddenRidder - New 4 TSIHiddenRidder – 4x TSI Trend Confirmation
This indicator uses four customized True Strength Index (TSI) layers to help traders assess momentum and trend continuation. Inspired by the logic behind multi-line indicators like the Alligator, this setup provides visual clarity and layered confirmation for swing and trend-following strategies.
🔍 Key Features
# 4x TSI Overlay:
Displays four TSI lines with varying parameters to reflect short-, medium-, and long-term momentum.
Helps identify trend continuation or potential reversal zones.
# Trend Confirmation Logic:
When multiple TSI lines align in direction, it may signal a strong trend.
Divergence or misalignment between lines can prompt reevaluation of the current setup.
# Timeframe Flexibility:
Works across most timeframes, but best used as a secondary tool for deeper analysis.
Ideal for traders who want to study stock behavior with layered momentum confirmation.
⚙️ Recommended Usage
Use in combination with price action, volume, or moving averages for enhanced decision-making.
Suitable for swing traders and those seeking confirmation before entering or exiting trades.
📌 Disclaimer
This indicator is provided for educational purposes only. It does not constitute financial advice or guarantees of performance. Use at your own discretion and risk.
HiddenRidder - LongTerm- TSI w/BBHiddenRidder – LongTerm TSI with Bollinger Bands
This indicator is a multi-timeframe True Strength Index (TSI) tool designed for long-term trend analysis. It overlays three TSI signals from different timeframes on a single chart, helping traders visualize momentum shifts, trend strength, and potential reversals with added clarity.
🔍 Key Features
# Multi-Timeframe TSI:
Displays three TSI lines:
Blue: Current chart timeframe
Red: One lower timeframe (e.g., 1H if chart is Daily)
Smooth Line: One higher timeframe (e.g., Weekly if chart is Daily)
This layered view helps identify alignment or divergence across timeframes.
# Bollinger Band Overlay:
TSI values are plotted against Bollinger Bands to highlight overbought and oversold zones.
Crosses beyond the bands may indicate potential exhaustion or reversal points.
# Trend & Divergence Insights:
The indicator is designed to support trend-following strategies and may be enhanced in future versions with divergence detection.
Ideal for swing and position traders who prefer clean, long-term setups.
⚙️ Recommended Usage
Best suited for 1-hour and higher timeframes (e.g., Daily, Weekly).
- Can be used to:
>Confirm trend direction across timeframes
>Spot early signs of momentum shifts
>Identify potential entry/exit zones based on TSI behavior relative to Bollinger Bands
⚠️ Important Notes
The float-based divergence logic is experimental and may be refined in future updates.
📌 Disclaimer
This indicator is provided for educational purposes only. It does not constitute financial advice or guarantees of performance. Use at your own discretion and risk.
HiddenRidder - 4x - SupertrendHiddenRidder – 4x Supertrend
This indicator builds on the classic Supertrend concept, which is based on the Average True Range (ATR), and enhances it by combining four Supertrend layers to improve signal clarity and trend confirmation. It is designed for swing traders seeking multi-layered confirmation across timeframes.
🔍 Key Features
# 4x Supertrend Overlay:
Uses four Supertrend calculations with varying ATR lengths and multipliers.
Helps filter out noise and identify stronger, more reliable trend signals.
# Moving Averages for Confirmation:
Includes optional overlays of 50 and 200-period MAs .
These provide additional context for trend direction and continuation.
# Timeframe Flexibility:
Works across all timeframes, though optimized for swing trading .
Can be used on lower timeframes (e.g., 5-minute) for short-term setups, though the author prefers longer-term trades.
⚙️ Recommended Usage
Use the alignment of multiple Supertrend signals to confirm trend strength.
Combine with 50/200 MAs to validate direction and reduce false signals.
Ideal for traders who prefer clean, visual setups without excessive clutter.
📌 Disclaimer
This indicator is provided for educational purposes only. It does not constitute financial advice or guarantees of performance. Use at your own discretion and risk.
HiddenRidder - 50 # 200 MAs with High volumes (Emoji)This indicator is designed for traders who value visual clarity and volume-backed confirmation. It focuses on identifying high-impact moments when price crosses key moving averages with significant volume, helping swing traders and trend followers spot potential turning points.
🔍 Key Features
# EMA Cross Detection:
Highlights price candles that cross the 50 EMA or 200 EMA , commonly used to identify trend shifts.
These crosses are emphasized when accompanied by high or ultra-high volume , filtering out noise and improving signal quality.
# Volume Spread Analysis (VSA) Inspired Logic:
While traditional VSA can be cluttered, this indicator simplifies the concept by focusing on clean, high-volume breakout candles.
Ideal for swing trading setups on 1-hour and higher timeframes.
# Bullish & Bearish Signal Logic:
Bullish Setup: First bullish candle crossing the 50 EMA, followed by confirmation on the 200 EMA.
Bearish Setup: First bearish candle crossing the 50 EMA, followed by confirmation on the 200 EMA.
These sequential signals help validate trend direction and reduce false positives.
# Optional Enhancements:
Enable session-based VWAP anchoring (weekly, monthly, etc.).
Toggle high/low volume zones for deeper insight.
Add vertical dotted lines to mark hourly or daily sessions.
RSI is included but currently inactive for testing purposes.
⚙️ Recommended Usage
Best suited for 1-hour and higher timeframes.
📌 Disclaimer
This indicator is provided for educational purposes only. It does not constitute financial advice or guarantees of performance. Use at your own discretion and risk.
Auto-Fit Growth Trendline# **Theoretical Algorithmic Principles of the Auto-Fit Growth Trendline (AFGT)**
## **🎯 What Does This Algorithm Do?**
The Auto-Fit Growth Trendline is an advanced technical analysis system that **automates the identification of long-term growth trends** and **projects future price levels** based on historical cyclical patterns.
### **Primary Functionality:**
- **Automatically detects** the most significant lows in regular periods (monthly, quarterly, semi-annually, annually)
- **Constructs a dynamic trendline** that connects these historical lows
- **Projects the trend into the future** with high mathematical precision
- **Generates Fibonacci bands** that act as dynamic support and resistance levels
- **Automatically adapts** to different timeframes and market conditions
### **Strategic Purpose:**
The algorithm is designed to identify **fundamental value zones** where price has historically found support, enabling traders to:
- Identify optimal entry points for long positions
- Establish realistic price targets based on mathematical projections
- Recognize dynamic support and resistance levels
- Anticipate long-term price movements
---
## **🧮 Core Mathematical Foundations**
### **Adaptive Temporal Segmentation Theory**
The algorithm is based on **dynamic temporal partition theory**, where time is divided into mathematically coherent uniform intervals. It uses modular transformations to create bijective mappings between continuous timestamps and discrete periods, ensuring each temporal point belongs uniquely to a specific period.
**What does this achieve?** It allows the algorithm to automatically identify natural market cycles (annual, quarterly, etc.) without manual intervention, adapting to the inherent periodicity of each asset.
The temporal mapping function implements a **discrete affine transformation** that normalizes different frequencies (monthly, quarterly, semi-annual, annual) to a space of unique identifiers, enabling consistent cross-temporal comparative analysis.
---
## **📊 Local Extrema Detection Theory**
### **Multi-Point Retrospective Validation Principle**
Local minima detection is founded on **relative extrema theory with sliding window**. Instead of using a simple minimum finder, it implements a cross-validation system that examines the persistence of the extremum across multiple historical periods.
**What problem does this solve?** It eliminates false minima caused by temporal volatility, identifying only those points that represent true historical support levels with statistical significance.
This approach is based on the **statistical confirmation principle**, where a minimum is only considered valid if it maintains its extremum condition during a defined observation period, significantly reducing false positives caused by transitory volatility.
---
## **🔬 Robust Interpolation Theory with Outlier Control**
### **Contextual Adaptive Interpolation Model**
The mathematical core uses **piecewise linear interpolation with adaptive outlier correction**. The key innovation lies in implementing a **contextual anomaly detector** that identifies not only absolute extreme values, but relative deviations to the local context.
**Why is this important?** Financial markets contain extreme events (crashes, bubbles) that can distort projections. This system identifies and appropriately weights them without completely eliminating them, preserving directional information while attenuating distortions.
### **Implicit Bayesian Smoothing Algorithm**
When an outlier is detected (deviation >300% of local average), the system applies a **simplified Kalman filter** that combines the current observation with a local trend estimation, using a weight factor that preserves directional information while attenuating extreme fluctuations.
---
## **📈 Stabilized Extrapolation Theory**
### **Exponential Growth Model with Dampening**
Extrapolation is based on a **modified exponential growth model with progressive dampening**. It uses multiple historical points to calculate local growth ratios, implements statistical filtering to eliminate outliers, and applies a dampening factor that increases with extrapolation distance.
**What advantage does this offer?** Long-term projections in finance tend to be exponentially unrealistic. This system maintains short-to-medium term accuracy while converging toward realistic long-term projections, avoiding the typical "exponential explosions" of other methods.
### **Asymptotic Convergence Principle**
For long-term projections, the algorithm implements **controlled asymptotic convergence**, where growth ratios gradually converge toward pre-established limits, avoiding unrealistic exponential projections while preserving short-to-medium term accuracy.
---
## **🌟 Dynamic Fibonacci Projection Theory**
### **Continuous Proportional Scaling Model**
Fibonacci bands are constructed through **uniform proportional scaling** of the base curve, where each level represents a linear transformation of the main curve by a constant factor derived from the Fibonacci sequence.
**What is its practical utility?** It provides dynamic resistance and support levels that move with the trend, offering price targets and profit-taking points that automatically adapt to market evolution.
### **Topological Preservation Principle**
The system maintains the **topological properties** of the base curve in all Fibonacci projections, ensuring that spatial and temporal relationships are consistently preserved across all resistance/support levels.
---
## **⚡ Adaptive Computational Optimization**
### **Multi-Scale Resolution Theory**
It implements **automatic multi-resolution analysis** where data granularity is dynamically adjusted according to the analysis timeframe. It uses the **adaptive Nyquist principle** to optimize the signal-to-noise ratio according to the temporal observation scale.
**Why is this necessary?** Different timeframes require different levels of detail. A 1-minute chart needs more granularity than a monthly one. This system automatically optimizes resolution for each case.
### **Adaptive Density Algorithm**
Calculation point density is optimized through **adaptive sampling theory**, where calculation frequency is adjusted according to local trend curvature and analysis timeframe, balancing visual precision with computational efficiency.
---
## **🛡️ Robustness and Fault Tolerance**
### **Graceful Degradation Theory**
The system implements **multi-level graceful degradation**, where under error conditions or insufficient data, the algorithm progressively falls back to simpler but reliable methods, maintaining basic functionality under any condition.
**What does this guarantee?** That the indicator functions consistently even with incomplete data, new symbols with limited history, or extreme market conditions.
### **State Consistency Principle**
It uses **mathematical invariants** to guarantee that the algorithm's internal state remains consistent between executions, implementing consistency checks that validate data structure integrity in each iteration.
---
## **🔍 Key Theoretical Innovations**
### **A. Contextual vs. Absolute Outlier Detection**
It revolutionizes traditional outlier detection by considering not only the absolute magnitude of deviations, but their relative significance within the local context of the time series.
**Practical impact:** It distinguishes between legitimate market movements and technical anomalies, preserving important events like breakouts while filtering noise.
### **B. Extrapolation with Weighted Historical Memory**
It implements a memory system that weights different historical periods according to their relevance for current prediction, creating projections more adaptable to market regime changes.
**Competitive advantage:** It automatically adapts to fundamental changes in asset dynamics without requiring manual recalibration.
### **C. Automatic Multi-Timeframe Adaptation**
It develops an automatic temporal resolution selection system that optimizes signal extraction according to the intrinsic characteristics of the analysis timeframe.
**Result:** A single indicator that functions optimally from 1-minute to monthly charts without manual adjustments.
### **D. Intelligent Asymptotic Convergence**
It introduces the concept of controlled asymptotic convergence in financial extrapolations, where long-term projections converge toward realistic limits based on historical fundamentals.
**Added value:** Mathematically sound long-term projections that avoid the unrealistic extremes typical of other extrapolation methods.
---
## **📊 Complexity and Scalability Theory**
### **Optimized Linear Complexity Model**
The algorithm maintains **linear computational complexity** O(n) in the number of historical data points, guaranteeing scalability for extensive time series analysis without performance degradation.
### **Temporal Locality Principle**
It implements **temporal locality**, where the most expensive operations are concentrated in the most relevant temporal regions (recent periods and near projections), optimizing computational resource usage.
---
## **🎯 Convergence and Stability**
### **Probabilistic Convergence Theory**
The system guarantees **probabilistic convergence** toward the real underlying trend, where projection accuracy increases with the amount of available historical data, following **law of large numbers** principles.
**Practical implication:** The more history an asset has, the more accurate the algorithm's projections will be.
### **Guaranteed Numerical Stability**
It implements **intrinsic numerical stability** through the use of robust floating-point arithmetic and validations that prevent overflow, underflow, and numerical error propagation.
**Result:** Reliable operation even with extreme-priced assets (from satoshis to thousand-dollar stocks).
---
## **💼 Comprehensive Practical Application**
**The algorithm functions as a "financial GPS"** that:
1. **Identifies where we've been** (significant historical lows)
2. **Determines where we are** (current position relative to the trend)
3. **Projects where we're going** (future trend with specific price levels)
4. **Provides alternative routes** (Fibonacci bands as alternative targets)
This theoretical framework represents an innovative synthesis of time series analysis, approximation theory, and computational optimization, specifically designed for long-term financial trend analysis with robust and mathematically grounded projections.
HiddenRidder - 10/50/200 obvThis indicator is built around the On-Balance Volume (OBV) concept and enhanced with multiple OBV periods, trend overlays, and volume-based logic. It is designed to help traders assess volume-driven momentum and potential reversals across both large and small timeframes.
🔍 Key Features
# Multi-Period OBV:
Includes OBV with periods of 10, 50, 100, and 200 .
The 10-period OBV is especially important for short-term bounce detection.
The 200-period OBV is used to assess long-term trend bias:
OBV above OBV 200 may suggest bullish conditions.
OBV below OBV 200 may suggest bearish conditions.
# Volume-Based Bounce Logic:
Inspired by Colin Alexander ’s work ( Streetsmart Guide to Timing the Stock Market ), the indicator highlights potential bounce zones when OBV diverges sharply from OBV 10, especially under heavy volume conditions.
# Float-Based Volume Estimation:
Includes a dynamic calculation of remaining free-float stock.
This feature attempts to estimate when large players may have absorbed most of the float, potentially signaling a reversal or breakout.
Note: This is an experimental feature and not guaranteed to be accurate.
# Momentum Confirmation:
Optional overlays of RSI, Stochastic, and BB% (Bollinger Band oscillator are included to help confirm trend direction and divergence signals.
⚙️ Recommended Usage
Best suited for Daily, Weekly, and Monthly charts for long-term trend analysis.
Can also be used on 15-minute and 1-hour charts for short-term setups, especially when observing OBV divergence or float exhaustion.
Enable OBV overlays and float estimation for deeper volume insight.
📌 Disclaimer
This indicator is provided for educational purposes only. It does not constitute financial advice or guarantees of performance. Use at your own discretion and risk.
Market Outlook Score (MOS)Overview
The "Market Outlook Score (MOS)" is a custom technical indicator designed for TradingView, written in Pine Script version 6. It provides a quantitative assessment of market conditions by aggregating multiple factors, including trend strength across different timeframes, directional movement (via ADX), momentum (via RSI changes), volume dynamics, and volatility stability (via ATR). The MOS is calculated as a weighted score that ranges typically between -1 and +1 (though it can exceed these bounds in extreme conditions), where positive values suggest bullish (long) opportunities, negative values indicate bearish (short) setups, and values near zero imply neutral or indecisive markets.
This indicator is particularly useful for traders seeking a holistic "outlook" score to gauge potential entry points or market bias. It overlays on a separate pane (non-overlay mode) and visualizes the score through horizontal threshold lines and dynamic labels showing the numeric MOS value along with a simple trading decision ("Long", "Short", or "Neutral"). The script avoids using the plot function for compatibility reasons (e.g., potential TradingView bugs) and instead relies on hline for static lines and label.new for per-bar annotations.
Key features:
Multi-Timeframe Analysis: Incorporates slope data from 5-minute, 15-minute, and 30-minute charts to capture short-term trends.
Trend and Strength Integration: Uses ADX to weight trend bias, ensuring stronger signals in trending markets.
Momentum and Volume: Includes RSI momentum impulses and volume deviations for added confirmation.
Volatility Adjustment: Factors in ATR changes to assess market stability.
Customizable Inputs: Allows users to tweak periods for lookback, ADX, and ATR.
Decision Labels: Automatically classifies the MOS into actionable categories with visual labels.
This indicator is best suited for intraday or swing trading on volatile assets like stocks, forex, or cryptocurrencies. It does not generate buy/sell signals directly but can be combined with other tools (e.g., moving averages or oscillators) for comprehensive strategies.
Inputs
The script provides three user-configurable inputs via TradingView's input panel:
Lookback Period (lookback):
Type: Integer
Default: 20
Range: Minimum 10, Maximum 50
Purpose: Defines the number of bars used in slope calculations for trend analysis. A shorter lookback makes the indicator more sensitive to recent price action, while a longer one smooths out noise for longer-term trends.
ADX Period (adxPeriod):
Type: Integer
Default: 14
Range: Minimum 5, Maximum 30
Purpose: Sets the smoothing period for the Average Directional Index (ADX) and its components (DI+ and DI-). Standard value is 14, but shorter periods increase responsiveness, and longer ones reduce false signals.
ATR Period (atrPeriod):
Type: Integer
Default: 14
Range: Minimum 5, Maximum 30
Purpose: Determines the period for the Average True Range (ATR) calculation, which measures volatility. Adjust this to match your trading timeframe—shorter for scalping, longer for positional trading.
These inputs allow customization without editing the code, making the indicator adaptable to different market conditions or user preferences.
Core Calculations
The MOS is computed through a series of steps, blending trend, momentum, volume, and volatility metrics. Here's a breakdown:
Multi-Timeframe Slopes:
The script fetches data from higher timeframes (5m, 15m, 30m) using request.security.
Slope calculation: For each timeframe, it computes the linear regression slope of price over the lookback period using the formula:
textslope = correlation(close, bar_index, lookback) * stdev(close, lookback) / stdev(bar_index, lookback)
This measures the rate of price change, where positive slopes indicate uptrends and negative slopes indicate downtrends.
Variables: slope5m, slope15m, slope30m.
ATR (Average True Range):
Calculated using ta.atr(atrPeriod).
Represents average volatility over the specified period. Used later to derive volatility stability.
ADX (Average Directional Index):
A detailed, manual implementation (not using built-in ta.adx for customization):
Computes upward movement (upMove = high - high ) and downward movement (downMove = low - low).
Derives +DM (Plus Directional Movement) and -DM (Minus Directional Movement) by filtering non-relevant moves.
Smooths true range (trur = ta.rma(ta.tr(true), adxPeriod)).
Calculates +DI and -DI: plusDI = 100 * ta.rma(plusDM, adxPeriod) / trur, similarly for minusDI.
DX: dx = 100 * abs(plusDI - minusDI) / max(plusDI + minusDI, 0.0001).
ADX: adx = ta.rma(dx, adxPeriod).
ADX values above 25 typically indicate strong trends; here, it's normalized (divided by 50) to influence the trend bias.
Volume Delta (5m Timeframe):
Fetches 5m volume: volume_5m = request.security(syminfo.tickerid, "5", volume, lookahead=barmerge.lookahead_on).
Computes a 12-period SMA of volume: avgVolume = ta.sma(volume_5m, 12).
Delta: (volume_5m - avgVolume) / avgVolume (or 0 if avgVolume is zero).
This measures relative volume spikes, where positive deltas suggest increased interest (bullish) and negative suggest waning activity (bearish).
MOS Components and Final Calculation:
Trend Bias: Average of the three slopes, normalized by close price and scaled by 100, then weighted by ADX influence: (slope5m + slope15m + slope30m) / 3 / close * 100 * (adx / 50).
Emphasizes trends in strong ADX conditions.
Momentum Impulse: Change in 5m RSI(14) over 1 bar, divided by 50: ta.change(request.security(syminfo.tickerid, "5", ta.rsi(close, 14), lookahead=barmerge.lookahead_on), 1) / 50.
Captures short-term momentum shifts.
Volatility Clarity: 1 - ta.change(atr, 1) / max(atr, 0.0001).
Measures ATR stability; values near 1 indicate low volatility changes (clearer trends), while lower values suggest erratic markets.
MOS Formula: Weighted average:
textmos = (0.35 * trendBias + 0.25 * momentumImpulse + 0.2 * volumeDelta + 0.2 * volatilityClarity)
Weights prioritize trend (35%) and momentum (25%), with volume and volatility at 20% each. These can be adjusted in code for experimentation.
Trading Decision:
A variable mosDecision starts as "Neutral".
If mos > 0.15, set to "Long".
If mos < -0.15, set to "Short".
Thresholds (0.15 and -0.15) are hardcoded but can be modified.
Visualization and Outputs
Threshold Lines (using hline):
Long Threshold: Horizontal dashed green line at +0.15.
Short Threshold: Horizontal dashed red line at -0.15.
Neutral Line: Horizontal dashed gray line at 0.
These provide visual reference points for MOS interpretation.
Dynamic Labels (using label.new):
Placed at each bar's index and MOS value.
Text: Formatted MOS value (e.g., "0.2345") followed by a newline and the decision (e.g., "Long").
Style: Downward-pointing label with gray background and white text for readability.
This replaces a traditional plot line, showing exact values and decisions per bar without cluttering the chart.
The indicator appears in a separate pane below the main price chart, making it easy to monitor alongside price action.
Usage Instructions
Adding to TradingView:
Copy the script into TradingView's Pine Script editor.
Save and add to your chart via the "Indicators" menu.
Select a symbol and timeframe (e.g., 1-minute for intraday).
Interpretation:
Long Signal: MOS > 0.15 – Consider bullish positions if supported by other indicators.
Short Signal: MOS < -0.15 – Potential bearish setups.
Neutral: Between -0.15 and 0.15 – Avoid trades or wait for confirmation.
Watch for MOS crossings of thresholds for momentum shifts.
Combine with price patterns, support/resistance, or volume for better accuracy.
Limitations and Considerations:
Lookahead Bias: Uses barmerge.lookahead_on for multi-timeframe data, which may introduce minor forward-looking bias in backtesting (use with caution).
No Alerts Built-In: Add custom alerts via TradingView's alert system based on MOS conditions.
Performance: Tested for compatibility; may require adjustments for illiquid assets or extreme volatility.
Backtesting: Use TradingView's strategy tester to evaluate historical performance, but remember past results don't guarantee future outcomes.
Customization: Edit weights in the MOS formula or thresholds to fit your strategy.
This indicator distills complex market data into a single score, aiding decision-making while encouraging users to verify signals with additional analysis. If you need modifications, such as restoring plot functionality or adding features, provide details for further refinement.
HiddenRidder - Scalping - WVAP based on RSIHiddenRidder – VWAP + MA + Volume Detection (Intraday Setup)
This indicator is designed for intraday and scalping strategies, optimized for 15-minute charts and lower. While the author prefers longer-term trading, this tool was tested with real trades to validate its short-term performance.
🔍 Key Features
# VWAP (Volume Weighted Average Price):
Configurable anchor options: session-based, weekly, monthly, etc.
Helps identify price positioning relative to volume-weighted levels.
# Dynamic Moving Average (MA):
Directional coloring based on trend slope.
Offers visual cues for momentum shifts.
# Volume Detection:
Optional display of high, ultra-high, and low volume zones.
Useful for spotting breakout or exhaustion conditions.
# Session Markers:
Optional vertical dotted lines to mark hourly and daily sessions.
Enhances visibility of intraday structure.
# RSI (Inactive):
Included for future testing; not active in current version.
⚙️ Recommended Timeframes
Best suited for 15-minute and lower charts.
Designed for traders who prefer fast-paced setups with volume and trend overlays.
📌 Disclaimer
This indicator is provided for educational purposes only. It does not constitute financial advice or guarantees of performance. Use at your own discretion and risk.
Dead ShotV.1Dead Shot V.1
is a momentum-based indicator created to help traders identify potential BUY/SELL opportunities with more clarity and confidence.
It is designed for those who want a simple yet powerful tool that combines multiple elements of technical analysis into one package.
Key features include:
• Momentum signals with clear BUY/SELL markers
• EMA20 trend line for confirming overall market direction
• Automatic support/resistance levels for spotting key zones
• Real-time alerts when new signals appear
• A signal box that always shows the latest market condition
This indicator is not a magic tool or a guaranteed profit system. It is built to support your analysis by providing timely signals and important reference levels. For best results, combine it with your own trading strategy and proper risk management.
Disclaimer: This tool is for educational and analytical purposes only. It does not guarantee profits. Use it responsibly.
VWAP For Loop [BackQuant]VWAP For Loop
What this tool does—in one sentence
A volume-weighted trend gauge that anchors VWAP to a calendar period (day/week/month/quarter/year) and then scores the persistence of that VWAP trend with a simple for-loop “breadth” count; the result is a clean, threshold-driven oscillator plus an optional VWAP overlay and alerts.
Plain-English overview
Instead of judging raw price alone, this indicator focuses on anchored VWAP —the market’s average price paid during your chosen institutional period. It then asks a simple question across a configurable set of lookback steps: “Is the current anchored VWAP higher than it was i bars ago—or lower?” Each “yes” adds +1, each “no” adds −1. Summing those answers creates a score that reflects how consistently the volume-weighted trend has been rising or falling. Extreme positive scores imply persistent, broad strength; deeply negative scores imply persistent weakness. Crossing predefined thresholds produces objective long/short events and color-coded context.
Under the hood
• Anchoring — VWAP using hlc3 × volume resets exactly when the selected period rolls:
Day → session change, Week → new week, Month → new month, Quarter/Year → calendar quarter/year.
• For-loop scoring — For lag steps i = , compare today’s VWAP to VWAP .
– If VWAP > VWAP , add +1.
– Else, add −1.
The final score ∈ , where N = (end − start + 1). With defaults (1→45), N = 45.
• Signal logic (stateful)
– Long when score > upper (e.g., > 40 with N = 45 → VWAP higher than ~89% of checked lags).
– Short on crossunder of lower (e.g., dropping below −10).
– A compact state variable ( out ) holds the current regime: +1 (long), −1 (short), otherwise unchanged. This “stickiness” avoids constant flipping between bars without sufficient evidence.
Why VWAP + a breadth score?
• VWAP aggregates both price and volume—where participants actually traded.
• The breadth-style count rewards consistency of the anchored trend, not one-off spikes.
• Thresholds give you binary structure when you need it (alerts, automation), without complex math.
What you’ll see on the chart
• Sub-pane oscillator — The for-loop score line, colored by regime (long/short/neutral).
• Main-pane VWAP (optional) — Even though the indicator runs off-chart, the anchored VWAP can be overlaid on price (toggle visibility and whether it inherits trend colors).
• Threshold guides — Horizontal lines for the long/short bands (toggle).
• Cosmetics — Optional candle painting and background shading by regime; adjustable line width and colors.
Input map (quick reference)
• VWAP Anchor Period — Day, Week, Month, Quarter, Year.
• Calculation Start/End — The for-loop lag window . With 1→45, you evaluate 45 comparisons.
• Long/Short Thresholds — Default upper=40, lower=−10 (asymmetric by design; see below).
• UI/Style — Show thresholds, paint candles, background color, line width, VWAP visibility and coloring, custom long/short colors.
Interpreting the score
• Near +N — Current anchored VWAP is above most historical VWAP checkpoints in the window → entrenched strength.
• Near −N — Current anchored VWAP is below most checkpoints → entrenched weakness.
• Between — Mixed, choppy, or transitioning regimes; use thresholds to avoid reacting to noise.
Why the asymmetric default thresholds?
• Long = score > upper (40) — Demands unusually broad upside persistence before declaring “long regime.”
• Short = crossunder lower (−10) — Triggers only on downward momentum events (a fresh breach), not merely being below −10. This combination tends to:
– Capture sustained uptrends only when they’re very strong.
– Flag downside turns as they occur, rather than waiting for an extreme negative breadth.
Tuning guide
Choose an anchor that matches your horizon
– Intraday scalps : Day anchor on intraday charts.
– Swing/position : Month or Quarter anchor on 1h/4h/D charts to capture institutional cycles.
Pick the for-loop window
– Larger N (bigger end) = stronger evidence requirement, smoother oscillator.
– Smaller N = faster, more reactive score.
Set achievable thresholds
– Ensure upper ≤ N and lower ≥ −N ; if N=30, an upper of 40 can never trigger.
– Symmetric setups (e.g., +20/−20) are fine if you want balanced behavior.
Match visuals to intent
– Enabling VWAP coloring lets you see regime directly on price.
– Background shading is useful for discretionary reading; turn it off for cleaner automation displays.
Playbook examples
• Trend confirmation with disciplined entries — On Month anchor, N=45, upper=38–42: when the long regime engages, use pullbacks toward anchored VWAP on the main pane for entries, with stops just beyond VWAP or a recent swing.
• Downside transition detection — Keep lower around −8…−12 and watch for crossunders; combine with price losing anchored VWAP to validate risk-off.
• Intraday bias filter — Day anchor on a 5–15m chart, N=20–30, upper ~ 16–20, lower ~ −6…−10. Only take longs while score is positive and above a midline you define (e.g., 0), and shorts only after a genuine crossunder.
Behavior around resets (important)
Anchored VWAP is hard-reset each period. Immediately after a reset, the series can be young and comparisons to pre-reset values may span two periods. If you prefer within-period evaluation only, choose end small enough not to bridge typical period length on your timeframe, or accept that the breadth test intentionally spans regimes.
Alerts included
• VWAP FL Long — Fires when the long condition is true (score > upper and not in short).
• VWAP FL Short — Fires on crossunder of the lower threshold (event-driven).
Messages include {{ticker}} and {{interval}} placeholders for routing.
Strengths
• Simple, transparent math — Easy to reason about and validate.
• Volume-aware by construction — Decisions reference VWAP, not just price.
• Robust to single-bar noise — Needs many lags to agree before flipping state (by design, via thresholds and the stateful output).
Limitations & cautions
• Threshold feasibility — If N < upper or |lower| > N, signals will never trigger; always cross-check N.
• Path dependence — The state variable persists until a new event; if you want frequent re-evaluation, lower thresholds or reduce N.
• Regime changes — Calendar resets can produce early ambiguity; expect a few bars for the breadth to mature.
• VWAP sensitivity to volume spikes — Large prints can tilt VWAP abruptly; that behavior is intentional in VWAP-based logic.
Suggested starting profiles
• Intraday trend bias : Anchor=Day, N=25 (1→25), upper=18–20, lower=−8, paint candles ON.
• Swing bias : Anchor=Month, N=45 (1→45), upper=38–42, lower=−10, VWAP coloring ON, background OFF.
• Balanced reactivity : Anchor=Week, N=30 (1→30), upper=20–22, lower=−10…−12, symmetric if desired.
Implementation notes
• The indicator runs in a separate pane (oscillator), but VWAP itself is drawn on price using forced overlay so you can see interactions (touches, reclaim/loss).
• HLC3 is used for VWAP price; that’s a common choice to dampen wick noise while still reflecting intrabar range.
• For-loop cap is kept modest (≤50) for performance and clarity.
How to use this responsibly
Treat the oscillator as a bias and persistence meter . Combine it with your entry framework (structure breaks, liquidity zones, higher-timeframe context) and risk controls. The design emphasizes clarity over complexity—its edge is in how strictly it demands agreement before declaring a regime, not in predicting specific turns.
Summary
VWAP For Loop distills the question “How broadly is the anchored, volume-weighted trend advancing or retreating?” into a single, thresholded score you can read at a glance, alert on, and color through your chart. With careful anchoring and thresholds sized to your window length, it becomes a pragmatic bias filter for both systematic and discretionary workflows.
HiddenRidder - Trendline + MAs + VolumeDetect
This indicator is a custom trend-following tool inspired by the Zig Zag Channel concept (as seen in LuxAlgo), but with significant modifications. It combines trendline logic, moving averages, and volume-based signals to help traders identify directional bias and potential reversals.
🔍 Key Features
Trendline Detection: The indicator dynamically plots trendlines based on price structure, helping visualize support and resistance zones.
Moving Averages (MAs):
- Includes 50 and 200-period MAs, commonly used to assess long-term trend direction.
- These serve as the foundation for trend confirmation and are widely recognized by technical analysts.
Volume Detection:
- Highlights volume spikes and contractions to help identify potential breakout or exhaustion zones.
- Volume-based signals can be enabled or disabled based on user preference.
⚙️ Recommended Usage
Optimized for 1-hour charts and lower.
Best used in combination with momentum indicators for clearer entry and exit signals.
Users are encouraged to study the behavior of their preferred assets and adjust settings accordingly.
💡 Tips
Enable all signals to get a full view of the trend structure and volume dynamics.
Use the indicator as part of a broader strategy that includes risk management and confirmation tools.
📌 Disclaimer
This indicator is provided for educational purposes only. It does not constitute financial advice or guarantees of performance. Use at your own discretion and risk.
Adaptive HMA Trendfilter & Profit Spikes📌 Short Description (appears in the library)
Adaptive trend-following filter using Hull Moving Average (HMA) slope.
Includes optional Keltner Channel entries/exits and dynamic spike-based take-profit markers (ATR/Z-Score).
Optional Fast HMA for early entry visualization (not included in logic).
HMA Trend Master (KC Exits + Spike TP) – User Guide
1) Quick Overview
Trend Filter: Slow HMA defines Bull / Bear / Sideways (via slope & direction).
Entries / Exits:
Entry: Color change of the slow HMA (red→green = Long, green→red = Short), optionally filtered by the Keltner basis.
Exit: Preferably via Keltner Band (Long: Close under Upper Band; Short: Close above Lower Band).
Fallback: exit on opposite HMA color change.
Take-Profit Spikes: Marks abnormal moves (ATR, Z-Score, or both) as discretionary TP signals.
Fast HMA (optional): Purely visual for early entry opportunities; not part of the core trading logic (see §5).
2) Adding & Basic Setup
Add the indicator to your chart.
Open Settings (gear icon) and configure:
HMA: Slow HMA Length = 55, Slope Lookback = 10, Slope Threshold = 0.20%.
Keltner: KC Length = 20, Multiplier = 1.5.
Spike-TP: Mode = ATR+Z, ATR Length = 14, Z Length = 20, Cooldown = 5.
Optionally: enable Fast HMA (e.g., length = 20).
3) Input Parameters – Key Controls
Slow HMA Length: Higher = smoother, fewer but cleaner signals.
Slope Lookback: How far back HMA slope is compared against.
Slope Threshold (%): Minimum slope to avoid “Sideways” regime.
KC Length / Multiplier: Width and reactivity of Keltner Channels.
Exits via KC Bands: Toggle on/off (recommended: on).
Entries only above/below KC Basis: Helps filter out chop.
Spike Mode: Choose ATR, Z, or ATR+Z (stricter, fewer signals).
Spikes only when in position: TP markers show only when you’re in a trade.
4) Entry & Exit Logic
Entries
Long: Slow HMA turns from red → green, and (if filter enabled) Close > KC Basis.
Short: Slow HMA turns from green → red, and (if filter enabled) Close < KC Basis.
Exits
KC Exit (recommended):
Long → crossunder(close, Upper KC) closes trade.
Short → crossover(close, Lower KC).
Fallback Exit: If KC Exits are off → exit on opposite HMA color change.
Spike-TP (Discretionary)
Marks unusually large deviations from HMA.
Use for partial profits or tightening stops.
⚠️ Not auto-traded — only marker/alert.
5) Early Entry Opportunities (Fast HMA Cross – visual only)
The script can optionally display a Fast HMA (e.g., 20) alongside the Slow HMA (e.g., 55).
Bullish early hint: Fast HMA crosses above Slow HMA, or stays above, before the Slow HMA officially turns green.
Bearish early hint: opposite.
⚠️ These signals are not part of the built-in logic — they are purely discretionary:
Advantage: Earlier entries, more profit potential.
Risk: Higher chance of whipsaws.
Practical workflow (early long entry):
Fast HMA crosses above Slow HMA AND Close > KC Basis.
Enter small position with tight stop (under KC Basis or HMA swing).
Once Slow HMA confirms green → add to position or trail stop tighter.
6) Recommended Presets
Crypto (1h/2h):
HMA: 55 / 10 / 0.20–0.30%
KC: 20 / 1.5–1.8
Spikes: ATR+Z, ATR=14, Z=20, Cooldown 5
FX (1h/4h):
HMA: 55 / 8–10 / 0.10–0.25%
KC: 20 / 1.2–1.5
Indices (15m/1h):
HMA: 50–60 / 8–12 / 0.15–0.30%
KC: 20 / 1.3–1.6
Fine-tuning:
Too noisy? → Raise slope threshold or increase HMA length.
Too sluggish? → Lower slope threshold or shorten HMA length.
7) Alerts – Best Practice
Long/Short Entry – get notified when trend color switches & KC filter is valid.
Long/Short Exit – for KC exits or fallback exits.
Long/Short Spike TP – for discretionary profit-taking.
Set via TradingView: Create Alert → Select this indicator → choose condition.
8) Common Pitfalls & Tips
Too many false signals?
Raise slope threshold (more “Sideways” filtering).
Enable KC filter for entries.
Entries too late?
Use Fast HMA cross for early discretionary entries.
Or lower slope threshold slightly.
Spikes too rare/frequent?
More frequent → ATR mode or lower ATR multiplier / Z-threshold.
Rarer but stronger → ATR+Z with higher thresholds.
9) Example Playbook (Long Trade)
Regime: Slow HMA still red, Fast HMA crosses upward (early hint).
Filter: Close > KC Basis.
Early Entry: Small size, stop below KC Basis or recent swing low.
Confirmation: Slow HMA turns green → scale up or trail stop.
Management: Partial profits at Spike-TP marker; full exit at KC upper band break.