Supply and Demand v2
This Pine Script indicator is designed to identify and visualize supply and demand zones on a trading chart, using three different lookback periods for comprehensive analysis. The script features brightened colors for clear visibility and provides real-time alerts for price entry into these zones.
Key Features:
Multi-Period Analysis:
Near Lookback: Analyzes the most recent 30 bars to identify short-term supply and demand zones.
Medium Lookback: Uses a lookback period of 300 bars to capture intermediate supply and demand zones.
Far Lookback: Examines a larger timeframe of 3000 bars to detect long-term supply and demand zones.
Visual Representation:
Supply Zones: Plots the identified supply zones in brightened red shades for clear visibility.
Demand Zones: Marks the demand zones in brightened green shades for easy differentiation.
Opacity and Color Intensity: Adjusts the opacity and color intensity to distinguish between near, medium, and far lookback periods.
Alerts:
Provides real-time alerts when the price enters any of the identified supply or demand zones, enabling traders to take timely actions.
How It Works:
Supply Zones: The script identifies the highest high and lowest low within each lookback period (near, medium, far) and plots these levels as supply zones.
Demand Zones: Similarly, it identifies the lowest high and highest low within each lookback period to determine demand zones.
Alerts: When the price crosses into any of the plotted supply or demand zones, the script triggers an alert, helping traders stay informed about key levels.
This indicator helps traders to quickly identify significant supply and demand zones across different time frames, providing a clearer understanding of potential market reversals and trading opportunities. The visual cues and alert system make it an invaluable tool for technical analysis and strategic decision-making in trading...