Multi Pivot Trend [BigBeluga]🔵 OVERVIEW   
The  Multi Pivot Trend   is an advanced market-structure-driven trend engine that evaluates trend strength by scanning multiple pivot breakouts simultaneously.  
Instead of relying on a single swing length, it tracks breakouts across ten increasing pivot lengths — then averages their behavior to produce a smooth, reliable trend reading.  
Mitigation logic (close, wick, or HL2 touches) controls how breakouts are confirmed, giving traders institutional-style flexibility similar to BOS/CHoCH validation rules.
This indicator not only colors candles based on trend strength, but also extends trend strength and volatility-scaled projection candles to show where trend pressure may expand next.  
Pivot breakout lines and labels mark key changes, making the trend transitions extremely clear.
 🔵 CONCEPTS   
 
  Market trend strength is reflected by multiple pivot breakouts, not just one.
  
  The indicator analyzes ten pivot structures from smaller to larger swings.
  
  Each bullish or bearish pivot breakout contributes to trend score.
  
  Mitigation options (close / wick / HL2) imitate smart-money breakout confirmation logic.
  
  Trend score is averaged and translated into colors and extension bars.
  
  Neutral regime ≈ weak trend or transition zone (trend compression).
  
 
 🔵 FEATURES   
 
   Multi-Pivot Engine  — tracks 10 pivot-based trend signals simultaneously.
   Mitigation Modes :  
   • Close — breakout requires candle close beyond pivot  
   • Wicks — breakout requires wick violation  
   • HL2 — breakout confirmed when average (H+L)/2 crosses level  
   Dynamic Color System :  
   • Blue → confirmed bullish rotation  
   • Red → confirmed bearish rotation  
   • Orange → neutral / transition state  
   Breakout Visualization  — draws pivot breakout lines in real-time.
   Trend Labels  — prints trend %.
  
   Trend Volatility-Scaled Extension Candles  — ATR/trend strength based candle projections show momentum continuation strength.
  
   Gradient Pivot Encoding  — higher pivot lengths = deeper structure considered.
  
 
 🔵 HOW TO USE   
 
  Use strong blue/red periods to follow dominant structural trend.
  
  Watch for color transition into orange — possible trend change or consolidation.
  
  Pivot breakout lines help validate structure shifts without clutter.
  Wick mitigation catches aggressive liquidity-sweep based breaks.
  Close/HL2 mitigation catches cleaner market structure rotations.
  Extension bars visualize trend pressure — large extensions = strong push.
  Best paired with volume or volatility confirmation tools.
 
 🔵 CONCLUSION   
The  Multi Pivot Trend   is a structural trend recognition system that blends multiple pivot breakouts into one clean trend score — with institutional-style mitigation logic and volatility-projected trend extensions.  
It gives traders a powerful, visually intuitive way to track momentum, spot trend rotations early, and understand true structural flow beyond simple MA-based approaches.  
Use it to stay aligned with the dominant swing direction while avoiding noise and false flips.  
Pivot points and levels
TRI - Support/Resistance ZonesTRI - SUPPORT/RESISTANCE ZONES v1.0 
 DESCRIPTION: 
Professional support and resistance level indicator based on body pivot analysis.
Unlike traditional indicators that use wicks (high/low), this tool identifies key levels 
using candle bodies (open/close), providing more reliable and significant price zones.
 KEY FEATURES: 
 
 Body-based pivot detection for more meaningful levels
 Automatic level validation (excludes breached levels)
 Smart level filtering (avoids cluttered charts)
 Configurable number of support/resistance levels (1-5 each)
 Visual customization (colors, transparency, line extension)
 Real-time breakout alerts for resistance and support levels
 Clean and intuitive interface with price labels
 
 HOW IT WORKS: 
The indicator scans historical price action to identify pivot points based on candle bodies.
Only valid levels (not breached since formation) are displayed. Levels are automatically 
filtered by proximity to avoid visual clutter while maintaining the most relevant zones.
Breakout alerts trigger when price closes above resistance or below support.
 BEST USE: 
