Prev days openLabels are offset to the right of Lines
You can adjust the number of opens back to display
If you want to change the format of the label please read the tool tip
Original FrizLabz
Pivot points and levels
Price action plus//The system combines the divergence of A/D and OBV with identifying reversal points using Japanese candlestick patterns, creating an enhanced version of price action. This helps investors more easily and accurately recognize reversal patterns in technical analysis.
Divergence of A/D vs. OBV includes:
Positive divergence: Identifies smart money leaving the market.
Negative divergence: Identifies smart money entering the market.
Reversal candlestick patterns include:
Buy signals: Morning Star, Bullish Engulfing, Hammer.
Strong Buy signals: Buy signals + Negative divergence
Sell signals: Evening Star, Bearish Engulfing, Shooting Star.
Strong Sell signals : Sell signals + Positive divergence
//Hope this system will be helpful for you!
Support and Resistance Entry/ExitThis Pine Script strategy uses Support and Resistance levels for entry and exit:
Buy Signal: Enter a long position when the price breaks above the Resistance (pivotHigh).
Sell Signal: Enter a short position when the price breaks below the Support (pivotLow).
Exit Conditions:
Exit the long position when the price hits the Support.
Exit the short position when the price hits the Resistance.
levels and eqsGenerates Range & EQ levels and removes duplicates. Prioritizes by higher timeframe for duplicates. For example, on Monday's open, weekly open is displayed while daily open is hidden automatically.
Original rumpypumpydumpy
Daily Weekly Monthly Yearly Opens/Highs/LowsThe "Daily Weekly Monthly Yearly Opens" indicator is a versatile tool designed to enhance your trading analysis by plotting the opening prices of various timeframes directly onto your charts. By displaying the current daily, weekly, monthly, and yearly opening levels, this indicator helps traders identify key support and resistance zones, facilitating more informed trading decisions.
**Key Features:**
- **Comprehensive Timeframe Coverage:** The indicator plots opening prices for daily, weekly, monthly, and yearly periods, providing a clear view of significant market levels across multiple timeframes.
- **Dynamic Display:** To maintain chart clarity, the indicator intelligently displays:
- Daily opens on intraday timeframes.
- Weekly opens on timeframes less than weekly.
- Monthly opens on timeframes less than monthly.
- **Customizable Visuals:** Users can adjust the color and style of the plotted lines to match their chart preferences, ensuring a personalized and clear visual experience.
- **Historical Reference:** An option to display previous period opens allows traders to analyze how current price action interacts with past opening levels, offering insights into potential support and resistance areas.
- **Alert Functionality:** Set up alerts to be notified when the price crosses any of the plotted opening levels, enabling timely responses to market movements.
Quantum Price SignalQuantum Price Signal
This indicator combines square root price analysis with advanced technical filters to identify high-probability trading opportunities. Designed for practical use in real market conditions, it provides both visual signals and a comprehensive dashboard to enhance trading decisions.
Core Technology:
The Quantum Price Signal uses mathematical relationships based on square root price levels to identify key zones where price tends to react. These levels have proven to be powerful areas for reversals and continuations across multiple timeframes.
Detailed Usage Guide:
Signal Interpretation:
Green Triangle (Buy): Appears below candles at potential support levels. Look for these at market bottoms and pullbacks in uptrends
Red Triangle (Sell): Appears above candles at potential resistance levels. Most effective at market tops and rallies in downtrends
Dashboard Elements:
Buy/Sell Signal Quality: Shows relative strength of potential setups
Higher values indicate stronger signals with better probability
Use as comparative measure between different signals
Market Noise: Indicates market choppiness/volatility
Lower readings suggest cleaner price action and more reliable signals
Higher readings indicate choppy conditions requiring wider stops
Trend Direction: Overall market bias
Align trades with this direction for highest probability
Counter-trend trades require stronger signal quality
Near Square Root Level: Confirms price at significant mathematical level
"Yes" reading significantly strengthens any signal
These mathematical levels often act as strong support/resistance
Current Signal: Active trading recommendation
Shows most recent valid signal type
Use to quickly identify the indicator's bias
Practical Trading Applications:
Swing Trading Strategy:
Look for signals at key support/resistance levels
Confirm with trend direction on dashboard
Enter on close of signal candle
Place stops beyond recent swing points
Target next significant level or 1:2 risk-reward
Trend-Following Method:
Only take signals in direction of "Trend Direction"
Wait for pullbacks to Square Root levels
Require "Yes" for Near Square Root Level reading
Enter when signal appears at these levels
Trail stops using prior swing points
Reversal Detection:
Watch for signals against prevailing trend
Must have "Near Square Root Level" showing "Yes"
Confirm with pattern like engulfing or hammer
Look for divergence in momentum indicators
Use tighter stops as these are higher risk trades
Multiple Timeframe Approach:
Identify trend on higher timeframe
Look for signals on lower timeframe
Only take signals that align with higher timeframe trend
Add to position on additional signals in same direction
Exit when signal appears in opposite direction
Volume Confirmation Enhancement:
Check volume on signal candles
Stronger signals should have above-average volume
Low volume signals have higher failure rate
Volume increase on breakouts confirms strength
Volume decline near levels suggests potential failure
This indicator works best when combined with proper risk management and sound technical analysis principles. Use it as a decision support tool rather than an automated system, and always consider the broader market context when making trading decisions.RetryClaude can make mistakes. Please double-check responses.
Highlight Time of InterestEST Time Period Background Indicator
This TradingView indicator visually highlights up to four custom-defined time periods on your chart using distinct background colors.
Key Features:
Custom Time Periods: Define up to four separate time intervals with individual start and end times, perfect for emphasizing key trading sessions or events.
Automatic Time zone Conversion: Automatically calculates the offset between the broker’s time zone and New York time (EST) so that your periods are correctly aligned with the Eastern market hours.
Visual Clarity:*Each period can be assigned a unique background color, providing clear visual cues directly on your chart for easier analysis and decision-making.
This indicator is ideal for traders who need a clear, automated visual reference for specific trading sessions or periods, streamlining the analysis process by highlighting critical timeframes directly on the chart.
Higher Highs, Higher Lows, Lower Highs, Lower Lowsshows Higher Highs and Higher Lows, and Lower Highs and Lower Lows
Previous Week & Day High/LowPrevious Week & Day High/Low Indicator
The Previous Week & Day High/Low Indicator is designed to provide traders with key support and resistance levels based on historical price data. It automatically plots the previous day's and previous week's highs and lows as horizontal lines, offering a clear visual reference for potential breakout or reversal zones.
Features:
Clear Visual Levels: Displays previous day's highs and lows in green and red for easy identification.
Weekly Context: Plots previous week's highs and lows using distinct color-coded lines.
Real-Time Updates: Adjusts to new weekly and daily highs and lows as they are confirmed.
Labeled Lines: Each level is labeled directly on the chart, ensuring clarity without clutter.
SPY Enhanced Short Signals – Fixed1.54% profit per trade
SPY Enhanced Short Signals – Fixed is a 5-minute strategy for SPY that triggers short entries when price nears resistance under confirmed bearish conditions (RSI below 45, MACD momentum, and volume spikes). It uses ATR-based dynamic exits to manage risk with adaptive take profit and stop loss settings. Customize inputs for optimal performance.
「ᴋᴇʏ ʟᴇᴠᴇʟꜱ」Key Levels for DAX with Alerts function.
This shows potential reversal points designed to be used with the DAX index. Use additional indicators as confluence.
EMA vs SMA Crossover (Toggle 15/20) by AaronEscaThis custom indicator by AaronEsca lets you toggle between a 15-period or 20-period EMA/SMA crossover to spot trend shifts and momentum changes earlier.
Features:
Choose between 15 or 20 period moving averages using a simple dropdown.
Highlights when the EMA crosses above or below the SMA — a signal of trend momentum or exhaustion.
Includes visual fill between the two lines for instant trend direction insight.
Alerts included for bullish and bearish crossovers.
Designed for use on the 4H, 1H, and Daily timeframes, but flexible for any strategy.
This tool is perfect for swing traders, scalpers, or anyone wanting early confirmation of a potential reversal or momentum break.
IDX - 5UPThe UDX-5UP is a custom indicator designed to assist traders in identifying trends, entry and exit signals, and market reversal moments with greater accuracy. It combines price analysis, volume, and momentum (RSI) to provide clear buy ("Buy") and sell ("Sell") signals across any asset and timeframe, whether you're a scalper on the 5M chart or a swing trader on the 4H chart. Inspired by robust technical analysis strategies, the UDX-5UP is ideal for traders seeking a reliable tool to operate in volatile markets such as cryptocurrencies, forex, stocks, and futures.
Components of the UDX-5UP
The UDX-5UP consists of three main panels that work together to provide a comprehensive view of the market:
Main Panel (Price):
Pivot Supertrend: A dynamic line that changes color to indicate the trend. Green for an uptrend (look for buys), red for a downtrend (look for sells).
SMAs (Simple Moving Averages): Two SMAs (8 and 21 periods) to confirm the trend direction. When the SMA 8 crosses above the SMA 21, it’s a bullish signal; when it crosses below, it’s a bearish signal.
Entry/Exit Signals: "Buy" (green) and "Sell" (red) labels are plotted on the chart when entry or exit conditions are met.
Volume Panel:
Colored Volume Bars: Green bars indicate dominant buying volume, while red bars indicate dominant selling volume.
Volume Moving Average (MA 20): A blue line that helps identify whether the current volume is above or below the average, confirming the strength of the movement.
RSI Panel:
RSI (Relative Strength Index): Calculated with a period of 14, with overbought (70) and oversold (30) lines to identify momentum extremes.
Divergences: The indicator detects divergences between the RSI and price, plotting signals for potential reversals.
How the UDX-5UP Works
The UDX-5UP uses a combination of rules to generate buy and sell signals:
Buy Signal ("Buy"):
The Pivot Supertrend changes from red to green.
The SMA 8 crosses above the SMA 21.
The volume is above the MA 20, with green bars (indicating buying pressure).
The RSI is rising and, ideally, below 70 (not overbought).
Example: On the 4H chart, the price of Tether (USDT) is at 0.05515. The Pivot Supertrend turns green, the SMA 8 crosses above the SMA 21, the volume shows green bars above the MA 20, and the RSI is at 46. The UDX-5UP plots a "Buy".
Sell Signal ("Sell"):
The Pivot Supertrend changes from green to red.
The SMA 8 crosses below the SMA 21.
The volume is above the MA 20, with red bars (indicating selling pressure).
The RSI is falling and, ideally, above 70 (overbought).
Example: On the 4H chart, the price of Tether rises to 0.05817. The Pivot Supertrend turns red, the SMA 8 crosses below the SMA 21, the volume shows red bars, and the RSI is above 70. The UDX-5UP plots a "Sell".
RSI Divergences:
The indicator identifies bullish divergences (price makes a lower low, but RSI makes a higher low) and bearish divergences (price makes a higher high, but RSI makes a lower high), plotting alerts for potential reversals.
Adjustable Settings
The UDX-5UP is highly customizable to suit your trading style:
Pivot Supertrend Period: Default is 2. Increase to 3 or 4 for more conservative signals (fewer false positives, but more lag).
SMA Periods: Default is 8 and 21. Adjust to 5 and 13 for smaller timeframes (e.g., 5M) or 13 and 34 for larger timeframes (e.g., 1D).
RSI Period: Default is 14. Reduce to 10 for greater sensitivity or increase to 20 for smoother signals.
Overbought/Oversold Levels: Default is 70/30. Adjust to 80/20 in volatile markets.
Display Panels: You can enable/disable the volume and RSI panels to simplify the chart.
How to Use the UDX-5UP
Identify the Trend:
Use the Pivot Supertrend and SMAs to determine the market direction. Uptrend: look for buys. Downtrend: look for sells.
Confirm with Volume and RSI:
For buys: Volume above the MA 20 with green bars, RSI rising and below 70.
For sells: Volume above the MA 20 with red bars, RSI falling and above 70.
Enter the Trade:
Enter a buy when the UDX-5UP plots a "Buy" and all conditions are aligned.
Enter a sell when the UDX-5UP plots a "Sell" and all conditions are aligned.
Plan the Exit:
Use Fibonacci levels or support/resistance on the price chart to set targets.
Exit the trade when the UDX-5UP plots an opposite signal ("Sell" after a buy, "Buy" after a sell).
Tips for Beginners
Start with Larger Timeframes: Use the 4H or 1D chart for more reliable signals and less noise.
Combine with Other Indicators: Use the UDX-5UP with tools like Fibonacci or the Candles RSI (another powerful indicator) to confirm signals.
Practice in Demo Mode: Test the indicator in a demo account before using real money.
Manage Risk: Always use a stop-loss and don’t risk more than 1-2% of your capital per trade.
Why Use the UDX-5UP?
Simplicity: Clear "Buy" and "Sell" signals make trading accessible even for beginners.
Versatility: Works on any asset (crypto, forex, stocks) and timeframe.
Multiple Confirmations: Combines price, volume, and momentum to reduce false signals.
Customizable: Adjust the settings to match your trading style.
Author’s Notes
The UDX-5UP was developed based on years of trading and technical analysis experience. It is an evolution of tested strategies, designed to help traders navigate volatile markets with confidence. However, no indicator is infallible. Always combine the UDX-5UP with proper risk management and fundamental analysis, especially in unpredictable markets. Feedback is welcome – leave a comment or reach out with suggestions for improvements!
Ruben.Ramiro - Momentum Breakout StrategyThis strategy is designed to capture breakout movements aligned with the prevailing trend, using a combination of Exponential Moving Averages (EMAs), Relative Strength Index (RSI), and Average True Range (ATR) for entry signals and risk management. It includes clear long/short entry conditions, dynamic stop-losses.
1. Trend Identification
Uses two EMAs:
• Fast EMA (default 20 periods)
• Slow EMA (default 50 periods)
The trend is considered bullish if EMA Fast > EMA Slow, and bearish if EMA Fast < EMA Slow.
2. Momentum Filter (RSI)
Applies a 14-period RSI to avoid entries during overbought/oversold conditions:
• Avoids long entries when RSI > 70 (overbought)
• Avoids short entries when RSI < 30 (oversold)
3. Breakout Logic
Detects breakouts over a configurable period (default: 5 candles):
• Resistance: Highest high over the last N periods (excluding the current one)
• Support: Lowest low over the last N periods (excluding the current one)
4. Entry Conditions
Long Entry:
• Price breaks above recent resistance
• Uptrend confirmed (EMA Fast > EMA Slow)
• RSI not overbought
Short Entry:
• Price breaks below recent support
• Downtrend confirmed (EMA Fast < EMA Slow)
• RSI not oversold
5. Position Management
Stop-Loss and Trailing Stop based on ATR:
Stop-Loss:
• For long: entry price - (ATR * SL multiplier)
• For short: entry price + (ATR * SL multiplier)
Trailing Stop:
• Uses same ATR * trailing multiplier for both trail_points and trail_offset
• Defaults for both SL and trailing multiplier: 1.5x ATR
6. Alerts (Webhook)
JSON-formatted webhook alerts:
• Long entry: Market buy order
• Short entry: Market sell order
7. Visual Cues
• Green triangle below bar for Long entries
• Red triangle above bar for Short entries
GIGANEVA V6.6 PublicFib levels and Fib Fans from Top and Bottom of the "Range".
Plots are calculated on Log and Linear Scale.
It calculates Time pivots by fans crossing each other
It calculates Time pivots by fans crossing top and bottom of the "Range"
Golden pivots are 0.5 fan crossing log 0.5 or via versa
Selecting Bool Fib Right, expends them Right, no matter how you picked top or bottom (doesn't matter which you picked first.
Why is this code unique?
It incorporates all the fib functions together and it's coded to the max Plot capabilities Trading View allows.
Smart Money Concepts (SMC) Indicator for Altcoin Scalpingquent movement. It implements filtering mechanisms to display only relevant order blocks and differentiates between premium and discount zones.
2. Multi-timeframe Analysis
Order blocks are detected across three timeframes (1-minute, 5-minute, and 15-minute), with visual differentiation between zones from different timeframes. The indicator includes a confluence detector that identifies when zones from multiple timeframes overlap, highlighting these high-probability areas.
3. Liquidity Analysis
The indicator detects areas of high liquidation activity, identifies stop hunts and liquidity sweeps, and monitors the formation of fresh order blocks that indicate smart money activity.
4. Entry, Stop-Loss, and Take-Profit Signals
Clear entry signals are generated when price approaches validated order blocks, with adaptive stop-loss placement based on market volatility and zone strength. Take-profit targets are calculated using risk-to-reward multipliers, and the risk-to-reward ratio is displayed for each potential trade.
5. Volume Profile Integration
Volume analysis is integrated to confirm order block validity, with anomalous volume spikes highlighted and a volume-weighted effectiveness score assigned to each zone.
6. Technical Indicator Integration
The indicator incorporates customizable momentum oscillators (RSI and MACD) to confirm zone strength, with divergence detection to enhance entry accuracy.
7. Performance Metrics
Historical performance tracking is included, calculating win rate, average risk-to-reward ratio, and expectancy for generated signals, with a performance index score for each trading opportunity.
8. Alert System
Comprehensive alerts are implemented for approaches to order blocks, entries, take-profits, and stop-losses, with priority alerts based on zone strength and multi-timeframe confluence.
9. Visual Design
The indicator uses distinct color schemes for bearish and bullish order blocks, with transparency options to maintain chart clarity. Features can be toggled on/off for customization, and clear visual indicators are provided for entry, stop-loss, and take-profit levels.
10. Automatic Detection and Optimization
The indicator provides fully automated identification of all zones and signals, with adaptive parameters that adjust to different market conditions and optimization capabilities based on recent market behavior.
Implementation Details
The code is thoroughly documented with clear sections for:
User configuration parameters (fully customizable)
Data structure definitions for order blocks, entry signals, and liquidity zones
Core detection algorithms for order blocks and liquidity zones
Multi-timeframe analysis with higher timeframe data integration
Entry signal generation with adaptive risk management
Performance tracking and metrics calculation
Visual elements for clear chart representation
Using the Indicator
To use this indicator:
Compile and add to your chart
Adjust the settings via the indicator parameters panel to optimize for your trading style
Focus on trading from the order blocks with highest strength and multi-timeframe confluence
The indicator is specifically optimized for 1-minute timeframe altcoin cryptocurrency scalping but incorporates data from higher timeframes to identify high-probability trading opportunities.
Pivot Center LineHow is it calculated?
Finding Pivot Points:
The script looks for Pivot Highs (local peaks) and Pivot Lows (local bottoms) based on a user-defined period (prd).
A Pivot High is the highest point among the surrounding candles.
A Pivot Low is the lowest point among the surrounding candles.
Storing the Latest Pivot:
If a new pivot (high or low) is found, it is stored as lastpp (latest pivot point).
Weighted Averaging:
If it's the first detected pivot, the center line is set to that pivot price.
After detecting multiple pivots, the new pivot is averaged with the previous center value using the formula:
new center=(old center×2)+latest pivot3
new center=3(old center×2)+latest pivot
This gives more weight to past values, smoothing the center line.
Plotting the Line:
If the center line is below the mid-price (hl2), it is colored blue (bullish bias).
If it is above, it is colored red (bearish bias).
Summary in Simple Terms
The Pivot Center Line is a moving reference line that smoothly follows the trend based on recent price highs and lows. It updates itself over time, filtering out small fluctuations to help traders see the bigger trend picture.
zone trading stratThis only works for DOGEUSD , I made it for the 8cap chart so only use it for that.
If you want this for other symbols/charts you need to comment below or msg me.
# Price Zone Trading System: Technical Explanation
## Core Concept
The Price Zone Tracker is built on the concept that price tends to respect certain key levels or "zones" on the chart. These zones act as support and resistance areas where price may bounce or break through. The system combines zone analysis with multiple technical indicators to generate high-probability trading signals.
## Zone Analysis
The system tracks 9 predefined price zones. Each zone has both a high and low boundary, except for Zone 5 which is represented by a single line. When price enters a zone, the system monitors whether it stays within the zone, breaks above it (bullish), or breaks below it (bearish).
This zone behavior establishes the foundational bias of the system:
- When price closes above its previous zone: Zone State = Bullish
- When price closes below its previous zone: Zone State = Bearish
- When price remains within a zone: Zone State = Neutral
## Trend Analysis Components
The system performs multi-timeframe analysis using several technical components:
1. **Higher Timeframe Analysis** (±3 points in scoring)
- Uses 15-minute charts for sub-5-minute timeframes
- Uses 30-minute charts for 5-minute timeframes
- Uses 60-minute charts for timeframes above 5 minutes
- Evaluates candlestick patterns and EMA crossovers on the higher timeframe
2. **EMA Direction** (±1 point in scoring)
- Compares 12-period and 26-period EMAs
- Bullish when fast EMA > slow EMA
- Bearish when fast EMA < slow EMA
3. **MACD Analysis** (±1 point in scoring)
- Uses standard 12/26/9 MACD settings
- Bullish when MACD line crosses above signal line with positive histogram
- Bearish when MACD line crosses below signal line with negative histogram
4. **Price Action** (±2 points in scoring)
- Evaluates whether price is making higher highs/higher lows (uptrend)
- Or lower highs/lower lows (downtrend)
- Also considers ATR-based volatility and strength of movements
## Trend Score Calculation
All these components are weighted and combined into a trend score:
- Higher timeframe components have stronger weights (±2-3 points)
- Current timeframe components have moderate weights (±1 point)
- Price action components have varied weights (±0.5-2 points)
The final trend state is determined by thresholds:
- Score > +3: Trend Analysis State = Bullish
- Score < -3: Trend Analysis State = Bearish
- Score between -3 and +3: Trend Analysis State = Neutral
## Signal Generation Logic
The system combines the Zone State with the Trend Analysis State:
1. If Zone State and Trend Analysis State are both bullish:
- Combined State = Bullish
- Line Color = Green
2. If Zone State and Trend Analysis State are both bearish:
- Combined State = Bearish
- Line Color = Red
3. If Zone State and Trend Analysis State contradict each other:
- Combined State = Neutral
- Line Color = Black
This implements a safety mechanism requiring both zone analysis and technical indicators to agree before generating a directional signal.
## Trading Signals
Trading signals are generated based on changes in the Combined State:
- When Combined State changes from neutral/bearish to bullish:
- Trading Signal = LONG (green triangle appears on chart)
- When Combined State changes from neutral/bullish to bearish:
- Trading Signal = SHORT (red triangle appears on chart)
- When Combined State changes from bullish/bearish to neutral:
- Trading Signal = EXIT (yellow X appears on chart)
- When Combined State remains unchanged:
- Trading Signal = NONE (no new marker appears)
## Reversal Warning
The system also monitors for potential reversal conditions:
- When Combined State is bullish but both RSI and MFI are overbought (>70)
- When Combined State is bearish but both RSI and MFI are oversold (<30)
In these cases, a yellow diamond appears on the chart as a warning that a reversal might be imminent.
## Visual Elements
The indicator provides multiple visual elements:
1. Zone boundaries as translucent orange areas
2. A single colored line below price (green/red/black) showing the current signal
3. Trading signals as shapes on the chart
4. An information panel showing all relevant indicator values and signals
## Usage Limitations
The indicator is designed to work optimally on timeframes below 30 minutes. On higher timeframes, a warning appears and analysis is disabled.
Custom Gold Pivot LevelsThis indicator plots custom resistance and support levels based on a central Ziro Pivot Level. The levels are adjusted dynamically based on whether you're preparing for a Buy or Sell trade. The script allows you to set percentage-based levels for both resistance and support, making it a versatile tool for traders.
Features:
Pivot Level: Set the central pivot level (Ziro Pivot) around which resistance and support levels are calculated.
Dynamic Resistance & Support Levels: Input your preferred percentages for Resistance 1, Resistance 2, Support 1 , and Support 2 .
For Buy: Resistance levels are higher, and support levels are lower.
For Sell: Resistance levels are adjusted lower, and support levels are adjusted higher.
Label Display: The indicator will display a Buy label in green above the pivot level or a Sell label in red below the pivot level, depending on the trade type you select.
Adjustable Parameters:
Ziro Pivot Level: Set the central pivot level.
Resistance & Support Levels: Adjust resistance and support levels using percentages.
Trade Type: Choose between "Buy" and "Sell" to dynamically adjust resistance and support levels.
Inputs:
1- Trade Type: Select between Buy or Sell to set the relevant resistance and support levels.
Ziro Pivot Level: Set the main pivot level around which all other levels are calculated.
Resistance Level 1 & 2: Input percentages for Resistance 1 and Resistance 2.
Support Level 1 & 2: Input percentages for Support 1 and Support 2.
How to Use:
1- Select "Buy" or "Sell" from the input options.
For Buy: The indicator will plot higher resistance levels and lower support levels.
For Sell: The indicator will plot lower resistance levels and higher support levels.
2- Adjust the Pivot Level: Set the central pivot level for the levels to be calculated around.
3- Adjust the Resistance & Support Percentages: Modify the resistance and support levels to fit your trading strategy.
4- Visual Feedback: The indicator will show a Buy label in green above the pivot level or a Sell label in red below the pivot level, making it easy to identify the trade direction at a glance.
Use Cases:
Gold & Commodity Trading: This tool is particularly useful for traders working with commodities like gold, where pivot levels can help determine potential price action points.
Swing & Day Trading: The dynamic nature of this indicator makes it great for both swing and day traders who want to monitor short-term market movements.
Support and Resistance Strategy: Traders who rely on support and resistance levels to make buy/sell decisions can use this indicator to automate and visualize these levels more effectively.
Pivot S/R with Volatility Filter## *📌 Indicator Purpose*
This indicator identifies *key support/resistance levels* using pivot points while also:
✅ Detecting *high-volume liquidity traps* (stop hunts)
✅ Filtering insignificant pivots via *ATR (Average True Range) volatility*
✅ Tracking *test counts and breakouts* to measure level strength
---
## *⚙ SETTINGS – Detailed Breakdown*
### *1️⃣ ◆ General Settings*
#### *🔹 Pivot Length*
- *Purpose:* Determines how many bars to analyze when identifying pivots.
- *Usage:*
- *Low values (5-20):* More pivots, better for scalping.
- *High values (50-200):* Fewer but stronger levels for swing trading.
- *Example:*
- Pivot Length = 50 → Only the most significant highs/lows over 50 bars are marked.
#### *🔹 Test Threshold (Max Test Count)*
- *Purpose:* Sets how many times a level can be tested before being invalidated.
- *Example:*
- Test Threshold = 3 → After 3 tests, the level is ignored (likely to break).
#### *🔹 Zone Range*
- *Purpose:* Creates a price buffer around pivots (±0.001 by default).
- *Why?* Markets often respect "zones" rather than exact prices.
---
### *2️⃣ ◆ Volatility Filter (ATR)*
#### *🔹 ATR Period*
- *Purpose:* Smoothing period for Average True Range calculation.
- *Default:* 14 (standard for volatility measurement).
#### *🔹 ATR Multiplier (Min Move)*
- *Purpose:* Requires pivots to show *meaningful price movement*.
- *Formula:* Min Move = ATR × Multiplier
- *Example:*
- ATR = 10 pips, Multiplier = 1.5 → Only pivots with *15+ pip swings* are valid.
#### *🔹 Show ATR Filter Info*
- Displays current ATR and minimum move requirements on the chart.
---
### *3️⃣ ◆ Volume Analysis*
#### *🔹 Volume Change Threshold (%)*
- *Purpose:* Filters for *unusual volume spikes* (institutional activity).
- *Example:*
- Threshold = 1.2 → Requires *120% of average volume* to confirm signals.
#### *🔹 Volume MA Period*
- *Purpose:* Lookback period for "normal" volume calculation.
---
### *4️⃣ ◆ Wick Analysis*
#### *🔹 Wick Length Threshold (Ratio)*
- *Purpose:* Ensures rejection candles have *long wicks* (strong reversals).
- *Formula:* Wick Ratio = (Upper Wick + Lower Wick) / Candle Range
- *Example:*
- Threshold = 0.6 → 60% of the candle must be wicks.
#### *🔹 Min Wick Size (ATR %)*
- *Purpose:* Filters out small wicks in volatile markets.
- *Example:*
- ATR = 20 pips, MinWickSize = 1% → Wicks under *0.2 pips* are ignored.
---
### *5️⃣ ◆ Display Settings*
- *Show Zones:* Toggles support/resistance shaded areas.
- *Show Traps:* Highlights liquidity traps (▲/▼ symbols).
- *Show Tests:* Displays how many times levels were tested.
- *Zone Transparency:* Adjusts opacity of zones.
---
## *🎯 Practical Use Cases*
### *1️⃣ Liquidity Trap Detection*
- *Scenario:* Price spikes *above resistance* then reverses sharply.
- *Requirements:*
- Long wick (Wick Ratio > 0.6)
- High volume (Volume > Threshold)
- *Outcome:* *Short Trap* signal (▼) appears.
### *2️⃣ Strong Support Level*
- *Scenario:* Price bounces *3 times* from the same level.
- *Indicator Action:*
- Labels the level with test count (3/5 = 3 tests out of max 5).
- Turns *red* if broken (Break Count > 0).
Deep Dive: How This Indicator Works*
This indicator combines *four professional trading concepts* into one powerful tool:
1. *Classic Pivot Point Theory*
- Identifies swing highs/lows where price previously reversed
- Unlike basic pivot indicators, ours uses *confirmed pivots only* (filtered by ATR)
2. *Volume-Weighted Validation*
- Requires unusual trading volume to confirm levels
- Filters out "phantom" levels with low participation
3. *ATR Volatility Filtering*
- Eliminates insignificant price swings in choppy markets
- Ensures only meaningful levels are plotted
4. *Liquidity Trap Detection*
- Spots institutional stop hunts where markets fake out traders
- Uses wick analysis + volume spikes for high-probability signals
---
Deep Dive: How This Indicator Works*
This indicator combines *four professional trading concepts* into one powerful tool:
1. *Classic Pivot Point Theory*
- Identifies swing highs/lows where price previously reversed
- Unlike basic pivot indicators, ours uses *confirmed pivots only* (filtered by ATR)
2. *Volume-Weighted Validation*
- Requires unusual trading volume to confirm levels
- Filters out "phantom" levels with low participation
3. *ATR Volatility Filtering*
- Eliminates insignificant price swings in choppy markets
- Ensures only meaningful levels are plotted
4. *Liquidity Trap Detection*
- Spots institutional stop hunts where markets fake out traders
- Uses wick analysis + volume spikes for high-probability signals
---
## *📊 Parameter Encyclopedia (Expanded)*
### *1️⃣ Pivot Engine Settings*
#### *Pivot Length (50)*
- *What It Does:*
Determines how many bars to analyze when searching for swing highs/lows.
- *Professional Adjustment Guide:*
| Trading Style | Recommended Value | Why? |
|--------------|------------------|------|
| Scalping | 10-20 | Captures short-term levels |
| Day Trading | 30-50 | Balanced approach |
| Swing Trading| 50-200 | Focuses on major levels |
- *Real Market Example:*
On NASDAQ 5-minute chart:
- Length=20: Identifies levels holding for ~2 hours
- Length=50: Finds levels respected for entire trading day
#### *Test Threshold (5)*
- *Advanced Insight:*
Institutions often test levels 3-5 times before breaking them. This setting mimics the "probe and push" strategy used by smart money.
- *Psychology Behind It:*
Retail traders typically give up after 2-3 tests, while institutions keep testing until stops are run.
---
### *2️⃣ Volatility Filter System*
#### *ATR Multiplier (1.0)*
- *Professional Formula:*
Minimum Valid Swing = ATR(14) × Multiplier
- *Market-Specific Recommendations:*
| Market Type | Optimal Multiplier |
|------------------|--------------------|
| Forex Majors | 0.8-1.2 |
| Crypto (BTC/ETH) | 1.5-2.5 |
| SP500 Stocks | 1.0-1.5 |
- *Why It Matters:*
In EUR/USD (ATR=10 pips):
- Multiplier=1.0 → Requires 10 pip swings
- Multiplier=1.5 → Requires 15 pip swings (fewer but higher quality levels)
---
### *3️⃣ Volume Confirmation System*
#### *Volume Threshold (1.2)*
- *Institutional Benchmark:*
- 1.2x = Moderate institutional interest
- 1.5x+ = Strong smart money activity
- *Volume Spike Case Study:*
*Before Apple Earnings:*
- Normal volume: 2M shares
- Spike threshold (1.2): 2.4M shares
- Actual volume: 3.1M shares → STRONG confirmation
---
### *4️⃣ Liquidity Trap Detection*
#### *Wick Analysis System*
- *Two-Filter Verification:*
1. *Wick Ratio (0.6):*
- Ensures majority of candle shows rejection
- Formula: (UpperWick + LowerWick) / Total Range > 0.6
2. *Min Wick Size (1% ATR):*
- Prevents false signals in flat markets
- Example: ATR=20 pips → Min wick=0.2 pips
- *Trap Identification Flowchart:*
Price Enters Zone →
Spikes Beyond Level →
Shows Long Wick →
Volume > Threshold →
TRAP CONFIRMED
---
## *💡 Master-Level Usage Techniques*
### *Institutional Order Flow Analysis*
1. *Step 1:* Identify pivot levels with ≥3 tests
2. *Step 2:* Watch for volume contraction near levels
3. *Step 3:* Enter when trap signal appears with:
- Wick > 2×ATR
- Volume > 1.5× average
### *Multi-Timeframe Confirmation*
1. *Higher TF:* Find weekly/monthly pivots
2. *Lower TF:* Use this indicator for precise entries
3. *Example:*
- Weekly pivot at $180
- 4H shows liquidity trap → High-probability reversal
---
## *⚠ Critical Mistakes to Avoid*
1. *Using Default Settings Everywhere*
- Crude oil needs higher ATR multiplier than bonds
2. *Ignoring Trap Context*
- Traps work best at:
- All-time highs/lows
- Major psychological numbers (00/50 levels)
3. *Overlooking Cumulative Volume*
- Check if volume is building over multiple tests
ZRK 30m This TradingView indicator draws alternating 30-minute boxes aligned precisely to real clock times (e.g., 10:00, 10:30, 11:00), helping traders visually segment intraday price action. It highlights every other 30-minute block with customizable colors, line styles, and opacity, allowing users to clearly differentiate between trading intervals. The boxes automatically adjust based on the chart’s timeframe, maintaining accuracy on 1-minute to 60-minute charts. Optional time labels can also be displayed for additional context. This tool is useful for identifying patterns, measuring volatility, or applying breakout strategies based on defined, consistent time windows across global trading sessions.
StatPivot- Dynamic Range Analyzer - indicator [PresentTrading]Hello everyone! In the following few open scripts, I would like to share various statistical tools that benefit trading. For this time, it is a powerful indicator called StatPivot- Dynamic Range Analyzer that brings a whole new dimension to your technical analysis toolkit.
This tool goes beyond traditional pivot point analysis by providing comprehensive statistical insights about price movements, helping you identify high-probability trading opportunities based on historical data patterns rather than subjective interpretations. Whether you're a day trader, swing trader, or position trader, StatPivot's real-time percentile rankings give you a statistical edge in understanding exactly where current price action stands within historical contexts.
Welcome to share your opinions! Looking forward to sharing the next tool soon!
█ Introduction and How it is Different
StatPivot is an advanced technical analysis tool that revolutionizes retracement analysis. Unlike traditional pivot indicators that only show static support/resistance levels, StatPivot delivers dynamic statistical insights based on historical pivot patterns.
Its key innovation is real-time percentile calculation - while conventional tools require new pivot formations before updating (often too late for trading decisions), StatPivot continuously analyzes where current price stands within historical retracement distributions.
Furthermore, StatPivot provides comprehensive statistical metrics including mean, median, standard deviation, and percentile distributions of price movements, giving traders a probabilistic edge by revealing which price levels represent statistically significant zones for potential reversals or continuations. By transforming raw price data into statistical insights, StatPivot helps traders move beyond subjective price analysis to evidence-based decision making.
█ Strategy, How it Works: Detailed Explanation
🔶 Pivot Point Detection and Analysis
The core of StatPivot's functionality begins with identifying significant pivot points in the price structure. Using the parameters left and right, the indicator locates pivot highs and lows by examining a specified number of bars to the left and right of each potential pivot point:
Copyp_low = ta.pivotlow(low, left, right)
p_high = ta.pivothigh(high, left, right)
For a point to qualify as a pivot low, it must have left higher lows to its left and right higher lows to its right. Similarly, a pivot high must have left lower highs to its left and right lower highs to its right. This approach ensures that only significant turning points are recognized.
🔶 Percentage Change Calculation
Once pivot points are identified, StatPivot calculates the percentage changes between consecutive pivot points:
For drops (when a pivot low is lower than the previous pivot low):
CopydropPercent = (previous_pivot_low - current_pivot_low) / previous_pivot_low * 100
For rises (when a pivot high is higher than the previous pivot high):
CopyrisePercent = (current_pivot_high - previous_pivot_high) / previous_pivot_high * 100
These calculations quantify the magnitude of each market swing, allowing for statistical analysis of historical price movements.
🔶 Statistical Distribution Analysis
StatPivot computes comprehensive statistics on the historical distribution of drops and rises:
Average (Mean): The arithmetic mean of all recorded percentage changes
CopyavgDrop = array.avg(dropValues)
Median: The middle value when all percentage changes are arranged in order
CopymedianDrop = array.median(dropValues)
Standard Deviation: Measures the dispersion of percentage changes from the average
CopystdDevDrop = array.stdev(dropValues)
Percentiles (25th, 75th): Values below which 25% and 75% of observations fall
Copyq1 = array.get(sorted, math.floor(cnt * 0.25))
q3 = array.get(sorted, math.floor(cnt * 0.75))
VaR95: The maximum expected percentage drop with 95% confidence
Copyvar95D = array.get(sortedD, math.floor(nD * 0.95))
Coefficient of Variation (CV): Measures relative variability
CopycvD = stdDevDrop / avgDrop
These statistics provide a comprehensive view of market behavior, enabling traders to understand the typical ranges and extreme moves.
🔶 Real-time Percentile Ranking
StatPivot's most innovative feature is its real-time percentile calculation. For each current price, it calculates:
The percentage drop from the latest pivot high:
CopycurrentDropPct = (latestPivotHigh - close) / latestPivotHigh * 100
The percentage rise from the latest pivot low:
CopycurrentRisePct = (close - latestPivotLow) / latestPivotLow * 100
The percentile ranks of these values within the historical distribution:
CopyrealtimeDropRank = (count of historical drops <= currentDropPct) / total drops * 100
This calculation reveals exactly where the current price movement stands in relation to all historical movements, providing crucial context for decision-making.
🔶 Cluster Analysis
To identify the most common retracement zones, StatPivot performs a cluster analysis by dividing the range of historical drops into five equal intervals:
CopyrangeSize = maxVal - minVal
For each interval boundary:
Copyboundaries = minVal + rangeSize * i / 5
By counting the number of observations in each interval, the indicator identifies the most frequently occurring retracement zones, which often serve as significant support or resistance areas.
🔶 Expected Price Targets
Using the statistical data, StatPivot calculates expected price targets:
CopytargetBuyPrice = close * (1 - avgDrop / 100)
targetSellPrice = close * (1 + avgRise / 100)
These targets represent statistically probable price levels for potential entries and exits based on the average historical behavior of the market.
█ Trade Direction
StatPivot functions as an analytical tool rather than a direct trading signal generator, providing statistical insights that can be applied to various trading strategies. However, the data it generates can be interpreted for different trade directions:
For Long Trades:
Entry considerations: Look for price drops that reach the 70-80th percentile range in the historical distribution, suggesting a statistically significant retracement
Target setting: Use the Expected Sell price or consider the average rise percentage as a reasonable target
Risk management: Set stop losses below recent pivot lows or at a distance related to the statistical volatility (standard deviation)
For Short Trades:
Entry considerations: Look for price rises that reach the 70-80th percentile range, indicating an unusual extension
Target setting: Use the Expected Buy price or average drop percentage as a target
Risk management: Set stop losses above recent pivot highs or based on statistical measures of volatility
For Range Trading:
Use the most common drop and rise clusters to identify probable reversal zones
Trade bounces between these statistically significant levels
For Trend Following:
Confirm trend strength by analyzing consecutive higher pivot lows (uptrend) or lower pivot highs (downtrend)
Use lower percentile retracements (20-30th percentile) as entry opportunities in established trends
█ Usage
StatPivot offers multiple ways to integrate its statistical insights into your trading workflow:
Statistical Table Analysis: Review the comprehensive statistics displayed in the data table to understand the market's behavior. Pay particular attention to:
Average drop and rise percentages to set reasonable expectations
Standard deviation to gauge volatility
VaR95 for risk assessment
Real-time Percentile Monitoring: Watch the real-time percentile display to see where the current price movement stands within the historical distribution. This can help identify:
Extreme movements (90th+ percentile) that might indicate reversal opportunities
Typical retracements (40-60th percentile) that might continue further
Shallow pullbacks (10-30th percentile) that might represent continuation opportunities in trends
Support and Resistance Identification: Utilize the plotted pivot points as key support and resistance levels, especially when they align with statistically significant percentile ranges.
Target Price Setting: Use the expected buy and sell prices calculated from historical averages as initial targets for your trades.
Risk Management: Apply the statistical measurements like standard deviation and VaR95 to set appropriate stop loss levels that account for the market's historical volatility.
Pattern Recognition: Over time, learn to recognize when certain percentile levels consistently lead to reversals or continuations in your specific market, and develop personalized strategies based on these observations.
█ Default Settings
The default settings of StatPivot have been carefully calibrated to provide reliable statistical analysis across a variety of markets and timeframes, but understanding their effects allows for optimal customization:
Left Bars (30) and Right Bars (30): These parameters determine how pivot points are identified. With both set to 30 by default:
A pivot low must be the lowest point among 30 bars to its left and 30 bars to its right
A pivot high must be the highest point among 30 bars to its left and 30 bars to its right
Effect on performance: Larger values create fewer but more significant pivot points, reducing noise but potentially missing important market structures. Smaller values generate more pivot points, capturing more nuanced movements but potentially including noise.
Table Position (Top Right): Determines where the statistical data table appears on the chart.
Effect on performance: No impact on analytical performance, purely a visual preference.
Show Distribution Histogram (False): Controls whether the distribution histogram of drop percentages is displayed.
Effect on performance: Enabling this provides visual insight into the distribution of retracements but can clutter the chart.
Show Real-time Percentile (True): Toggles the display of real-time percentile rankings.
Effect on performance: A critical setting that enables the dynamic analysis of current price movements. Disabling this removes one of the key advantages of the indicator.
Real-time Percentile Display Mode (Label): Chooses between label display or indicator line for percentile rankings.
Effect on performance: Labels provide precise information at the current price point, while indicator lines show the evolution of percentile rankings over time.
Advanced Considerations for Settings Optimization:
Timeframe Adjustment: Higher timeframes generally benefit from larger Left/Right values to identify truly significant pivots, while lower timeframes may require smaller values to capture shorter-term swings.
Volatility-Based Tuning: In highly volatile markets, consider increasing the Left/Right values to filter out noise. In less volatile conditions, lower values can help identify more potential entry and exit points.
Market-Specific Optimization: Different markets (forex, stocks, commodities) display different retracement patterns. Monitor the statistics table to see if your market typically shows larger or smaller retracements than the current settings are optimized for.
Trading Style Alignment: Adjust the settings to match your trading timeframe. Day traders might prefer settings that identify shorter-term pivots (smaller Left/Right values), while swing traders benefit from more significant pivots (larger Left/Right values).
By understanding how these settings affect the analysis and customizing them to your specific market and trading style, you can maximize the effectiveness of StatPivot as a powerful statistical tool for identifying high-probability trading opportunities.