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.
Pivot-Punkte und Levels
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
[NLR] - SweetSpot ZonesThe Sweet Spot Zone helps you find the best spots to enter a trade, inspired by the " Follow Line Indicator " by Dreadblitz (big thanks to him!). It draws a colored zone on your chart to show ideal entry points, with a Base Point to keep you on track.
What It Does
Blue Zone: Uptrend—buy when the price dips into the zone.
Red Zone: Downtrend—sell or short when the price climbs into the zone.
Base Point: A gray line showing the key level the zone is built on.
How to Use It
Look for the colored zone:
- Blue: Buy if the price dips into the zone but stays above the Base Point.
- Red: Sell/short if the price climbs into the zone but stays below the Base Point.
Important: Avoid entering trade beyond base point - you might see low returns and face big drawdowns.
Confirm with other signals (like RSI/MACD) before entering.
Settings
ATR Length (10): How far back it looks to calculate price movement.
ATR Multiplier (2.5): How wide the zone is.
Error Margin (5.0): Keeps the zone steady during small price wiggles.
Uptrend/Downtrend Colors: Change the zone colors if you’d like!
Credits
Inspired by the "Follow Line Indicator" by Dreadblitz—check out his work for more great ideas!
Cyclical Momentum PivotsCYCLICAL MOMENTUM PIVOTS
Overview
Cyclical Momentum Pivots is a streamlined indicator blending Cyclic Smoothed RSI (cRSI) with dynamic momentum detection to pinpoint high-probability trading pivots across stocks, forex, crypto, and more. Built on an adaptive cycle engine, it tracks market rhythm, delivering clear signals for momentum shifts and cyclic reversals, with an optional Hurst-style pivot forecast projected ahead of time. Powered by Pine Script v6, it uses lazy evaluation for real-time efficiency and precision.
How It Works
Momentum Signals (Green/Red Triangles)
Green Triangles (Below Bars): Trigger on volume spikes (default >2x 10-period SMA) with price surges (default ≥1.5%) or volume momentum (>20% over 5 bars).
Red Triangles (Above Bars): Same conditions with price drops.
Dynamic Tuning: Thresholds adjust via volatility (ATR, volume std dev) and cycle strength—stronger signals when cycles deviate far from a dynamic mean.
cRSI Band Crossovers (Turquoise/Purple Diamonds)
Turquoise Diamonds (Below Bars): cRSI crosses up through the low band—potential bullish pivot from oversold.
Purple Diamonds (Above Bars): cRSI crosses down through the high band—bearish pivot from overbought.
cRSI 25% Level Signals (Yellow Markers)
Yellow X (Above Bars): cRSI drops below 25% under the high band with a price decline—early bearish momentum cue.
Yellow O (Below Bars): cRSI rises above 25% over the low band with a price increase—early bullish momentum hint.
Cycle Momentum Signals (Green/Red Circles)
Green Circles (Below Bars): Cycle crosses above its dynamic mean—potential bullish acceleration.
Red Circles (Above Bars): Cycle dips below the mean—potential bearish slowdown.
Why Shorter Cycles Are Bearish, Longer Bullish: Shorter cycles (below mean) signal rapid swings—often bearish, reflecting seller-driven volatility. Longer cycles (above mean) indicate sustained trends—typically bullish, driven by buyer confidence.
Dynamic Cycle Length & Pivot Forecast
Calculation: Detects peaks/troughs over an adaptive window (scaled by smoothed cycle and sensitivity), averages distances, and smooths with an EMA (default 5). Clamped 10–40 bars. Dynamic mean adjusts to cycle length (default 2x multiplier).
Display: White number (e.g., "18") on cycle changes—off by default, toggle on via settings. Optional gray label (e.g., "P+10") forecasts bars until the next pivot, based on Hurst cycle analysis—off by default, toggle on via settings.
Hurst Pivot Forecast: Uses the average pivot period (full cycle, e.g., peak-to-peak or trough-to-trough) to predict the next pivot from the last cycle shift. Half-cycle (e.g., avgPivotPeriod / 2) marks potential midpoints, full cycle (default) targets the next major pivot, and 2x cycle (e.g., avgPivotPeriod * 2) forecasts longer-term turns—adjustable via sensitivity and multiplier settings for custom timing.
Key Features
Adaptive Cycle Engine: Peak/trough distances, smoothed with an EMA, scaled by sensitivity (default 1.0)—locks onto market rhythm.
Cycle Strength: Signals amplify with deviation from a dynamic mean—tighter thresholds in long cycles, looser in short ones.
Pivot Forecast: Optional Hurst-inspired prediction shows bars until the next pivot—enhances planning without clutter.
User Controls: Tune smoothing period (default 5), window sensitivity (0.5–2.0), and mean multiplier (1.0–5.0) for your market.
v6 Efficiency: Lazy evaluation optimizes conditions (e.g., momentumSignal and currentPriceChange > 0) for real-time precision.
Usage Tips
Timeframes: Scales from 5M to 1D—tweak settings for speed or stability.
Assets: Universal—adjust thresholds for volatility (e.g., 2.5 for crypto, 1.5 for forex).
Confirmation: Pair with support/resistance—e.g., green triangle + green circle = strong bullish pivot; red diamond + red circle = bearish pivot. Watch forecast (e.g., "P+5") for timing entries/exits.
Backtesting: Test historically—cycle strength and forecast boost accuracy in trending vs. ranging markets.
Settings
Use Auto Dominant Cycle Length: Enable (default) for adaptive cycles; disable for fixed (default 20).
Example: Enable for crypto’s wild swings; disable and set 30 for stable stocks—locks cycle to asset pace.
Base Volume Threshold: Default 2.0—raise for stricter signals, lower for more.
Example: 2.5 cuts noise in BTC/USD, 1.5 catches more in SPY—tunes signal frequency.
Base Price Change % Threshold: Default 1.5%—adjust for asset volatility.
Example: 2% for high-beta stocks, 1% for forex—matches price action scale.
Volume Momentum Lookback: Default 5—shorten for sensitivity, lengthen for stability.
Example: 3 for 5M scalping, 10 for 1D swings—sharpens momentum detection.
Show Cycle Labels: Disable (default)—enable to see cycle length changes.
Example: Enable on 1H for cycle tracking, disable on 5M for cleaner charts—reduces visual noise.
Show Pivot Forecast: Disable (default)—enable for Hurst-style next-pivot countdown.
Example: Enable on 4H for swing planning (e.g., "P+20"), disable on 15M for focus—adds timing insight.
Cycle Smoothing EMA Period: Default 5—faster (3) for volatility, slower (10) for trends.
Example: 3 smooths fast XRP cycles, 10 steadies SPX trends—reduces erratic signals.
Window Sensitivity: Default 1.0—lower (0.5) for tighter detection, higher (1.5) for broader cycles.
Example: 0.8 narrows for ETH’s chop, 1.2 widens for gold’s slow waves—tunes peak/trough precision.
Mean Multiplier: Default 2.0—shorter (1.5) for responsiveness, longer (3.0) for broader context.
Example: 1.5 tightens signals in 15M forex, 3.0 broadens for 1D indices—shifts momentum circle and forecast timing.
Show cRSI Band Crossovers: Enable (default) for cRSI signals; disable for simplicity.
Example: Enable for reversal plays, disable for momentum focus—cuts clutter.
Why It Stands Out
Cyclical Momentum Pivots’ auto-adaptive cycle—smoothed, strength-weighted, and dynamically averaged—tracks market shifts, delivering clear, actionable pivot signals with optional Hurst-style forecasting ahead of time. v6’s lazy evaluation ensures every trigger is computed efficiently, making it a go-to for traders seeking precision in momentum and reversals.
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.
SMA & EMA Trend IndicatorIndicator that will use SMA and EMA to determine the price direction. The logic is:
If EMA (fast) is above SMA (slow) → uptrend (up arrow).
If EMA is below SMA → downtrend (down arrow).
AI Buy/Sell Indicator1st try buy sell 1 indicator, i.e. ai based yet to try and update as required later on., although i don't know its superb success or failiure one. let see and check this out
Overextension Oscillator [by MR_LUCAS_01]The Overextension Oscillator is a custom TradingView indicator designed to detect market overextension by analyzing swing highs/lows, price distance from swings, and momentum shifts. It helps traders identify potential reversal zones where price is likely to retrace after an overextended move.
---
Key Features:
✅ Swing High/Low Detection – Identifies key pivot points to measure market extension.
✅ Overextension Calculation – Measures how far price has moved from recent swings.
✅ Oscillator with Smoothing – Uses EMA-based smoothing to generate reliable signals.
✅ Buy & Sell Signals – Highlights potential entry points when price reaches extreme zones.
✅ Color-Coded Candle Plotting – Enhances visibility of bullish and bearish zones.
✅ Threshold-Based Alerts – Notifies traders when price extends beyond a calculated limit.
---
How It Works:
1. Swing Point Detection:
Detects pivot highs/lows over a defined number of bars.
Measures the percentage difference between recent swing highs and lows.
2. Overextension Calculation:
Determines how far price has moved from the last significant swing.
Compares this movement to historical averages to assess overextension.
3. Oscillator Processing:
Creates an oscillator with smoothing to filter noise.
Highlights when price moves too far from equilibrium.
4. Buy & Sell Signal Generation:
Buy Signal: Price falls below a threshold relative to the last swing low.
Sell Signal: Price rises above a threshold relative to the last swing high.
Includes a cooldown period to avoid rapid repeated signals.
---
Visualization:
Bullish & Bearish Candles:
Green candles indicate bullish overextensions (potential reversals up).
Red candles indicate bearish overextensions (potential reversals down).
Signal Line (Neutral Color):
Plots a smoothed oscillator to track overextension movements.
Reference Levels:
0 Line: Center equilibrium.
+20 & -20 Bands: Indicate potential reversal zones.
Buy & Sell Signal Markers:
Green circles (Buy Signals) at oversold conditions.
Red circles (Sell Signals) at overbought conditions.
---
Customization Options:
Swing Detection Lengths – Adjust bar lookback periods for pivots.
Oscillator Smoothing – Modify EMA lengths for signal clarity.
Threshold Sensitivity – Fine-tune overextension criteria.
Cooldown Period – Prevent excessive signals in rapid moves.
---
Use Cases:
✔ Reversal Traders – Identify overextended price action for mean reversion trades.
✔ Trend Traders – Use as a filter to confirm pullback entries in trends.
✔ Scalpers & Swing Traders – Find quick reversals in volatile markets.
---
Conclusion:
The Overextension Oscillator is a powerful tool that helps traders identify extreme price movements and anticipate potential reversals. By combining swing analysis, distance measurements, and smoothed oscillations, it provides clear buy/sell signals in overextended markets.
Futures Round Levels Clean (50/00 only at price)This will display a dashed line at the 50 and 00 levels for futures.
RSI Divergence & ConvergenceRSI-Based Convergence and Divergence
Green: Represents Bullish Divergences.
Red: Represents Bearish Divergences.
I’m planning to tweak the script further, especially to enhance the visibility of the lines, as they’re currently hard to spot. Open to any feedback or suggestions—thanks a ton!
Quad Buy AlertThis alert is to be used either when the trend breaks the Chanell to the upside or when a divergence occurs or both would be even better.
Breakout Trading Rules📄 Description for Publication (EN):
Breakout Trading Rules – Confirmed Entry Signal
📈 A strategy focused on identifying real breakout entries supported by volume and technical indicators.
This indicator visualizes the key conditions required for a valid BUY signal based on confirmed breakouts. It's optimized for the 1D timeframe, but can be adapted to others as well.
🔍 Signal Logic:
Price closes above a breakout level (either the latest pivot high or a manually set level).
Breakout must be confirmed by two consecutive candles closing above the level.
Volume is above average, compared using two reference periods.
MACD shows a bullish crossover.
RSI is above a configurable threshold (default: 50).
🎯 Additional Features:
Dynamic breakout line colored green (if price is above) or red (if below).
BUY signal visually marked on the chart.
Checklist table in the top-right corner showing whether all conditions are met.
Option to manually override the breakout level.
Built-in alert when a fully confirmed BUY signal is triggered.
📌 Recommended for:
Traders looking for structured, confirmed breakout entries.
Technically disciplined trading strategies.
Daily timeframe (1D) setups for stronger swing positions.
✅ Open-source, visual, and easy to customize. Use it responsibly as part of your trading plan!
Straggling higher and lower + FIBOSimple indicator displaying straggling higher and lower and fibonacci levels to optimize the buy point and stoploss.
Defaut value use for 5sec timeframe
Enjoy
Bim EMA 35 NavigatorBim EMA 35 Navigator
The Bim EMA 35 Navigator is a powerful trend-following and pullback-based trading indicator designed to help traders identify key buy and sell opportunities using the Exponential Moving Average (EMA 35).
Key Features:
✅ EMA 35 Trend Detection – The EMA line changes color: Green for an uptrend and Red for a downtrend.
✅ Buy & Sell Alerts – Generates alerts when price crosses above or below the EMA 35.
✅ Pullback Detection – Identifies pullbacks to the EMA within a trend, providing additional trade opportunities.
✅ Customizable Parameters – Users can fine-tune pullback thresholds and confirmation candles.
How It Works:
Trend Confirmation: The EMA 35 helps determine whether the market is in an uptrend or downtrend.
Entry Signals: A buy signal appears when price crosses above the EMA in an uptrend, and a sell signal appears when price crosses below the EMA in a downtrend.
Pullback Opportunities: Detects pullbacks to the EMA and confirms them with recent price action, making it easier to enter trades at better prices.
This indicator is ideal for traders looking to follow trends while also capitalizing on pullback entries. It works well across multiple timeframes and asset classes, including stocks, forex, and crypto.
🚀 Use the Bim EMA 35 Navigator to refine your strategy and improve your trade timing!
Nifty Indices ScalpApply only for Nifty Options charts.
This script is a multi-component trading indicator for TradingView, incorporating various trading techniques and visualization tools. Here's a breakdown of its major sections:
1. User Inputs & Settings
Users can toggle different features like SuperTrend, Reversal Signals, PSAR-based Bar Coloring, and Z-score Bar Coloring.
Allows selection of calculation basis for Buy/Sell levels from today's open, previous day’s high/low/close.
Configurable line style, label size, and label position.
2. Gann-Based Buy/Sell Levels
Calculates Gann-style price levels based on the selected price reference (Todays Open, Previous Day High, etc.).
Uses the square root of the chosen price reference to derive different levels (support, buy levels, targets).
Plots these levels using lines and labels.
3. Daily Open Line
Plots the daily open as a white-dotted line.
4. Reversal System
Uses a 10-period EMA (Exponential Moving Average) to identify reversal signals:
A Signal Candle is a candle that does not touch the EMA.
A Confirmation Candle is one that touches the EMA after the signal candle.
If a confirmation candle appears, it marks a potential trend reversal.
Plots buy/sell triangles and stop-loss lines for reversal trades.
5. PSAR-Based Bar Coloring
Implements three different PSAR (Parabolic SAR) values with different acceleration factors.
Bars are colored purple for bullish trends and blue for bearish trends if all three PSAR values confirm the direction.
7. Z-Score Calculation (Partially Cut Off)
A Z-score function is included but seems to be used for weighting calculations.
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.
Horizontal EMADesigned to plot a horizontal Exponential Moving Average (EMA) line on a TradingView chart. The script allows users to specify the period and source for the EMA calculation. The line remains fixed at the calculated EMA value, providing a visual reference for the trend over the specified period. The script uses version 5 of Pine Script and draws a blue horizontal line at the EMA value on the chart, updating as new data is available.
ATH Pullback Levels with AlertsThe following identifies the following levels:
1. Correction - 10% Pullback from ATH
2. Midpoint - 15% Pullback from ATH
3. Bear Market - 20% Pullback from ATH