Ideal for swing trading, day trading, and identifying key decision points.
Works on all timeframes and asset classes.
FluidTrades - SMC Lite - AlertsThe FluidTrades - SMC Lite indicator has been fixed, now you can send notifications when price levels are indicated.
Order Blocks Zones with Signals█ OVERVIEW
“Order Blocks Zones with Signals” is a technical analysis tool that automatically identifies Order Blocks (OB) and optionally Fair Value Gaps (FVG) on the chart.
The script visualizes these zones as colored rectangles, offering full customization of style, transparency, and signal display.
It also generates entry and exit signals (Break & Exit) that can serve as confirmations in strategies based on price action and market structure.
Thanks to flexible candle size filters and rich visual options, the indicator maintains chart clarity and readability.
█ CONCEPTS
Order Blocks (OB) are key zones on the chart where significant price movements previously occurred — areas where large market participants (institutions, so-called smart money) initiated or closed positions.
An OB is the last candle that followed the prior trend before the market reversed (e.g., for a Bullish OB: the last bearish candle before a pivot low and a strong upward impulse).
The script detects these levels using local price pivots, analyzing candle direction to filter out less significant movements.
FVG (Fair Value Gaps) represent areas of imbalance between buyers and sellers — price gaps formed by a sharp impulse where full trading did not occur due to one-sided order dominance (e.g., excess buy or sell orders).
Why combine OB and FVG in one indicator?
Combining OB and FVG analysis is essential because these phenomena often occur sequentially in the institutional market cycle:
1. Order Block — institutions enter the market in the OB zone, absorbing orders and building positions.
2. Strong impulse — after smart money entry, a rapid price move creates an FVG (imbalance gap).
3. Retest — price naturally returns to these zones (OB or FVG), drawn by unfilled orders and the search for equilibrium.
Such areas strongly attract price, as they represent not only historical institutional levels but also open “holes” in the order book. Retests of OB and FVG are ideal entry opportunities with high reaction probability (rebound or breakout). The indicator combines these two interconnected elements, enabling comprehensive market structure analysis in a single tool.
Order Blocks are labeled as:
Bullish OB – demand zones, often accumulation areas before an upmove.
Bearish OB – supply zones, signaling potential impulse end or correction start.
█ FEATURES
Order Block Detection (OB Detection):
- Automatic identification of demand and supply zones based on pivots.
- OB is the last candle aligned with the prior trend, just before the market reversal — precisely identified through candle sequence analysis around the pivot.
- OB zones appear with a delay equal to Pivot Length (default 10 bars).
- Break signals trigger when a candle’s body (close) fully pierces the zone, causing the zone to disappear immediately (e.g., close < low of Bullish OB → Break Down and zone deletion).
- Minimum size filtering via OB Size Multiplier.
- Option to create OB without wicks (Include Wicks in OB): when disabled, OB zones are based solely on candle bodies (open/close), ignoring wicks (high/low).
Fair Value Gap Detection (FVG Detection):
- Optional, with enable/disable capability.
- FVG are detected without delay — immediately upon gap occurrence.
- Size filtering via Candle Size Period and FVG Size Multiplier.
Customizable Styling:
- Separate colors and border styles (Solid / Dashed / Dotted) for each zone type.
- Adjustable transparency and border thickness.
- Unified color for box, border, and signal of the same type.
Breakout and Exit Signals:
- Break Up – triggered when a candle’s close breaks above a Bearish OB, causing the zone to disappear.
- Break Down – triggered when a candle’s close breaks below a Bullish OB, causing the zone to disappear.
- Exit Up / Exit Down – temporary exit from the zone without full breakout (price leaves the zone but doesn’t close beyond it). Signal type selection: Break, Exit, or Both.
- Alerts: built-in alerts for all signal types — triggered automatically on candle close confirming breakout or exit from OB.
█ HOW TO USE
Adding to chart: import the code into Pine Editor and run the script on TradingView.
Settings configuration:
- Pivot Length: controls swing detection sensitivity and OB display delay (default 10).
- Include Wicks in OB: enabled (default) – OB includes wicks; disabled – OB uses bodies only.
- Size Filter: adjust Candle Size Period and OB/FVG Size Multiplier to filter out small zones.
- Colors & Styles: set colors, styles, and transparency for each zone type.
- Signal Type: choose which signals to display (Break, Exit, or Both).
Signal interpretation:
- OB Break Up: price closes above Bearish OB → zone disappears → potential bullish continuation.
- OB Break Down: price closes below Bullish OB → zone disappears → potential bearish continuation.
- Exit Signals: price leaves the zone temporarily without breakout — often signals impending reversal or pullback.
Tips:
- Use OB signals alongside other indicators like RSI, MACD, SMI, or trend filters.
- Order Blocks from higher timeframes (e.g., 4H, 1D) carry greater significance and reaction strength.
- Remember: FVG are detected immediately, OB with delay — a complementary approach!
█ APPLICATIONS
- Smart Money Concepts (SMC): use OB zones as dynamic support and resistance levels. In an uptrend, look for buy opportunities in bullish OBs, which price often retests before further gains. Combining with RSI, MACD, or Fibonacci levels enhances zone significance, confirming institutional demand.
- Breakout Trading: trade based on OB breakout signals. A buy signal after breaking a bearish OB may indicate a strong upward impulse, especially if supported by rising MACD or RSI above 50. Similarly for sell signals after Break Down.
- Reversal Zones: Exit signals may indicate the end of a move or correction. Safest to use in alignment with higher-timeframe trend and confirmed by another indicator (e.g., RSI divergence, Fibonacci levels).
- Confluence Analysis: combine OB and FVG for deeper market structure and equilibrium insight. When an Order Block overlaps or borders an FVG, we get confluence of two institutional phenomena — OB (smart money entry) + FVG (imbalance) — making these areas particularly strong price magnets, increasing retest and reaction probability.
█ NOTES
- FVG can be fully disabled for a cleaner chart view.
- In consolidation periods, signals may appear more frequently — always confirm with additional trend filters.
- Works on all markets and timeframes (crypto, forex, indices, stocks).
MA Golden cross & Death crossthis indicator marks the golden cross and death cross on top of the 50 & 200 MA
to use this indicator you gotta have your MA50&200 (50, close, 200, close) indicator set up
@razsecretsss
AutoPivot Levels with Alerts [ChartWhizzperer] – Dynamic EditionAuto-Pivot Levels 4 methods with alerts   – Dynamic Edition 
Now with
- Live Mode
- 4 Pivot Methods
- 7 Session Types (5m, 15m, 30m, Hourly, Daily, Weekly, Monthly)
- PineConnector-Ready Alerts!
Free, Open Source, Pine Script v6-compliant.
NEW: Live Mode (Ultra-Dynamic, Repainting) – Switchable in UI!
Instantly switch between Classic (session-based, repaint-free) and Live (rolling window, real-time, repainting) using the simple checkbox in the settings!
Live Mode recalculates all pivots on every tick/bar, using the current high/low/close for the chosen session (5m, 15m, 30m, hourly, daily, weekly, monthly).
 Perfect for: 
