TSL Drunken BirdA huge shoutout to @anotherDAPTrader for inspiration and support in developing this system!
Overview:
The Accurate Swing Trading System is a powerful technical analysis tool designed for swing traders on TradingView. It generates precise buy and sell signals based on price action crossing a dynamic Trailing Stop Loss (TSL) level, calculated from recent highs and lows. Enhanced with optional Higher Time Frame (HTF) confluence, the system aligns short-term signals with broader market trends, making it ideal for traders seeking to optimize entries and exits. Visual indicators include signal labels, customizable horizontal lines, a colored TSL line, and optional bar/background coloring. Alerts support trade execution across various assets, such as NASDAQ E-mini futures, stocks, forex, and more. A special shoutout to AnotherDAPTrader for inspiration and support in developing this system!
Key Features:
Swing Signals: Generates "BUY" and "SELL" signals when the closing price crosses above/below the TSL, based on a user-defined lookback period (Swing).
HTF Confluence: Adjusts signals based on the HTF trend (e.g., "EXIT LONG" instead of "SELL" if HTF is bullish), toggleable via Use HTF Confluence.
HTF Selection: Choose from 8 timeframes: 5-minute, 15-minute, 30-minute, 1-hour, 4-hour, Daily, Weekly, or Monthly.
Horizontal Lines: Plots green (buy) and red (sell) lines at the closing price of signal bars, with a toggle to extend lines 50 or 500 bars.
TSL Visualization: Displays a TSL line (green if close >= TSL, red if close < TSL) to highlight dynamic support/resistance levels.
Bar/Background Coloring: Optionally colors candlesticks and chart background green (bullish) or red (bearish) based on price relative to TSL.
Alerts: Configurable alerts for "Buy Signal" and "Sell Signal" on price crossovers/crossunders.
Persistent Behavior: All components (signals, labels, lines, TSL, coloring) remain on the chart indefinitely, consistent with the original design.
Use Cases:
Perfect for swing trading on any timeframe (e.g., 1-minute for scalping, 1-hour for swing trading) and asset (e.g., NASDAQ E-mini futures, stocks, forex).
Enhances decision-making by aligning short-term trades with higher timeframe trends.
Supports both manual trading (via visual cues) and automated trading (via alerts).
License:
Released under the Mozilla Public License 2.0. Created by ceyhun, with a shoutout to AnotherDAPTrader.
How to Use the Accurate Swing Trading System in TradingView
Add the Script to TradingView:
Open TradingView (www.tradingview.com) in a browser or desktop app.
Navigate to the Pine Editor (bottom panel of any chart).
Copy and paste the provided Pine Script code.
Click "Add to Chart" to apply the indicator to your active chart.
Configure Indicator Settings:
Access settings by clicking the gear icon next to the indicator name on the chart.
Adjust the following inputs:
Swing (default: 3): Defines the lookback period for calculating the highest high and lowest low used in the TSL. Higher values produce smoother but potentially delayed signals.
Barcolor (default: true): Enables/disables green (bullish) or red (bearish) candlestick coloring based on close vs. TSL.
Bgcolor (default: false): Enables/disables green/red background coloring for trend visualization.
Use HTF Confluence (default: true): Enables/disables HTF trend filtering. When enabled, signals adjust to reflect HTF trend (e.g., "EXIT LONG" for sell signals if HTF is bullish).
Higher Time Frame (default: "60"): Select from for 5-minute, 15-minute, 30-minute, 1-hour, 4-hour, Daily, Weekly, or Monthly HTF analysis.
Use Long Horizontal Lines (500 bars) (default: true): Toggles horizontal line length between 500 bars (long) and 50 bars (short).
Interpret Signals and Visuals:
Signal Labels:
"BUY" (green, below bar): Triggered when close crosses above TSL (and HTF is bullish or use_htf is off).
"SELL" (red, above bar): Triggered when close crosses below TSL (and HTF is bearish or use_htf is off).
"EXIT SHORT" (orange, below bar): Triggered on buy signals when HTF is bearish (with use_htf on).
"EXIT LONG" (orange, above bar): Triggered on sell signals when HTF is bullish (with use_htf on).
Horizontal Lines:
Green lines (buy signals) and red lines (sell signals) are plotted at the close price of the trigger bar, aligning with TSL color changes (green to red or vice versa).
Lines extend 50 bars (if long_lines is false) or 500 bars (if true) to the right.
TSL Line: A continuous line (linewidth=3) showing the TSL level, colored green (close >= TSL) or red (close < TSL).
Bar/Background Coloring: If enabled, candlesticks and background are colored green (bullish) or red (bearish) based on close vs. TSL.
Set Up Alerts:
Right-click the indicator name on the chart and select "Add Alert."
Choose "Buy Signal" or "Sell Signal" as the condition.
Configure alert settings (e.g., notification method, frequency: once per bar, etc.).
Alerts trigger on Buy (crossover) or Sell (crossunder) events, ideal for trade execution or monitoring.
Test on a Chart:
Apply to a chart (e.g., NASDAQ E-mini futures, 1-minute timeframe, as per your metadata from July 10, 2025, 05:41 PM CDT).
Verify:
Labels: "BUY", "SELL", "EXIT LONG", "EXIT SHORT" appear only on crossover/crossunder bars.
Horizontal Lines: Green/red lines plot at the close price where TSL changes color (green to red for Sell, red to green for Buy), extending 50 or 500 bars based on long_lines.
TSL Line: Updates continuously, colored green/red based on close vs. TSL.
Coloring: Bar/background coloring (if enabled) reflects trend direction.
HTF Confluence: With use_htf on, test htf_res = "M" (and others like "60", "D") to ensure signals adjust correctly (e.g., "EXIT LONG" for sell signals if monthly HTF is bullish).
Alerts: Confirm alerts trigger on crossovers/crossunders.
Ensure all components persist indefinitely (no decay).
Best Practices:
Timeframe: Use on any timeframe (e.g., 1m for scalping, 1h for swing trading). Adjust Swing to balance signal frequency and reliability.
Asset: Suitable for volatile assets like NASDAQ E-mini futures, stocks, or forex.
HTF Alignment: Enable use_htf for trend-aligned trades, especially on higher timeframes like "D" or "M".
Line Length: Use long_lines = true for longer-term visualization (500 bars) or false for shorter-term (50 bars).
Risk Management: Combine with stop-loss/take-profit levels and proper position sizing, as the system does not include risk management.
Acknowledgments:
License Note:
This script is provided under the Mozilla Public License 2.0. Users are free to use, modify, and distribute it per the license terms.
Indicators and strategies
Prev Day R1–R3 / S1–S3 LevelsPlots Levels BASED ON SOME specific formula and offset. Happy trading !
trademark - BGYRT
Institucional S&R + Acción de Precio 1M v2Especial para accion del precio, soportes y resistencias a un minuto
ATR > VXN Alert (5m)ATR > VXN Volatility Divergence Indicator
This custom TradingView indicator monitors real-time volatility divergence between realized volatility (via Average True Range, ATR) and implied volatility (via the CBOE NASDAQ Volatility Index, VXN). It is inspired by the GJR-GARCH (Glosten-Jagannathan-Runkle Generalized Autoregressive Conditional Heteroskedasticity) model, which captures asymmetric volatility dynamics—particularly how markets respond more sharply to negative shocks than to positive ones.
Core Logic:
Chart on NQ 5 minute timeframe
ATR (5-min) reflects realized intraday volatility of the Nasdaq 100 futures (NQ).
VXN (5-min, delayed) represents forward-looking implied volatility.
The indicator highlights regime shifts in volatility:
ATR < VXN: Volatility compression → potential energy building up (market coiling).
ATR > VXN: Volatility expansion → real movement exceeds expectations → potential breakout zone.
Visuals & Alerts:
Background turns green when ATR crosses above VXN, signaling a bullish expansion regime.
Background turns red when ATR drops below VXN, signaling compression or risk-off environment.
Custom alerts trigger on volatility regime shifts for breakout traders.
Application (Manual GJR-GARCH Strategy):
Similar to how the GJR-GARCH model captures volatility clustering and asymmetry, this indicator identifies when actual price volatility (ATR) begins to spike beyond implied forecasts (VXN), often after periods of contraction—mirroring a conditional variance shock in the GARCH framework.
Traders can align with directional bias using technical confluence (order flow, structure breaks, liquidity zones) once expansion is confirmed.
Break & Retest Strategy V2 (Clean Visuals)This strategy is built on a high-probability EMA breakout and retest model, designed for traders who want clean structure-based entries filtered by trend alignment and strong price action. It leverages:
• ✅ A 44 EMA trend filter on the 4H chart
• ✅ HTF directional bias from the Daily 44 EMA
• ✅ Breakout above the EMA followed by a wick-based retest
• ✅ Strong bullish candle confirmation (body > 50% of range)
• ✅ Dynamic stop loss using either the pivot low or a buffer below the EMA
• ✅ Fixed 1:3 Risk:Reward ratio for consistent reward targeting
• ✅ Cooldown system to prevent overtrading
• ✅ Clean, minimal visuals using smart RR boxes instead of chart clutter
This system is fully backtestable and designed with prop firm challenge criteria in mind — prioritizing risk control, clarity, and high-quality trade conditions.
⸻
🔧 Current Development Goals (V3 Roadmap)
We’re actively refining the system to improve win rate and profit factor, while keeping drawdown low. Key upgrades in progress:
1. 📈 Liquidity Trap Filter
• Add logic to confirm a wick below recent lows (liquidity sweep) before retesting the EMA
2. 🧠 Partial Take Profits + Breakeven Logic
• TP1 at 1.5R → move SL to breakeven
• TP2 at 3R → close remaining position
3. 🔁 Trade Session Filter
• Limit entries to London & New York AM sessions to avoid false signals in low volume periods
4. 📉 Short Entry Engine
• Mirror logic for bearish break + retest setups below the EMA
5. 🔔 Live Alerts System
• Entry signal alerts for hands-free, real-time trading decisions
6. 📊 Optimizer Toolkit (future)
• Add ATR/volatility filters
• Add market structure confluence zones (HH/HL filters)
• Smart cooldown timer based on wins/losses or volatility shifts
Market to NAV Premium Arbitrage Alpha IndicatorMARKET TO NAV PREMIUM ARBITRAGE ALPHA INDICATOR
A quantitative tool for identifying statistical mispricings between market capitalization and net asset value (NAV), designed specifically for arbitrage strategies and alpha generation in Bitcoin-holding companies like MicroStrategy (MSTR), companies or SPACS used mostly to hold crypto, Bitcoin ETFs, and other NAV-based instruments. Can probably be also used in certain spin-offs.
📊 KEY FEATURES:
✅ Real-time Premium/Discount Calculation
• Automatically retrieves market cap data from TradingView
• Calculates precise NAV based on underlying asset holdings
• Formula: (Market Cap - NAV) / NAV × 100
✅ Statistical Analysis Framework
• Historical percentile rankings (customizable lookback period)
• Standard deviation bands (2σ) for extreme value detection
• Smoothing options to reduce noise
✅ Multi-Source Market Cap Detection
• Priority system: TradingView data → Calculated → Manual override
• Automatic fallback mechanisms for data reliability
✅ Advanced NAV Modeling
• Basic NAV: Asset holdings + cash
• Adjusted NAV: Includes software business value, debt, preferred shares. If the company has a lot of this kind of intrinsic value, put it in the "cash" field
• Support for any underlying asset (BTC, ETH, etc.)
📈 TRADING APPLICATIONS:
🎯 Pairs Trading Signals
• Long/Short opportunities when premium reaches statistical extremes
• Mean reversion strategies based on historical ranges
• Risk-adjusted position sizing using percentile ranks
🎯 Arbitrage Detection
• Identifies when market pricing significantly deviates from fair value
• Quantifies the magnitude of mispricing for profit potential
• Historical context for timing entry/exit points
🔧 CONFIGURATION OPTIONS:
• Underlying Asset: Any symbol (default: COINBASE:BTCUSD) NEED MANUAL INPUT
• Asset Quantity: Precise holdings amount. NEED MANUAL INPUT
• Cash Holdings: Additional liquid assets. NEED MANUAL INPUT
• Market Cap Mode: Auto-detect, calculated, or manual
• Advanced Adjustments: Business value, debt, preferred shares
• Display Settings: Lookback period, smoothing, custom colors
🎯 PERFECT FOR:
• Quantitative traders focused on statistical arbitrage
• Institutional investors monitoring NAV-based instruments
• Bitcoin ETF and MSTR traders seeking alpha generation
• Risk managers tracking premium/discount exposures
• Academic researchers studying market efficiency (as you can see, markets are not efficient 😉)
🔗 CONNECT & SUPPORT:
Follow for updates and additional quantitative trading tools. Feedback and suggestions welcome!
Volume Spike Analyzer(SMA10-Based)📊 **Volume Spike Analyzer (SMA10-Based)**
This indicator highlights abnormal volume activity by comparing current volume to the 10-period Simple Moving Average (SMA) of volume. It helps traders visually identify unusual activity that may precede breakouts, reversals, or news-driven moves.
---
🔧 **Features:**
• ✅ Colors volume bars:
• Green = Volume > SMA(10)
• Red = Volume ≤ SMA(10)
• ✅ Detects and labels spike levels:
• 🔶2x — Volume > 2x SMA(10)
• 🟢3x — Volume > 3x SMA(10)
• 🔴4x — Volume > 4x SMA(10)
• ✅ Built-in alerts for all 3 spike levels
---
📈 **Best Use Cases:**
• Confirm breakouts with strong volume
• Detect accumulation/distribution
• Filter low-volume setups
• Combine with VWAP/EMA for directional confirmation
---
⏱️ **Recommended Timeframes:**
• Intraday: 5m, 15m, 1h
• Also works on daily for swing trades
---
🧠 **Pro Tips:**
• Use with VWAP or EMA(20/50/200) for confluence
• Add SMA(Volume, 10) to your price chart for quick correlation
• Combine with candle pattern detection for signal validation
---
Pivot Tops & BottomsHow it works
strategy() call replaces indicator() and enables backtesting.
Longs are opened at each confirmed swing-low and closed at the next swing-high.
Shorts can be turned on via the Enable Short Side toggle.
Position sizing uses 10% of equity per trade by default—adjust in the default_qty_value input.
Turn on Show Pivot Shapes to see where tops/bottoms land on your chart (shifted back by pivotLen).
Use the built-in Strategy Tester tab to review performance, drawdowns, win rate, etc.
Stochastic Divergence AlertA great way to figure out what divergence are taking place with price action.
CVD Signal (Above/Below Zero Line)CVD Long or Short Signal when the CVD is above or below zero line.
Support & Resistance by O Dinesh BabuThis Script is Specifically Designed to Work with NIFTY, BANKNIFTY & FINNIFTY Indices Only..
For Optimal Results, Please Wait for the 1st 15-Minute Candle to Complete Before Initiating Any Trades..
Wishing All Traders the Very Best in Their Journey..
Warm Regards,
O. Dinesh Babu
Son of Mr. & Mrs. O. Asha Rama Krishna
ds-Volume with Flags & Alerts v1.2ds-Volume with Flags & Alerts: User & Training Guide
1. Summary of Features
This indicator is a powerful, all-in-one tool designed to give you a deep and customizable view of market volume. By analyzing volume in multiple ways, it helps you spot unusual activity, confirm trends, and identify potential reversals.
How It Helps a Trader:
Spotting Institutional Activity: The core purpose of the Volume Flags (using either the Multiplier or Standard Deviation method) is to highlight bars with exceptionally high volume. These spikes often signal the entry or exit of large institutional players. A high-volume up-bar can confirm bullish conviction, while a high-volume down-bar can signal significant selling pressure.
Identifying Climactic Events: The HVE (Highest Volume Ever) and HV1 (Highest Volume - 1 Year) labels automatically pinpoint the most significant volume events on the chart. A "blow-off top" at the end of a long uptrend or a "capitulation" event at a market bottom is almost always accompanied by an HVE or HV1 bar. These are critical moments to watch for potential trend reversals.
Gauging Buying vs. Selling Pressure: The Up/Down Volume Ratio gives you a more nuanced view than volume alone. A ratio consistently above 1.2 suggests that buyers are more aggressive, while a ratio below 0.8 suggests sellers are in control. Watching this ratio can help you confirm the strength of a trend or spot divergences where price is rising but the ratio is falling (a potential warning sign).
Visual Confirmation & Customization: With options to color both the volume bars and the main price bars, you can get instant visual confirmation of these events without having to look away from the price action. The ability to toggle features on and off keeps your chart clean and focused on what matters most to you.
Actionable Alerts: The comprehensive alert system ensures you don't miss a key event. You can be notified of everything from a new all-time high volume bar to a subtle shift in the Up/Down Volume Ratio, allowing you to react to market changes in real-time.
2. User-Changeable Options
This indicator is highly customizable. Here is a breakdown of every setting available in the "Inputs" tab.
General Settings
MA Length: The lookback period for the simple moving average (the gray area plot) of the volume.
Volume Flags
Color Price Bars with Flags: If checked, the main price bars on your chart will be colored when a high or low volume flag condition is met.
Color Volume Bars with Flags: If checked, the volume bars in the indicator pane will be colored for flag conditions.
Flag Calculation Method: This is a crucial setting.
Multiplier (Default): Identifies high volume based on a simple multiple of the average volume (e.g., volume is 1.4x its average). It's simple and intuitive.
Standard Deviation: Identifies high volume based on how statistically unusual it is compared to its recent behavior. This method is more adaptive to changing market volatility.
Daily/Weekly Lookback (Multiplier): Sets the lookback period for calculating the average volume when using the "Multiplier" method.
Daily/Weekly High-Vol Multiplier: Sets the multiplier for a high volume event (e.g., 1.4).
STDEV Length (Daily/Weekly): Sets the lookback period for calculating the average and standard deviation when using the "Standard Deviation" method.
STDEV Threshold (Daily/Weekly): Sets the number of standard deviations above the average required to trigger a high volume flag (e.g., 2.0).
Daily/Weekly Low-Vol Multiplier: Sets the threshold for a low volume event (e.g., 0.5 means volume is less than 50% of its average). This is always based on the multiplier method.
Ratios & Stats
Up/Down Ratio Daily/Weekly Lookback: Sets the lookback period for calculating the sum of up volume and down volume for the ratio.
Ratio Calculation Method:
Close vs. Open: Defines an "up volume" bar as one where the close is higher than the open.
Close vs. Previous Close (Default): Defines an "up volume" bar as one where the close is higher than the previous bar's close. This is a common standard.
Up Ratio Arrow Threshold: If the U/D Ratio exceeds this value, a green "up" arrow will appear.
Show Up Ratio Arrow: Toggles the visibility of the green "up" arrow.
Down Ratio Arrow Threshold: If the U/D Ratio falls below this value, a red "down" arrow will appear.
Show Down Ratio Arrow: Toggles the visibility of the red "down" arrow.
9 EMA Cross 21 EMA Strategy - 1H with 5% TPThe 21/9 EMA crossover strategy is a powerful trend-following method where a buy signal is triggered when the 9 EMA crosses above the 21 EMA, indicating bullish momentum. It works best in trending markets, especially when combined with filters like the 100 EMA to avoid choppy zones. Traders can enhance performance by entering on EMA retests, using a fixed 35-point stop-loss, and setting a 5–8% take profit. This strategy shines on 15-minute to 1-hour charts and can yield massive returns—sometimes up to 300%—when used with discipline and proper risk management. Follow me for more crazy setups!
✅ Stochastic Divergence Alert PROAn indicator that tells you where divergences on the stochastic are.
Smart RSI Divergence PRO | Auto Lines + Alerts
Smart RSI Divergence PRO
This indicator automatically finds RSI divergences on price charts:
🔹 Detects both regular & hidden divergences
🔹 Draws auto trendlines connecting swing highs & lows
🔹 Clear triangle labels directly on the chart
🔹 Ready-to-use alerts for your strategy
Use it to spot potential trend reversals and hidden continuation signals.
How it works
Regular Divergence: Price makes a higher high (or lower low) while RSI does not — this can signal a possible trend reversal.
Hidden Divergence: Price makes a lower high (or higher low) while RSI makes a higher high (or lower low) — this can signal a possible trend continuation in the same direction.
Auto Lines & Labels
The script automatically detects local swing highs and lows and draws connecting trendlines on price.
Labels appear on the chart as colored triangles, so signals are easy to see at a glance:
🔻 Red triangle — Regular Bearish Divergence (potential short)
🟠 Orange triangle — Hidden Bearish Divergence (possible trend continuation down)
🟢 Green triangle — Regular Bullish Divergence (potential long)
🔵 Blue triangle — Hidden Bullish Divergence (possible trend continuation up)
Customization
You can adjust:
RSI length
Show/hide regular or hidden divergences
Show/hide auto lines and labels
Customize line width and transparency
Works on any market and any timeframe — crypto, forex, indices, stocks.
⚠️ Disclaimer: This script is for educational purposes only and does not constitute financial advice. Always test any strategy thoroughly and trade at your own risk.
4H Box+ m15 Separadorindicates 15-minute time frames in vertical lines and 4-hour time frames in boxes for candle analysis on shorter time frames.
Reversion to Mean - TLT [with Metrics]Reversion-to-Mean Strategy
Buy when RSI < 30 and price is in bottom 10% of 52-week range.
Exit when price returns to 50% or RSI > 70.
Friedrich IndicatorThis indicator visualizes trend zones using two Exponential Moving Averages (EMAs) with user-defined lengths (default 32 and 58). It identifies bullish and bearish trends based on the relationship between the shorter and longer EMA and confirms these trends only after they persist for a specified number of bars (confirmBars).
Bullish zone (green): When the shorter EMA remains above the longer EMA for at least the confirmation number of bars, both EMAs and the area between them are colored green, indicating a confirmed upward trend.
Bearish zone (red): When the shorter EMA stays below the longer EMA for at least the confirmation bars, EMAs and the filled zone turn red, signaling a confirmed downward trend.
Neutral zone (white): Before the trend confirmation, the EMAs and the area between are colored white with transparency, representing an unconfirmed or neutral state.
The area between the two EMAs is filled with the respective color, providing an intuitive visual cue of market momentum and trend strength directly on the price chart.