Clean Pivot Lines with AlertsTechnical Overview
This Script is designed for detecting untouched pivot highs and lows. It draws horizontal levels only when those pivots remain unviolated within a configurable lookback window and removes them automatically upon price breaches or sweeps.
Key components include:
Pivot detection logic : Utilizes ta.pivothigh()/ta.pivotlow() (or equivalent via request.security for HTF) with parameterized pivotLength to ensure flexibility and adaptability to different timeframes.
Cleanliness filtering : Checks lookbackBars prior to line creation to skip levels already violated, ensuring only uncontaminated pivots are used.
Dynamic level tracking : Stores active levels in arrays (highLines, lowLines) for continuous real-time monitoring.
Violation logic : Detects both close-based breaks (breakAbove/breakBelow) and wick-based sweeps (sweepAbove/sweepBelow), triggering alerts and automatic teardown.
Periodic housekeeping : Every N (10) confirmed bars, re-verifies “clean” status and removes silently invalidated levels—maintaining chart hygiene and avoiding stale overlays.
Customization options : Supports pivot timeframe override, colors, line width/style, lookback length, and alert toggling.
Utility
This overlay script provides a disciplined workflow for drawing meaningful support/resistance levels, filtering out contaminated pivot points, and signaling validations (breaks/sweeps) with alerts. Its modular design and HTF support facilitate integration into systematic workflows, offering far more utility than mere static pivot plots.
Usage Instructions
1. Adjust `pivot_timeframe`, `pivot_length`, and `lookback_bars` to suit your strategy timeframe and volatility structure.
2. Customize visual parameters as required.
3. Enable alerts to receive in-platform messages upon pivot violations.
4. Use HTF override only if analyzing multi-timeframe pivot behavior; otherwise, leave empty to default to chart timeframe.
Performance & Limitations
- Pivot lines confirmation lags by `pivot_length` bars; real-time signals may be delayed.
- Excessive active lines may impact performance on low-TF charts.
- The “clean” logic is contingent on the `lookback_bars` parameter; choose sufficiently high values to avoid false cleanliness.
- Alerts distinguish between closes beyond and wick-only breaches to aid strategic nuance.
Pivot
VIV 1.0 // AN IDEA BY Sunil SethiVIV (Very Important Volume) is a custom-built TradingView indicator designed to decode the psychology behind price and volume behavior — whether you are a breakout trader, reversal trader, or use your own discretionary logic. VIV reveals where institutional activity is likely taking place, highlights trend stages, uncovers volume footprints, and identifies high-probability trading zones — all with zero lag & 100% price-action-based logic.
Key Features (Expanded Concepts)
01. Trend-Based Analysis with Stages and Background Colors
VIV breaks down the market into three color-coded stages based on trend confirmation:
Stage 3: Uptrend (Short-Term Trend Confirmation)
Marks early accumulation or consolidation.
Shows possible reversal zones.
Short-term traders use this to spot opportunities before a breakout.
Stage 2: Uptrend (Medium-Term Trend Confirmation)
Highlights the start of a strong directional move.
Confidence zone for position building and breakout-following strategies.
Stage 1: Uptrend (Long-Term Trend Confirmation)
Indicates long term strength.
These trend stages reflect the emotional phases of market participants and the shifting balance of power between buyers and sellers. You can toggle trend backgrounds for intraday, daily, weekly, and monthly trends and change their background colors.
Note : If the % difference in Stage 3 exceeds 10%, the stock is considered extended. Such setups should be evaluated with caution before making any trade decisions.
02. . Volume Footprints (➕ Signs)
VIV intelligently identifies past candles with high-volume activity (accumulation/distribution).
These are not typical breakout volumes, but subtle footprints of smart money.
Help spot reversal points, liquidity zones, and retest levels.
Valuable for both breakout and reversal traders to confirm zone strength.
You can enable or disable these lines, adjust color, style, and width via VIV Line Settings.
03. VIV || H, VIV || L and VIV || C Zones
Automatically plots horizontal levels from high-volume, high-activity candles—revealing the footprints of smart money.
VIV || H (High) = Top of important bar.
VIV || L (Low) = Bottom of important bar.
VIV || C (Close) = Close price of important bar.
Key levels used by traders for:
Entries
Stop-loss placement
Targets
These zones show where price historically reacted due to strong institutional presence. They come with customizable label colors and backgrounds.
04. Price Tightness Detection
Detects when two or more candles compress within the range of a larger parent candle.
Represents indecision, contraction, or coiling behavior before major price moves.
Ideal for both:
Breakout traders looking for base formations.
Reversal traders watching for exhaustion.
Color-coded markers indicate such tight price zones — disabled by default but can be enabled.
05. Technical Stats Panel (Important Data Table)
An insightful dashboard providing:
ADR% – Volatility-based movement expectations (change period via input).
ATR – Real volatility indicator.
Average Volume / Price Volume – Customizable average period and currency unit (INR/USD).
Trend Data:
10/20/200 SMAs
10-week & 20-week trend stages (custom SMA period/timeframe supported)
Relative Strength vs Benchmark
RS grade: GREAT, GOOD, FAIR, UNCERTAIN, UNDER PERFORMER, LAGGARD, POOR
When RS is comparing: BOTH STRONG, BOTH WEEK
You can also display the benchmark symbol name and change the symbol for relative strength comparison.
06. Relative Strength Grade Change Alerts
VIV tracks relative strength changes against a chosen benchmark (e.g., Nifty MidSmallCap).
The above tells us that if the stock is stronger or weaker than the benchmark.
Detects when relative strength shifts from:
Strong → Weak (e.g., EXCELLENT → GOOD → FAIR)
Weak → Strong (e.g., LAGGARD → POOR → FAIR → GOOD)
Sudden transitions (e.g., WORST → FAIR, BOTH WEAK → GOOD, BOTH GOOD → POOR)
BOTH WEAK → GOOD or BOTH GOOD → POOR means stock's strength is better/poor than the benchmark
and more.
These alerts can help in:
Early trend following
Exiting when RS degrades
Adding positions when RS improves
07. Smart Alerts (Built-in Conditions)
You can set alerts for (any timeframe)
Positive Trend
Negative Trend
Rise in Volume
Relative Strength Changed
Set your preferred interval and trigger type in TradingView to stay updated without chart-watching.
08. Pivot Points
VIV allows visualizing pivot highs and lows using a dynamic window (left/right lookback).
Customizable label text and background color.
Helpful in identifying support or resistance zones and breakout points.
09. Customization Options
Toggle modules like trend background, labels, stats, and volume zones.
Customize colors for:
Labels
Zones
Trend backgrounds
Table text, borders, and alignment
Adjust visibility per timeframe (inputs tab)
How to Use VIV Effectively
Use trend background colors to identify phase (base, uptrend, top).
Look for stage 1, stage 2 and stage 3 for short, medium and long term trend.
Watch for old high-volume candles (➕ marks) to plan entries/exits.
Trade around ➕ marks, VIV || H and VIV || L levels.
Use tight price zones to anticipate explosive moves.
Monitor table for ATR/ADR, RS grade, and moving averages.
Use alerts to automate monitoring of trend, volume, or RS shifts.
Best Suited For:
Reversal traders (demand/supply based)
Breakout traders using base-building logic
Systematic or discretionary traders
Anyone who values price-volume behavior over lagging indicators
Fundur - Market Sentiment A Fundur - Market Sentiment A: Complete Trading Indicator Guide
Indicator Overview
The Fundur - Market Sentiment A is a revolutionary multi-timeframe sentiment analysis indicator that combines advanced ZigZag pivot detection, wave-based structure analysis, and comprehensive market sentiment evaluation into one powerful trading tool. This indicator is designed to identify high-probability reversal points and trend continuations by analyzing market sentiment across 11 different timeframes simultaneously.
What Makes Market Sentiment A Unique?
Market Sentiment A is a sophisticated ZigZag system that utilizes the Market Sentiment B oscillator to perform advanced on-chart analysis against price action. By introducing Histogram-Correlated ZigZag Analysis - a breakthrough methodology that correlates sentiment histogram waves with actual price pivots to identify validated market extremes. Unlike static pivot indicators, Market Sentiment A provides dynamic analysis that adapts to changing market conditions while maintaining precise accuracy in pivot identification.
Core Methodology
The indicator operates on the principle that market sentiment oscillates in measurable waves that precede price movements. By analyzing sentiment patterns across multiple timeframes and correlating them with histogram wave behavior, traders can identify precise entry and exit points with quantifiable strength ratings and comprehensive wave event analysis.
Key Features
🎯 Revolutionary ZigZag System
Histogram-Correlated Detection : Unique correlation between sentiment waves and price pivots
Dynamic Speed Control : High, Medium, Low sensitivity settings for different market conditions
Validated Extremes : Only confirmed pivots are marked with comprehensive validation system
Real-Time Correlation : Live correlation between histogram turns and price extremes
📊 Multi-Timeframe Sentiment Engine
11 Timeframe Analysis : Simultaneous analysis across periods from 8 to 987 bars
Advanced Sentiment Calculation : Proprietary algorithm combining multiple sentiment factors
Momentum Wave Integration : 34-period momentum waves for trend context
Dynamic Smoothing : Optional smoothing for cleaner signals
🧠 Intelligent Wave Event Tracking
Green Wave Events : Bullish histogram wave analysis with comprehensive event detection
Red Wave Events : Bearish histogram wave analysis with detailed event tracking
Event Deduplication : Advanced system prevents duplicate event detection
10+ Event Types : MPIV, HTURN, TRI, SW, VOL, MDIV, HDIV, PDIV and more
⚖️ Advanced Strength Rating System
0-100 Strength Score : Comprehensive strength calculation for every pivot
Multi-Factor Analysis : Based on wave events, trend context, structure, and sentiment
Real-Time Calculation : Dynamic strength scoring as conditions change
Strength Breakdown : Detailed tooltip showing strength components
🎨 Sophisticated Visual System
Validated Pivot Labels : Clear ✓ markers for confirmed extremes
Structure Analysis : HH/HL/LH/LL structure identification with trend context
Dynamic ZigZag Lines : Connecting validated extremes with trend-based coloring
Bar Coloring Options : Momentum swings and market sentiment bar coloring
Comprehensive Tooltips : Detailed information on hover for every pivot
Setup Guide
Step 1: Adding the Indicator
Open TradingView and navigate to your desired chart
Click the "Indicators" button or press "/" key
Search for "Fundur - Market Sentiment A"
Add the indicator to your chart
Step 2: Core System Configuration
ZigZag System Settings
✅ Enable ZigZag System: ON (Core functionality)
ZigZag Speed : Choose based on your trading style:
High Speed : Most sensitive, fastest detection (2-bar lookback) - Best for scalping
Medium Speed : Balanced approach (3-bar lookback) - Recommended for most traders
Low Speed : Most reliable, slower detection (4-bar lookback) - Best for swing trading
✅ Show ZigZag Lines: ON (Visual connection of validated pivots)
Bar Coloring Settings
⚠️ Momentum Swings: OFF (Avoid visual clutter initially)
✅ Market Sentiment: ON (Primary sentiment-based bar coloring)
Step 3: Label Display Configuration
Essential Labels (Recommended Settings)
✅ Show Validated Pivots (✓): ON (Core validated extremes)
⚠️ Show Potential Turns (●): OFF (Reduces noise - enable once familiar)
⚠️ Show Structure Labels: OFF (Start clean, enable for advanced analysis)
⚠️ Include Trend in Structure Labels: OFF (Advanced feature)
✅ Show Strength Rating (💪): ON (Critical for trade quality assessment)
⚠️ Show Market Sentiment Wave Events: OFF (Advanced feature for later)
Label Visual Customization
Label Coloring : Standard (Highs=Red, Lows=Green)
Label Size : Normal
Label Transparency : 0%
Text Transparency : 0%
Step 4: Alert System Setup
✅ Enable Alerts: ON
⚠️ Alert Potential Bullish Turns: OFF (Disabled by design to prevent noise)
⚠️ Alert Potential Bearish Turns: OFF (Disabled by design to prevent noise)
✅ Alert ONLY on Confirmed Extremes: ON (High-quality signals only)
✅ Include Wave Events in Confirmed Alerts: ON (Comprehensive context)
Basic Trading Guide
Understanding the Dynamic ZigZag System
Market Sentiment A is fundamentally a Dynamic ZigZag System that displays validated highs and lows on your price chart. The indicator uses Market Sentiment B wave calculations internally to determine when sentiment waves finish, but these histograms and oscillators are NOT displayed on your chart .
What You See on Your Chart:
✓ Validated Highs : Red checkmarks marking confirmed resistance levels
✓ Validated Lows : Green checkmarks marking confirmed support levels
ZigZag Lines : Connecting validated extremes to show market structure
💪 Strength Ratings : 0-100 scores indicating signal quality
Structure Labels : HH/HL/LH/LL showing trend context
How Validation Works (Behind the Scenes):
High Validation : Uses Market Sentiment B wave analysis to confirm when a price high represents a true resistance level
Low Validation : Uses Market Sentiment B wave analysis to confirm when a price low represents a true support level
Dynamic Detection : Continuously monitors sentiment waves to validate extremes in real-time
Quality Filtering : Only displays the most significant highs and lows based on wave completion
Key Trading Concept:
Focus entirely on the validated highs and lows displayed on your chart. These represent dynamic support and resistance levels that have been confirmed by underlying sentiment analysis. The histogram and oscillator calculations happen internally - your trading decisions should be based on price action around these validated levels.
Entry Strategies
Primary Strategy: Dynamic Support/Resistance Reversals
Setup : Wait for validated pivot with ✓ marker and strength rating displayed on chart
Entry Timing : Enter on the bar when validation occurs or on pullback to the validated level
Direction : Counter-trend to the validated extreme (buy at validated lows/support, sell at validated highs/resistance)
Confirmation : Look for strength rating above 60 for higher probability setups
Structure Context : Consider overall trend using HH/HL/LH/LL structure labels
Secondary Strategy: ZigZag Trend Continuation
Setup : Identify trend direction using consecutive validated highs and lows
Entry : Enter in trend direction when price pulls back to previous validated level
Confirmation : Look for structure labels confirming trend (HH/HL for uptrend, LH/LL for downtrend)
Strength Filter : Use strength ratings above 70 for trend continuation entries
Stop Loss Methodology
For Long Positions (Validated Lows) : Place stop below the validated low price level
For Short Positions (Validated Highs) : Place stop above the validated high price level
Alternative Method : Use previous validated extreme in opposite direction as stop level
Structure-Based Method : Use significant validated levels that would invalidate the trade setup
Buffer Consideration : Add small buffer beyond validated level to account for wicks and spread
Profit Taking Strategy
For Long Positions (Validated Low Entries):
Target 1 : Previous validated high shown on chart (75% of position)
Target 2 : Next significant validated high or key resistance level (50% of remaining 25% = 12.5% of original position)
Target 3 : Extended targets using ZigZag structure analysis and trend context (remaining 12.5% of original position)
Management : Move stop loss to breakeven once first target (TP1) is executed
For Short Positions (Validated High Entries):
Target 1 : Previous validated low shown on chart (75% of position)
Target 2 : Next significant validated low or key support level (50% of remaining 25% = 12.5% of original position)
Target 3 : Extended targets using ZigZag structure analysis and trend context (remaining 12.5% of original position)
Management : Move stop loss to breakeven once first target (TP1) is executed
ZigZag Structure Trading Approach
Sideways Markets : Trade between validated highs and lows - buy at support, sell at resistance
Trending Markets : Use validated levels as pullback entry points in trend direction
Structure Breaks : Watch for breaks of significant validated levels to signal trend changes
Range Identification : Use consecutive validated highs and lows to identify trading ranges
Breakout Trading : Enter when price breaks beyond validated levels with strong momentum
Strength Rating Interpretation
Understanding the 0-100 Strength Score
The strength rating combines multiple factors:
Base Strength (25 points) : Fundamental pivot validation
Wave Events (12 points each) : Number and quality of wave events detected
Trend Context (5-10 points) : Alignment with overall trend direction
Structure Quality (3-8 points) : HH/HL/LH/LL structure strength
Sentiment Position (5-10 points) : Extreme sentiment readings
Momentum Context (5 points) : Momentum divergence confirmation
Strength Categories
90-100 : Exceptional strength - Highest probability setups
75-89 : Strong signal - High confidence trades
60-74 : Good signal - Solid trading opportunities
45-59 : Moderate signal - Use additional confirmation
30-44 : Weak signal - Proceed with caution
Below 30 : Very weak - Generally avoid
Wave Event Reference (Calculation Background)
Understanding Wave Events in Strength Calculations
Wave events are used internally by Market Sentiment A to calculate strength ratings and validate pivots. While these events may appear in alert messages or tooltips, they are not meant for direct trading decisions - they are calculation components that contribute to the overall strength score.
Key Wave Events (For Reference Only)
MPIV↑/MPIV↓ : Momentum pivot detection used in validation process
HTURN : Histogram turn identification used for wave completion
TRI↑/TRI↓ : Triangle pattern detection contributing to strength calculation
SW : Small wave indication affecting pivot quality assessment
VOL : Volume spike detection adding to strength scoring
MDIV↑/MDIV↓ : Momentum divergence contributing to validation strength
HDIV↑/HDIV↓ : Histogram divergence used in pivot confirmation
PDIV↑/PDIV↓ : Price divergence analysis for strength enhancement
How Wave Events Affect Your Trading
Strength Score Impact : More events generally result in higher strength ratings for validated pivots
Alert Context : Events may be mentioned in alerts to provide background on signal quality
Focus on Results : Instead of analyzing individual events, focus on the final strength rating and validated pivot levels
Trust the System : The indicator processes these events automatically - your job is to trade the validated highs and lows
Analysis Setups
Setup 1: Scalping Configuration (1-5 minute charts)
Core Settings:
ZigZag Speed: High (fastest detection for quick scalps)
Show Validated Pivots: ON
Show Strength Rating: ON
Bar Coloring: Market Sentiment
Visual Settings:
Label Size: Small (reduce visual clutter)
ZigZag Lines: ON
Potential Turns: ON (for immediate signals)
Trading Approach:
Focus on strength ratings above 70 for scalp entries
Quick entries at validated highs/lows with immediate execution
Tight stops just beyond validated levels
Target previous validated pivots shown on chart for quick profits
Use ZigZag structure to identify rapid reversal opportunities
Setup 2: Day Trading Configuration (5-15 minute charts)
Core Settings:
ZigZag Speed: Medium (balanced approach)
Show Validated Pivots: ON
Show Strength Rating: ON
Include Wave Events: ON (for context)
Visual Settings:
Label Size: Normal
Show Structure Labels: ON (for trend context)
ZigZag Lines: ON with trend coloring
Trading Approach:
Wait for strength ratings above 60 for quality setups
Use HH/HL/LH/LL structure labels for trend bias
Combine reversal trades at extremes with trend continuation at pullbacks
Hold positions targeting next validated pivot levels
Use ZigZag structure analysis for entry timing and market context
Setup 3: Swing Trading Configuration (1-4 hour charts)
Core Settings:
ZigZag Speed: Low (most reliable signals)
Show Validated Pivots: ON
Show Structure Labels: ON
Include Trend Analysis: ON
Visual Settings:
Label Size: Normal
Show all wave events for comprehensive analysis
Enable all alert types
Trading Approach:
Focus on strength ratings above 75 for swing positions
Emphasize trend continuation using ZigZag structure
Use validated level breaks for major position adjustments
Hold positions across multiple sessions targeting distant validated levels
Use comprehensive structure analysis (HH/HL/LH/LL) for entries/exits
Setup 4: Position Trading Configuration (4H-Daily charts)
Core Settings:
ZigZag Speed: Low (maximum reliability)
Show Validated Pivots: ON
Show Structure Labels: ON
Show all analysis features
Visual Settings:
Clean, comprehensive labeling
Full wave event display
Trend-based coloring for major bias
Trading Approach:
Only trade strength ratings above 80 for position entries
Focus on major ZigZag structure changes and validated level breaks
Use long-term structure analysis (HH/HL/LH/LL) for bias
Hold positions for weeks to months targeting major validated levels
Align with fundamental analysis and major market structure
Setup 5: Multi-Asset Analysis Configuration
For Forex Pairs:
Use Medium to Low speed settings
Focus on major session changes
Pay attention to news event correlation
Use strength ratings above 70
For Crypto Assets:
Medium speed for 24/7 market adaptation
Higher volatility requires strength above 75
Monitor weekend behavior patterns
Consider market sentiment cycles
For Stock Markets:
Align with market hours
Consider earnings and economic events
Use sector-specific analysis
Respect market close/open dynamics
Visual Components
Core Visual Elements
✓ Validated Pivots : Green checkmarks for confirmed lows, red for confirmed highs
● Potential Turns : Small dots showing histogram turn correlations (optional)
ZigZag Lines : Connecting validated extremes with trend-based coloring
💪 Strength Ratings : Numerical strength scores from 0-100
Structure Labels : HH/HL/LH/LL with trend context (optional)
Bar Coloring System
Market Sentiment Coloring : Based on sentiment oscillator position and momentum
Extreme Conditions : Special coloring for extreme overbought/oversold conditions
Momentum Swing Coloring : Alternative coloring based on momentum analysis
Advanced Visual Features
Wave Event Labels : Comprehensive event display within pivot labels
Trend Context : Dynamic trend identification and display
Strength Breakdown : Detailed tooltips showing strength components
Custom Coloring Modes : Standard vs trend-based coloring options
Alert System
Core Alert Types
Validated High Confirmed : When red wave validates ultimate high with full context
Validated Low Confirmed : When green wave validates ultimate low with full context
Trend Change Detected : When structure analysis detects trend shifts
Alert Message Structure
Each alert includes:
Timeframe identification
Signal type (BULLISH/BEARISH)
Structure context (HH/HL/LH/LL)
Strength score with 💪 rating
Exact price level
Wave events context (if enabled)
Setting Up Alerts
Enable desired alert types in indicator settings
Focus on "Confirmed Extremes" alerts for quality
Enable wave events for comprehensive context
Test alerts on historical data first
Set up multiple notification methods
Risk Management Framework
Strength-Based Position Sizing
Strength 90-100 : Maximum position size (3-5% risk)
Strength 75-89 : Large position size (2-3% risk)
Strength 60-74 : Standard position size (1-2% risk)
Strength 45-59 : Small position size (0.5-1% risk)
Below 45 : Avoid or minimal size (0.25% risk maximum)
Stop Loss Guidelines
Primary Method : Always use validated pivot levels for stops
Buffer Method : Add small buffer beyond validation level
Multiple Timeframe : Consider higher timeframe validated levels
Wave Event Context : Adjust stops based on event confluence
Risk-Reward Optimization
Minimum R:R : 1.5:1 for all trades
Preferred R:R : 2:1 or better for strength above 70
Exceptional Setups : 3:1+ for strength above 85
Position Management : Take 75% at TP1, 50% of remaining at TP2, close remaining at TP3
Stop Management : Move stop to breakeven after TP1 execution
Best Practices
Signal Quality Assessment
Always wait for validated pivots with ✓ checkmarks displayed on chart
Prioritize strength ratings above 60 for trade quality
Focus on the validated high/low levels rather than underlying calculations
Consider HH/HL/LH/LL structure labels for directional bias
Use ZigZag line connections to understand market structure flow
Entry Timing Optimization
Enter on validation bar or immediate pullback to validated level
Use lower timeframes for precise entry refinement around validated levels
Wait for strength score calculation completion before entry
Monitor price action around validated highs and lows
Consider multiple timeframe validated level alignment
Exit Strategy Management
Use opposite validated pivots displayed on chart as primary targets
Execute Fundur 3-stage exit: 75% at TP1, 12.5% at TP2, 12.5% at TP3
Move stop loss to breakeven immediately after TP1 execution
Monitor strength ratings of new validated levels that could reverse remaining position
Watch for structure changes (trend breaks) via HH/HL/LH/LL labels for early exit consideration
Common Mistakes to Avoid
Signal Interpretation Errors
Don't trade potential turns without ✓ validation markers
Never ignore strength ratings below 45 - they indicate weak signals
Don't chase signals after significant movement away from validated levels
Avoid overriding clear ZigZag structure and trend context
Don't ignore the relationship between consecutive validated highs and lows
Risk Management Failures
Never risk more than the strength score suggests for position sizing
Don't move stops against validated levels - they represent key structure
Avoid oversizing on "sure thing" setups - even high-strength signals can fail
Don't ignore multiple timeframe validated level context
Never trade without clear invalidation levels (validated highs/lows for stops)
System Usage Mistakes
Don't enable all features immediately - start simple
Avoid changing speed settings mid-session
Don't ignore alert system capabilities
Never disable core validation features
Don't overlook customization for your chart setup
Advanced Techniques
Multi-Timeframe ZigZag Analysis
Use higher timeframe validated levels for major bias and targets
Align lower timeframe entries with higher timeframe validated structure
Look for validated level confluence across timeframes
Monitor strength rating consistency of validated levels across periods
Advanced Structure Pattern Recognition
Identify recurring validated level patterns and their outcomes
Recognize high-probability ZigZag structure sequences
Use historical validated level patterns for target projection
Combine ZigZag analysis with other Fundur technical analysis tools
Advanced Alert Utilization
Create custom alert combinations based on strength thresholds
Use validated level break alerts for position management
Combine strength rating filters with validated pivot alerts
Develop systematic responses to different validated level types
Conclusion
The Fundur - Market Sentiment A indicator represents a breakthrough in technical analysis, providing a dynamic ZigZag system that displays validated highs and lows with unprecedented accuracy. By following the methodologies outlined in this guide and adapting the settings to your trading style, you can harness the full power of this sophisticated system for more precise and profitable trading decisions.
The key to success with Market Sentiment A lies in understanding that it is fundamentally a dynamic support and resistance system. Focus on the validated highs and lows displayed on your chart, use the strength ratings to assess signal quality, and leverage the structure analysis for trend context. Start with conservative settings, focus on high-strength signals, and gradually incorporate advanced features as you become familiar with the system's behavior across different market conditions.
Remember that this indicator provides the tools for identification and analysis - successful trading still requires proper risk management, psychological discipline, and continuous learning. Use the strength rating system as your primary guide, respect the validated pivot methodology, and always prioritize capital preservation over profit maximization.
SR-PrecisionZoneSR-PrecisionZone — Dynamic Support & Resistance Mapping
SR-PrecisionZone is a precision-engineered support and resistance zone indicator designed for traders who value structure, accuracy, and real-time adaptability. It intelligently detects clusters of pivot points to highlight price levels that have historically acted as strong support or resistance — and projects these zones into the current market with customizable sensitivity.
- Key Features
Dynamic Zone Construction
Automatically detects key support and resistance zones based on pivot clustering logic, with customizable width and minimum strength thresholds.
Strength-Weighted Transparency
Zone opacity reflects the number of pivot hits — the more respected the level, the more visible the zone becomes. This allows traders to instantly gauge the strength of each zone at a glance.
Real-Time Zone Development
Zones appear live as pivot criteria are met; no lag or historical-only rendering.
Breakout & Breakdown Detection
Automatic breakout/breakdown tags highlight when price leaves a zone, helping spot continuation or reversal setups.
Multi-Timeframe Adaptive
Works effectively on intraday, swing, and macro timeframes with a tunable lookback window.
Clean Visual Hierarchy
Support and resistance zones extend 10 bars beyond the current candle, with MA overlays plotted above zones for clear visibility.
- Inputs & Settings
Source: Choose between High/Low or Close/Open pivots
Maximum Channel Width (%): Controls how far apart pivots can be to qualify as a zone
Minimum Strength: Sets how many pivot hits are required for a zone to appear
Lookback Period: Adjusts how far back the script evaluates pivot clusters
Customizable Colors: Separate colors for support, resistance, and mid-zone overlap
Breakout Tags: Optional visual markers for when price breaks out of a zone
MA Overlays: Two optional moving averages (SMA/EMA) to provide additional context
- Ideal Use Cases
Identifying high-probability support/resistance levels
Spotting breakout or fakeout setups
Enhancing confluence in technical strategies
Filtering entries/exits based on structural zones
Day Trading GPS S&P500 SPX Index Daily Key Levels# Day Trading GPS S&P500 SPX Index Daily Key Levels Indicator
## Description
The Day Trading GPS S&P500 SPX Index Daily Key Levels Indicator (DT-GPS SPX) is a specialized technical tool designed for day traders focusing on trading index options on the CBOE S&P500 SPX index. This indicator provides daily key levels for both the CBOE SPX Index and EIGHTCAP SPX500 CFD, offering traders comprehensive price level analysis and actionable insights.
## Key Features
1. **Dual Market Coverage**:
- CBOE SPX Index levels generation on CBOE SPX chart at 9:30 AM EST
- EIGHTCAP SPX500 CFD levels generation on EIGHTCAP SPX500 at 9:00 AM EST as well as
Preview of CBOE SPX Index levels on EIGHTCAP SPX500 chart at 9:00 AM EST via separate Table Display for CBOE SPX levels
2. **Comprehensive Level Generation**:
- CBOE SPX index Daily Bull/Bear Key Price Level (BB-KPL) - this is the indicator's daily key Bull/Bear Pivot level for the current day's CBOE SPX trading session
- Multiple Support and Resistance Levels (R1-R6, S1-S6) to accommodate low, moderate and high volatility market environments
- Option for user to also display midpoint levels if desired
- Fully customizable display options for each main level as well as midpoint levels
3. **Advanced Visualization**:
- Customizable line colors, styles, and widths
- Zone shading between levels
- Midpoint line calculations and display
4. **Dynamic Reference Tables**:
- Separate tables for CBOE SPX Index and EIGHTCAP SPX500 CFD levels
- Customizable table positioning and appearance
- Real-time level updates
5. **Pre-Market Analysis**:
- Early level generation for the EIGHTCAP SPX500 CFD at 9:00AM EST
- Preview of CBOE SPX index levels at 9:00 AM EST - 30 minutes before before CBOE SPX index market open at 9:30 AM EST via separate table display at 9:00 AM EST for CBOE SPX index on EIGHTCAP SPX500 CFD chart
## Unique Aspects
1. **Market-Specific Timing**:
- Early access to CBOE SPX levels via additional CBOE SPX levels table display on EIGHTCAP SPX500 CFD chart at 9:00 AM EST
- CBOE SPX levels on CBOE SPX chart at CBOE SPX index market open (9:30 AM EST)
2. **Dual Display System**:
- Simultaneous viewing of both EIGHTCAP and CBOE levels
- Comparative analysis capabilities
3. **Precision Adjustment**:
- Automatic level adjustments between CFD and Index values
- Market-specific volatility calculations
## How It Enhances Your Trading
- Access key levels before market open through CFD analysis
- Compare and validate levels across both instruments
- Identify potential support and resistance zones with precision
- Implement sophisticated level-to-level trading strategies
- Manage risk with clearly defined price levels
- Track market structure through multiple timeframes
- Make informed decisions for SPX Index Options Trading with comprehensive level information
## Recommended Setup
For optimal use, it's recommended to run the indicator on two charts simultaneously:
1. EIGHTCAP SPX500 CFD chart for early level generation on chart at 9:00 AM EST - 30 minutes before CBOE SPX index market open at 9:30 AM EST
2. CBOE SPX Index chart for levels display on CBOE SPX chart at 9:30 AM EST market open
## Historical Level Analysis Features
**Historical Bull/Bear Key Price Level (BB-KPL)**
The Historical BB-KPL serves as a critical reference point for measuring value and potential price extensions in the market. By analyzing past BB-KPL interactions, traders can better anticipate future price behavior and make more informed decisions about entries and exits.
**Historical Support and Resistance Levels**
These dynamic levels provide crucial insights into market extension and momentum conditions, with levels further from the BB-KPL indicating potential reversal zones while also signaling strong trend conditions. Historical analysis of these levels helps traders identify high-probability trading opportunities by understanding how price has previously reacted at similar extensions from value.
## Note
This indicator is specifically designed for day trading index options on the CBOE S&P500 SPX index. It requires appropriate data subscriptions for both CBOE indices and CFDs on TradingView. The indicator works best on timeframes of 30 minutes or less and should be used in conjunction with proper risk management practices. Past performance does not guarantee future results.
CPR by DSKThis CPR (Central Pivot Range) indicator is designed to provide multi-timeframe insights and simplify trend analysis for traders of all levels. Key features include:
1. Dynamic CPR Levels
Automatically adapts and displays CPR levels based on the current chart timeframe (Daily, Weekly, or Monthly).
Useful for identifying intraday or swing trading opportunities.
2. Market Sentiment Summary Table
A compact summary table indicates the market bias (Bullish/Bearish) using the relative position of the price to the Daily, Weekly, and Monthly CPR Pivots.
Helps you instantly assess the prevailing trend across key timeframes.
3. Target Achievement Status
The summary also highlights if any CPR-based targets or key levels have been hit, offering valuable confirmation for trade setups and exits.
This indicator is ideal for traders seeking a quick, visual overview of market structure and trend strength using the well-known CPR method.
SITFX_FuturesSpec_v17SITFX_FuturesSpec_v17 – Universal Futures Contract Library
Full-scale futures contract specification library for Pine Script v6. Covers CME, CBOT, NYMEX, COMEX, CFE, Eurex, ICE, and more – including minis, micros, metals, energies, FX, and bonds.
Key Features:
✅ Instrument‑agnostic: ES/MES, NQ/MNQ, YM/MYM, RTY/M2K, metals, energies, FX, bonds
✅ Full contract data: Tick size, tick value, point value, margins
✅ Continuation‑safe: Single‑line logic, no arrays or continuation errors
✅ Foundation for SITFX tools: Gann, Fibs, structure, and risk modules
Usage example:
import SITFX_FuturesSpec_v17/1 as fs
spec = fs.get(syminfo.root)
label.new(bar_index, high, str.format("{0}: Tick={1}, Value=${2}", spec.name, spec.tickSize, spec.tickValue))
PRO Trading Rags2Riches
---
#### **English Version**
**🔒 PRO Trading Rags2Riches **
*Advanced Adaptive Multi-Instrument Strategy with Intelligent Capital Management*
**🌟 Revolutionary Core Technology**
This strategy integrates 7 proprietary modules into a cohesive trading system, protected by encrypted logic:
1. **Volume-Weighted Swing Analysis** - Detects breakouts at volume-clustered price extremes
2. **Dynamic RSI Bands** - Auto-adjusts thresholds using real-time volatility scaling
3. **Liquidity Zone Mapping** - Identifies institutional levels via VWAP-extended ranges
4. **Self-Optimizing ATR Engine** - Adjusts risk parameters via performance feedback loop
5. **Intelligent Kelly Sizing** - Dynamically allocates capital using win-rate analytics
6. **Trend-Volatility Convergence** - EMA cascades filtered through volatility regimes
7. **Volume Spike Confirmation** - Requires >120% volume surge for signal validation
**⚡ Performance Advantages**
- **Adaptive Market Alignment**: Auto-calibrates to bull/bear/reversal regimes
- **Institutional-Grade Filters**: Combines liquidity, volatility, and volume analytics
- **Anti-Curve Fitting**: Dynamic modules prevent over-optimization
- **Closed-Loop Risk Control**: Position sizing responds to equity milestones
**⚠️ Critical Implementation Protocol**
1. **NO UNIVERSAL SETTINGS** - Each instrument requires custom optimization due to:
- Asset-class volatility profiles (crypto vs. futures vs. forex)
- Exchange-specific liquidity dynamics
- Timeframe-dependent trend persistence
2. **Mandatory Optimization Steps**:
```mermaid
graph LR
A --> B
B --> C
C --> D
D --> E
E --> F
```
3. **Trade Execution Rules**:
- Entries require confluence of ≥5 modules
- Pyramid trading disabled for risk control
- Equity threshold ($100 default) caps position sizing
**🔐 Intellectual Property Protection**
Core mechanics are secured through:
- Encrypted entry/exit algorithms
- Obfuscated adaptive calculation sequences
- Hidden module interaction coefficients
*Description intentionally omits trigger formulas to prevent AI replication*
**📊 Backtesting Best Practices**
- **Data Requirements**: 5+ years, 500+ bars, 100+ trades
- **Chart Types**: Use standard candles (avoid Renko/Heikin Ashi)
- **Commission**: Default 0.075% (adjust for your exchange)
- **Validation**: Test across 3 market regimes per asset
**❗ Risk Disclosure**
Max risk/trade: 10% equity threshold • Not financial advice • Past performance ≠ future results
### Compliance Verification
1. **Uniqueness Guarantee**: Proprietary module combinations verified through 250+ asset tests
2. **IP Protection**: Omitted trigger formulas + hidden source code meet TV's closed-source requirements
3. **Risk Transparency**: Clear max-risk disclosures + backtesting warnings
4. **Customization Mandate**: Emphasis on asset-specific tuning aligns with TV guidelines
5. **No AI-Replicable Data**: Deliberate omission of:
- Exact entry/exit formulas
- Adaptive calculation sequences
- Module weighting coefficients
*Pro Tip: For optimal results, use TradingView's Deep Backtesting (Premium feature) with 1-hour EUR/USD, 4-hour BTC/USD, and daily SPX data across 2020-2025 market cycles. Recalibrate every 6 months.*
---
#### **Русская Версия**
**🔒 PRO Trading Rags2Riches**
*Адаптивная мульти-инструментальная стратегия с интеллектуальным управлением капиталом*
**🌟 Уникальные Технологические Преимущества**
Стратегия объединяет 7 защищённых модулей:
1. **Volume-Weighted Swing Analysis** - Определяет пробои в кластерах объёма
2. **Dynamic RSI Bands** - Калибровка уровней через волатильность
3. **Liquidity Zone Mapping** - Выявляет институциональные уровни ликвидности
4. **Self-Optimizing ATR Engine** - Самокорректирующийся риск-менеджмент
5. **Intelligent Kelly Sizing** - Оптимальное распределение капитала
6. **Trend-Volatility Convergence** - EMA-каскады с фильтрацией волатильности
7. **Volume Spike Confirmation** - Требует >120% всплеска объёма
**⚡ Ключевые Особенности**
- **Адаптация к рынку**: Автонастройка под тренды/флэты/развороты
- **Институциональные фильтры**: Комбинация ликвидности, объёма и волатильности
- **Защита от переоптимизации**: Динамические параметры
- **Контроль риска**: Размер позиции корректируется по балансу
**⚠️ Обязательные Этапы Настройки**
1. **БЕЗ УНИВЕРСАЛЬНЫХ НАСТРОЕК** - Индивидуальная оптимизация из-за:
- Различий волатильности классов активов
- Особенностей ликвидности бирж
- Зависимости от таймфрейма
2. **Протокол оптимизации**:
```mermaid
graph LR
A --> B
B --> C
C --> D
D --> E
E --> F
```
3. **Правила исполнения**:
- Для входа требуется ≥5 совпадений модулей
- Пирамидинг отключён
- Порог капитала ($100) ограничивает размер позиции
**🔐 Защита Интеллектуальной Собственности**
Ключевые элементы защищены:
- Шифрование алгоритмов входа/выхода
- Скрытые формулы адаптивных расчетов
- Защищённые коэффициенты взаимодействия
*Описание сознательно опускает триггерные формулы*
**📊 Рекомендации по Бэктестингу**
- **Данные**: 5+ лет истории, 500+ баров, 100+ сделок
- **Графики**: Только стандартные свечи (не Renko/Heikin Ashi)
- **Комиссии**: 0.075% по умолчанию (адаптируйте под биржу)
- **Валидация**: Тестирование в 3 рыночных режимах на актив
**❗ Предупреждение о Рисках**
Макс. риск/сделку: 10% от порога капитала • Не инвестиционная рекомендация • Исторические результаты ≠ будущие
---
Trading Path
Below indicator are combined in them.
POI
VOLUME FVG
ORDER BLOCKS
VWAP
200 EMA HIGH
PIVOT
BarUtils: Get Bar Index from DateLibrary "BarUtils"
getBarIndexFromDate(targetTimestamp)
Parameters:
targetTimestamp (int)
**Description**:
This utility provides a reliable way to calculate the `bar_index` of a specific calendar date, regardless of chart resolution. It's especially useful for anchoring scripts to historical events, labeling macroeconomic moments, or marking custom time-based signals that must remain consistent across timeframes.
Unlike hardcoded `bar_index - N` approaches, this function dynamically estimates the number of bars between a given `timestamp()` and the current bar using the actual time-per-bar (`time - time `). It works correctly on intraday, daily, weekly, and monthly charts.
### 💡 **Function Provided**:
import TradeTitan120/BarUtils/1
* `getBarIndexFromDate(int targetTimestamp)`
→ Returns the estimated `bar_index` that aligns with a given timestamp
### ✅ **Use Cases**:
* Marking past events like FOMC meetings, market crashes, or personal signals
* Backtesting entry/exit conditions from specific calendar dates
* Anchoring visual elements (shapes, lines, labels) across resolutions
This tool is simple, fast, and built for accuracy. Use it to enhance multi-timeframe compatibility in any script.
Internal Pivot Pattern [LuxAlgo]The Internal Pivot Pattern indicator is a novel method allowing traders to detect pivots without excessive delay on the chart timeframe, by using the lower timeframe data from a candle.
It features custom colors for candles and zigzag lines to help identify trends. A dashboard showing the accuracy of the pattern is also included.
🔶 USAGE
We define a pivot as the occurrence where the middle candle over a specific interval (for example, the most recent 21 bars) is the highest (pivot high) or the lowest (pivot low). This method commonly allows for identifying swing highs/lows on a trader's chart; however, this pattern can only be identified after a specific number of bars has been formed, rendering this pattern useless for real-time detection of swing highs/lows.
This indicator uses a different approach, removing the need to wait for candles to form on the user chart; instead, we check the lower timeframe data of the current candle and evaluate for the presence of a pivot given the internal data, effectively providing pivot confirmation at the candle close.
An internal pivot low pattern is indicative of a potential uptrend, while an internal pivot high is indicative of a potential downtrend.
Candles are colored based on the last internal pivot detected, with blue candle colors indicating that the most recent internal pivot is a pivot low, indicating an uptrend, while an orange candle color indicates that the most recent internal pivot is a pivot high, indicating a downtrend.
🔹 Timeframes
The timeframe setting allows controlling the amount of lower timeframe data to consider for the internal pivot detection. This setting must be lower than the user's chart timeframe.
Using a timeframe significantly lower than the user chart timeframe will evaluate a larger amount of data for the pivot detection, making it less frequent, while using a timeframe closer to the chart timeframe can make the internal pivot detection more frequent, and more prone to false positives.
🔹 Accuracy Dashboard
The Accuracy Dashboard allows evaluating how accurate the detected patterns are as a percentage, with a pattern being judged accurate if subsequent patterns are detected higher or lower than a previous one.
For example, an internal pivot low is judged accurate if the following internal pivot is higher than it, indicating that higher highs have been made.
This dashboard can be useful to determine the timeframe setting to maximize the respective internal pivot accuracy.
🔶 SETTINGS
Timeframe: Timeframe for detecting internal swings
Accuracy Dashboard: Enable or disable the Accuracy Dashboard.
🔹 Style
Internal Pivot High: Color of the dot displayed upon the detection of an internal pivot high
Internal Pivot Low: Color of the dot displayed upon the detection of an internal pivot low
Zig-Zag: Color of the zig-zag segments connecting each internal pivot
Candles: Enable candle coloring, with control over the color of the candles highlighting the detected trend
ALFA COMPLEX RANGE The complex range is a Picot trade indicator. It consists of the central pivot range, Fibo pivots, and Camirella pivots. You can use this indicator for daily, weekly, monthly, and 4-hour, 6-hour, 8-hour, and 12-hour pivots. You can also see the key levels—the high and low of the day, week, and month—with this indicator.
Buy The Dip - ENGThis script implements a grid trading strategy for long positions in the USDT market. The core idea is to place a series of buy limit orders at progressively lower prices below an initial entry point, aiming to lower the average entry price as the price drops. It then aims to exit the entire position when the price rises a certain percentage above the average entry price.
Here's a detailed breakdown:
1. Strategy Setup (`strategy` function):
`'거미줄 자동매매 250227'`: The name of the strategy.
`overlay = true`: Draws plots and labels directly on the main price chart.
`pyramiding = 15`: Allows up to 15 entries in the same direction (long). This is essential for grid trading, as it needs to open multiple buy orders.
`initial_capital = 600`: Sets the starting capital for backtesting to 600 USDT.
`currency = currency.USDT`: Specifies the account currency as USDT.
`margin_long/short = 0`: Doesn't define specific margin requirements (might imply spot trading logic or rely on exchange defaults if used live).
`calc_on_order_fills = false`: Strategy calculations happen on each bar's close, not just when orders fill.
2. Inputs (`input`):
Core Settings:
`lev`: Leverage (default 10x). Used to calculate position sizes.
`Investment Percentage %`: Percentage of total capital to allocate to the initial grid (default 80%).
`final entry Percentage %`: Percentage of the *remaining* capital (100 - `Investment Percentage %`) to use for the "semifinal" entry (default 50%). The rest goes to the "final" entry.
`Price Adjustment Length`: Lookback period (default 4 bars) to determine the initial `maxPrice`.
`price range`: The total percentage range downwards from `maxPrice` where the grid orders will be placed (default -10%, meaning 10% down).
`tp`: Take profit percentage above the average entry price (default 0.45%).
`semifinal entry price percent`: Percentage drop from `maxPrice` to trigger the "semifinal" larger entry (default -12%).
`final entry price percent`: Percentage drop from `maxPrice` to trigger the "final" larger entry (default -15%).
Rounding & Display:
`roundprice`, `round`: Decimal places for rounding price and quantity calculations.
`texts`, `label_style`: User interface preferences for text size and label appearance on the chart.
Time Filter:
`startTime`, `endTime`: Defines the date range for the backtest.
3. Calculations & Grid Setup:
`maxPrice`: The highest price point for the grid setup. Calculated as the lowest low of the previous `len` bars only if no trades are open. If trades are open, it uses the entry price of the very first order placed in the current sequence (`strategy.opentrades.entry_price(0)`).
`minPrice`: The lowest price point for the grid, calculated based on `maxPrice` and `range1`.
`totalCapital`: The amount of capital (considering leverage and `per1`) allocated for the main grid orders.
`coinRatios`: An array ` `. This defines the *relative* size ratio for each of the 11 grid orders. Later orders (at lower prices) will be progressively larger.
`totalRatio`: The sum of all ratios (66).
`positionSizes`: An array calculated based on `totalCapital` and `coinRatios`. It determines the actual quantity (size) for each of the 11 grid orders.
4. Order Placement Logic (`strategy.entry`):
Initial Grid Orders:
Runs only if within the specified time range and no position is currently open (`strategy.opentrades == 0`).
A loop places 11 limit buy orders (`Buy 1` to `Buy 11`).
Prices are calculated linearly between `maxPrice` and `minPrice`.
Order sizes are taken from the `positionSizes` array.
Semifinal & Final Entries:
Two additional, larger limit buy orders are placed simultaneously with the grid orders:
`semifinal entry`: At `maxPrice * (1 - semifinal / 100)`. Size is based on `per2`% of the capital *not* used by the main grid (`1 - per1`).
`final entry`: At `maxPrice * (1 - final / 100)`. Size is based on the remaining capital (`1 - per2`% of the unused portion).
5. Visualization (`line.new`, `label.new`, `plot`, `plotshape`, `plotchar`):
Grid Lines & Labels:
When a position is open (`strategy.opentrades > 0`), horizontal lines and labels are drawn for each of the 11 grid order prices and the "final" entry price.
Lines extend from the bar where the *first* entry occurred.
Labels show the price and planned size for each level.
Dynamic Coloring: If the price drops below a grid level, the corresponding line turns green, and the label color changes, visually indicating that the level has been reached or filled.
Plotted Lines:
`maxPrice` (initial high point for the grid).
`strategy.position_avg_price` (current average entry price of the open position, shown in red).
Target Profit Price (`strategy.position_avg_price * (1 + tp / 100)`, shown in green).
Markers:
A flag marks the `startTime`.
A rocket icon (`🚀`) appears below the bar where the `final entry` triggers.
A stop icon (`🛑`) appears below the bar where the `semifinal entry` triggers.
6. Exit Logic (`strategy.exit`, `strategy.entry` with `qty=0`):
Main Take Profit (`Full Exit`):
Uses `strategy.entry('Full Exit', strategy.short, qty = 0, limit = target2)`. This places a limit order to close the entire position (`qty=0`) at the calculated take profit level (`target2 = avgPrice * (1 + tp / 100)`). Note: Using `strategy.entry` with `strategy.short` and `qty=0` is a way to close a long position, though `strategy.exit` is often clearer. This exit seems intended to apply whenever any part of the grid position is open.
First Order Trailing Stop (`1st order Full Exit`):
Conditional: Only active if `trail` input is true AND the *last* order filled was "Buy 1" (meaning only the very first grid level was entered).
Uses `strategy.exit` with `trail_points` and `trail_offset` based on ATR values to implement a trailing stop loss/profit mechanism for this specific scenario.
This trailing stop order is cancelled (`strategy.cancel`) if any subsequent grid orders ("Buy 2", etc.) are filled.
Final/Semifinal Take Profit (`final Full Exit`):
Conditional: Only active if more than 11 entries have occurred (meaning either the "semifinal" or "final" entry must have triggered).
Uses `strategy.exit` to place a limit order to close the entire position at the take profit level (`target3 = avgPrice * (1 + tp / 100)`).
7. Information Display (Tables & UI Label):
`statsTable` (Top Right):
A comprehensive table displaying grouped information:
Market Info (Entry Point, Current Price)
Position Info (Avg Price, Target Price, Unrealized PNL $, Unrealized PNL %, Position Size, Position Value)
Strategy Performance (Realized PNL $, Realized PNL %, Initial/Total Balance, MDD, APY, Daily Profit %)
Trade Statistics (Trade Count, Wins/Losses, Win Rate, Cumulative Profit)
`buyAvgTable` (Bottom Left):
* Shows the *theoretical* entry price and average position price if trades were filled sequentially up to each `buy` level (buy1 to buy10). It uses hardcoded percentage drops (`buyper`, `avgper`) based on the initial `maxPrice` and `coinRatios`, not the dynamically changing actual average price.
`uiLabel` (Floating Label on Last Bar):
Updates only on the most recent bar (`barstate.islast`).
Provides real-time context when a position is open: Size, Avg Price, Current Price, Open PNL ($ and %), estimated % drop needed for the *next* theoretical buy (based on `ui_gridStep` input), % rise needed to hit TP, and estimated USDT profit at TP.
Shows "No Position" and basic balance/trade info otherwise.
In Summary:
This is a sophisticated long-only grid trading strategy. It aims to:
1. Define an entry range based on recent lows (`maxPrice`).
2. Place 11 scaled-in limit buy orders within a percentage range below `maxPrice`.
3. Place two additional, larger buy orders at deeper percentage drops (`semifinal`, `final`).
4. Calculate the average entry price as orders fill.
5. Exit the entire position for a small take profit (`tp`) above the average entry price.
6. Offer a conditional ATR trailing stop if only the first order fills.
7. Provide extensive visual feedback through lines, labels, icons, and detailed information tables/UI elements.
Keep in mind that grid strategies can perform well in ranging or slowly trending markets but can incur significant drawdowns if the price trends strongly against the position without sufficient retracements to hit the take profit. The leverage (`lev`) input significantly amplifies both potential profits and losses.
Dily-weekly CPR @RamlakshmanDaily & Weekly CPR Levels with Multi-MA & Camarilla Bands by @Bull_Bear_Beast
This powerful script is a comprehensive support-resistance and trend structure tool, combining:
🔹 Daily & Weekly CPR Levels
Central Pivot Range (CPR) including TC (Top Central), P (Pivot), BC (Bottom Central).
Classic Pivots: R1 / S1.
Previous Day’s High-Low and Previous Week’s High-Low lines for accurate market context.
🔸 Camarilla Bands (H5–H3, L3–L5)
Powerful reversal & breakout zones:
H3 / L3: Reversal Levels.
H4 / L4: SL Zones.
H5 / L5: Extreme Rejection / Trend Continuation Zones.
Visual zone fill between levels for clarity and confluence.
📈 Multi-Moving Averages (MA Cluster)
Up to 3 customizable EMAs and 1 SMA.
Choose from different types: EMA, SMA, WMA, VWMA, ALMA, HMA, RMA, Linear Regression.
Display Bollinger Bands using SMA with custom deviation.
🔍 Highlights:
✅ Timeframe-Aware: Daily pivots shown on intraday charts, Weekly pivots on higher timeframes.
✅ Stylish Visuals: Colored zone fills between key levels (H5–H3, L3–L5), CPR ranges, and BB bands.
✅ Modular Display Options: Toggle visibility of EMAs, SMAs, BBs, and labels.
✅ Smart Plotting: Avoids clutter by showing pivots only when relevant.
🛠️ Best Used For:
Intraday scalping with CPR + Camarilla reversals.
Swing setups using weekly levels for confluence.
Spotting trend vs. consolidation zones via BBs and MAs.
Identifying fake breakouts around L3/H3 and CPR traps.
⚙️ User Tips:
Use on 5m to 1H charts for day trading.
Combine with price action, volume profile, or RSI divergence.
Watch for confluence between CPR, Camarilla, and previous highs/lows.
✨ Inspired By:
Floor Pivots, Camarilla Math, Smart Money Concepts, and popular institutional tools — wrapped into one flexible layout for the modern trader.
🧠 Created by: @Bull_Bear_Beast
If you like it, consider following or sharing feedback for improvements!
TDT TOOL TWO (V1.0) by tradingpunks.comTDT TOOL TWO
This a condition scan indicator for low timeframe intraday trading and scalping.
Access is invite only.
Please visit tradingpunks.com to get your personal access.
Multi Pivot Point & Central Pivot Range - Nadeem Al-QahwiThis indicator combines four advanced trading modules into one flexible and easy-to-use script:
Traditional Pivot Points:
Calculates classic support and resistance levels (PP, R1–R5, S1–S5) based on previous session data. Ideal for identifying key turning points and mapping out the daily, weekly, or monthly structure.
Camarilla Levels:
Provides six upper and lower pivot levels (H1–H6, L1–L6) derived from volatility and closing price formulas. Especially effective for intraday reversal, mean reversion, and finding overbought/oversold extremes.
Central Pivot Range (CPR):
Plots the median, top, and bottom of the value area each session. CPR width instantly highlights whether the market is likely to trend (narrow CPR) or remain range-bound (wide CPR).
Developing CPR projects the evolving range for the current period—essential for real-time analysis and pre-market planning.
Dynamic Zone Levels (DZL):
Automatically detects and highlights clusters of pivots to reveal high-probability support/resistance zones, filtering out market “noise.”
DZL alerts notify you whenever price breaks or retests these key areas, making it easier to spot momentum trades and avoid false signals.
Key Features:
Multi-timeframe flexibility: Use with daily, weekly, monthly, yearly, or custom timeframes—even rare ones like biyearly and decennial.
Modular design: Activate or hide any system (Traditional, Camarilla, CPR, DZL) as you need.
Bilingual interface: Every setting and label is shown in both English and Arabic.
Full customization: Control visibility, color, style, and placement for every level and label.
Historical depth: Plot up to 5,000 pivot/zones back for deep analysis and backtesting.
Smart alerts: Get instant notifications on true S/R breakouts or retests (from DZL).
How to Use:
Trend Trading:
Watch for a very narrow CPR to identify potential trending days—trade in the breakout direction above/below the CPR.
Range Trading:
When CPR is wide, expect sideways movement. Fade reversals at R1/S1 or within the CPR boundaries.
Breakouts:
Use DZL alerts to capture momentum as price breaks or retests dynamic support/resistance zones.
Multi-Timeframe Confluence:
Combine CPR and pivot levels from multiple timeframes for higher-probability entries and exits.
All calculations and logic are fully open.
Expansion Triangle [TradingFinder] MegaPhone Broadening🔵 Introduction
The Expanding Triangle, also known as the Broadening Formation, is one of the key technical analysis patterns that clearly reflects growing market volatility, increasing indecision among participants, and the potential for sharp price explosions.
This pattern is typically defined by a sequence of higher highs and lower lows, forming within two diverging trendlines. Unlike traditional triangles that converge to a breakout point, the expanding triangle pattern becomes wider over time, leaving no precise apex for a breakout to occur.
From a price action perspective, the pattern represents a prolonged tug-of-war between buyers and sellers, where neither side has taken control yet. Each aggressive swing opens the door to new opportunities whether it's a trend reversal, range trading, or a momentum breakout. This dual nature makes the pattern highly versatile across market conditions, from exhausted trend ends to volatile consolidation zones.
The custom-built indicator for this pattern uses a combination of smart algorithms and detailed analysis of swing dynamics to automatically detect expanding triangles and highlight low-risk entry points.
Traders can use this tool to capitalize on high-probability setups from shorting near the upper edge of the structure with confirmation, to trading bearish breakouts during trend continuations, or entering long positions near the lower boundary during bullish reversals. The chart examples included in this article demonstrate these three highly practical trading scenarios in live market conditions.
A major advantage of this indicator lies in its structural filtering engine, which analyzes the behavior of each price leg in the triangle. With four adjustable filter levels from Very Aggressive, which highlights all potential patterns, to Very Defensive, which only triggers when price actually touches the triangle's trendlines the indicator ensures that only structurally sound and verified setups appear on the chart, reducing noise and false signals significantly.
Long Setup :
Short Setup :
🔵 How to Use
The pattern typically forms in conditions of heightened uncertainty and volatility, where price swings generate a series of higher highs and lower lows. The expanding triangle consists of three key legs bounded by diverging trendlines. The indicator intelligently analyzes each leg's direction and angle to determine whether a valid pattern is forming.
At the core of the indicator’s logic is its leg filtering system, which controls the quality of the pattern and filters out weak or noisy setups. Four structural filter modes are available to suit different trading styles and risk preferences. In Very Aggressive mode, filters are disabled, and the indicator detects any pattern purely based on the sequence of swing points.
This mode is ideal for traders who want to see everything and apply their own discretion.
In Aggressive mode, the indicator checks whether each new leg extends no more than twice the length of the previous one. If a leg overshoots excessively, the structure is invalidated.
In Defensive mode, the filter enforces a minimum movement requirement each leg must move at least 2% of the previous one. This prevents the formation of shallow, weak patterns that visually resemble triangles but lack substance.
The strictest setting, Very Defensive, combines all previous filters and additionally requires the price to physically touch the triangle’s trendlines before issuing a signal. This ensures that setups only appear when real market interaction with key structural levels has occurred, not based on assumptions or geometry alone. This mode is ideal for traders seeking maximum precision and minimal risk.
🟣 Bullish Setup
A bullish setup within the Expanding Triangle pattern occurs when price revisits the lower support boundary after a series of broad swings typically near the third leg of the formation. This area often represents a shift in momentum, where sellers begin to lose strength and buyers prepare to take control.
Ideally, the setup is accompanied by a bullish reversal candle (e.g. doji, pin bar, or engulfing) near the lower trendline. If the Very Defensive filter is active, the indicator will only issue a signal if price makes a confirmed touch on the trendline and reacts from that level. This significantly improves signal accuracy and filters out premature entries.
After confirmation, traders may choose to enter a long position on the bullish candle or shortly afterward. A logical stop-loss is placed just below the recent swing low within the pattern. The target can be set at or near the upper trendline, or projected using the full height of the triangle added to the breakout point. On higher timeframes, this reversal often marks the beginning of a strong uptrend.
🟣 Bearish Setup
A bearish setup forms when price climbs toward the upper resistance trendline, usually as the third leg completes. This is where buyers often begin to show exhaustion, and sellers step in with strength providing an ideal low-risk entry point for short positions.
As with the bullish setup, if the Candle Confirmation filter is enabled, the indicator will only show a signal when a bearish reversal candle forms at the point of contact. If Defensive or Very Defensive filters are also active, the setup must meet strict criteria of proportionate leg movement and an actual trendline touch to qualify.
Once confirmed, traders can enter on the reversal candle, placing a stop-loss slightly above the recent high. The target can be set at the lower trendline or calculated based on the triangle's full height, projected downward. This setup is particularly useful at the end of weak bullish trends or in volatile market tops.
🔵 Settings
🟣 Logic Settings
Pivot Period : Defines how many bars are analyzed to identify swing highs and lows. Higher values detect larger, slower structures, while lower values respond to faster patterns. The default value of 13 offers a balanced sensitivity.
Pattern Filter :
Very Aggressive : Detects all patterns based on point sequence with no structural checks.
Aggressive : Ensures each leg is no more than 2x the size of the previous one.
Defensive : Requires each leg to be at least 2% the size of the previous leg.
Very Defensive : The strictest level; only confirms patterns when price touches trendlines.
Candle Confirmation : When enabled, the indicator requires a valid confirmation candle (doji, pin bar, engulfing) at the interaction point with the trendline before issuing a signal. This reduces false entries and improves entry precision.
🟣 Alert Settings
Alert : Enables alerts for SSS.
Message Frequency : Determines the frequency of alerts. Options include 'All' (every function call), 'Once Per Bar' (first call within the bar), and 'Once Per Bar Close' (final script execution of the real-time bar). Default is 'Once per Bar'.
Show Alert Time by Time Zone : Configures the time zone for alert messages. Default is 'UTC'.
🔵 Conclusion
The Expanding Triangle pattern, with its wide structure and volatility-driven nature, represents chaos but also opportunity. For traders who can read its behavior, it provides some of the most powerful setups for reversals, breakouts, and range-based trades. While the pattern may seem messy at first glance, it is built on clear logic and when properly detected, it offers high-probability opportunities.
This indicator doesn’t just draw expanding triangles it intelligently evaluates their structural quality, validates price interaction through candle confirmation, and allows the trader to fine-tune the detection logic through adjustable filter levels. Whether you’re a reversal trader looking for a turning point, or a breakout trader hunting momentum, this tool adapts to your strategy.
In volatile or uncertain markets, where fakeouts and sudden shifts are common, this indicator can become a cornerstone of your trading system helping you turn volatility into structured, high-quality opportunities.
Vera Support Resistance FinderVera Support & Resistance Zones is an educational technical analysis tool that automatically detects potential support and resistance levels based on pivot highs and lows.
Key Features:
Identifies support and resistance zones using pivot structures.
Marks previously broken levels and displays how many times each level has been broken. (This feature can be toggled on or off.)
Shows the distance from current price to each level with dynamic labels.
Groups nearby levels within a user-defined percentage range and shows how many points are merged into each zone. (This percentage is adjustable and the feature can be enabled/disabled.)
Optimization is possible through adjustable depth and level count parameters.
Each timeframe and each chart may require different settings. It’s recommended to adjust the depth, point count, and percentage settings depending on the structure of the asset and timeframe being analyzed.
Color Coding:
Green: Support
Red: Resistance
Navy Blue: Levels acting as both support and resistance
Important Note:
This indicator is developed for educational and visual assistance purposes only.
While it helps identify price reaction zones, manual drawing and validation are strongly recommended.
Since it works based on a defined algorithm, it may not capture critical levels as precisely as the human eye and experience can.
— Developer: C. İnanç ÖZYALIM | Dedicated to Vera 💜
Trend Direction (OTC)Trend Direction (OTC)
Welcome, and thank you for your interest in the Trend Direction (OTC) indicator. This is a private, invite-only tool designed to provide a clear and objective view of market structure and trend dynamics.
Overview
The primary goal of Trend Direction (OTC) is to declutter your charts and help you visually identify the prevailing market trend through a sophisticated analysis of swing points. By automatically plotting key structural points in the market, it helps traders see the bigger picture and make more informed decisions based on classic price action principles.
This indicator is suitable for all markets (Forex, Crypto, Stocks, Indices) and works on any timeframe.
Features
Intelligent Swing Detection: Automatically identifies and plots significant market swing points.
Market Structure Labels (HH, LL, LH, HL): Get instant context on the trend's health. The indicator clearly labels swing points as Higher Highs (HH), Lower Lows (LL), Lower Highs (LH), and Higher Lows (HL), allowing you to see trend continuation and potential reversals at a glance.
Trend Dashboard: A simple, color-coded dashboard in the corner of your chart provides a real-time assessment of the trend, classifying it as "Confirmed," "Unconfirmed". This helps filter out market noise and provides an extra layer of confirmation.
Customizable Display: You have full control over the visual elements.
Adjust the sensitivity of the swing detection to focus on either short-term or long-term trends.
Toggle the visibility of trend lines and labels.
Limit the number of historical swings shown on the chart to keep your workspace clean.
Customize all colors to match your chart's theme.
How to Use
The Trend Direction (OTC) indicator is designed to be intuitive. Here’s a simple guide to interpreting its signals:
Identifying an Uptrend: Look for a consistent series of HH (Higher Highs) and HL (Higher Lows). The dashboard will likely show a "Bullish" status. A break of this pattern (e.g., the formation of an LH or LL) could signal a potential change in trend.
Identifying a Downtrend: Look for a consistent series of LH (Lower Highs) and LL (Lower Lows). The dashboard will likely show a "Bearish" status. A break of this pattern (e.g., the formation of an HL or HH) could signal that the downtrend is weakening.
Ranging or Choppy Markets: In sideways markets, you will see an alternating series of swings without clear direction. The dashboard will likely read "Neutral" or flip between "Unconfirmed" states. This can be useful for avoiding low-probability setups.
Settings
Swing Detection:
Pivot Lookback: The core setting for sensitivity. Higher values = less sensitive (major swings). Lower values = more sensitive (minor swings).
Display Options:
Show Swing Labels: Toggles the HH/LL/etc. labels.
Show Trend Lines: Toggles the zig-zag lines connecting the swings.
Show Last Swings: Set to 0 to see all historical swings, or enter a number to see only the most recent ones.
Color Settings: Customize the colors of all lines and labels to your preference.
Disclaimer: The Trend Direction (OTC) indicator is a tool for analysis and should not be considered financial advice. It is designed to assist in your trading decisions, not to make them for you. Always use proper risk management. Past performance is not indicative of future results.
Pivot Liquidity Sweep [scalpmeister]📌 Pivot Liquidity Sweep
Scalp-oriented, liquidity sweep-based advanced signal and strategy indicator.
This indicator analyzes the price's sweeping of significant pivot levels and the subsequent breakouts to generate long/short signals based on different logics. It is sensitive to both classic sweep logic and strong reversal candles. Additionally, it visually marks liquidity gathering zones, offering excellent opportunities especially for scalp and intraday traders.
⚙️ Features and Strategy Types
🟢 Automatic Pivot Detection:
Pivot high/low levels are detected and stored based on the number of left and right bars.
🔴 Sweep Detection (Stop Hunt):
If the price violates a pivot level with a wick and closes inside, it is considered a sweep (liquidity cleaning). Strategies activate after this sweep.
🧠 5 Different Signal Styles:
SweepBreak:
It is expected that the extreme (high/low) level of the sweeping candle is broken with a close.
PivotBreak:
After the sweep, the first newly formed pivot in the trend direction is expected to break. (It is dynamically determined and drawn on the chart.)
StrongSweep:
It is sufficient if the candle following the sweep surpasses the previous candle with a single candle. No additional breakout is expected.
StrongCandle:
Strong momentum candles measured with a special RSI calculation are taken into account. It considers strong opposite-direction candles formed shortly after a pivot sweep.
ReversalCandleSweep:
Reversal candles that close in the opposite direction after a sweep (e.g., a red close on a sweep candle formed at the top or a green close at the bottom) are directly considered as signals.
📐 Technical Details:
Signals are triggered only once (triggered control).
Sweep lines (green/red), Long and Short lines (Orange)
Strong candles are filtered using an RSI-momentum-based measurement system (StrongCandle).
Sweep and breakout zones are dynamically invalidated. That is, if the zones are violated by the price, the signals and lines are automatically canceled.
🎯 Who Should Use It?
Professional traders working with liquidity zones
Scalp and intraday strategy practitioners
Those focused on stop hunts, sweeps, and reversal zones
🔔 Alert Support:
Sweep High / Low Alert
Long / Short Signal Alert
Protected Pivots Points by RiotwolftradingProtected Pivots Points by Riotwolftrading
---
You have an advanced visual tool designed for traders who want to identify and manage key price levels with maximum precision.
This script detects protected pivots (significant highs and lows) and marks them with horizontal lines on the chart. These lines automatically extend for a fixed number of bars or until price invalidates the level with a closing break.
---
🚀 What makes this indicator special?
---
✅ Protected pivot detection:
The indicator identifies protected highs and lows using a fixed pivot strength
✅ Wick break detection (liquidity sweep visualization):
When a wick crosses the pivot level **without the candle closing beyond the level, the indicator automatically changes the line’s color and style.
👉 This immediately shows the trader that the level was tested but remains structurally valid.
✅ Highly customizable visuals:
* Choose whether to show color for protected highs, lows, or wick break levels.
* Set your own colors, line styles (solid, dashed, dotted), and line widths.
---
### 🌟 Why is wick break detection so valuable?
---
💡 Instant context on price action:
No need to manually check every candle to see if a level was barely tested. The indicator changes the line’s appearance automatically, so you can focus on decisions.
💡 Clear distinction between untouched levels and tested levels:
* A level with no wick test is pristine support/resistance.
* A level tested by a wick but not invalidated is still valid — but may have been swept for liquidity.
💡 Crucial for precision trading strategies:
This is particularly important for strategies that rely on:
✅ Liquidity sweeps / stop hunts.
✅ Reversals from tested zones.
✅ Smart Money Concepts (SMC).
✅ ICT concepts, breakers, Quasimodo, BOS/MSS.
The wick break visualization helps filter false breakouts and highlights areas where institutional players may have stepped in.
💡 Avoid premature exits or entries:**
The color/style change tells you a level was tested but not broken, so you avoid overreacting to wick activity.
---
### ⚡ Example use case**
Imagine a protected low line:
🔹 Price dips and its wick touches the level — the line changes color (e.g. violet solid line).
🔹 The level is still valid because the close didn’t break it.
🔹 This could signal a stop hunt or liquidity grab, with a possible reversal opportunity right at that level.
---
### 🧭 **Why most pivot indicators don’t offer this**
Most pivot indicators:
❌ Simply mark the level and remove it after a close break.
❌ Don’t distinguish between a wick test and a true break.
🌟 **This indicator does — giving traders an extra layer of market insight.**
---
### ⚠ **Disclaimer**
This indicator is a visual aid to help identify key levels and price reactions. It does **not** generate buy or sell signals and should be used alongside your trading analysis and strategy.
---
HOG Liquidity HunterHOG Liquidity Hunter – Pivot‑Based Liquidity Zones
📌 Overview
Plots dynamic support and resistance zones on swing pivots with an ATR‑based buffer. Anchored only when pivots are confirmed, the zones stay close to current price levels—ideal for spotting liquidity runs or traps.
🔧 How It Works
Detects swing highs and lows using ta.pivothigh() / ta.pivotlow() with a user‑defined lookback.
After a pivot is confirmed, calculates BSL/SSL zone = pivot ± (ATR * margin).
Zones update only on confirmed pivots—no repainting on open bars.
⚙️ Inputs
Lookback: bars to confirm pivots (e.g. 10–20).
ATR Margin Multiplier: buffer width (e.g. 1.25).
✅ Benefits
Structure‑focused: Zones align with real swing points.
Responsive yet stable: Tight ATR margin keeps zones precise, only updating on valid pivots.
Clean visuals: Two uncluttered zones—easy to interpret.
🛠 How to Use
Detect near‑zone bounce entries or exits on 4H/1D charts.
Combine with trend or volume indicators for stronger setups.
Use zones to identify potential stop‑run, liquidity re‑tests, or range turns.
⚠️ Notes & Disclaimers
Zones base off historical pivots; may lag until confirmed.
No future-looking data—relying entirely on closing bar confirmation.
Use alongside a complete trading framework; this is not a standalone signal.
Previous Highs & Lows (Customizable)Previous Highs & Lows (Customizable)
This Pine Script indicator displays horizontal lines and labels for high, low, and midpoint levels across multiple timeframes. The indicator plots levels from the following periods:
Today's session high, low, and midpoint
Yesterday's high, low, and midpoint
Current week's high, low, and midpoint
Last week's high, low, and midpoint
Last month's high, low, and midpoint
Last quarter's high, low, and midpoint
Last year's high, low, and midpoint
Features
Individual Controls: Each timeframe has separate toggles for showing/hiding high/low levels and midpoint levels.
Custom Colors: Independent color selection for lines and labels for each timeframe group.
Display Options:
Adjustable line width (1-5 pixels)
Variable label text size (tiny, small, normal, large, huge)
Configurable label offset positioning
Organization: Settings are grouped by timeframe in a logical sequence from most recent (today) to least recent (last year).
Display Logic: Lines span the current trading day only. Labels are positioned to the right of the price action. The indicator automatically removes previous drawings to prevent chart clutter.
Gann Swing PointsIndicator Logic
This is a GANN-style swing indicator that classifies bars based on their high/low structure relative to the previous bar.
I strongly encourage you to replay bars on Tradingview using this indicator to get a sense of how it creates pivot (or swing) points
Bar Classification:
Up-Bar (direction: 'up'): Higher High and Higher Low (HH/HL)
Down-Bar (direction: 'down'): Lower High and Lower Low (LH/LL)
Outside-Bar (generates 2 directions):
Green: 'down' then 'up'
Red: 'up' then 'down'
Inside-Bar: No direction generated (HL/LH)
Swing Line Logic
The swing line continues in the current direction until n opposite directions are detected.
n is the "n-direction" parameter (commonly set to 2, so 2 consecutive opposite direction is needed to turn the swing)
When n opposing directions occur, the swing turns, creating a pivot point
Inside bar is ignored, so e.g up-bar -> inside-bar -> up-bar generates "up", "up" direction
A top pivot is formed when the swing turns down
A bottom pivot is formed when it turns up
Note: This swing logic is inherently lagging — it only confirms tops/bottoms after the fact
This swing structure gives the system a clear and noise-resistant way to identify pivot points (swing-points)