- Scalping and high-frequency trading
- Real-time bot/automation setups (PineConnector-ready)
- Fast-moving or breakout markets
Classic Mode: For traditional, stable levels based on confirmed session data – ideal for backtesting and trading history.
 Four Calculation Methods (Choose What Fits YOU) 
1.  Classic 
   Standard pivot calculation.
   Based on previous session’s High, Low, Close.
   Simple, proven, and suitable for any asset.
2.  Fibonacci 
   Projects levels using Fibonacci ratios of the prior session’s range.
   Great for traders who want to align pivots with fib retracements and extensions.
3.  Camarilla 
   Uses unique multipliers for support/resistance, focusing on mean reversion and volatility.
   Popular among futures and forex day traders.
4.  Woodie 
   Puts extra weight on previous Close for more responsive pivots.
   Often used in trending or choppy conditions.
Switch methods anytime  in the UI  – the script recalculates instantly and keeps your chart clean!
 Level-Specific Alerts – PineConnector Ready! 
Dedicated alert for EVERY level and direction (Up/Down):
 Pivot (P), R1, R2, R3, S1, S2, S3 
 No configuration hassle: 
All alerts are pre-defined in the TradingView Alert Panel and work across all session types (5m → monthly).
 Machine-readable message format: 
PIVOT=R1 DIR=UP SYMBOL={{ticker}} PRICE={{close}}
Direct plug-and-play with PineConnector, webhooks, Discord, Telegram, bots, and other automation tools.
 Never miss a breakout, reversal, or key support/resistance touch! 
 Powerful Customization & Performance 
- Session selection: 5m, 15m, 30m, Hourly, Daily, Weekly, Monthly (choose what suits your trading style).
- Show/hide any level (Pivot, R1–R3, S1–S3) for minimal chart clutter.
- Color selection for each level to match your theme or highlight key pivots.
- Auto-cleanup: Old lines and labels are cleared on every recalculation or session change for maximum performance and visual clarity.
- Zero runtime errors: Strict Pine Script v6 practices for stability.
 How To Use – Quick Start 
1) Add the indicator to your TradingView chart.
2) Pick your calculation method (Classic, Fibonacci, Camarilla, Woodie).
3) Set session type (5m, 15m, 30m, Hourly, Daily, Weekly, Monthly).
4) Switch between Classic and Live Mode with a single click in settings.
5) Customize your levels (on/off, colors).
6) Open the Alert Panel, select any pre-configured alert (e.g. "R2 Cross Down"), and go live!
7) Connect with PineConnector or any webhook system instantly using the pre-formatted alert messages.
 Who Is It For? 
- Active scalpers & bot traders: Live Mode + PineConnector-ready alerts = instant, automated reactions.
- Swing and position traders: Use Classic Mode for stable, repaint-free levels.
- Strategy developers: Seamless integration into automated and manual trading workflows.
 License & Community 
Open Source, Non-Commercial:
Free for personal & educational use under CC BY-NC-SA 4.0.
 Feedback, bug reports & ideas: 
