RaymondTrending [Qanexra] - Advanced Volatility GaugePrice direction tells you where the market is going, but it doesn't tell you if it has the gas to get there.
RaymondTrending is a proprietary volatility instrument designed to measure the raw "energy" of the market. Unlike standard indicators that lag significantly, this tool uses a rapid-response composite algorithm to detect immediate shifts in market volatility.
What lies inside? The core engine is built on a multi-layered calculation of market range. It filters out static noise to provide a single, clean data stream representing the true "pulse" of the asset.
How to use it:
Rising Line: Volatility is expanding. The current trend (up or down) is backed by real volume and energy.
Falling Line: Volatility is collapsing. The market is entering a consolidation or "squeeze" phase.
Spikes: Sudden spikes often indicate breakout events or climatic tops/bottoms.
Access: This is a closed-source tool. Please contact Qanexra for access.
Análise de Tendência
RaymondRatio [Qanexra] - Volatility with Doji Noise CancellationThe Problem with Standard Volatility: Most volatility indicators force a calculation on every single candle, regardless of quality. This means that during periods of market indecision (Dojis), your indicators are digesting "noise," leading to lag and false signals when the market finally moves.
The Solution: RaymondRatio Developed by Qanexra, the RaymondRatio is a sophisticated volatility gauge that introduces a proprietary "Doji Pause" mechanism. Instead of smoothing over noise, this indicator intelligently ignores it.
How It Works:
Volatility Engine: The core calculates the Raymond Trending value derived from a composite of short-term compare with the long-term volatility.
The Doji Pause: The indicator constantly monitors the Body-to-Range ratio of every candle. If a candle is detected as a Doji (indecision), the indicator freezes its calculation. It retains the last known "valid" volatility state.
The Ratio: The output is a ratio.
> 1.0: Volatility is expanding relative to the baseline (Active Market).
< 1.0: Volatility is compressing (Squeeze/Consolidation).
Key Features:
Smart Filtering: Background highlights in Gray indicate "Paused" zones where the market is undecided.
Clean Data: Prevents the baseline from being dragged down by low-quality price action.
Customizable Threshold: Users can define what constitutes a "Doji" (e.g., body is less than 30% of the range).
How to Trade: Use this as a filter for your existing strategy.
Green Light: When the Ratio is above 1.0 and rising, the market is in a valid expansion phase.
Red Light: When the Ratio is below 1.0 or "flatlining" during Doji Pauses, stay out of the market to avoid chop.
US & EU Airlines Basket Analysis This Pine Script v5 indicator is a multi-faceted analysis tool designed primarily for monitoring the collective sentiment and technical health of a basket of US and EU airline stocks. It overlays this basket analysis onto the chart of a single security, using advanced metrics like moving average (MA) crosses, Volume-RSI scoring, broader market indices, and oil price action to generate a Combined Sentiment Index and projected Strike Price targets.
1. ⚙️ Core Logic and Calculations
The script performs three main categories of analysis: A. Airline Basket Analysis (US & EU): The core of the indicator calculates the sum of prices and moving averages (9-period and 50-period Simple Moving Averages) for the European and US airline baskets separately. Basket Signal: A signal is generated based on the relative difference between the basket's total 9-period MA and its 50-period MA. Signals (Strong/Medium/Weak): Defined by user-set thresholds, if the following conditions are met simultaneously: Buy: Price increases, Volume is above average, and RSI is in the upper half. Sell: Price decreases, Volume is above average, and RSI is in the lower half. The Net Vol/RSI Score (sum of all individual scores) is displayed on the chart labels. B. Combined Sentiment Index: This index is a weighted aggregation that consolidates all major influences into a single plot line positioned relative to the visible price range. Metrics and Influence: The index includes the Basket MA Score (directional strength of MAs), Basket Vol/RSI Score (momentum-backed moves), Main Chart RSI Score (momentum of the current symbol), Index Bias (influence from DJI, S&P 500, and NASDAQ), DXY Influence (USD Index breakouts), Oil Influence (Inverted change of Brent crude oil price, reflecting fuel costs), and a Vol/RSI Bonus for extreme scores. The final index determines the position and color of the plot line, with a sensitivity factor to control movement away from the anchor. C. Oil Inflection Points: This logic compares large moves in the Brent Crude Oil price against simultaneous large moves in the Focused Airline Basket on a user-defined, higher timeframe (e.g., Daily). Inverse Inflection (Yellow Line): Signals when Oil and Airlines move in opposite directions, confirming the expected inverse relationship (e.g., Oil \uparrow & Airlines \downarrow). Direct Inflection (Blue Line): Signals when Oil and Airlines move in the same direction, suggesting the inverse relationship is currently broken.
2. 📊 Visual Outputs and Signals
Basket MA Lines: Overlaid on Price (Green for EU, Blue for US Total MAs). Basket Signals: Below/Above Bars with Labels (EUs/USs, etc.) indicating MA cross strength. Sentiment Plot: User-defined Anchor line with a superimposed line colored Lime (Bullish) or Red (Bearish) representing the Combined Sentiment Index. Strike Price Line: Overlaid on Price as a Solid White line, an estimated near-term target price projected from the sentiment strength. Indices Table: Located at the Bottom Center, displaying real-time percentage change and alerts for the major US stock indices. Oil Inflection: Overlaid on Price as Thick Yellow/Blue Lines highlighting bars where the oil/airline relationship is confirmed or broken.
3. Adjust Inputs: Open the indicator settings (the gear icon) and adjust the included regions ("Include EU/US Airlines") and the Oil Inflection Timeframe (use a higher timeframe like 'D' for Daily for more significant signals).
4. Interpretation: A Sentiment Plot line moving significantly above the Anchor (Lime) indicates strong bullish conviction; moving below (Red) indicates strong bearish conviction. The white Strike Price Line provides a potential short-term target.
Oil is included as a feature with this indicator to assess if any possible relevance exists or seems to exist as relationship with price action value of the air travel asset class conversely or inversely: which is presented by blue and yellow bars.
MTF-SumTabThis is Summary Table of different Time Frames, and this gives an insight into the Trend...
Golden Guardian Breakout Suite with Trend Filter🔥 Golden Guardian Breakout Suite with Trend Filter
After years of inconsistent results, emotional entries, and overthinking trades, I built the Golden Guardian Breakout Suite to bring structure and confidence back into the way I trade.
This system was created to remove hesitation, eliminate noise, and help traders execute based on clear confirmation - not fear or impulse. Designed specifically for Gold (XAUUSD), Indices, and Forex markets.
My goal is simple: help you trade with discipline, clarity, and confidence - One clean setup at a time.
⸻
💳 Purchase Access
Access is invite-only.
👉 Purchase here:
Paypal Link
Monthly 🔗 paypal.me
Quarterly 🔗 paypal.me
Annually 🔗 paypal.me
💵 Cash App (USD)
Tag: $KFraser87
💳 Pricing
Choose the access level that fits your trading style:
⸻
🟦 Monthly Access
Golden Guardian Access
💰 $39.99 / month
✔️ Full indicator access
✔️ Updates included
✔️ Cancel anytime
⸻
🟩 Quarterly Access
Golden Guardian Pro Access
💰 $109 / quarter
✔️ Everything in Monthly
+
✔️ Priority support
✔️ Better pricing than monthly
⸻
🟪 Annual Access
Golden Guardian Elite Access
💰 $399 / year
✔️ Full access for 12 months
✔️ Updates included
✔️ Best long-term value
✔️ Price locked even if future pricing increases
⸻
🔧 Payment Methods Accepted
✔️ Cash App
✔️ PayPal
✔️ Stripe or Gumroad (coming soon)
⸻
📩 After Payment
Send a message via Telegram to:
👉 @GoldenGuardianSuite
Include:
• Your TradingView username
• Screenshot of payment
Access will be activated within 0–24 hours.
⸻
🔐 📜 Terms of Use
• License valid for one TradingView username
• Source code is protected
• Resale, redistribution, copying, or sharing access is prohibited
• No refunds after access approval
⸻
⭐️ Updates Included
All future upgrades and improvements are included during your active subscription.
🚀 Key Features
✔️ Breakout entry signals
✔️ Trend Filter Toggle — ON/OFF option
- ON: Only shows signals that align with the trend
- OFF: Shows all breakout signals for aggressive scalping
✔️ Dynamic stop loss modes: ATR or Structure-based
✔️ TP1 / TP2 mapped automatically
✔️ Visual SL and TP labeling
✔️ Clean arrows and road visuals
✔️ Optimized for mobile and desktop charting
✔️ Alerts available for all trade conditions
⸻
🎯 Designed For
• Scalpers
• Intraday traders
• Traders who need structure and confidence
• Those who want rule-based entries and less emotional decision-making
Whether you prefer aggressive entries or filtered confirmation-based entries, the toggle gives you full control.
⸻
📈 Best Markets & Timeframes
Asset Supported
XAUUSD (Gold) ⭐ Highly optimized
NAS100 / US30 / Indices ✅
Forex pairs ✅
Crypto👍 Works well
Recommended timeframes: 1m, 5m, 15m, 1H, 4H
Recommended sessions: New York, London
Personal Timeframe used: 5 min Timeframe and TP 1 Only
🔔 Alerts Included
• Buy signal
• Sell signal
• Trend shift
• Breakout confirmation (Filtered & Unfiltered)
Alerts can be sent to mobile, desktop, email, or webhook for automation.
⚠️ Risk Disclaimer
Trading foreign exchange (forex), commodities, indices, and CFDs involves significant risk and may not be suitable for all investors.
Leverage can amplify both profits and losses.
You should carefully consider your financial goals, experience level, and risk tolerance before trading.
Past performance or indicator results do not guarantee future success.
Always trade responsibly and use proper risk management.
⸻
💛 Final Thoughts
🚀 Golden Guardian Breakout Suite because when the Golden Path, the trend, and your focus align - consistency and profit follow!
Directional Imbalance Index [BigBeluga]🔵 OVERVIEW
The Directional Imbalance Index is designed to track market strength by counting how often price sets new highs or lows over a defined lookback period. Every time a bar forms a new extreme, the indicator records a +1 count for either bullish (highs) or bearish (lows). These counts are aggregated into a rolling calculation, allowing traders to see which side dominates and how directional imbalance evolves.
🔵 CONCEPTS
Each new highest high → adds a bullish count (+1).
Each new lowest low → adds a bearish count (+1).
Counts are stored inside arrays over a user-defined Calculation Period .
for i = 0 to period-1
h = high
l = low
if h == upper
countUp.push(1)
if l == lower
countDn.push(1)
The balance between bullish and bearish counts highlights dominance and imbalance.
Normalized percentages help compare both sides (e.g., 65% bullish vs 35% bearish).
🔵 FEATURES
Counts new highs/lows over a chosen Highest/Lowest Length .
Aggregates values over a rolling Calculation Period .
Plots cumulative bullish vs bearish totals in the subchart.
Displays % share of bulls vs bears from total counts.
On-chart labels mark bars where a count was added.
Plots reference lines of the current upper (high) and lower (low) ranges.
Dynamic fill between bullish/bearish plots to visualize which side dominates.
🔵 HOW TO USE
Look for persistent bullish imbalance (bull % > bear %) as confirmation of upward momentum.
Look for persistent bearish imbalance (bear % > bull %) as confirmation of downward momentum.
Watch for shifts in % dominance — often early signs of trend reversal or weakening strength.
Use labels on the chart to visually confirm which bars contributed to directional bias.
Combine with trend or volume tools to confirm whether imbalance aligns with market direction.
🔵 CONCLUSION
The Directional Imbalance Index offers a systematic way to measure directional pressure. By counting how often price pushes into new territory, the indicator reveals whether bulls or bears are taking control. This makes it a valuable tool for detecting early signs of trend continuation or exhaustion, helping traders align with the side most likely to dominate.
Near N Bars Real Body High and Low Support and Resistance
This indicator dynamically identifies support and resistance levels based on the highest and lowest values of the real bodies (open and close prices) of the most recent N bars. Users can interactively select the starting bar by clicking on the chart, and the script calculates the highest high and lowest low within the specified range, drawing horizontal support and resistance lines accordingly. The lines can be extended to the left and right according to user inputs. This tool helps traders visually identify key price levels for technical analysis based on recent price action.
Two Supertrend Crossover SignalThis indicator is designed to visualize trend shifts using two Supertrend lines and a crossover-based signal system.
It also colors the area between the two Supertrend lines based on the current trend direction, making trend changes easy to identify at a glance.
How It Works
The indicator plots:
Fast Supertrend (shorter ATR length, lower factor)
Slow Supertrend (longer ATR length, higher factor)
A crossover between these two Supertrend lines indicates a possible trend shift.
Buy Signal
A BUY signal occurs when: Fast Supertrend crosses ABOVE Slow Supertrend
This suggests bullish momentum strengthening.
Sell Signal
A SELL signal occurs when: Fast Supertrend crosses BELOW Slow Supertrend
This suggests bearish momentum increasing.
Buy/Sell Signal Labels
The chart displays clear BUY (green) and SELL (red) labels at every crossover.
These signals help traders quickly pinpoint potential entries or exits.
This indicator is ideal for:
✓ Trend trading
✓ Swing trading
✓ Identifying momentum shifts
✓ Visual confirmation of market direction
✓ Combining with price action or EMA filters
You may adjust ATR length and multiplier depending on the timeframe:
For Scalping (1–5 min):
Fast ATR: 5–7
Slow ATR: 10–14
For Intraday (5–15 min):
Fast ATR: 7
Slow ATR: 10–14
For Swing Trading (1h–4h):
Fast ATR: 10
Slow ATR: 20
Important Notes
This indicator does not repaint the Supertrend values.
Signals are based on confirmed crossovers.
Use stop-loss and risk management appropriate for your strategy.
Always combine with market context (support/resistance, volume, etc.)
Magnificent 7 Basket Analysis V2 (V7.5 - Peak Anchor)This is the version 2 of the magnificent 7 indicator basket. The update to this indicator is the look back period for overbought and oversold estimate included in the sentiment box price. Second update is the Probability of success lines "Green above and purple bellow" (POS) toggle setting which enables closer POS lines to the candles on lower timeframes..
Subscribers can use either the first version of this indicator or this updated version 2.
INSTRUCTIONS..
Magnificent 7 instructions
high-signal, multi-layered decision engine
Starting with the basket indicator features display.
┌────────────────────────────────────┐
│ MAG-7-BASKET │
│ Sentiment: STRONG BULLISH │
│ Target Conf.: BULLISH CONFIRMED │
│ Change: +2.34% │
│ Est Target: ▲ 728.50 │
└────────────────────────────────────┘
How it works with the probability of success lines “POS”
┌────────────────────────────────────┐ │ MAG-7-BASKET │ │ Sentiment: STRONG BULLISH │ ← Lime = GO │ Target Conf.: BULLISH CONFIRMED │ ← Confirmed = HIGH confidence │ Change: +2.34% │ │ Est Target: 728.50 │ ← Take-profit level │ PoS Bull: 78% | PoS Bear: 22% │ ← Dual odds └────────────────────────────────────┘
**Color Logic** white line through the candles is a self confirmation line of the expected direction x
| Color | Meaning |
|-------|--------|
| **Green** | **Reached Est Target successfully** |
| **Red** | **Reached opposite target successfully** |
| **White** | **Near Est Target (within buffer)** |
| **Orange**| **Complete failure** (price too far away) |
**How to Use**
- **White line appears** → Price touched **Est Target**
- **Turns GREEN** → **Bullish prediction hit** → **Hold or trail**
- **Turns RED** → **Bearish prediction hit** → **Hold or trail**
- **Turns ORANGE** → **Bad estimate** → **Exit or reassess**
- **Still WHITE** → **In buffer zone** → **Wait for confirmation**
---
### 5. QUICK TABLES
#### Top-Left: Mag7 Health
| NVDA | Buy | Green | 8 Bull |
|------|-----|-------|--------|
#### Bottom-Center: Market Pulse
| DJI | S&P | NASDAQ | VOL |
|-----|-----|--------|-----|
| Up | Up | Up | Low |
**How to Use**
- **Green + Up + Low vol** → **All clear**
- **Red or mixed** → **Be cautious**
---
## YOUR 3-SECOND CHECKLIST
1. **Box = Lime + STRONG + CONFIRMED?**
2. **Dashed PoS line shows 60%+ in your direction?**
3. **Glowing line near price?**
4. **White line appears → turns GREEN/RED?**
**YES to all → ENTER & HOLD** (or sell an existing early entry, your discretion)
**Est Target = Take Profit**
**PoS Line = Trailing Target**
**White Line = Confirmation**
---
## QUICK CHEAT SHEET
| You See | You Do |
|--------|-------|
| **Lime box + High PoS Bull** | Buy |
| **Red box + High PoS Bear** | Sell |
| **High PoS in opposite direction** | Consider counter-trade |
| **Dashed line + 70%+** | High-confidence |
| **Glowing line near price** | Entry zone |
| **White line → GREEN** | **Bullish confirmed** |
| **White line → RED** | **Bearish confirmed** |
| **White line → ORANGE** | **Exit – bad estimate** |
---
**That’s it. Look. Glow. Confirm. Win.**
Further reading for indicator logic:
The estimated target price shown in the floating sentiment tag (the box in the top-right of the chart) is not a fixed level — it moves higher or lower dynamically depending on both the current sentiment strength and the historical lookback context, even when the sentiment appears to contradict the price direction.
Here’s how the system can project a price higher during a bearish phase, or lower during a bullish phase — based on the lookback period acting as an “anchor of realism”:
Core Mechanism: Sentiment Drives Direction, Lookback Caps Extremes
1. Sentiment Index (from MA, RSI, volume, AAI, indices, etc.)
→ Determines bullish vs bearish bias and strength (mild/strong).
2. Target Base Price
→ Usually the prior close, but can be influenced by supply/demand zones.
3. Multiplier Factor
→ A small percentage (target_factor) is scaled by sentiment magnitude and directional magnifiers (bullish vs bearish).
4. Lookback Period (via Adaptive Range Lines)
→ Defines realistic high/low boundaries over recent price action (either fixed bars or peak-anchored).
How a Bearish Sentiment Can Still Project Higher Price
Even when overall sentiment is bearish, the system checks historical range:
• If price is already near or below the lower adaptive range line (from lookback),
• The model assumes downside is exhausted.
• Even with bearish signals, it limits further downside and may project up toward the strike price as a mean-reversion target.
Result: Bearish reading → but estimated target is above current price
Because the lookback says: “We’re already at extremes — bounce likely.”
How a Bullish Sentiment Can Project Lower Price
Conversely, during strong bullish sentiment:
• If price is near or above the upper adaptive range line,
• The system recognizes overextension.
• It caps upside and projects a pullback target downward, even if sentiment is green.
Result: Bullish reading → but estimated target is below current price
Because lookback says: “Too far, too fast — correction expected.”
→ Even if sentiment says “MILD BEARISH”,
→ If price is deep in the lower range, the ▲ points up to a realistic recovery level.
Or:
→ Even if sentiment says “STRONG BULLISH”,
→ If price is at peak resistance, the ▼ points down to a probable retracement.
Why This Happens: Sentiment ≠ Blind Trend-Following
• Sentiment = current momentum & conviction
• Lookback range = context of valuation & volatility
• Target price = where momentum meets realism
The system blends aggressive sentiment with conservative anchoring, preventing absurd projections.
This creates intelligent, context-aware targets — not just trend-chasing arrows.
the PoS (Probability of Success) trend lines broadly use the same reverse logic as the estimated target price in the floating box.
They are not purely driven by AAI or sentiment strength alone.
They are context-aware, and price location within the adaptive range plays a central role — just like in the estimated strike price box logic.
Session Sweep + Retrace (London + NY) - FixedORB Strategy with confluence. This sets out the 5 min session sweep from London and NY, and highlights a test back into the order zone with fib retracement.
ROC x4 (Multi-Period Overlay) + Table📈 ROC x4 (Multi-Period Momentum Suite) + Compact Table
A clean, powerful momentum indicator that overlays four Rate-of-Change (ROC) periods inside a single pane — without needing to stack multiple separate indicators.
This script is designed for traders who use multi-timeframe momentum confirmation, trend strength validation, and early detection of rotation, compression, or expansion in price behavior.
🔍 What This Indicator Does
Plots 4 different ROC lengths in one panel
Includes a compact real-time ROC table that fits even in small panes
Tracks momentum shifts, trend acceleration, slowdowns, and regime transitions
Allows manual input for all 4 ROC lengths
Optional smoothing to reduce noise
Zero-line toggle for momentum direction clarity
Perfect for traders who want to monitor short-term, mid-term, and long-term ROC simultaneously.
DuckyDaff's - 6 Simple Moving AveragesSimple Moving Average (SMA) Multi-Timeframe Indicator: 9/21/50/100/150/200
This indicator overlays six SMAs on the price chart to help detect trends, momentum changes, support, and resistance at different timeframes.
• SMA 9: Tracks immediate momentum and short-term price shifts. Used by active traders for rapid trend identification.
• SMA 21: Balances short-term speed with reduced noise. Useful for spotting shallow corrections and near-term swing trends.
• SMA 50: Follows medium-term trends, acts as dynamic support/resistance, popular for swing and trend traders.
• SMA 100: Maps out broader price moves. Valuable for medium- to long-term analysis and identifying significant turning points.
• SMA 150: Suits long-term trend and historical support/resistance review. An extra filter for deeper market structure.
• SMA 200: Marks major market direction—bull/bear zones and critical reversal levels. Widely used for long-term bias and risk management.
Using this multi-SMA indicator gives a layered view of price dynamics, helping traders separate market noise from reliable trend signals, and supports precise entries and exits according to different trading styles
RSI Divergence (Regular + Hidden, @darshakssc)This indicator detects regular and hidden divergence between price and RSI, using confirmed swing highs and swing lows (pivots) on both series. It is designed as a visual analysis tool, not as a signal generator or trading system.
The goal is to highlight moments where price action and RSI momentum move in different directions, which some traders study as potential early warnings of trend exhaustion or trend continuation. All divergence signals are only drawn after a pivot is fully confirmed, helping to avoid repainting.
The script supports four divergence types:
Regular Bullish Divergence
Regular Bearish Divergence
Hidden Bullish Divergence
Hidden Bearish Divergence
Each type is drawn with a different color and labeled clearly on the chart.
Core Concepts Used
1. RSI (Relative Strength Index)
The script uses standard RSI, calculated on a configurable input source (default: close) and length (default: 14).
RSI is treated purely as a momentum oscillator – the script does not enforce oversold/overbought interpretations.
2. Pivots / Swings
The indicator defines swing highs and swing lows using ta.pivothigh() and ta.pivotlow():
A swing high forms when a bar’s high is higher than a specified number of bars to the left and to the right.
A swing low forms when a bar’s low is lower than a specified number of bars to the left and to the right.
The same pivot logic is applied to both price and RSI.
Because pivots require “right side” bars to form, the indicator:
Waits for the full pivot to be confirmed (no forward-looking referencing beyond the rightBars parameter).
Only then considers that pivot for divergence detection.
This helps prevent repainting of divergence signals.
How Divergence Is Detected
The script always uses the two most recent confirmed pivots for both price and RSI. It tracks:
Last two swing lows in price and RSI
Last two swing highs in price and RSI
Their pivot bar indexes and values
A basic minimum distance filter between the pivots (in bars) is also applied to reduce noise.
1. Regular Bullish Divergence
Condition:
Price makes a lower low (LL) between the last two lows
RSI makes a higher low (HL) over the same two pivot lows
The RSI difference between the two lows is greater than or equal to the user-defined minimum (Min RSI Difference)
The two low pivots are separated by at least Min Bars Between Swings
Interpretation:
Some traders view this as bearish momentum weakening while price prints a new low. The script only marks this structure; it does not assume any outcome.
On the chart:
Drawn between the previous and current price swing lows
Labeled: “Regular Bullish”
Color: Green (by default in the script)
2. Regular Bearish Divergence
Condition:
Price makes a higher high (HH) between the last two highs
RSI makes a lower high (LH) over the same two pivot highs
RSI difference exceeds Min RSI Difference
Pivots are separated by at least Min Bars Between Swings
Interpretation:
Some traders see this as bullish momentum weakening while price prints a new high. Again, the indicator simply highlights this divergence.
On the chart:
Drawn between the previous and current price swing highs
Labeled: “Regular Bearish”
Color: Red
3. Hidden Bullish Divergence
Condition:
Price makes a higher low (HL) between the last two lows
RSI makes a lower low (LL) over the same two lows
RSI difference exceeds Min RSI Difference
Pivots meet the minimum distance requirement
Interpretation:
Some traders interpret hidden bullish divergence as a potential trend continuation signal within an existing uptrend. The indicator does not classify trends; it just tags the pattern when price and RSI pivots meet the conditions.
On the chart:
Drawn between the previous and current price swing lows
Labeled: “Hidden Bullish”
Color: Teal
4. Hidden Bearish Divergence
Condition:
Price makes a lower high (LH) between the last two highs
RSI makes a higher high (HH) over those highs
RSI difference exceeds Min RSI Difference
Pivots meet the minimum distance filter
Interpretation:
Some traders associate hidden bearish divergence with potential downtrend continuation, but again, this script only visualizes the structure.
On the chart:
Drawn between the previous and current price swing highs
Labeled: “Hidden Bearish”
Color: Orange
Inputs and Settings
1. RSI Settings
RSI Source – Price source for RSI (default: close).
RSI Length – Period for RSI calculation (default: 14).
These control the responsiveness of the RSI. Shorter lengths may show more frequent divergence; longer lengths smooth the signal.
2. Swing / Pivot Settings
Left Swing Bars (leftBars)
Right Swing Bars (rightBars)
These define how strict the pivot detection is:
Higher values → fewer, more significant swings
Lower values → more swings, more signals
Because the script uses ta.pivothigh / ta.pivotlow, a pivot is only confirmed once rightBars candles have closed after the candidate bar. This is an intentional design to reduce repainting and make pivots stable.
3. Divergence Filters
Min Bars Between Swings (Min Bars Between Swings)
Requires a minimum bar distance between the two pivots used to form divergence.
Helps avoid clutter from pivots that are too close to each other.
Min RSI Difference (Min RSI Difference)
Requires a minimum absolute difference between RSI values at the two pivots.
Filters out very minor changes in RSI that may not be meaningful.
4. Visibility Toggles
Show Regular Divergence
Show Hidden Divergence
You can choose to display:
Both regular and hidden divergence, or
Only regular divergence, or
Only hidden divergence
This is useful if you prefer to focus on one type of structure.
5. Alerts
Enable Alerts
When enabled, the script exposes four alert conditions:
Regular Bullish Divergence Confirmed
Regular Bearish Divergence Confirmed
Hidden Bullish Divergence Confirmed
Hidden Bearish Divergence Confirmed
Each alert fires after the corresponding divergence has been fully confirmed based on the pivot and bar confirmation logic. The script does not issue rapid or intrabar signals; it uses confirmed historical conditions.
You can set these in the TradingView Alerts dialog by choosing this indicator and selecting the desired condition.
Visual Elements
On the main price chart, the indicator:
Draws a line between the two price pivots involved in the divergence.
Adds a small label at the latest pivot, describing the divergence type.
Colors are used to differentiate divergence categories (Green/Red/Teal/Orange).
This makes it easy to visually scan the chart for zones where price and RSI have diverged.
What to Look For (Analytical Use)
This indicator is intended as a visual helper, especially when:
You want to quickly see where price made new highs or lows while RSI did not confirm them in the same way.
You are studying momentum exhaustion, shifts, or continuation using RSI divergence as one of many tools.
You want to compare divergence occurrences across different timeframes or instruments.
Important:
The indicator does not tell you when to enter or exit trades.
It does not rank or validate the “quality” of a divergence.
Divergence can persist or fail; it is not a guarantee of reversal or continuation.
Many traders combine divergence analysis with:
Higher timeframe context
Trend filters (moving averages, structure)
Support/resistance zones or liquidity areas
Volume, structure breaks, or other confirmations
Disclaimer
This script is provided for educational and analytical purposes only.
It does not constitute financial advice, trading advice, or investment recommendations.
No part of this indicator is intended to suggest, encourage, or guarantee any specific trading outcome.
Users are solely responsible for their own decisions and risk management.
Multi PPOMulti PPO - Multi-Period Pivot & Opens
See all your key levels in one place. Pivots, previous highs/lows, and period opens across multiple timeframes - without the clutter.
What You Get
Pivot Points across 6 timeframes (Daily → Yearly)
- Standard PP calculation with optional S/R levels
- View up to 3 previous periods
- Orange ● marks untested pivots that haven't been touched yet
Previous Period Levels (High, 50% EQ, Low)
- Shows Day/Week/Month levels
- Inside bar markers when price is consolidating
- Optional background zones
Period Opens (extend to the right indefinitely)
- Key decision levels that often act as support/resistance
Smart Level Grouping
- Levels within 0.5% automatically combine
- Combined labels show all timeframes (like "D+W PP")
- Keeps your chart clean even with multiple periods enabled
Default Setup
Out of the box, you get Daily/Weekly/Monthly pivots, previous period levels, and W+M opens. Everything else is optional - add quarterly, 6-month, yearly, or S/R levels as needed.
DX Supply and Demand Pro💎 DX Supply and Demand Pro: Adaptive Line and Zone Mastery
The DX Supply and Demand Pro indicator is an advanced, hybrid trading tool engineered for precision and context. It seamlessly integrates the proprietary Arbitor Line with dynamic, volume-weighted Supply and Demand Zones. This unique combination provides traders with a clear, adaptive view of both the current trend bias and critical structural price levels.
⚠️ Critical Trading Disclaimer 🛑
Trading is highly speculative and carries a substantial risk of loss. The use of this indicator does not guarantee profits, and you may lose more than your initial capital. Before using this tool in a live trading environment, you must test its performance thoroughly using paper trading or a simulated account.
Why Traders Need the DX S&D Pro 🎯
Proprietary Adaptive Intelligence: The Arbitor Line is a calculated price anchor derived from a complex, undisclosed combination of multiple market factors and proprietary equations. It automatically adjusts its sensitivity based on the chart's timeframe, effectively filtering out market noise to present an accurate, weighted average of the prevailing market bias.
Structural Clarity: It detects high-probability Supply and Demand Zones using pivot points, filtering them for strength based on volume, ATR (volatility), and High Volume Node (HVN) confirmation from a higher timeframe.
Actionable Confluence: The indicator combines dynamic trend bias (the Arbitor Line) with static structural levels (S&D Zones). This allows traders to identify high-conviction setups where the structural turning point is confirmed by the real-time bias of the Arbitor Line.
Feedback & Accountability 🤝
This indicator is provided "as is" and its performance is based on the parameters set by the user. Any suggestions or comments from users regarding performance, bugs, or feature requests should be directed to the developer here or X @Falcondxeye. The developer assumes no liability for trading losses incurred using this tool.
📚 How to Use DX Supply and Demand Pro
This indicator is best used as a confluence tool, where the Arbitor Line confirms the strength and direction of the setup identified by the Supply/Demand Zones.
Trading Confluence with the Arbitor Line:
Scenario: Buy Zone Rejection 🟢
Condition: Price touches a Demand Zone.
Confluence: The Arbitor Line is Above the zone.
Interpretation: Indicates a Bullish Bias is confirming the structural support. Focus on long entries.
Scenario: Sell Zone Rejection 🔴
Condition: Price touches a Supply Zone.
Confluence: The Arbitor Line is Below the zone.
Interpretation: Indicates a Bearish Bias is confirming the structural resistance. Focus on short entries.
Scenario: Momentum Break ⚡
Condition: Price Closes strongly beyond a zone.
Confluence: The Arbitor Line is Aligned with the Break.
Interpretation: Confirms market momentum and suggests the structural break is valid for directional continuation.
⚙️ Key Settings and Optimization Guide 🔧
Arbitor Line Settings (Trend Bias):
VWAP Weight: (Default: 0.33) — The weight applied to a key volume component within the proprietary Arbitor calculation.
Suggestion for High Volatility/Volume: Increase to 0.40 to emphasize volume's influence.
Suggestion for Clean Trends: Decrease to 0.25 to allow momentum components to dictate the line's position.
Supply & Demand Zone Settings (Structural Levels)
HVN Volume TF: (Default: D - Daily) — Crucial Context Setter. The higher timeframe used to look for High Volume Nodes (HVNs) to confirm zone strength.
For Scalping (1m-15m): Use 1H or 4H for validation.
For Day Trading (30m-1H): Use 4H or D. D is the recommended default.
For Swing Trading (4H-Daily): Use W (Weekly).
HVN Bonus %: (Default: 20) — The strength boost applied to a zone if it aligns with an HVN.
Max Supply/Demand Zones: (Default: 2) — Limits the number of active, displayed zones to keep the chart clean.
Retest Bonus %: (Default: 10) — Boosts a zone's strength score each time it is retested (up to max retests).
Time Decay Rate %: (Default: 1) — Reduces a zone's strength for every 10 bars it remains unbroken (stale zones weaken).
Flip Zone on Break: (Default: True) — Turns a broken Demand Zone into a Supply Zone (and vice versa), reflecting structural flip concepts.
💡 Suggestions for Power Users 🚀
Look for Flipped Zones: Pay attention to zones that have been broken and flipped (indicated by yellow text in the labels). Flipped zones that confirm the Arbitor direction often lead to high-momentum continuation moves.
Confirm HVN Strength: Always prioritize trading zones with a high strength score (e.g., 90% or higher), as this indicates maximum confluence of Volume, Volatility, and the HVN Bonus.
Adaptive Timeframes: Use the indicator on multiple timeframes to ensure the Arbitor bias aligns with your trade direction. If the Arbitor is bullish on both the 5-minute and the 1-hour chart, the conviction is exceptionally high.
Final Note: The DX S&D Pro combines the best of trend following with the best of structural trading. It's so good, we call it the Arbitor because it settles the arguments between buyers and sellers... until the next bar, of course! 😉
....................................................................................
💎 مؤشر DX Supply and Demand Pro: خط التكيّف وإتقان المناطق ✨
مؤشر DX Supply and Demand Pro هو أداة تداول هجينة ومتقدمة مصممة للدقة والسياق. إنه يدمج بسلاسة خط Arbitor الخاص بنا مع مناطق العرض والطلب الديناميكية المرجحة بالحجم. يوفر هذا المزيج الفريد للمتداولين رؤية واضحة ومتكيفة لكل من انحياز الاتجاه الحالي ومستويات الأسعار الهيكلية (Structural Price Levels) الحرجة.
⚠️ إخلاء مسؤولية حاسم بشأن التداول 🛑
التداول ينطوي على مخاطرة عالية للغاية ويحمل مخاطر خسارة كبيرة. استخدام هذا المؤشر لا يضمن الأرباح، وقد تخسر أكثر من رأس مالك الأولي. قبل استخدام هذه الأداة في بيئة تداول حقيقية، يجب عليك اختبار أدائها بشكل شامل باستخدام التداول الورقي (Paper Trading) أو حساب محاكاة.
لماذا يحتاج المتداولون إلى مؤشر DX S&D Pro 🎯
ذكاء تكيّفي خاص (Proprietary Adaptive Intelligence): خط Arbitor هو مرساة سعر محسوبة مشتقة من تركيبة معقدة وغير معلنة من عوامل سوق متعددة ومعادلات خاصة. يقوم بضبط حساسيته تلقائيًا بناءً على الإطار الزمني للرسم البياني، مما يزيل ضوضاء السوق بشكل فعال لتقديم متوسط مرجح ودقيق للانحياز السائد في السوق.
وضوح هيكلي (Structural Clarity): يكتشف مناطق العرض والطلب ذات الاحتمالية العالية باستخدام نقاط التحول (Pivot Points)، ويقوم بترشيحها وتحديد قوتها بناءً على الحجم، ATR (التقلب)، وتأكيد من عقدة الحجم العالية (HVN) من إطار زمني أعلى.
تضافر قابل للتطبيق (Actionable Confluence): يجمع المؤشر بين انحياز الاتجاه الديناميكي (خط Arbitor) ومستويات الهيكل الثابتة (مناطق العرض والطلب). يتيح ذلك للمتداولين تحديد إعدادات ذات قناعة عالية حيث يتم تأكيد نقطة التحول الهيكلية من خلال انحياز خط Arbitor في الوقت الفعلي.
الملاحظات والمساءلة 🤝
يتم توفير هذا المؤشر "كما هو" ويستند أدائه إلى الاعدادات التي يحددها المستخدم. يجب توجيه أي اقتراحات أو تعليقات من المستخدمين بخصوص الأداء أو الأخطاء أو طلبات الميزات إلى المطور هنا أو على X @Falcondxeye. لا يتحمل المطور أي مسؤولية عن خسائر التداول المتكبدة باستخدام هذه الأداة.
📚 كيفية استخدام مؤشر DX Supply and Demand Pro
يُفضل استخدام هذا المؤشر كأداة تضافر، حيث يؤكد خط Arbitor قوة واتجاه الإعداد المحدد بواسطة مناطق العرض والطلب.
تضافر التداول مع خط Arbitor:
السيناريو: ارتداد منطقة الشراء 🟢
الحالة: يلامس السعر منطقة الطلب (Demand Zone).
التضافر: يقع خط Arbitor فوق المنطقة.
التفسير: يشير إلى أن انحياز صعودي (Bullish Bias) يؤكد الدعم الهيكلي. التركيز على صفقات الشراء (Long Entries).
السيناريو: ارتداد منطقة البيع 🔴
الحالة: يلامس السعر منطقة العرض (Supply Zone).
التضافر: يقع خط Arbitor أسفل المنطقة.
التفسير: يشير إلى أن انحياز هبوطي (Bearish Bias) يؤكد المقاومة الهيكلية. التركيز على صفقات البيع (Short Entries).
السيناريو: كسر الزخم ⚡
الحالة: يُغلق السعر بقوة خارج المنطقة.
التضافر: يتماشى خط Arbitor مع الكسر.
التفسير: يؤكد زخم السوق ويشير إلى أن الكسر الهيكلي صالح للاستمرار الاتجاهي.
⚙️ الإعدادات الرئيسية ودليل التحسين 🔧
إعدادات خط Arbitor (انحياز الاتجاه)
VWAP Weight (وزن VWAP): (افتراضي: 0.33) — الوزن المطبق على مكون حجم رئيسي ضمن حساب Arbitor الخاص بنا.
اقتراح للتقلب/الحجم العالي: زيادة إلى 0.40 للتأكيد على تأثير الحجم.
اقتراح للاتجاهات النظيفة: تقليل إلى 0.25 للسماح لمكونات الزخم بتحديد موقع الخط بشكل أقوى.
إعدادات مناطق العرض والطلب (المستويات الهيكلية)
HVN Volume TF (الإطار الزمني لحجم HVN): (افتراضي: D - يومي) — مُحدِد السياق الحاسم. الإطار الزمني الأعلى المستخدم للبحث عن عقد الحجم العالية (HVNs) لتأكيد قوة المنطقة.
للمضاربة اللحظية (1د-15د): استخدم 1س أو 4س للتحقق.
للتداول اليومي (30د-1س): استخدم 4س أو D. D هو الإعداد الافتراضي الموصى به.
للتداول المتأرجح (4س-يومي): استخدم W (أسبوعي).
HVN Bonus % (مكافأة HVN %): (افتراضي: 20) — تعزيز القوة المطبق على المنطقة إذا كانت تتماشى مع عقدة HVN.
Max Supply/Demand Zones (الحد الأقصى لمناطق العرض/الطلب): (افتراضي: 2) — يحد من عدد المناطق النشطة المعروضة للحفاظ على نظافة الرسم البياني.
Retest Bonus % (مكافأة إعادة الاختبار %): (افتراضي: 10) — يعزز درجة قوة المنطقة في كل مرة يتم فيها إعادة اختبارها (حتى الحد الأقصى لإعادة الاختبارات).
Time Decay Rate % (معدل الاضمحلال الزمني %): (افتراضي: 1) — يقلل من قوة المنطقة لكل 10 شمعات تبقى فيها دون كسر (المناطق القديمة تضعف).
Flip Zone on Break (قلب المنطقة عند الكسر): (افتراضي: True - صحيح) — يحول منطقة الطلب المكسورة إلى منطقة عرض (والعكس صحيح)، مما يعكس مفاهيم التحول الهيكلي.
💡 اقتراحات للمستخدمين المتقدمين 🚀
ابحث عن المناطق المقلوبة (Flipped Zones): انتبه بشكل خاص إلى المناطق التي تم كسرها وقلبها (يشار إليها بنص أصفر في التسميات). غالبًا ما تؤدي المناطق المقلوبة التي تؤكد اتجاه Arbitor إلى تحركات استمرارية ذات زخم عالٍ.
تأكيد قوة HVN: أعطِ الأولوية دائمًا لتداول المناطق ذات درجة القوة العالية (على سبيل المثال، 90% أو أعلى)، حيث يشير هذا إلى أقصى درجات التضافر بين الحجم والتقلب ومكافأة HVN.
الأطر الزمنية التكيفية: استخدم المؤشر على أطر زمنية متعددة للتأكد من توافق انحياز Arbitor مع اتجاه تداولك. إذا كان Arbitor صعوديًا على كل من الرسم البياني 5 دقائق والساعة الواحدة، تكون القناعة عالية بشكل استثنائي.
ملاحظة أخيرة: يجمع مؤشر DX S&D Pro أفضل ما في تتبع الاتجاه مع أفضل ما في التداول الهيكلي. إنه جيد جدًا، لدرجة أننا نطلق عليه اسم Arbitor لأنه يحسم الجدل بين المشترين والبائعين... حتى الشمعة التالية بالطبع! 😉
دعواتكم 🙏..
SWRSI Trends (Source Out)Overview SWRSI Trends is a specialized momentum indicator based on the Relative Strength Index (RSI). While it functions as a visual trading aid with bar coloring and signal shapes, its primary purpose is to serve as a modular signal provider for other strategies and backtesting bots on TradingView.
It detects trend reversals by monitoring RSI crossovers at specific custom levels (Default: 60 and 40), rather than the standard 70/30 extreme zones.
Key Features
1. External Source Outputs (Connect to Bots) This script includes hidden plot outputs specifically designed to interface with other scripts.
RSI LONG SIGNAL (Source): Outputs a value of 1 when a Long condition is met, 0 otherwise.
RSI SHORT SIGNAL (Source): Outputs a value of 1 when a Short condition is met, 0 otherwise.
Usage: You can select these outputs as the "Entry Source" in compatible Strategy scripts or Backtest Bots without needing to copy-paste code.
2. Signal Logic
Long Signal: Triggered when the RSI line crosses OVER the Lower Threshold (Default: 40). This indicates momentum is recovering from the lower zone.
Short Signal: Triggered when the RSI line crosses UNDER the Upper Threshold (Default: 60). This indicates momentum is cooling off from the upper zone.
3. Visual Aids
Bar Coloring: Candles change color based on RSI position (Green above 60, Red below 40).
Dynamic Line: The RSI line changes color to reflect the current zone.
Settings
RSI Length: The lookback period for calculation (Default: 14).
Short Threshold: Level for bearish crossover (Default: 60).
Long Threshold: Level for bullish crossover (Default: 40).
Color Bars: Toggle candle painting on/off.
How to Connect to Another Indicator
Add SWRSI Trends to your chart.
Open the settings of your Target Strategy/Bot (e.g., SwietcherBot).
In the "Source" or "External Signal" input field, select "SWRSI Trends: RSI LONG SIGNAL" or "RSI SHORT SIGNAL" from the dropdown menu.
Vector CPR Bands## Overview
The Vector CPR Bands indicator enhances the classic Central Pivot Range (CPR) by incorporating "vector" detection—identifying periods with above-average or climactic volume. It projects CPR ranges from these high-volume periods forward as visual bands, which act as persistent support/resistance zones until invalidated by price action. Ideal for spotting key levels in trending or ranging markets, especially on higher timeframes like weekly or monthly.
## Key Features
- **CPR Calculation**: Plots previous, developing (non-repainting), and repainting CPR with mid-pivot, TC (top central), and BC (bottom central) lines, plus fills.
- **Vector Detection**: Scans for high-volume bars in the anchor timeframe (default weekly). Flags "above-average" (≥1.5x avg) or "large" (≥2x avg or max climax).
- **Band Projection**: Creates bands from vector-qualified CPR periods. Extends them rightward until touched/revisited (configurable: invalidate on wick/close, delete or freeze/gray out).
- **Customization**:
- Timeframe: Set CPR anchor (e.g., 'W' for weekly, 'M' for monthly).
- Display: Toggle CPR types, pivot guides.
- Volume Thresholds: Adjust lookback and ratios.
- De-clutter: Limit max bands, pin to period start, always extend.
- **Alerts & Signals**: Built-in alerts for developing pivot crossing previous pivot (bullish/bearish).
## How to Use
1. Add to chart and set anchor timeframe (e.g., 'M' for monthly vCPR on BTC, as shown in example charts).
2. Watch bands as S/R: Virgin (untested) bands often provide strong bounces; mitigated ones fade.
3. Combine with volume/price action: Bullish bands suggest upside bias, especially if price holds above.
4. Example: On BTC weekly, vector bands from high-volume weeks highlight multi-month zones—breaks signal shifts.
SWUltimate Sniper: SMT + AO + Money Flow
Overview This indicator is a comprehensive trading system designed to identify high-probability reversal points by combining three powerful concepts: Smart Money Techniques (SMT), Awesome Oscillator (AO) Momentum Divergences, and Macro Money Flow Analysis. It aims to filter out false signals by requiring confirmation from multiple technical factors before generating a signal.
Key Features & Logic
1. SMT Divergence (Smart Money Tool) The core of this indicator compares the current asset's price structure (Highs and Lows) against a benchmark symbol (Default: BTCUSDT).
Bullish SMT: When Bitcoin makes a Lower Low (LL), but the Altcoin makes a Higher Low (HL). This suggests underlying strength and accumulation in the Altcoin despite BTC's weakness.
Bearish SMT: When Bitcoin makes a Higher High (HH), but the Altcoin makes a Lower High (LH). This suggests weakness and distribution in the Altcoin despite BTC's strength.
2. Awesome Oscillator (AO) Confirmation To prevent premature entries based solely on price action, the indicator checks for momentum divergence on the Awesome Oscillator.
If the "AO Filter" option is enabled in settings, a signal (triangle) will only appear if both SMT Divergence and AO Divergence occur simultaneously (or within the same pivot window). This significantly increases the reliability of the setup.
3. Money Flow Dashboard A dashboard in the top-right corner provides real-time macro context to ensure you are trading with the trend.
USDT.D (Tether Dominance): Monitors whether capital is entering (Bullish) or leaving (Bearish) the crypto market.
BTC.D (Bitcoin Dominance): Monitors whether capital is flowing into Bitcoin or rotating into Altcoins (Altcoin Season).
How to Use
Buy Signal (Green Triangle): Look for a Green Triangle below the bar. Ideally, confirm this with the Dashboard showing "Money Flow: Entering" (Green) and "Trend: Flowing to Alts" (Green).
Sell Signal (Red Triangle): Look for a Red Triangle above the bar.
Dashboard: Use the dashboard as a trend filter. Do not long an Altcoin if USDT.D is spiking (Market Bearish).
Settings
Comparison Symbol: Select the benchmark asset (Default: BTCUSDT).
Pivot Period: Adjust the sensitivity of the divergence detection.
Use AO Filter: Toggle ON/OFF to require Awesome Oscillator confirmation for signals.
Dashboard: Toggle the visibility of the Money Flow panel.
High Quality Setup Detector (Ultimate Edition)High Quality Setup Detector (Ultimate Edition)
A complete, rules-based detector for identifying elite high-probability trading setups based on volatility contraction, trend alignment, volume behavior, RS strength, and classic breakout conditions.
This script consolidates multiple proven technical concepts into one unified scoring system — giving traders a fast, objective way to evaluate the overall quality of any chart.
🔍 What This Tool Does
The indicator evaluates 16–18 technical conditions (depending on whether RS is enabled) and assigns each chart a Total Quality Score.
You instantly see:
✔ ADR volatility quality
✔ Big move + constructive pullback
✔ Higher lows (constructive structure)
✔ Trend alignment (20/50/150/200)
✔ Dollar volume strength
✔ Volatility contraction (ATR ratio)
✔ Volume dry-up before breakout
✔ RSI health
✔ Pocket pivot
✔ Extension from the 50-day
✔ Near pivot high
✔ Optional: Sector RS + Ticker RS
The result appears in a clean, color-coded table displayed on-chart.
🎯 Scoring System
Every condition is worth 1 point.
Based on your total score:
🔥 Best Setup — high probability
🟡 Good Setup — decent but not top-tier
🔴 Weak — avoid
This helps keep you disciplined and objective, even during choppy markets.
📊 RS Rating System (Optional)
Enable RS to compute:
Sector RS strength using mapped sector ETFs
Ticker RS strength using a percentile-based multi-quarter performance model
Both follow a full 1–99 rating scale.
🧩 Customizable Display
Adjustable text size (Tiny → Huge)
Clean 3-column diagnostics table
Organized into logical categories (Trend, Volume, Volatility, RS, etc.)
💡 Ideal For
Growth traders
Breakout traders
VCP / volatility contraction pattern traders
Swing traders who want rule-based confirmation
Anyone who wants structured, systematic chart evaluation
SVE Daily ATR + SDTR Context BandsSVE Daily ATR + SDTR Context Bands is a free companion overlay from The Volatility Engine™ ecosystem.
It plots daily ATR-based expansion levels and a Standardized Deviation Threshold Range (SDTR) to give traders a clean, quantitative view of where intraday price sits relative to typical daily movement and volatility extremes.
This module is designed as an SVE-compatible context layer—using discrete, RTH-aligned daily zones, expected-move bands, and a standardized volatility shell—so traders can build situational awareness even without the full SPX Volatility Engine™ (SVE).
It does not generate trade signals.
Its sole purpose is to provide a clear volatility framework you can combine with your own structure, Fibonacci, or signal logic (including SVE, if you use it).
🔍 What It Shows
* Daily ATR Bands (expHigh / expLow)
- Expected high/low based on smoothed daily ATR
- Updates at the RTH open
* Daily SDTR Bands (expHighSDTR / expLowSDTR)
- Standard deviation threshold range for volatility extremes
- Helps identify overextended conditions
Discrete RTH-aligned Zones
- Bands reset cleanly at each RTH session
No continuous carry-over from prior days
Daily ATR & SDTR stats label
Quick-reference box showing current ATR and SDTR values
🎯 Purpose
This tool helps traders:
- Gauge intraday context relative to expected daily movement
- Assess volatility state (quiet, normal, expanded, extreme)
- Identify likely exhaustion or expansion zones
- Frame intraday price action inside daily volatility rails
- Support decision-making with objective context rather than emotion
It complements any strategy and works on any intraday timeframe.
⚙️ Inputs
- ATR Lookback (default: 20 days)
- RTH Session Times
- SDTR Lookback
- Show/Hide Daily Stats Label
🧩 Part of the SVE Ecosystem
This module is part of the broader SPX Volatility Engine™ framework.
The full SVE system includes:
- Composite signal scoring
- Volatility compression logic
- Histogram slope and momentum analysis
- Internals (VIX / VVIX / TICK)
- Structural zone awareness
- Real-time bias selection
- High-clarity decision support
⚠️ Disclaimer
This tool is provided for educational and informational purposes only.
No performance claims are made or implied.
Not investment advice.
Chronos Reversal Labs - SPChronos Reversal Labs - Shadow Portfolio
Chronos Reversal Labs - Shadow Portfolio: combines reinforcement learning optimization with adaptive confluence detection through a shadow portfolio system. Unlike traditional indicator mashups that force traders to manually interpret conflicting signals, this system deploys 4 multi-armed bandit algorithms to automatically discover which of 5 specialized confluence strategies performs best in current market conditions, then validates those discoveries through parallel shadow portfolios that track virtual P&L for each strategy independently.
Core Innovation: Rather than relying on static indicator combinations, this system implements Thompson Sampling (Bayesian multi-armed bandits), contextual bandits (regime-specific learning), advanced chop zone detection (geometric pattern analysis), and historical pre-training to build a self-improving confluence detection engine. The shadow portfolio system runs 5 parallel virtual trading accounts—one per strategy—allowing the system to learn which confluence approach works best through actual position tracking with realistic exits.
Target Users: Intermediate to advanced traders seeking systematic reversal signals with mathematical rigor. Suitable for swing trading and day trading across stocks, forex, crypto, and futures on liquid instruments. Requires understanding of basic technical analysis and willingness to allow 50-100 bars for initial learning.
Why These Components Are Combined
The Fundamental Problem
No single confluence method works consistently across all market regimes. Kernel-based methods (entropy, DFA) excel during predictable phases but fail in chaos. Structure-based methods (harmonics, BOS) work during clear swings but fail in ranging conditions. Technical methods (RSI, MACD, divergence) provide reliable signals in trends but generate false signals during consolidation.
Traditional solutions force traders to either manually switch between methods (slow, error-prone) or interpret all signals simultaneously (cognitive overload). Both fail because they assume the trader knows which regime the market is in and which method works best.
The Solution: Meta-Learning Through Reinforcement Learning
This system solves the problem through automated strategy selection : Deploy 5 specialized confluence strategies designed for different market conditions, track their real-world performance through shadow portfolios, then use multi-armed bandit algorithms to automatically select the optimal strategy for the next trade.
Why Shadow Portfolios? Traditional bandit implementations use abstract "rewards." Shadow portfolios provide realistic performance measurement : Each strategy gets a virtual trading account with actual position tracking, stop-loss management, take-profit targets, and maximum holding periods. This creates risk-adjusted learning where strategies are evaluated on P&L, win rate, and drawdown—not arbitrary scores.
The Five Confluence Strategies
The system deploys 5 orthogonal strategies with different weighting schemes optimized for specific market conditions:
Strategy 1: Kernel-Dominant (Entropy/DFA focused, optimal in predictable markets)
Shannon Entropy weight × 2.5, DFA weight × 2.5
Detects low-entropy predictable patterns and DFA persistence/mean-reversion signals
Failure mode: High-entropy chaos (hedged by Technical-Dominant)
Strategy 2: Structure-Dominant (Harmonic/BOS focused, optimal in clear swing structures)
Harmonics weight × 2.5, Liquidity (S/R) weight × 2.0
Uses swing detection, break-of-structure, and support/resistance clustering
Failure mode: Range-bound markets (hedged by Balanced)
Strategy 3: Technical-Dominant (RSI/MACD/Divergence focused, optimal in established trends)
RSI weight × 2.0, MACD weight × 2.0, Trend weight × 2.0
Zero-lag RSI suite with 4 calculation methods, MACD analysis, divergence detection
Failure mode: Choppy/ranging markets (hedged by chop filter)
Strategy 4: Balanced (Equal weighting, optimal in unknown/transitional regimes)
All components weighted 1.2×
Baseline performance during regime uncertainty
Strategy 5: Regime-Adaptive (Dynamic weighting by detected market state)
Chop zones: Kernel × 2.0, Technical × 0.3
Bull/Bear trends: Trend × 1.5, DFA × 2.0
Ranging: Mean reversion × 1.5
Adapts explicitly to detected regime
Multi-Armed Bandit System: 4 Core Algorithms
What Is a Multi-Armed Bandit Problem?
Formal Definition: K arms (strategies), each with unknown reward distribution. Goal: Maximize cumulative reward while learning which arms are best. Challenge: Balance exploration (trying uncertain strategies) vs. exploitation (using known-best strategy).
Trading Application: Each confluence strategy is an "arm." After each trade, receive reward (P&L percentage). Bandits decide which strategy to trust for next signal.
The 4 Implemented Algorithms
1. Thompson Sampling (DEFAULT)
Category: Bayesian approach with probability distributions
How It Works: Model each strategy as Beta(α, β) where α = wins, β = losses. Sample from distributions, select highest sample.
Properties: Optimal regret O(K log T), automatic exploration-exploitation balance
When To Use: Best all-around choice, adaptive markets, long-term optimization
2. UCB1 (Upper Confidence Bound)
Category: Frequentist approach with confidence intervals
Formula: UCB_i = reward_mean_i + sqrt(2 × ln(total_pulls) / pulls_i)
Properties: Deterministic, interpretable, same optimal regret as Thompson
When To Use: Prefer deterministic behavior, stable markets
3. Epsilon-Greedy
Category: Simple baseline with random exploration
How It Works: With probability ε (0.15): random strategy. Else: best average reward.
Properties: Simple, fast initial learning
When To Use: Baseline comparison, short-term testing
4. Contextual Bandit
Category: Context-aware Thompson Sampling
Enhancement: Maintains separate alpha/beta for Bull/Bear/Ranging regimes
Learning: "Strategy 2: 60% win rate in Bull, 40% in Bear"
When To Use: After 100+ bars, clear regime shifts
Shadow Portfolio System
Why Shadow Portfolios?
Traditional bandits use abstract scores. Shadow portfolios provide realistic performance measurement through actual position simulation.
How It Works
Position Opening:
When strategy generates validated signal:
Opens virtual position for selected strategy
Records: entry price, direction, entry bar, RSI method
Optional: Open positions for ALL strategies simultaneously (faster learning)
Position Management (Every Bar):
Current P&L: pnl_pct = (close - entry) / entry × direction × 100
Exit if: pnl_pct <= -2.0% (stop-loss) OR pnl_pct >= +4.0% (take-profit) OR held ≥ 100 bars (time)
Position Closing:
Calculate final P&L percentage
Update strategy equity, track win rate, gross profit/loss, max drawdown
Calculate risk-adjusted reward:
text
base_reward = pnl_pct / 10.0
win_rate_bonus = (win_rate - 0.5) × 0.3
drawdown_penalty = -max_drawdown × 0.05
total_reward = sigmoid(base + bonus + penalty)
Update bandit algorithms with reward
Update RSI method bandit
Statistics Tracked Per Strategy:
Equity curve (starts at $10,000)
Win rate percentage
Max drawdown
Gross profit/loss
Current open position
This creates closed-loop learning : Strategies compete → Best performers selected → Bandits learn quality → System adapts automatically.
Historical Pre-Training System
The Problem with Live-Only Learning
Standard bandits start with zero knowledge and need 50-100 signals to stabilize. For weekly timeframe traders, this could take years.
The Solution: Historical Training
During Chart Load: System processes last 300-1000 bars (configurable) in "training mode":
Detect signals using Balanced strategy (consistent baseline)
For each signal, open virtual training positions for all 5 strategies
Track positions through historical bars using same exit logic (SL/TP/time)
Update bandit algorithms with historical outcomes
CRITICAL TRANSPARENCY: Signal detection does NOT look ahead—signals use only data available at entry bar. Exit tracking DOES look ahead (uses future bars for SL/TP), which is acceptable because:
✅ Entry decisions remain valid (no forward bias)
✅ Learning phase only (not affecting shown signals)
✅ Real-time mirrors training (identical exit logic)
Training Completion: Once chart reaches current bar, system transitions to live mode. Dashboard displays training vs. live statistics for comparison.
Benefit: System begins live trading with 100-500 historical trades worth of learning, enabling immediate intelligent strategy selection.
Advanced Chop Zone Detection Engine
The Innovation: Multi-Layer Geometric Chop Analysis
Traditional chop filters use simple volatility metrics (ATR thresholds) that can't distinguish between trending volatility (good for signals) and choppy volatility (bad for signals). This system implements three-layer geometric pattern analysis to precisely identify consolidation zones where reversal signals fail.
Layer 1: Micro-Structure Chop Detection
Method: Analyzes micro pivot points (5-bar left, 2-bar right) to detect geometric compression patterns.
Slope Analysis:
Calculates slope of pivot high trendline and pivot low trendline
Compression ratio: compression = slope_high - slope_low
Pattern Classification:
Converging slopes (compression < -0.05) → "Rising Wedge" or "Falling Wedge"
Flat slopes (|slope| < 0.05) → "Rectangle"
Parallel slopes (|compression| < 0.1) → "Channel"
Expanding slopes → "Expanding Range"
Chop Scoring:
Rectangle pattern: +15 points (highest chop)
Low average slope (<0.05): +15 points
Wedge patterns: +12 points
Flat structures: +10 points
Why This Works: Geometric patterns reveal market indecision. Rectangles and wedges create false breakouts that trap technical traders. By quantifying geometric compression, system detects these zones before signals fire.
Layer 2: Macro-Structure Chop Detection
Method: Tracks major swing highs/lows using ATR-based deviation threshold (default 2.0× ATR), projects channel boundaries forward.
Channel Position Calculation:
proj_high = last_swing_high + (swing_high_slope × bars_since)
proj_low = last_swing_low + (swing_low_slope × bars_since)
channel_width = proj_high - proj_low
position = (close - proj_low) / channel_width
Dead Zone Detection:
Middle 50% of channel (position 0.25-0.75) = low-conviction zone
Score increases as price approaches center (0.5)
Chop Scoring:
Price in dead zone: +15 points (scaled by centrality)
Narrow channel width (<3× ATR): +15 points
Channel width 3-5× ATR: +10 points
Why This Works: Price in middle of range has equal probability of moving either direction. Institutional traders avoid mid-range entries. By detecting "dead zones," system avoids low-probability setups.
Layer 3: Volume Chop Scoring
Method: Low volume indicates weak conviction—precursor to ranging behavior.
Scoring:
Volume < 0.5× average: +20 points
Volume 0.5-0.8× average: +15 points
Volume 0.8-1.0× average: +10 points
Overall Chop Intensity & Signal Filtering
Total Chop Calculation:
chop_intensity = micro_score + macro_score + (volume_score × volume_weight)
is_chop = chop_intensity >= 40
Signal Filtering (Three-Tier Approach):
1. Signal Blocking (Intensity > 70):
Extreme chop detected (e.g., tight rectangle + dead zone + low volume)
ALL signals blocked regardless of confluence
Chart displays red/orange background shading
2. Threshold Adjustment (Intensity 40-70):
Moderate chop detected
Confluence threshold increased: threshold += (chop_intensity / 50)
Only highest-quality signals pass
3. Strategy Weight Adjustment:
During Chop: Kernel-Dominant weight × 2.0 (entropy detects breakout precursors), Technical-Dominant weight × 0.3 (reduces false signals)
After Chop Exit: Weights revert to normal
Why This Three-Tier Approach Is Original: Most chop filters simply block all signals (loses breakout entries). This system adapts strategy selection during chop—allowing Kernel-Dominant (which excels at detecting low-entropy breakout precursors) to operate while suppressing Technical-Dominant (which generates false signals in consolidation). Result: System remains functional across full market regime spectrum.
Zero-Lag Filter Suite with Dynamic Volatility Scaling
Zero-Lag ADX (Trend Regime Detection)
Implementation: Applies ZLEMA to ADX components:
lag = (length - 1) / 2
zl_source = source + (source - source ) × strength
Dynamic Volatility Scaling (DVS):
Calculates volatility ratio: current_ATR / ATR_100period_avg
Adjusts ADX length dynamically: High vol → shorter length (faster), Low vol → longer length (smoother)
Regime Classification:
ADX > 25 with +DI > -DI = Bull Trend
ADX > 25 with -DI > +DI = Bear Trend
ADX < 25 = Ranging
Zero-Lag RSI Suite (4 Methods with Bandit Selection)
Method 1: Standard RSI - Traditional Wilder's RSI
Method 2: Ehlers Zero-Lag RSI
ema1 = ema(close, length)
ema2 = ema(ema1, length)
zl_close = close + (ema1 - ema2)
Method 3: ZLEMA RSI
lag = (length - 1) / 2
zl_close = close + (close - close )
Method 4: Kalman-Filtered RSI - Adaptive smoothing with process/measurement noise
RSI Method Bandit: Separate 4-arm bandit learns which calculation method produces best results. Updates independently after each trade.
Kalman Adaptive Filters
Fast Kalman: Low process noise → Responsive to genuine moves
Slow Kalman: Higher measurement noise → Filters noise
Application: Crossover logic for trend detection, acceleration analysis for momentum inflection
What Makes This Original
Innovation 1: Shadow Portfolio Validation
First TradingView script to implement parallel virtual portfolios for multi-armed bandit reward calculation. Instead of abstract scoring metrics, each strategy's performance is measured through realistic position tracking with stop-loss, take-profit, time-based exits, and risk-adjusted reward functions (P&L + win rate + drawdown). This provides orders-of-magnitude better reward signal quality for bandit learning than traditional score-based approaches.
Innovation 2: Three-Layer Geometric Chop Detection
Novel multi-scale geometric pattern analysis combining: (1) Micro-structure slope analysis with pattern classification (wedges, rectangles, channels), (2) Macro-structure channel projection with dead zone detection, (3) Volume confirmation. Unlike simple volatility filters, this system adapts strategy weights during chop —boosting Kernel-Dominant (breakout detection) while suppressing Technical-Dominant (false signal reduction)—allowing operation across full market regime spectrum without blind signal blocking.
Innovation 3: Historical Pre-Training System
Implements two-phase learning : Training phase (processes 300-1000 historical bars on chart load with proper state isolation) followed by live phase (real-time learning). Training positions tracked separately from live positions. System begins live trading with 100-500 trades worth of learned experience. Dashboard displays training vs. live performance for transparency.
Innovation 4: Contextual Multi-Armed Bandits with Regime-Specific Learning
Beyond standard bandits (global strategy quality), implements regime-specific alpha/beta parameters for Bull/Bear/Ranging contexts. System learns: "Strategy 2: 60% win rate in ranging markets, 45% in bull trends." Uses current regime's learned parameters for strategy selection, enabling regime-aware optimization.
Innovation 5: RSI Method Meta-Learning
Deploys 4 different RSI calculation methods (Standard, Ehlers ZL, ZLEMA, Kalman) with separate 4-arm bandit that learns which calculation works best. Updates RSI method bandit independently based on trade outcomes, allowing automatic adaptation to instrument characteristics.
Innovation 6: Dynamic Volatility Scaling (DVS)
Adjusts ALL lookback periods based on current ATR ratio vs. 100-period average. High volatility → shorter lengths (faster response). Low volatility → longer lengths (smoother signals). Applied system-wide to entropy, DFA, RSI, ADX, and Kalman filters for adaptive responsiveness.
How to Use: Practical Guide
Initial Setup (5 Minutes)
Theory Mode: Start with "BALANCED" (APEX for aggressive, CONSERVATIVE for defensive)
Enable RL: Toggle "Enable RL Auto-Optimization" to TRUE, select "Thompson Sampling"
Enable Confluence Modules: Divergence, Volume Analysis, Liquidity Mapping, RSI OB/OS, Trend Analysis, MACD (all recommended)
Enable Chop Filter: Toggle "Enable Chop Filter" to TRUE, sensitivity 1.0 (default)
Historical Training: Enable "Enable Historical Pre-Training", set 300-500 bars
Dashboard: Enable "Show Dashboard", position Top Right, size Large
Learning Phase (First 50-100 Bars)
Monitor Thompson Sampling Section:
Alpha/beta values should diverge from initial 1.0 after 20-30 trades
Expected win% should stabilize around 55-60% (excellent), >50% (acceptable)
"Pulls" column should show balanced exploration (not 100% one strategy)
Monitor Shadow Portfolios:
Equity curves should diverge (different strategies performing differently)
Win rate > 55% is strong
Max drawdown < 15% is healthy
Monitor Training vs Live (if enabled):
Delta difference < 10% indicates good generalization
Large negative delta suggests overfitting
Large positive delta suggests system adapting well
Optimization:
Too few signals: Lower "Base Confluence Threshold" to 2.5-3.0
Too many signals: Raise threshold to 4.0-4.5
One strategy dominates (>80%): Increase "Exploration Rate" to 0.20-0.25
Excessive chop blocking: Lower "Chop Sensitivity" to 0.7-0.8
Signal Interpretation
Dashboard Indicators:
"WAITING FOR SIGNAL": No confluence
"LONG ACTIVE ": Validated long entry
"SHORT ACTIVE ": Validated short entry
Chart Visuals:
Triangle markers: Entry signal (green = long, red = short)
Orange/red background: Chop zone
Lines: Support/resistance if enabled
Position Management
Entry: Enter on triangle marker, confirm direction matches dashboard, check confidence >60%
Stop-Loss: Entry ± 1.5× ATR or at structural swing point
Take-Profit:
TP1: Entry + 1.5R (take 50%, move SL to breakeven)
TP2: Entry + 3.0R (runner) or trail
Position Sizing:
Risk per trade = 1-2% of capital
Position size = (Account × Risk%) / (Entry - SL)
Recommended Settings by Instrument
Stocks (Large Cap): Balanced mode, Threshold 3.5, Thompson Sampling, Chop 1.0, 15min-1H, Training 300-500 bars
Forex Majors: Conservative-Balanced mode, Threshold 3.5-4.0, Thompson Sampling, Chop 0.8-1.0, 5min-30min, Training 400-600 bars
Cryptocurrency: Balanced-APEX mode, Threshold 3.0-3.5, Thompson Sampling, Chop 1.2-1.5, 15min-4H, Training 300-500 bars
Futures: Balanced mode, Threshold 3.5, UCB1 or Thompson, Chop 1.0, 5min-30min, Training 400-600 bars
Technical Approximations & Limitations
1. Thompson Sampling: Pseudo-Random Beta Distribution
Standard: Cryptographic RNG with true beta sampling
This Implementation: Box-Muller transform using market data as entropy source
Impact: Not cryptographically random but maintains exploration-exploitation balance. Sufficient for strategy selection.
2. Shadow Portfolio: Simplified Execution Model
Standard: Order book simulation with slippage, partial fills
This Implementation: Perfect fills at close price, no fees modeled
Impact: Real-world performance ~0.1-0.3% worse per trade due to execution costs.
3. Historical Training: Forward-Looking for Exits Only
Entry signals: Use only past data (causal, no bias)
Exit tracking: Uses future bars to determine SL/TP (forward-looking)
Impact: Acceptable because: (1) Entry logic remains valid, (2) Live trading mirrors training, (3) Improves learning quality. Training win rates reflect 8-bar evaluation window—live performance may differ if positions held longer.
4. Shannon Entropy & DFA: Simplified Calculations
Impact: 10-15% precision loss vs. academic implementations. Still captures predictability and persistence signals effectively.
General Limitations
No Predictive Guarantee: Past performance ≠ future results
Learning Period Required: Minimum 50-100 bars for stable statistics
Overfitting Risk: May not generalize to unprecedented conditions
Single-Instrument: No multi-asset correlation or sector context
Execution Assumptions: Degrades in illiquid markets (<100k volume), major news events, flash crashes
Risk Warnings & Disclaimers
No Guarantee of Profit: All trading involves substantial risk of loss. This indicator is a tool, not a guaranteed profit system.
System Failures: Software bugs possible despite testing. Use appropriate position sizing.
Market Regime Changes: Performance may degrade during extreme volatility (VIX >40), low liquidity periods, or fundamental regime shifts.
Broker-Specific Issues: Real-world execution includes slippage (0.1-0.5%), commissions, overnight financing costs, partial fills.
Forward-Looking Bias in Training: Historical training uses 8-bar forward window for exit evaluation. Dashboard "Training Win%" reflects this method. Real-time performance may differ.
Appropriate Use
This Indicator IS:
✅ Entry trigger system with confluence validation
✅ Risk management framework (automated SL/TP)
✅ Adaptive strategy selection engine
✅ Learning system that improves over time
This Indicator IS NOT:
❌ Complete trading strategy (requires position sizing, portfolio management)
❌ Replacement for due diligence
❌ Guaranteed profit generator
❌ Suitable for complete beginners
Recommended Complementary Analysis: Market context, volume profile, fundamental catalysts, higher timeframe alignment, support/resistance from other sources.
Conclusion
Chronos Reversal Labs V2.0 - Elite Edition synthesizes research from multi-armed bandit theory (Thompson Sampling, UCB, contextual bandits), market microstructure (geometric chop detection, zero-lag filters), and machine learning (shadow portfolio validation, historical pre-training, RSI method meta-learning).
Unlike typical indicator mashups, this system implements mathematically rigorous bandit algorithms with realistic performance validation, three-layer chop detection with adaptive strategy weighting, regime-specific learning, and full transparency on approximations and limitations.
The system is designed for intermediate to advanced traders who understand that no indicator is perfect, but through proper machine learning and realistic validation, we can build systems that improve over time and adapt to changing markets without manual intervention.
Use responsibly. Understand the limitations. Risk disclosure applies. Past performance does not guarantee future results.
Taking you to school. — Dskyz, Trade with insight. Trade with anticipation.
Trend Drawing + OB Signal (MTF) [ASCII]Script Description: Advanced Multi-Timeframe Trend Lines & OB/OS Signal
Overview
This advanced Pine Script indicator is designed to identify and project key support and resistance levels using pivot-based trend lines across multiple timeframes. It combines this powerful trend analysis with a sophisticated Overbought/Oversold (OB/OS) detection system using CCI and Bollinger Bands, providing clear trading signals with integrated alert functionality.
Key Features
1. Multi-Timeframe Trend Lines
Automated Pivot Detection: Automatically identifies significant swing highs and lows based on user-defined left/right bar parameters
Smart Timeframe Adaptation: Uses different sensitivity settings for each timeframe (15min to 1Week) for optimal pivot detection
Dynamic Line Projection: Draws trend lines connecting the two most recent pivots and extends them forward
Flexible Source Selection: Choose between Close price, Wick extremes, or Auto mode (Auto uses Wick for higher timeframes, Close for lower timeframes)
2. Advanced OB/OS Detection System
Dual Indicator Confirmation: Combines CCI momentum and Bollinger Band position for reliable signals
Customizable Parameters: Adjustable CCI length, OB/OS thresholds, and Bollinger Band settings
Bar Confirmation Option: Optional wait-for-close confirmation to avoid false signals
Visual Markers: Clear triangle markers above/below bars for quick signal identification
3. Timeframe Support
Available Timeframes: 15min, 30min, 1h, 2h, 4h, 8h, 12h, 1D, 1W
Independent Settings: Custom left/right bar parameters for each timeframe
Automatic Adaptation: Script automatically applies the correct settings for your current chart timeframe
Input Parameters
Trend Lines Configuration
Left/Right Bars: Defines the pivot detection sensitivity for each timeframe
Line Length: Controls how far trend lines extend into the future
Line Source: Choose between Close, Wick, or Auto selection
Colors: Customizable support/resistance line colors
OB/OS Signal Settings
CCI Parameters: Length and OB/OS thresholds
Bollinger Bands: Length and multiplier for band width
Plot Options: Toggle OB markers and bar confirmation
Signal Logic
OB UP Signal (Short Bias)
Conditions: CCI ≥ OB threshold AND Close ≥ Upper Bollinger Band
Marker: Red triangle down above bar
Alert Direction: SHORT
OB DOWN Signal (Long Bias)
Conditions: CCI ≤ OS threshold AND Close ≤ Lower Bollinger Band
Marker: Green triangle up below bar
Alert Direction: LONG
Alert System
The script includes pre-formatted JSON alerts for external integration:
Structured data format with symbol, timeframe, direction, and signal type
Secret key for authentication (replace "MY_SECRET" with your actual key)
Compatible with webhook services and custom alert handlers
Usage Tips
Timeframe Selection: Use higher timeframes (4H-Daily) for major levels, lower timeframes for precise entries
Parameter Tuning: Adjust left/right bars based on market volatility - increase for smoother trends, decrease for more reactive lines
Confirmation: Combine trend line breaks with OB/OS signals for high-probability setups
Risk Management: Always use proper stop losses - trend lines indicate potential areas, not guaranteed reversals
Technical Notes
Built with Pine Script v6
Maximum 200 lines/labels to maintain performance
Works on all asset types (forex, stocks, crypto)
Optimized for real-time and historical analysis
This script provides institutional-grade trend analysis with retail-friendly signals, making complex multi-timeframe analysis accessible to traders of all experience levels.
This description covers all the technical aspects while being accessible for users.






















