Advanced Supertrend StrategyA comprehensive Pine Script v5 strategy featuring an enhanced Supertrend indicator with multiple technical filters, risk management, and advanced signal confirmation for automated trading on TradingView.
## Features
- **Enhanced Supertrend**: Configurable ATR-based trend following with improved accuracy
- **RSI Filter**: Optional RSI-based signal filtering to avoid overbought/oversold conditions
- **Moving Average Filter**: Trend confirmation using SMA/EMA/WMA with customizable periods
- **Risk Management**: Built-in stop-loss and take-profit based on ATR multiples
- **Trend Strength Analysis**: Filters weak signals by requiring minimum trend duration
- **Breakout Confirmation**: Optional price breakout validation for stronger signals
- **Visual Interface**: Comprehensive chart plotting with multiple indicator overlays
- **Advanced Alerts**: Multiple alert conditions with detailed signal information
- **Backtesting**: Full strategy backtesting with commission and realistic execution
Volatility
Auto AVWAP (Anchored-VWAP) with Breakout ScreenerAuto AVWAP (Anchored-VWAP) with Breakout Screener. fINAL VERSION
Volume Peak BoxTH Description
Volume Peak Box
อินดิเคเตอร์นี้ใช้ตรวจจับช่วงที่มี Volume สูงผิดปกติ โดยใช้ Bollinger Band กับข้อมูล Volume ที่ดึงจาก Timeframe ที่ล็อกไว้ (เช่น 1 ชั่วโมง) และจะแสดงผลในรูปแบบ กล่องครอบช่วงราคาสูง–ต่ำ ของช่วง Volume Peak นั้น
🔧 วิธีทำงาน:
คำนวณ Bollinger Band จาก Volume ของ Timeframe ที่กำหนด
ถ้า Volume สูงกว่า Upper Band → ถือว่าเป็น Volume Peak
วาดกล่องครอบ High–Low ของแท่งที่อยู่ในช่วง Volume Peak
กล่องจะแสดงบนทุก Timeframe แต่ใช้ข้อมูลจาก Timeframe ที่ล็อกไว้เท่านั้น
🧠 เหมาะสำหรับการดู:
โซน Breakout
การเคลื่อนไหวของสถาบัน
ความไม่สมดุลของอุปสงค์/อุปทาน
เหมาะมากหากใช้ร่วมกับการอ่านพฤติกรรมราคาใน Timeframe ย่อย เพื่อดูปฏิกิริยาราคาต่อแรง Volume จาก Timeframe ใหญ่
________________
ENG Description
Volume Peak Box
This indicator detects volume spikes based on Bollinger Bands applied to volume from a locked timeframe (e.g. 1H), and draws a box around the price range during those peak periods.
🔧 How it works:
Calculates Bollinger Bands on volume from the selected timeframe.
If volume exceeds the upper band, it is marked as a volume peak.
When a volume peak starts and ends, the indicator draws a box covering the high–low price range during that period.
These boxes remain visible on all timeframes, but always reflect data from the locked timeframe.
🧠 Great for identifying:
Breakout zones
Institutional activity
Supply/demand imbalances
Tip: Use with lower timeframe price action to see how the market reacts near volume peaks from higher timeframes.
Market Energy – Trend vs RetestShows who is in control of the market. The red lines are sellers in control and the green are the buyers in control
ATR Squeeze BackgroundThis simple but powerful indicator shades the background of your chart whenever volatility contracts, based on a custom comparison of fast and slow ATR (Average True Range) periods.
By visualizing low-volatility zones, you can:
* Identify moments of compression that may precede explosive price moves
* Stay out of choppy, low-momentum periods
* Adapt this as a component in a broader volatility or breakout strategy
🔧 How It Works
* A Fast ATR (default: 7 periods) and a Slow ATR (default: 40 periods) are calculated
* When the Fast ATR is lower than the Slow ATR, the background is shaded in blue
* This shading signals a contraction in volatility — a condition often seen before breakouts or strong directional moves
⚡️ Why This Matters
Many experienced traders pay close attention to volatility cycles. This background indicator helps visualize those cycles at a glance. It's minimal, non-intrusive, and easy to combine with your existing tools.
🙏 Credits
This script borrows core logic from the excellent “Relative Volume at Time” script by TradingView. Credit is given with appreciation.
⚠️ Disclaimer
This script is for educational purposes only.
It does not constitute financial advice, and past performance is not indicative of future results. Always do your own research and test strategies before making trading decisions.
Position Sizing Based on 21-Day ATR % (30 Holdings) 40 volATR portion sizing based on 40 vol to get is close to STD DEV weightings.
Opening Range Breakout (08:00 - 08:15 NY) - AAPNIndicador que marca la apertura de Forex en NY a 15 minitos, la primera vela
Advanced Liquidity & FVG Detector With Entry/Exit SignalsThe Advanced Liquidity & FVG Detector is more than just an indicator—it's a complete trading system that brings institutional-grade market analysis to individual traders. By combining liquidity detection, fair value gap analysis, sweep/grab pattern recognition, and intelligent risk management, this indicator provides everything needed for sophisticated market analysis and high-probability trading opportunities.
Whether you're a day trader, swing trader, or position trader, this indicator adapts to your style and timeframe, providing the insights needed to make informed trading decisions with confidence. The Pine Script v6 compatibility ensures future-proof performance and seamless integration with the latest TradingView features.
Transform your trading experience with professional-grade market structure analysis—tradable insights delivered in real-time, right on your chart.
Pre-Market & Previous Day Levels 300here is the indicator pre market high low and prev day hihg low levels
Circuit Breaker Table (NSE Style)🛡️ NSE Circuit Breaker Table – With Volatility-Based Band Support
This script displays a real-time circuit breaker table for any stock, showing the Upper and Lower circuit limits in a clean 2x2 grid. It’s especially useful for Indian traders monitoring NSE-listed stocks.
✅ Key Features:
📊 Upper & Lower Limits based on the previous day’s close
⚡ Optional ATR-based dynamic volatility band calculation
🎨 Customizable font sizes (Small / Medium / Large)
✅ Table neatly positioned on the top-right corner of your chart
🟢 Upper circuit shown in green, 🔴 lower circuit in red
Works on all NSE stocks and adapts automatically to charted symbols
⚙️ Customization Options:
Use static percentage bands (e.g., 10%)
Or enable ATR mode to reflect dynamic circuit potential based on recent volatility
This tool helps you stay aware of where a stock might get halted — useful for momentum traders, circuit breakout traders, and anyone monitoring volatility limits during intraday sessions.
Ghost Month HighlighterGhost Month and Trading: Understanding the Phenomenon
Ghost Month (鬼月) is the seventh month of the lunar calendar in Chinese culture, typically falling between late July and September. During this period, it's believed that the gates of the afterlife open and spirits roam the earth. This deeply rooted cultural belief has significant implications for Asian markets, particularly in regions with large Chinese populations like Taiwan, Hong Kong, Singapore, and mainland China.
Why Markets Often Decline or Stay Flat During Ghost Month:
Reduced Business Activity : Many businesses avoid launching new products, signing major contracts, or making significant investments during this period, believing it brings bad luck.
Property Market Slowdown : Real estate transactions drop significantly as people avoid moving homes or making large purchases. In some markets, property sales can decline by 20-30%.
IPO and M&A Drought : Companies often delay IPOs and merger announcements until after Ghost Month, reducing market catalysts.
Retail Spending Drops : Consumer spending on big-ticket items decreases, though spending on offerings and religious items increases.
Self-Fulfilling Prophecy : Many traders and investors reduce positions or stay on the sidelines, creating lower volumes and increased volatility. This becomes a self-fulfilling prophecy where expectation of poor performance leads to actual underperformance.
Tourism and Entertainment Impact : Travel and entertainment sectors see reduced activity as people avoid unnecessary trips and celebrations.
Historical data shows that Asian equity markets often underperform during Ghost Month, with some studies indicating average returns can be 2-5% lower than other months. However, this also creates opportunities for contrarian investors who buy during the seasonal weakness.
Inspired by @honey_xbt
Position Sizing Based on 21-Day ATR % (30 Holdings)Vol targeting based on ATR instead of STD DEV for 30 holdings.
ATR Plots + OverlayATR Plots + Overlay
This tool calculates and displays Average True Range (ATR)-based levels on your chart for any selected timeframe, giving traders a quick visual reference for expected price movement relative to the most recent bar’s open price. It plots guide levels above and below that open and shows how much of the typical ATR-based range has already been covered—all in one interactive table and on-chart overlay.
What It Does
ATR Calculation:
Uses true range data over a user-defined period (default 14), smoothed via RMA, SMA, EMA, or WMA, on the selected timeframe (e.g., 1h, 4h, daily) to calculate the ATR value.
Projected Levels:
Plots four reference levels relative to the open price of the most recent bar on the chosen timeframe:
+100% ATR: Open + ATR
+50% ATR: Open + 50% of ATR
−50% ATR: Open − 50% of ATR
−100% ATR: Open − ATR
Coverage %:
Tracks high and low prices for the current session on the selected timeframe and calculates what percentage of the ATR has already been covered:
Coverage % = (High − Low) ÷ ATR × 100
Interactive Table:
Shows the ATR value and current coverage percentage in a customizable table overlay. Position, color scheme, borders, transparency, and an optional empty top row are all adjustable via settings.
Customization Options
Table Settings:
Position the table (top/bottom × left/right).
Customize background color, text color, border color, and thickness.
Optionally add an empty top row for spacing.
Line Settings:
Choose color, line style (solid/dotted/dashed), and width.
Lines automatically update with each new bar on the selected timeframe, anchored to that bar’s open price.
General Inputs:
ATR length (number of bars).
Smoothing method (RMA, SMA, EMA, WMA).
Timeframe selection for ATR calculations (e.g., 15m, 1h, Daily).
How to Use It for Trading
Measure Volatility: Quickly gauge the expected price movement based on ATR for any timeframe.
Identify Overextension: Use the coverage % to see how much of the expected ATR range is already consumed.
Plan Entries & Exits: Align trade targets and stops with ATR levels for more objective planning.
Visual Reference: Horizontal guide lines and table update automatically as new bars form, keeping information clear and actionable.
Ideal For
Intraday traders using ATR levels to frame trades.
Swing traders wanting ATR-based reference points for larger timeframes.
Anyone seeking a volatility-based framework for planning stops, targets, or identifying overextended conditions.
Canonical Momenta Indicator [T1][T69]📌 Overview
The Canonical Momenta Indicator models trend pressure using a Lagrangian-based momentum engine combined with reflexivity theory to detect bursts in price movement influenced by herd behavior and volume acceleration.
🧠 Features
Lagrangian-based kinetic model combining velocity and acceleration
Reflexivity burst detection with directional scoring
Adaptive momentum-weighted output (adaptiveCMI)
Buy 🐋 / Sell 🐻 labels when reflexivity confirms direction
Fully parameterized for customization
⚙️ How to Use
This indicator helps traders:
Detect reflexive bursts in market activity driven by sharp price movement + volume spikes
Capture herd-driven directional moves early.
Gauge market pressure using a kinetic-potential energy model.
Suggested signals:
🐋 Reflexive Up: Strong bullish momentum spike confirmed by volume and positive lagrangian pressure
🐻 Reflexive Down: Strong bearish dump confirmed by volume and negative lagrangian burst
🔧 Configuration
MA Lookback Length - Smoothing for baseline price & energy calculation
Reflexivity Momentum Threshold - Price momentum trigger for burst detection
Reflexivity Lookback - Period over which bursts are counted
Reflexivity Window - Minimum burst sum to trigger signal label
Volume Spike Threshold - % above average volume to qualify as burst
📊 Behavior Description
The indicator computes a Lagrangian energy:
Kinetic Energy = (velocity² + 0.5 * acceleration²)
Potential Energy = deviation from moving average (distance²)
Lagrangian = Potential − Kinetic (higher = overextension)
Then, reflexive bursts are triggered when:
Price is rising or falling over short window (burstMvmnt)
Volume is above average by a user-defined multiple
Each bar gets a burst score:
+1 for up-burst
−1 for down-burst
0 otherwise
⚠️ Risk Profile Based on Lookback Settings
Risk Level | Description | Recommended Lookback
🟥 High | Extremely sensitive to bursts, prone to false signals | 7–10
🟨 Moderate | Balanced reflexivity with trend confirmation | 11–20
🟩 Low | Filters out most noise, slower to react | 21+
🧪 Advanced Tips
Combine with moving average slope for trend filtering
Use divergence between adaptiveCMI and price to detect exhaustion
Works well in crypto, commodities, and volatile assets
⚠️ Limitations
Sensitive to high volatility noise if volMult is too low
Designed for higher timeframes (1H, 4H, Daily) for reliability
Doesn’t confirm direction in sideways markets — pair with other filters
📝 Disclaimer
This tool is provided for educational and informational purposes. Always do your own backtesting and use proper risk management.
TAK Indicators by Khoa //@version=6
indicator("TAK Indicators by Khoa ", overlay=true)
// === EMA ===
ema10 = ta.ema(close, 10)
ema21 = ta.ema(close, 21)
ema50 = ta.ema(close, 50)
plot(ema10, "EMA 10", color=color.green)
plot(ema21, "EMA 21", color=color.orange)
plot(ema50, "EMA 50", color=color.red)
// === Trend check
isUpTrend = ema10 > ema21 and ema21 > ema50
isDownTrend = ema10 < ema21 and ema21 < ema50
// === RSI
rsi = ta.rsi(close, 14)
rsiBull = ta.crossover(rsi, 50)
rsiBear = ta.crossunder(rsi, 50)
// === Confirmation candle
bullCandle = close > open
bearCandle = close < open
priceConfirmBuy = close > ema10 and close > ema21 and bullCandle
priceConfirmSell = close < ema10 and close < ema21 and bearCandle
// === State machine
var bool inLong = false
var bool inShort = false
buySignal = false
sellSignal = false
if isUpTrend and rsiBull and priceConfirmBuy and not inLong
buySignal := true
inLong := true
inShort := false
else
buySignal := false
if isDownTrend and rsiBear and priceConfirmSell and not inShort
sellSignal := true
inShort := true
inLong := false
else
sellSignal := false
// === DÍNH LABEL DỰA THEO GIÁ (KHÔNG BỊ TRƯỢT ZOOM DỌC)
if buySignal
label.new(bar_index, low - (syminfo.mintick * 10), "B", style=label.style_label_up, color=color.green, textcolor=color.white, size=size.small)
if sellSignal
label.new(bar_index, high + (syminfo.mintick * 10), "S", style=label.style_label_down, color=color.red, textcolor=color.white, size=size.small)
// === Nền trend
bgcolor(isUpTrend ? color.new(color.green, 90) : na)
bgcolor(isDownTrend ? color.new(color.red, 90) : na)
Smart Confluence + WinRateTwo EMAs (Fast/Slow)
Scoring Signal System (≥ 2 conditions = Buy/Sell)
Display Buy/Sell Arrows on Chart
Backtest System
Results Table: Trades, Wins, Losses, Win Rate %
GCM Volatility-Adaptive Trend ChannelScript Description
Name: GCM Volatility-Adaptive Trend Channel (GCM VATC)
Overview
The GCM Volatility-Adaptive Trend Channel (VATC) is a comprehensive trading tool that merges the low-lag, smooth-trending capabilities of the Jurik Moving Average (JMA) with the classic volatility analysis of Bollinger Bands (BB).
By displaying both trend and volatility in a single, intuitive interface, this indicator aims to help traders see when a trend is stable versus when it's becoming volatile and might be poised for a change.
Core Components:
JMA Trend System: At its core are three dynamically colored JMA lines (Baseline, Fast, and Slow) that provide a clear view of trend direction. The lines change color based on their slope, offering immediate visual feedback on momentum. A colored ribbon between the Baseline and Fast JMA visualizes shorter-term momentum shifts.
Standard Bollinger Bands: Layered on top are standard Bollinger Bands. Calculated from the price, these bands serve as a classic measure of market volatility. They help identify periods where the market is expanding (high volatility) or contracting (low volatility).
How to Use It
By combining these two powerful concepts, this indicator provides a unified view of both trend and volatility. It can help traders to:
Identify the primary trend direction using the smooth JMA lines.
Gauge the strength and stability of that trend.
See when the market is becoming volatile (bands widening) or consolidating (bands contracting), which can often precede a significant price move or a change in trend.
A Note on Originality & House Rules Compliance
This indicator does not introduce a new mathematical formula. Instead, its strength lies in the thoughtful combination of two well-respected, publicly available concepts: the Jurik Moving Average and Bollinger Bands. The JMA implementation is a standard public version. The goal was to create a practical, all-in-one tool for trend and volatility analysis.
This script is published as fully open-source in compliance with TradingView's House Rules. It utilizes standard, publicly available algorithms and does not contain any protected or hidden code.
Settings
All lengths, sources, and colors for the JMA lines and Bollinger Bands are fully customizable in the settings menu, allowing you to tailor the indicator to your specific trading style and asset.
I hope with this indicator Traders even Beginner can can control their emotions which increase the probabilities of the winning rates and cutting the losing strength
Purposely I Didn't plant the High low or Buy Sell signals in the chart. Because everything is in the chart where volatility Signal with the Bollinger Band and Buy Sell Signal in the JMA Dynamic colors. and that's enough to decide when to take trade and when not to.
Thank You and Happy Trading
RED E Support & ResistanceThe “RED-E Support & Resistance” indicator is designed to assist traders in visualizing key levels of support and resistance on a chart by employing ATR (Average True Range) to create dynamic horizontal zones. This indicator automatically plots robust support and resistance bands that can help identify potential areas where price may reverse, consolidate, or react. These levels are particularly beneficial for traders who employ concepts like Smart Money analysis, as they illustrate zones where institutional trading activity might occur.
How It Works:
• The indicator uses ATR-based calculations to determine the placement of the support and resistance zones. This approach accounts for market volatility, making the zones adaptive to changing conditions.
• The Zone Thickness parameter allows users to customize the width of the plotted zones, enhancing visibility and fitting them to their specific trading style.
• The support and resistance zones extend horizontally across the chart, providing clear reference points for potential price reactions.
Practical Application:
• Trend Analysis: Identify areas of significant price resistance and support to understand potential turning points or trends in the market.
• Risk Management: Use these zones to better inform stop-loss placements or set profit targets.
• Confirmation Tool: Combine the indicator with other technical analysis tools for confirmation of potential trade entries or exits.
Customization Options:
• Change the colors of the support and resistance zones for better integration with different chart themes.
• Adjust the ATR Length and Multiplier to fine-tune the sensitivity of the zones based on personal preferences and the characteristics of the asset being analyzed.
Disclaimer:
This indicator is for educational and informational purposes only. It is not intended to serve as investment advice or a recommendation to buy or sell any financial instrument. Always perform your own research and consider consulting with a financial professional before making trading decisions. Trading involves significant risk, and past performance does not guarantee future results.
3 hours ago
Release Notes
The “RED-E Support & Resistance” indicator is designed to assist traders in visualizing key levels of support and resistance on a chart by employing ATR (Average True Range) to create dynamic horizontal zones. This indicator automatically plots robust support and resistance bands that can help identify potential areas where price may reverse, consolidate, or react. These levels are particularly beneficial for traders who employ concepts like Smart Money analysis, as they illustrate zones where institutional trading activity might occur.
How It Works:
• The indicator uses ATR-based calculations to determine the placement of the support and resistance zones. This approach accounts for market volatility, making the zones adaptive to changing conditions.
• The Zone Thickness parameter allows users to customize the width of the plotted zones, enhancing visibility and fitting them to their specific trading style.
• The support and resistance zones extend horizontally across the chart, providing clear reference points for potential price reactions.
Practical Application:
• Trend Analysis: Identify areas of significant price resistance and support to understand potential turning points or trends in the market.
• Risk Management: Use these zones to better inform stop-loss placements or set profit targets.
• Confirmation Tool: Combine the indicator with other technical analysis tools for confirmation of potential trade entries or exits.
Customization Options:
• Change the colors of the support and resistance zones for better integration with different chart themes.
• Adjust the ATR Length and Multiplier to fine-tune the sensitivity of the zones based on personal preferences and the characteristics of the asset being analyzed.
Disclaimer:
This indicator is for educational and informational purposes only. It is not intended to serve as investment advice or a recommendation to buy or sell any financial instrument. Always perform your own research and consider consulting with a financial professional before making trading decisions. Trading involves significant risk, and past performance does not guarantee future results.
ADR Plots + OverlayADR Plots + Overlay
This tool calculates and displays Average Daily Range (ADR) levels on your chart, giving traders a quick visual reference for expected daily price movement. It plots guide levels above and below the daily open and shows how much of the day's typical range has already been covered—all in one interactive table and on-chart overlay.
What It Does
ADR Calculation:
Uses daily high-low differences over a user-defined period (default 14 days), smoothed via RMA, SMA, EMA, or WMA to calculate the average daily range.
Projected Levels:
Plots four reference levels relative to the current day's open price:
+100% ADR: Open + ADR
+50% ADR: Open + 50% of ADR
−50% ADR: Open − 50% of ADR
−100% ADR: Open − ADR
Coverage %:
Tracks intraday high and low prices to calculate what percentage of the ADR has already been covered for the current session:
Coverage % = (High − Low) ÷ ADR × 100
Interactive Table:
Shows the ADR value and today's ADR coverage percentage in a customizable table overlay. The table position, colors, border, transparency, and an optional empty top row can all be adjusted via settings.
Customization Options
Table Settings:
Position the table (top/bottom × left/right).
Change background color, text color, border color and thickness.
Toggle an empty top row for spacing.
Line Settings:
Choose color, line style (solid/dotted/dashed), and width.
Lines automatically reposition each day based on that day's open price and ADR calculation.
General Inputs:
ADR length (number of days).
Smoothing method (RMA, SMA, EMA, WMA).
How to Use It for Trading
Measure Daily Movement: Instantly know the expected daily price range based on historical volatility.
Identify Overextension: Use the coverage % to see if the market has already moved close to or beyond its typical daily range.
Plan Entries & Exits: Align trade targets and stops with ADR levels for more objective intraday planning.
Visual Reference: Horizontal guide lines and table update automatically as new data comes in, helping traders stay informed without manual calculations.
Ideal For
Intraday traders tracking daily volatility limits.
Swing traders wanting a quick reference for expected price movement per day.
Anyone seeking a volatility-based framework for planning targets, stops, or identifying extended market conditions.
Position Sizing Based on 42-Day Volatility (30 Holdings)30 stocks portfolio sizing based on 2x leverage. Vol targeting.
Position Sizing Based on 42-Day Volatility (20 Holdings)200% position sizing for 20 holdings. Just go up 100% until all spots are taken may be less then 20 stocks.
Position Sizing Based on 42-Day Volatility (20 Holdings, 1x Cap)Position sizing based on 20 stocks with 1x cap. Fully invested no leverage.