Drop a comment, or contact me for feature requests.
Trade smart. Trade dynamic. Unlock the true power of pivots – with ChartWhizzperer!
Info Box⚙️ Purpose
Shows useful trade and event-related data such as:
% Distance from stop levels (D, DH)
Earnings countdown in bars
All displayed in a single floating info box (table) on the chart.
📋 Key Features
Customizable Display
Choose table position (Top Right, Bottom Center, etc.)
Choose table size (Auto, Large, Tiny, etc.)
Custom text and background colors
Metrics Shown
D: % Distance from stop (difference between close and low/high)
DH: % Distance from midpoint of the candle
Earnings Countdown: Number of bars until next earnings event
Conditional Styling
If earnings are within 3 bars, text color turns red as a warning.
Execution Conditions
Runs only on daily timeframe
Updates on last bar only (no historical clutter)
Output
Displays all selected metrics in one line, separated by “×”
e.g. → D: -2.1% × 5 × DH: 1.4%
🧩 Overall Function
Creates a clean, customizable “info box” showing trade distances and upcoming earnings countdown for quick decision-making directly on your TradingView chart.
Lateral Market DetectorOverview
The Lateral Market Detector is a TradingView indicator designed to identify and highlight range-bound market conditions (sideways movement) where price oscillates between defined support and resistance levels with minimal overall movement.
How It Works
The indicator analyzes price action using a dynamic range detection algorithm:
Range Calculation: Examines the last N candlesticks (default 50, adjustable 20-200) and calculates the difference between the highest high and lowest low within this period.
Laterality Detection: Compares the calculated range against a configurable tolerance threshold (in pips). If the range is smaller than the tolerance, the market is identified as laterally moving.
Confirmation Logic: Counts consecutive candlesticks that remain within the detected range. The indicator only confirms a lateral condition when the minimum number of consecutive candlesticks has been reached (default 15).
Visual Representation: Once confirmed, displays a colored rectangle (box) spanning from the range's start point to the current bar, with horizontal dashed lines marking the high and low levels.
Dynamic Update: Continuously updates the rectangle as new candlesticks form, adjusting the top and bottom boundaries if price remains within the lateral zone.
Key Features
Multi-Timeframe Optimization
Automatic timeframe adaptation using square root scaling
When enabled, parameters adjust proportionally based on the current timeframe (M1, M5, M15, M30, H1, D1, W1, MN)
Prevents the need for manual parameter adjustments across different timeframes
Formula: Adjusted_Tolerance = Base_Tolerance × √(Timeframe_Multiplier)
Customizable Parameters
Tolerance Pip (M1): Sets the maximum range width to identify laterality
Minimum Candlesticks: Minimum consecutive candles required to confirm a lateral zone
Candlesticks to Analyze: Lookback period for range calculation
Breakout Sensitivity: Controls the threshold for identifying range breakouts
Full Visual Customization
Rectangle color and transparency
High/Low line color and thickness
Automatic status display showing current timeframe, lateral confirmation, and active parameters
Use Cases
Range Trading: Identify optimal entry and exit points at support/resistance
Breakout Trading: Visual confirmation before entering breakout trades
Trend Analysis: Distinguish between trending and consolidating markets
Risk Management: Define clear stop-loss levels based on range boundaries
Technical Specifications
Indicator Type: Overlay
Maximum Boxes: 100 (prevents performance degradation)
Supported Assets: Forex, CFDs, Stocks, Cryptocurrencies
Pine Script Version: v5
Chart Display: Real-time updates on each new candlestick
Option Buying Strategy By Raj PandyaThis strategy is designed for intraday trading on BankNifty using a powerful confluence of trend, structure and momentum. It combines the 9-period Exponential Moving Average (EMA) with Daily Traditional Pivot Points to identify high-probability breakout trades.
A Long (CALL) signal is generated when price crosses and closes above both the 9 EMA and the Daily Pivot Point (PP), confirming upward trend strength. A Short (PUT) signal triggers when price crosses and closes below the 9 EMA and PP, signaling downside momentum. To reduce false signals, the strategy uses RSI with a moving average filter to ensure momentum aligns with price action.
Risk management is built-in with previous candle high/low stop-loss, a fixed 50-point target, and an automatic trailing stop system to protect profits on trending days. This helps capitalize on strong momentum while managing risk effectively.
This strategy works best on the 5-minute timeframe and is optimized for BankNifty futures/options. It aims to capture clean directional moves around key intraday value levels used by institutional traders.
MA 250 & 1250 + OverextensionThis indicator is designed for  long-term and macro traders  who use moving averages to identify structural support levels and potential overextended tops.
It plots two key simple moving averages:
 
 250-day SMA  (≈1-year average)
 1250-day SMA  (≈5-year average)
 
While the  1250-day MA often acts as strong support during major market bottoms, the 250-day MA serves as a dynamic reference for identifying potential tops. 
The core innovation of this script is the addition of  user-defined overextension zones  above the 250-day MA:
 
 +30% zone:  highlights potential cyclical tops (ideal for less volatile assets)
 +50% zone:  marks extreme overextension levels (useful for volatile instruments)
 
You can independently choose which background zone to display:
 
 "+30% only"
 "+50% only"
 "Both" (with +50% taking visual priority)
 "None"
 
Visual cues include:
 
 Colored circles when price enters each overextension zone
 Optional semi-transparent background highlighting active zones
 Clean, non-repainting logic based on closing prices
 
 Use cases: 
 
 Confirming structural support near the 1250-day MA during deep corrections
 Assessing risk/reward when price moves far above the 250-day MA
 Avoiding late long entries in euphoric market phases
 Identifying potential distribution zones in long-term uptrends
 
 Note:  This tool does not generate buy/sell signals on its own. It is intended as a  contextual filter  to complement price action, volume, momentum, and macro analysis.
Market SessionsMarket Sessions (Asian, London, NY, Pacific) 
 Summary 
This indicator plots the main global market sessions (Asian, European, American, Pacific) as boxes on your chart, complete with dynamic high/low tracking.
It's an essential tool for intraday traders to track session-based volatility patterns and visualize key support/resistance levels (like the Asian Range) that often define price action for the rest of the day.
 Who it’s for 
Intraday traders, scalpers, and day traders who need to visualize market hours and session-based ranges. If your strategy depends on the London open, the New York close, or the Asian range, this script will map it out for you.
 What it shows 
Customizable Session Boxes: Four fully configurable boxes for the Asian, European (London), American (New York), and Pacific (Sydney) sessions.
Session High & Low: The script tracks and boxes the highest high and lowest low of each session, dynamically updating as the session progresses.
Session Labels: Clear labels (e.g., "AS", "EU") mark each session, anchored to the start time.
 Key Features 
Powerful Timezone Control: This is the core feature.
Use Exchange Timezone (Default): Simply enter session times (e.g., 8:00 for London) relative to the exchange's timezone (e.g., "NASDAQ" or "BINANCE").
Use UTC Offset: Uncheck the box and enter a UTC offset (e.g., +3 or -5). Now, all session times you enter are relative to that specific UTC offset. This gives you full control regardless of the chart you're on.
Fully Customizable: Toggle any session on/off.
Style Control: Change the fill color, border color, transparency, border width, and line style (Solid, Dashed, Dotted) for each session individually.
Smart Labels: Labels stay anchored to the start of the session (no "sliding") and float just above the session high.
 Why this helps 
Track Volatility & Market Behavior: Visually identify the "personality" of each session. Some sessions might consistently produce powerful pumps or dumps, while others are prone to sideways "chop" or accumulation. This indicator helps you see these repeating patterns.
Find Key Support/Resistance Levels: The High and Low of a session (e.g., the Asian Range) often become critical support and resistance levels for the next session (e.g., London). This script makes it easy to spot these "session-to-session" S/R flips and reactions.
Aid Statistical Analysis: The script provides the core visual data for your statistical research. You can easily track how often the London session breaks the Asian high, or which session is most likely to reverse the trend, helping you build a robust trading plan.
Context is King: Instantly see which market is active, which are overlapping (like the high-volume London-NY overlap), and which have closed.
 Quick setup 
Go to Timezone Settings.
 Decide how you want to enter times: 
Easy (Default): Leave Use Exchange Timezone checked. Enter session times based on the chart's native exchange (e.g., for BTC/USDT on Binance, use UTC+0 times).
Manual (Pro): Uncheck Use Exchange Timezone. Enter your UTC Offset (e.g., +2 for Berlin). Now, enter all session times as they appear on the clock in Berlin.
Go to each session tab (Asian, European...) to enable/disable it and set the correct start/end hours and minutes.
Style the colors to match your chart theme.
 Disclaimer 
 For educational/informational purposes only; not financial advice. Trading involves risk—manage it responsibly.
Trend Pullback System```{"variant":"standard","id":"36492","title":"Trend Pullback System Description"}
Trend Pullback System is a price-action trend continuation model that looks to enter on pullbacks, not breakouts. It’s designed to find high-quality long/short entries inside an already established trend, place the stop at meaningful structure, trail that stop as structure evolves, and warn you when the trade thesis is no longer valid.
Developed by: Mohammed Bedaiwi
---------------------------------
HOW IT WORKS
---------------------------------
1. Trend Detection  
   • The strategy defines overall bias using moving averages.  
   • Bullish environment (“uptrend”): price above the slower MA, fast MA above slow MA, and the slow MA is sloping up.  
   • Bearish environment (“downtrend”): price below the slower MA, fast MA below slow MA, and the slow MA is sloping down.  
   This prevents trading against chop and focuses on continuation moves in the dominant direction.
2. Pullback + Re-entry Logic  
   • The script waits for price to pull back into structure (support in an uptrend, resistance in a downtrend), and then push back in the direction of the main trend.  
   • That “push back” is the setup trigger. We don’t chase the first breakout candle — we buy/sell the retest + resume.
3. Structural Levels (“Diamonds”)  
   • Green diamond (below bar): bullish pivot low formed while the trend is bullish. This marks defended support.  
     - Use it as a re-entry zone for longs.  
     - Use it to trail a stop higher when you’re already long.  
     - Shorts can take profit here because buyers stepped in.  
   • Red diamond (above bar): bearish pivot high formed while the trend is bearish. This marks defended resistance.  
     - Use it as a re-entry zone for shorts.  
     - Use it to trail a stop lower when you’re already short.  
     - Longs can take profit here because sellers stepped in.
4. Entry Signals  
   • BUY arrow (green triangle up under the candle, text like “BUY” / “BUY Zone”):  
     - LongSetup is true.  
     - Trend is bullish or turning bullish.  
     - Price just bounced off recent defended support (green diamond) and reclaimed short-term momentum.  
     Meaning: enter long here or cover/exit shorts.  
   • SELL arrow (red triangle down above the candle):  
     - ShortSetup is true.  
     - Trend is bearish or turning bearish.  
     - Price just rolled down from defended resistance (red diamond) and lost short-term momentum.  
     Meaning: enter short here or take profit on longs.  
   These are the primary trade entries. They are meant to be actionable.
5. Weak Setups (“W” in yellow)  
   • Yellow triangle with “W”:  
     - A possible long/short idea is trying to form, BUT the higher-timeframe confirmation is not fully there yet.  
     - Think of it as early pressure / early caution, not a full signal.  
   • You usually watch these areas rather than jumping in immediately.
6. Exit Warning (orange “EXIT” label above a bar)  
   • The strategy will raise an EXIT marker when you’re in a trade and the *opposite* side just produced a confirmed setup.  
     - You’re short and a valid longSetup appears → EXIT.  
     - You’re long and a valid shortSetup appears → EXIT.  
   • This is basically: “Close or reduce — the other side just took control.”  
   • It’s not just a trailing stop hit; it’s a regime flip warning.
7. Stop, Target, and Trailing  
   • On every new setup, the script records:  
     - Initial stop: recent swing beyond the defended level (below support for longs, above resistance for shorts).  
     - Initial target: recent opposing swing.  
   • While you’re in position, if new confirming diamonds print in your favor, the stop can trail toward the new defended level.  
   • This creates structure-based risk management (not just fixed % or ATR).
8. Reference Levels  
   • The strategy also plots prior higher-timeframe closes (last week’s close, last month’s close, last year’s close). These can behave as magnets or stall points.  
   • They’re helpful for take-profit timing and for reading “are we trading above or below last month’s close?”
9. Momentum Panel (hidden by default)  
   • Internally, the script calculates an SMI-style momentum oscillator with overbought/oversold zones.  
   • This is optional visual confirmation and does not drive the core entry/exit logic.
---------------------------------
WHAT A TRADE LOOKS LIKE IN REAL PRICE ACTION
---------------------------------
Early warning  
• Yellow W + red diamonds + red down arrows = “This is getting weak. Short setups are here.”  
• You may also see something like “My Short Entry Id.” That’s where the short side actually engages.
Bearish follow-through, then exhaustion  
• Price bleeds down.  
• Then the orange EXIT appears.  
  → Translation: “If you’re still short, close it. Buyers are stepping in hard. Risk of reversal is now high.”
Regime flip  
• Right after EXIT, multiple green BUY arrows fire together (“BUY”, “BUYZone”).  
• That’s the true long trigger.  
  → This is where you either enter long or flip from short to long.
Expansion leg  
• After that flip, price rips up for multiple candles / days / weeks.  
• While it runs:
  - Green diamonds appear under pullbacks → “dip buy zones / trail stop up here.”  
  - More BUY arrows show on minor pullbacks → continuation long / scale adds.
Distribution / topping  
• Later, you start seeing new yellow W triangles again near local highs. That’s your “careful, this might be topping” warning.  
• You finally get a hard red candle, and green diamonds stop stacking.  
  → That’s where you tighten risk, scale out, or assume the move is mature.
In plain terms, the model is doing the following for you:
• It puts you short during weakness.  
• It tells you when to get OUT of the short.  
• It flips you long right as control changes.  
• It gives you a structure-based trail the whole way up.  
• It warns you again when momentum at the top starts cracking.
That is exactly how the logic was designed.
---------------------------------
QUICK INTERPRETATION CHEAT SHEET
---------------------------------
🔻 Red triangle + “Short Entry” near a red diamond  
   → Short entry zone (or take profit on a long).
🟥 Red diamond above bar  
   → Sellers defended here. Treat it as resistance. Good place to trail short stops just above that level. Avoid chasing longs straight into it.
🟨 Yellow W  
   → Attention only. Early pressure / possible turn. Not fully confirmed.
🟧 EXIT (orange label)  
   → The opposite side just printed a real setup. Close the old idea (cover shorts if you’re short, exit longs if you’re long). Thesis invalid.
🟩 Burst of green BUY triangles after EXIT  
   → Long entry. Also a “cover shorts now” alert. This is the core money entry in bullish reversals.
💎 Green diamond below bar  
   → Bulls defended that level. Good for trailing your long stop up, and good “buy the dip in trend” locations.
📈 Blue / teal MAs stacked and rising  
   → Confirmed bullish structure. You’re in trend continuation mode, so dips are opportunities, not automatic exits.
---------------------------------
COLOR / SHAPE KEY
---------------------------------
• Green triangle up (“BUY”, “BUY Zone”):  
  Long entry / cover shorts / continuation long trigger.  
• Red triangle down:  
  Short entry / take profit on longs / continuation short trigger.  
• Orange “EXIT” label:  
  Opposite side just fired a real setup. The previous trade thesis is now invalid.  
• Green diamond below price:  
  Bullish defended support in an uptrend. Use for dip buys, trailing stops on longs, and objective cover zones for shorts.  
• Red diamond above price:  
  Bearish defended resistance in a downtrend. Use for re-entry shorts, trailing stops on shorts, and objective scale-out zones for longs.  
• Yellow “W”:  
  Weak / early potential setup. Watch it, don’t blindly trust it.  
• Moving average bands (fast MA, slow MA, Hull MA):  
  When stacked and rising, bullish control. When stacked and falling, bearish control.
---------------------------------
INTENT
---------------------------------
This system is built to:
  • Trade with momentum, not against it.  
  • Enter on pullbacks into proven structure, not chase stretched breakouts.  
  • Automate stop/target logic around actual defended swing levels.  
  • Warn you when the other side takes over so you don’t give back gains.
Typical usage:
  1. In an uptrend, wait for price to pull back, print a green diamond (support proved), then take the first BUY arrow that fires.  
  2. In a downtrend, wait for a bounce into resistance, print a red diamond (sellers proved), then take the first SELL arrow that fires.  
  3. Respect EXIT when it appears — that’s the model saying “this trade is done.”
---------------------------------
DISCLAIMER
---------------------------------
This script is for educational and research purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any security, cryptoasset, or derivative. Markets carry risk. Past performance does not guarantee future results. You are fully responsible for your own decisions, position sizing, risk management, and compliance with all applicable laws and regulations.
DTCC RECAPS Dates 2020-2025This is a simple indicator which marks the RECAPS dates of the DTCC, during the periods of 2020 to 2025.
These dates have marked clear settlement squeezes in the past, such as GME's squeeze of January 2021.
------------------------------------------------------------------------------------------------------------------
The Depository Trust & Clearing Corporation (DTCC) has published the 2025 schedule for its Reconfirmation and Re-pricing Service (RECAPS) through the National Securities Clearing Corporation (NSCC). RECAPS is a monthly process for comparing and re-pricing eligible equities, municipals, corporate bonds, and Unit Investment Trusts (UITs) that have aged two business days or more .
At its core, the Reconfirmation and Re-pricing Service (RECAPS) is a risk management tool used by the National Securities Clearing Corporation (NSCC), a subsidiary of the DTCC. Its primary purpose is to reduce the risks associated with aged, unsettled trades in the U.S. securities market .
When a trade is executed, it is sent to the NSCC for clearing and settlement. However, for various reasons, some trades may not settle on their scheduled date and become "aged." These unsettled trades create risk for both the trading parties and the clearinghouse (NSCC) because the value of the underlying securities can change over time. If a trade fails to settle and one of the parties defaults, the NSCC may have to step in to complete the transaction at the current market price, which could result in a loss.
RECAPS mitigates this risk by systematically re-pricing these aged, open trading obligations to the current market value. This process ensures that the financial obligations of the clearing members accurately reflect the present value of the securities, preventing the accumulation of significant, unmanaged market risk .
Detailed Mechanics: How Does it Work?
The RECAPS process revolves around two key dates you asked about: the RECAPS Date and the Settlement Date .
The RECAPS Date: On this day, the NSCC runs a process to identify all eligible trades that have remained unsettled for two business days or more. These "aged" trades are then re-priced to the current market value. This re-pricing is not just a simple recalculation; it generates new settlement instructions. The original, unsettled trade is effectively cancelled and replaced with a new one at the current market price. This is done through the NSCC's Obligation Warehouse.
The Settlement Date: This is typically the business day following the RECAPS date. On this date, the financial settlement of the re-priced trades occurs. The difference in value between the original trade price and the new, re-priced value is settled between the two trading parties. This "mark-to-market" adjustment is processed through the members' settlement accounts at the DTCC.
Essentially, the process ensures that any gains or losses due to price changes in the underlying security are realized and settled periodically, rather than being deferred until the trade is ultimately settled or cancelled.
Are These Dates Used to Check Margin Requirements?
Yes, indirectly, this process is closely tied to managing margin and collateral requirements for NSCC members. Here’s how:
The NSCC requires its members to post collateral to a clearing fund, which acts as a mutualized guarantee against defaults. The amount of collateral each member must provide is calculated based on their potential risk exposure to the clearinghouse.
By re-pricing aged trades to current market values through RECAPS, the NSCC gets a more accurate picture of each member's outstanding obligations and, therefore, their current risk profile. If a member has a large number of unsettled trades that have moved against them in value, the re-pricing will crystallize that loss, which will be settled the next day.
This regular re-pricing and settlement of aged trades prevent the build-up of large, unrealized losses that could increase a member's risk profile beyond what their posted collateral can cover. While RECAPS is not the only mechanism for calculating margin (the NSCC has a complex system for daily margin calls based on overall portfolio risk), it is a crucial component for managing the specific risk posed by aged, unsettled transactions. It ensures that the value of these obligations is kept current, which in turn helps ensure that collateral levels remain adequate.
--------------------------------------------------------------------------------------------------------------
 
Future dates of 2025:
- November 12, 2025 (Wed)
- November 25, 2025 (Tue)
- December 11, 2025 (Thu)
- December 29, 2025 (Mon)
The dates for 2026 haven't been published yet at this time.
 
The RECAPS process is essentially the industry's way of retrying the settlement of all unresolved FTDs, netting outstanding obligations, and gradually forcing resolution (either delivery or buy-in). Monitoring RECAPS cycles is one way to track the lifecycle, accumulation, and eventual resolution (or persistence) of failures to deliver in the U.S. market.
The US Stock market has become a game of settlement dates and FTDs, therefore this can be useful to track.
Key Levels: Prior Open & Close (D/W/M/Q/Y)This indicator plots the previous period's open and close levels for multiple timeframes—daily, weekly, monthly, quarterly, and yearly—on your chart. It uses Pine Script's request.security() function to pull the prior period's open and close prices for each timeframe, then draws horizontal dotted lines extending to the right at those levels. Each line is labeled and color-coded for easy distinction. These levels can help highlight potential support/resistance areas, but they are reference points only and not trading signals.
Rank Correlation Index (RCI) Strategy newmy firsht scripy by test only test 
my firsht scripy by test only test 
my firsht scripy by test only test 
onli test 
Volume Profile, Pivot Anchored by DGT, updated by PlystEnhanced version of the original "Volume Profile, Pivot Anchored" indicator by @dgtrd.
**Original Features (by @dgtrd):**
- Volume Profile anchored to pivot points
- Point of Control (PoC), Value Area High/Low
- Customizable profile visualisation
- Volume-weighted colored bars
**My Additions:**
- Multi-exchange volume aggregation (Spot + Perpetuals)
- Support for 10 major exchanges (Binance, Bybit, OKX, Coinbase, Bitget, Kucoin, Kraken, MEXC, Gateio, HTX)
- Customizable spot and perpetual currency pairs
- Aggregation calculation options (SUM/AVG/MEDIAN/VARIANCE)
- Updated to Pine Script v6
The indicator now calculates volume profiles using aggregated volume data across multiple exchanges and markets, providing a more comprehensive view of market activity.
Full credit to @dgtrd for the original Volume Profile implementation. This version builds upon their excellent work with enhanced multi-exchange capabilities.
Swing High/Low (Adaptive)Swing High/Low (Adaptive) 
 Overview 
The Indicator is a pivot point detection tool that identifies swing highs and lows with invalidation tracking. The key differentiator of this indicator is its  adaptive invalidation system . Most pivot indicators simply mark every detected pivot without considering whether subsequent price action has made earlier pivots less relevant.
 How It Works 
The indicator uses Pine Script's native  ta.pivotlow()  and  ta.pivothigh()  functions combined with custom logic to detect swing points. The adaptive algorithm evaluates each potential pivot against the following criteria:
 For Low Pivots: 
 
  Confirms a new low pivot when it's the next expected pivot type in the swing sequence
  If consecutive lows occur, only accepts a new low if it's lower than the previous low
  Marks the previous low as invalidated when a stronger low is detected
 
 For High Pivots: 
 
  Confirms a new high pivot when it's the next expected pivot type in the swing sequence
  If consecutive highs occur, only accepts a new high if it's higher than the previous high
  Marks the previous high as invalidated when a stronger high is detected
 
This approach ensures that the indicator maintains clean swing structure and automatically adjusts when price action creates stronger pivots, providing a more realistic view of support and resistance levels.
 Settings 
 Pivot Settings: 
 
   Left Bars : Number of bars to the left required for pivot confirmation (default: 5)
   Right Bars : Number of bars to the right required for pivot confirmation (default: 5)
 
 Pivot Display Settings: 
 
  Toggle visibility for low and high pivots independently
  Customizable colors for valid pivot markers
  Low pivots marked with upward triangle (▲)
  High pivots marked with downward triangle (▼)
 
 Invalid Pivot Settings: 
 
  Optional display of invalidated pivots
  Separate color customization for invalid low and high pivots
  Helps visualize where market structure expectations changed
 
 ZigZag Settings: 
 
  Toggle ZigZag line display on/off
  Separate colors for upward and downward price swings
  Adjustable line width
 
 Use Cases 
 1. Market Structure Analysis 
Identify key swing points to understand the current market structure and trend direction. The adaptive invalidation feature ensures you're always looking at the most relevant pivots.
 2. Support and Resistance Identification 
Use confirmed swing highs and lows as potential support and resistance levels for entry and exit planning.
 3. Trend Confirmation 
The ZigZag visualization helps confirm trends by showing the sequence of higher highs and higher lows (uptrend) or lower highs and lower lows (downtrend).
 Disclaimer 
This indicator is designed as a technical analysis tool and should be used in conjunction with other forms of analysis and proper risk management. Past performance does not guarantee future results, and traders should thoroughly test any strategy before implementing it with real capital.
ATRThis script displays the Average True Range (ATR) value and the ATR as a percentage of the current closing price directly on the main chart as a clean table, with no lines or plots. It allows users to easily monitor both absolute volatility and its relative magnitude, making comparisons across different assets intuitive. The display position is customizable, offering flexibility for personal chart layouts. Ideal for traders seeking quick volatility insights, risk management guidance, or portfolio-wide comparisons.
Auto Session Fib/Open LevelsThis indicator automatically plots fib levels and key opening levels so you don't have to (:
Default levels are set to Longhorn Trades (Peter Kennedy) fib settings and two key openings of my liking.
Sultan_Mstrading Dynamic Levels (Auto-Market Final Version)The Sultan_Mstrading Dynamic Levels indicator automatically generates dynamic support and resistance levels based on the market type or trading symbol (such as Gold, Bitcoin, Indices, Oil, or Forex pairs).
It plots multiple levels above and below the current price with adjustable spacing, and automatically highlights the nearest level to the current price for quick visual reference






















