ZLEMA FusionZLEMA Fusion - Advanced Zero-Lag Momentum & Trailing Stop System
A sophisticated overlay indicator combining the power of Zero Lag EMA (ZLEMA) with ATR-based Moving Stop (MOST) for precision trend following and dynamic support/resistance tracking.
Core Components:
1. ZLEMA (Zero Lag Exponential Moving Average)
Eliminates lag inherent in traditional EMAs
Provides faster response to price changes
Customizable length for different trading styles
Smooth, responsive trend line
2. MOST (Moving Stop - ATR Trailing Stop)
Dynamic ATR-based trailing stop system
Automatically adjusts to market volatility
Never moves backward - only trails in favourable direction
Green line = Uptrend support | Red line = Downtrend resistance
Customizable ATR multiplier and lookback period
Signal Generation:
BUY (⇑): When ZLEMA crosses above MOST
SELL (⇓): When ZLEMA crosses below MOST
Clean visual arrows with no label boxes
Signals trigger on candle close only (no repainting)
Advanced Features:
✅ Signal Cooldown System - Prevents signal spam with configurable minimum bars between signals
✅ ADX Trend Strength Filter - Optional filter to trade only in strong trends
✅ Higher Timeframe ZLEMA Confirmation - Multi-timeframe trend alignment for higher probability setups
✅ Background Color Coding - Quick visual trend identification (Green = Uptrend, Red = Downtrend)
✅ Alert System - Built-in alerts for buy and sell signals
Fully Customizable:
ZLEMA length
ATR period and multiplier
MOST lookback period
Signal cooldown bars
ADX filter threshold
Higher timeframe settings
Visual display options
Best Used For:
Index trading
Swing trading
Trend following strategies
Dynamic support/resistance identification
Entry/exit timing
Optimized for Indian Markets - Calibrated for Nifty, Bank Nifty, and other NSE instruments.
⚠️ Important Notes:
This indicator is for educational purposes
No repainting - all signals confirmed at candle close
Use proper risk management
Combine with your trading plan and additional confirmation
趋势分析
KASTE Buy & SellThis indicator works like a **MACD-based momentum tool**.
It calculates the difference between a fast and a slow moving average (MACD line) and smooths it with a signal line.
* A **Buy signal** appears when the MACD line crosses **above** the signal line, indicating rising bullish momentum.
* A **Sell signal** appears when the MACD line crosses **below** the signal line, indicating increasing bearish momentum.
The histogram visualizes momentum strength: green bars show bullish momentum and red bars show bearish momentum.
KASTE indicator 2 (for 10s Entries)This script is a **1-minute MACD-based trend filter** designed to define clear **bullish or bearish market bias**.
It uses a fast MACD configuration combined with a 50-period EMA to identify short-term trend direction and momentum strength.
A bullish state is shown when price is above the EMA and MACD momentum is rising above zero, while a bearish state is shown when price is below the EMA and momentum is falling below zero.
The background color highlights the current trend, making it easy to align **10-second entry timing** with the higher-timeframe bias and avoid trading in choppy conditions.
AB=CD Pattern [KTY] AB=CD Pattern
Hi, I'm Kim Thank You 👋
KTY = Kim Thank You (김땡큐)
Automatically detects AB=CD harmonic patterns based on Fibonacci retracement and extension.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 FEATURES
- Auto-Detection
- Identifies AB=CD harmonic patterns automatically
- Displays 1:1, 1.272, 1.618 extension targets
- Target Levels
- TP1/TP2/TP3 auto-displayed after D completion
- Entry and Stop levels included
- Visual Display
- Active pattern: Colored solid lines
- Completed pattern: Changes to dashed lines
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ HOW TO USE
- Watch for reversal at D point completion
- Bullish AB=CD → Expect downward move at D
- Bearish AB=CD → Expect upward move at D
- 1:1 ratio is most reliable and frequent
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 TIPS
- Higher reliability when ratio completes with reversal signal
- Bat, Gartley, Crab patterns also consist of AB=CD combinations
- Confluence with S/R levels increases reliability
- Use with other indicators for confirmation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
This indicator is for educational purposes only.
Not financial advice. Always do your own research.
Fibonacci Retracement [KTY] Fibonacci Retracement
Hi, I'm Kim Thank You 👋
KTY = Kim Thank You (김땡큐)
Automatically detects swing highs and lows to display Fibonacci retracement and extension levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 FEATURES
- Auto-Detection
- Identifies swing highs and lows automatically
- Displays retracement levels: 0.236, 0.382, 0.5, 0.618, 0.786, 0.886
- Displays extension levels: 1.272, 1.414, 1.618, 2.0, 2.618
- Trend Direction
- Uptrend: Measures retracement from high
- Downtrend: Measures retracement from low
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ HOW TO USE
- Watch for support/resistance reactions at key Fibonacci levels
- Break of key level → Check for move to next level
- Golden ratio (0.618) is often the strongest level
- Confluence with other S/R levels increases reliability
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 TIPS
- Higher timeframe Fibonacci levels are more reliable
- Watch for price reaction + volume confirmation
- Use with trendlines or moving averages
- Multiple rejections at same level = stronger zone
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
This indicator is for educational purposes only.
Not financial advice. Always do your own research.
Trendlines [KTY] Trendlines
Hi, I'm Kim Thank You 👋
KTY = Kim Thank You (김땡큐)
Automatically draws trendlines by connecting Higher Lows (uptrend) and Lower Highs (downtrend) pivots.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 FEATURES
- Auto-Detection
- Connects rising lows for bullish trendlines (green)
- Connects falling highs for bearish trendlines (red)
- Visual Extension
- Solid line: confirmed trendline
- Dotted line: projected extension
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ HOW TO USE
- Bullish trendline support → Higher chance of upward move
- Bearish trendline resistance → Higher chance of downward move
- Trendline break → Check for potential trend reversal
- Multiple trendlines at same level → Stronger zone
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 TIPS
- Higher timeframe trendlines are more reliable
- Watch for confluence with S/R levels
- Volume spike on break increases validity
- Use with other indicators for confirmation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
This indicator is for educational purposes only.
Not financial advice. Always do your own research.
Support & Resistance [KTY] Support & Resistance
Hi, I'm Kim Thank You 👋
KTY = Kim Thank You (김땡큐)
Automatically detects and displays key support and resistance levels based on recent pivot highs and lows.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 FEATURES
- Auto-Detection
- Scans recent price action for pivot highs/lows
- Displays up to 3 resistance levels (red)
- Displays up to 3 support levels (green)
- Price Labels
- Shows exact price at each S/R level
- Clean visual reference
- Alert System
- Resistance touch alert
- Support touch alert
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ HOW TO USE
- Bounce near support → Higher chance of upward move
- Rejection near resistance → Higher chance of downward move
- S/R Flip: Broken support may act as resistance, broken resistance may act as support
- Combine with other indicators for higher reliability
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 TIPS
- Higher timeframe S/R levels are more reliable
- Watch for multiple rejections at same level
- Volume confirmation increases reliability
- Use with trendlines or moving averages
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
This indicator is for educational purposes only.
Not financial advice. Always do your own research.
Cyberpunk Vortex IndicatorCyberpunk Vortex Indicator is a visually enhanced Vortex-based momentum indicator designed to clearly capture trend strength and directional dominance.
This indicator calculates VI+ (bullish pressure) and VI− (bearish pressure) using the classic Vortex methodology, then renders them with a layered neon cyberpunk-style glow for maximum readability and impact.
🔹 Key Features
・Vortex Indicator (VI+ / VI−) with SMA smoothing
・Multi-layer laser-style glow (outer / inner / core lines)
・Clear visual distinction between bullish and bearish momentum
・Subtle background and fill effects for intuitive trend recognition
・Clean, modern design without clutter
🔹 How to Use
・VI+ above VI− → Bullish momentum dominates
・VI− above VI+ → Bearish momentum dominates
・The 1.0 baseline helps identify strengthening or weakening trends
・Best used as a trend confirmation tool, not a standalone signal
🔹 Recommended Timeframes
Works well across multiple timeframes.
Commonly effective on 15m, 1H, 4H, and higher.
This indicator focuses on clarity, aesthetics, and momentum visualization, making it ideal for traders who value both performance and design.
Cyberpunk Vortex Indicator は、トレンドの強さと方向性を直感的に把握するために設計された、視認性とデザイン性を重視したボルテックス系モメンタム指標です。
クラシックな Vortex Indicator(VI+ / VI−)をベースに、サイバーパンク調のネオン発光レイヤーで描画することで、買い圧力・売り圧力の優位性を一目で判断できます。
🔹 特徴
・Vortex Indicator(VI+ / VI−)をSMAでスムージング
・外側・内側・芯の3層レーザー風グロー表現
・上昇 / 下降モメンタムの視認性を大幅に向上
・控えめな背景・塗りつぶしで相場の空気感を演出
・ノイズの少ない、洗練されたデザイン
🔹 使い方
・VI+ が VI− を上回る → 上昇トレンド優勢
・VI− が VI+ を上回る → 下降トレンド優勢
・1.0 の基準線でトレンドの勢いを確認
・単体判断ではなく、トレンド確認用としての使用を推奨
🔹 推奨時間足
マルチタイムフレーム対応。
特に 15分足 / 1時間足 / 4時間足以上で安定。
本インジケーターは
「見やすさ」「美しさ」「モメンタムの可視化」を重視しており、
デザインと実用性の両立を求めるトレーダー向けです。
HH & LLHH & LL
HH & LL is a lightweight market structure indicator that automatically identifies Higher Highs (HH) and Lower Lows (LL) based on pivot analysis.
It helps traders:
- Visualize trend continuation and potential reversals
- Detect dynamic support and resistance from recent HH & LL levels
- Measure the number of bars between structure points for timing and momentum insight
Designed for clarity and simplicity, this indicator is suitable for scalping, swing trading, and trend analysis across all markets and timeframes.
Volume Profile / The Trend FinderVOLUME PROFILE / THE TREND FINDER
Volume Profile / The Trend Finder is a hybrid market analysis indicator designed to objectively identify the strongest price trend while simultaneously revealing where volume is most actively traded within that trend. It combines statistical trend detection, dynamic regression channels, and an adaptive Volume Profile that automatically aligns with the detected trend period. This indicator is built to remove guesswork from trend analysis by letting data—not fixed settings—determine the most reliable trend structure.
Core Features
🔹 Auto-Selected Trend Channel
- The indicator evaluates multiple lookback periods and automatically selects the one with the highest Pearson’s correlation (R) between price and trend direction.
- This ensures the displayed channel represents the strongest and most statistically reliable trend.
- Supports Short-Term and Long-Term Channel modes.
- Channels are calculated using logarithmic regression, making them suitable for both linear and exponential price movements.
🔹 Dynamic Regression Channel
- Midline represents the detected trend direction.
- Upper and lower bands are calculated using standard deviation, scaled by a user-defined deviation multiplier.
- Fully customizable:
- Line style (solid, dashed, dotted)
- Transparency
- Extension mode (right, left, both, or none)
Trend Strength & Statistical Confidence
📊 Pearson’s R Confidence
- Uses Pearson’s correlation coefficient to quantify how well price follows the detected trend.
- Trend strength is translated into intuitive confidence labels:
- Extremely Weak → Ultra Strong
- Optional display of the exact Pearson’s R value.
📈 Annualized Trend Return (CAGR)
- Automatically calculates the annualized return of the detected trend.
- Available on Daily and Weekly timeframes.
- Adjusts calculations based on asset type (crypto vs stocks).
Integrated Volume Profile (Adaptive)
Unlike standard fixed-range volume profiles, this indicator’s Volume Profile dynamically adapts to the auto-selected trend period.
Key Volume Profile Components:
- Point of Control (POC)
- Value Area (VA%)
- Up & Down Volume Separation
- POC Line & Label
All volume calculations account for:
- Candle body
- Upper wick
- Lower wick
Ensuring more accurate volume distribution across price levels.
Informational Table Overlay
An optional on-chart table displays:
- Auto-Selected Period (Short-Term or Long-Term)
- Trend Strength or Pearson’s R
- Annualized Trend Return (CAGR)
Fully customizable:
- Position (8 screen locations)
- Text size
- Visibility of each metric
Designed For
- Trend traders
- Swing traders
- Position traders
- Crypto and traditional market analysis
- Traders who value statistical confirmation over subjective trendlines
Important Notes
- In Long-Term Channel mode, scroll back on the chart if the channel is not immediately visible.
- To display both Short-Term and Long-Term channels simultaneously, simply load the indicator twice on your chart with different settings.
Summary
Volume Profile / The Trend Finder is a powerful all-in-one tool that:
- Detects the strongest market trend automatically
- Quantifies trend confidence statistically
- Aligns volume analysis precisely with the detected trend
- Provides actionable structural and volume-based insights
This indicator is ideal for traders who want objective, data-driven trend and volume analysis without relying on fixed parameters or subjective interpretation.
TradeAxis Trendlines - Full RangeOverview
TradeAxis Trendlines is an overlay indicator that automatically builds and maintains diagonal support/resistance trendlines from confirmed swing pivots, ranks candidates to reduce clutter, and provides optional breakout-based risk framing (TP/SL boxes) using structural stops.
This script is built as a single workflow:
Identify structurally valid trendlines
Reduce clutter by ranking/filters
Monitor/visualize breakouts with clear risk framing (disabled in Analysis Mode and on non-standard chart types)
How the trendlines are detected and filtered
1) Confirmed pivot engine (non-instant pivots)
Trendline anchors come from confirmed pivot highs/lows using user-defined Left/Right pivot strength. Because pivots require Right bars to confirm, lines are not drawn at the turning candle and will appear only after confirmation.
2) Candidate generation + structural validation
The script tests pivot-to-pivot vectors and rejects candidates that fail structural criteria, including:
Minimum line length (bars between anchors)
Slope filtering with two modes:
Absolute slope bounds (price-per-bar)
ATR-relative slope bounds (thresholds scaled by ATR)
Body-intersection rejection: candidates are filtered out if candle bodies repeatedly cut through the line beyond a tolerance
Opposite-side invalidation gate: candidates can be rejected/disabled when price closes (or evaluates by Mid-body/Body mode) beyond the “wrong side” of the line, to avoid keeping lines that are already invalidated by structure
3) Touch counting + scoring (clutter control)
Valid candidates are ranked using a weighted score that prioritizes:
Number of valid touches
Recency of the last touch
Line span
By default, the script plots both the primary and secondary (“2nd best”) support and resistance lines; you can disable the secondary set if you prefer a cleaner chart.
4) Dynamic cleanup behavior
Trendlines are continuously refreshed as new pivots confirm. Lines that are decisively broken and then reclaimed can be removed to prevent stale structure from lingering on the chart.
Optional modules
A) Safety lines (structural stop references)
When enabled, the script calculates additional diagonal “safety” lines from a separate pivot stream and selects the best safety reference near the active structure. These safety lines are used as structural candidates for Stop Loss placement in the breakout framing module.
B) Higher-timeframe (HTF) overlays
When enabled, the script runs its trendline detection logic on a user-selected higher timeframe using `request.security()` with lookahead disabled, and overlays the HTF support/resistance onto the current chart. HTF lines are plotted using time-based coordinates and can update as HTF bars confirm.
C) Breakout + Risk/Reward visualization (optional)
When enabled (and on standard charts), the script can flag breakouts and draw a risk/reward box:
Breakout trigger: candle-body confirmation through the trendline plus a user-selected ATR-based buffer.
Buffer Mode can be set to ATR (buffer = ATR × multiplier) or None (no buffer).
Optional filters:
Wick filter (rejects candles with excessive upper/lower wick percentage)
Time windows (inputs are labeled in UTC+4) with optional overnight restrictions and specific block windows
Minimum breakout body size (ticks)
Stop Loss / Take Profit framing
Stop selection is structural-first. The script prioritizes the active safety line (when available), otherwise it falls back to recent swing structure (recent swing high/low candidates) and the best available structural reference.
Entries can be skipped if risk constraints are violated, including:
Min SL Size (ticks)
Max Allowed SL (×ATR)
Take Profit is projected from the actual stop distance using the selected Risk/Reward Target.
Important notes about the position tools
This is a visualization/alerting aid. It does not place trades.
TP/SL hit detection is bar-based (OHLC). If both TP and SL are within the same candle range, the script cannot know which occurred first.
On non-standard chart types, position tools and entry/exit alerts are disabled.
D) Analysis Mode
When Analysis Mode is enabled, the script disables the breakout/risk framing logic and focuses on technical trendlines (plus structural alerts).
Alerts
Alert conditions are available for:
Touch Support/Resistance (Primary, Secondary, or HTF)
New Support/Resistance line detected
Long/Short position tool placed (when enabled on standard charts)
A combined “Any Event” condition
Trend Signal GridTrend Signal Grid
Based on Trend Direction & Force Index - TDFI by Causecelebre, the TDFI Grid is a multi-timeframe momentum indicator that builds on the original TDFI concept. It calculates TDFI across three user-selectable timeframes using three different lookback periods, creating a 3×3 consensus grid (9 readings total).
Each cell is classified as bullish, bearish, or neutral based on configurable upper and lower thresholds. When a majority of the 9 readings align in the same direction (default 65%), the indicator triggers a directional signal — either GRID UP or GRID DOWN. Alerts fire automatically on new signals so you never miss a shift.
How it works
The indicator uses a smoothed EMA-based momentum calculation, normalises the output against its recent highest absolute value, and then maps it across your chosen timeframes and lookback lengths. The results are displayed in a clean on-chart table showing the state of each timeframe/lookback combination at a glance.
Settings:
Timeframe 1, 2, 3 — Choose any three timeframes (defaults to 1m, 5m, 15m).
LB1, LB2, LB3 — Lookback periods for each TDFI calculation.
UP / DOWN thresholds — Controls how far the TDFI must move before a cell registers as bullish or bearish.
Majority — The percentage of the 9 cells that must agree to trigger a signal.
Table position — Place the grid anywhere on your chart.
Best used for
Trading setups where you need to confirm momentum alignment across multiple timeframes before entering or scaling a position. Works well on forex and metals.
Inside Bar Zones by AAK (V6)📦 Smart Inside Bar Zones
Smart Inside Bar Zones is a price-action–based indicator designed to automatically detect, track, and visualize inside bar consolidation zones with full historical context.
Instead of marking single inside candles, this indicator groups consecutive inside bars into structured zones, locking the original mother candle range and extending it until price breaks out. This allows traders to clearly identify areas of compression, balance, and potential expansion.
🔍 Key Features
Automatic Inside Bar Detection
Identifies inside bars using candle bodies within the mother candle range, with an optional tick buffer.
Smart Zone Creation
Consecutive inside bars are grouped into a single zone, anchored to the original mother candle.
Unlimited Historical Storage (Data)
All previous inside bar zones are stored internally, enabling long-term analysis and backtesting.
Safe & Optimized Drawing
Zones are drawn using recyclable boxes to respect TradingView object limits while maintaining performance.
Highlight Inside Bars
Optional candle coloring for quick and clear visual confirmation.
Flexible Display Options
Show only the latest zone
Or display multiple zones with automatic recycling
📈 How Traders Use It
Identify consolidation before expansion
Spot compression zones for breakout or fakeout scenarios
Combine with SMC, order flow, support & resistance, or liquidity concepts
Use higher-timeframe zones for directional bias
Use lower-timeframe zones for entries and scalps
⚠️ Important Notes
This indicator does not predict direction — it highlights structure
Zones represent price balance, not buy or sell signals
Best used in confluence with your trading strategy and risk management
🧠 Designed For
Price action traders
SMC / market structure traders
Forex, crypto, indices, and futures
Any timeframe
⚠️ Risk Disclaimer
This indicator is for educational purposes only and is not financial advice. Trading involves significant risk, and losses may exceed expectations. Past performance does not guarantee future results. Always use proper risk management and trade at your own discretion.
CTR Weekly MA + 1D MA (improved)This does what the previous version does but more. I've added color candles to match the three weekly MAs. It helps show the stronger pullback as it goes deeper into each of the 3 weekly MAs and once the pullback is over and price goes back above or below the lowest or highest MA (depending on whether you are trading in a bear market or bull market) the candle colors will turn bright green or bright red.
EMA Gradient Band (Custom)Simple 10-20 ema crossover band. An EMA (Exponential Moving Average) crossover is a technical analysis trading signal that occurs when a fast-moving (short-term) EMA intersects with a slow-moving (long-term) EMA, signaling potential trend reversals or continuations. Common pairs include the 9/20, 10/20, or 50/200 EMA, with the shorter-term line crossing above (bullish) or below (bearish) the longer-term line
ST | TICK BarsThis indicator displays Market Breadth data (TICK) in a clean, institutional-style bar chart format with a clear Zero Line reference. It is essential for validating intraday momentum and trend strength.
Batoot Algo PureBatoot Algo (Pure Analysis Mode)
Indicator Overview
Batoot Algo is an advanced technical analysis indicator based on:
Price Action and geometric chart patterns
Higher Timeframe (HTF) trend filtering
Volume confirmation
Breakout & Retest logic
Head & Shoulders pattern detection
Analysis-only indicator. No Buy/Sell labels on the chart. Alerts and Dashboard only.
The goal is clean charts and smarter trading decisions.
---
Entry Modes
Aggressive (Breakout)
Immediate entry on breakout
Requires:
Confirmed breakout
High volume
Optional trend alignment
Conservative (Retest)
Breakout → Wait for retest → Confirmation candle
Reduces false signals
Suitable for patient trading
---
HTF Trend Filter
Uses EMA crossover on higher timeframe:
EMA 50
EMA 200
EMA50 > EMA200 → Bullish EMA50 < EMA200 → Bearish
Filter can be enabled or disabled in settings.
---
Price Patterns Detected
Automatically detects and draws:
Bullish / Bearish Flags
Channels
Triangles / Pennants
Rising Wedge (Bearish)
Falling Wedge (Bullish)
The area between support and resistance lines is dynamically filled based on the pattern.
---
Yellow Candle (High Volume)
Yellow candles indicate High Volume.
Triggered when:
Current candle volume >= Average volume of last 20 candles × volume multiplier
Default multiplier: 1.5
Confirms strong breakouts. Not a standalone entry signal.
---
Head & Shoulders Detection
Supports:
Head & Shoulders (Bearish)
Inverse Head & Shoulders (Bullish)
Neckline drawn automatically. Breakout validated with volume. Pattern status shown in Dashboard.
---
Dashboard
Displays:
Entry Mode (Aggressive / Conservative)
HTF Trend
Current Pattern
Head & Shoulders Status
Market Status: ENTRY BUY, ENTRY SELL, WAIT RETEST, SCANNING
---
Alerts
Alerts trigger only when:
Pattern confirmed
Breakout / Retest logic satisfied
High volume confirmed
Trend filter (if enabled) passes
No trade labels plotted on chart.
---
License & Attribution
Licensed under Creative Commons Attribution 4.0 (CC BY 4.0)
Free to use and modify. Attribution required. Removing or changing the author name is not allowed.
---
This indicator is for technical analysis purposes only and is not financial advice. Always use proper risk management.
---
Clean chart, smart analysis, better trading decisions.
Worldclassedge [Patrick nill]plotshape(long, title="BUY", text="Long▲", style=shape.labelup, textcolor=color.white, size=size.auto, location=location.belowbar, color=color.green)
plotshape(short, title="SELL", text="Short▼", style=shape.labeldown, textcolor=color.white, size=size.auto, location=location.abovebar, color=color.red)
alertcondition(long, title="BUY", message="Long▲")
alertcondition(short, title="SELL", message="Short▼")
// VWAP
anchor = input.string("Session", title="Anchor Period")
MILLIS_IN_DAY = 86400000
dwmBarTime = timeframe.isdwm ? time : request.security(syminfo.tickerid, "D", time)
dwmBarTime := na(dwmBarTime) ? nz(dwmBarTime ) : dwmBarTime
var periodStart = time - time
makeMondayZero(dayOfWeek) => (dayOfWeek + 5) % 7
isMidnight(t) => hour(t) == 0 and minute(t) == 0
isSameDay(t1, t2) => dayofmonth(t1) == dayofmonth(t2) and month(t1) == month(t2) and year(t1) == year(t2)
isOvernight() => not (isMidnight(dwmBarTime) or request.security(syminfo.tickerid, "D", isSameDay(time, time_close), lookahead=barmerge.lookahead_on))
tradingDayStart(t) => timestamp(year(t), month(t), dayofmonth(t), 0, 0)
numDaysBetween(t1, t2) =>
diff = math.abs(tradingDayStart(t1) - tradingDayStart(t2))
diff / MILLIS_IN_DAY
tradingDay = isOvernight() ? tradingDayStart(dwmBarTime + MILLIS_IN_DAY) : tradingDayStart(dwmBarTime)
isNewPeriod() =>
var isNew = false
if tradingDay != nz(tradingDay )
isNew := switch anchor
"Session" => na(tradingDay ) or tradingDay > tradingDay
"Week" => makeMondayZero(dayofweek(periodStart)) + numDaysBetween(periodStart, tradingDay) >= 7
"Month" => month(periodStart) != month(tradingDay) or year(periodStart) != year(tradingDay)
"Year" => year(periodStart) != year(tradingDay)
=> false
isNew
srcVWAP = hlc3
var float sumSrc = 0
var float sumVol = 0
if isNewPeriod()
periodStart := tradingDay
sumSrc := 0
sumVol := 0
if not na(srcVWAP) and not na(volume)
sumSrc += srcVWAP * volume
sumVol += volume
vwapValue = sumSrc / sumVol
plot(vwapValue, title="VWAP", color=color.red, linewidth=3)
// =
enableCloud = input.bool(false, "Enable Cloud")
lenn = input.int(20, "Period")
mult = input.float(2.5, "StdDev Multiplier")
tc = input.int(25, "Gauge Size", minval=3)
upColor = input.color(#00ffbb, "Up Color")
downColor = input.color(#ff1100, "Down Color")
basis = ta.sma(close, lenn)
upper1 = basis + ta.stdev(close, lenn) * mult
lower1 = basis - ta.stdev(close, lenn) * mult
// TP
var int position = 0
if long
position := 1
else if short
position := -1
Trapped Traders EBPThe Trapped Traders Indicator is used to predict overall Market bias, with green being longs, and red being shorts.
The autofibs are 0%,25%,50%,and 100%. After an autofib and directional bias is generated, you'll want to look for an entry on a lower time frame somewhere between the 25% and 50% ideally.
A simple trading plan:
Use the indicator on the 4 Hour chart. Wait until you get an autofib. Zoom down to the 5 minute chart and wait for price to reach the 25% retracement. Look for an entry using an entry model of your choice. For example: an engulfing 5 minute bar in the direction of your bias, an order block, fair value gap, or choch in your favor.
This method of trading was introduced to me by Omar Agag. Cheers to prosperity, brother!
Good luck! And happy trading!
COT: CTA POSITIONINGCOT: CTA POSITIONING
A comprehensive Commitment of Traders (COT) indicator that tracks institutional money manager positioning across futures markets. This indicator displays CTA (Commodity Trading Advisor) net positioning as a percentile rank, helping traders identify potential market extremes and contrarian opportunities.
Key Features:
Multi-Market Coverage: Automatically detects and displays COT data for 60+ futures contracts across equity indices, bonds, currencies, cryptocurrencies, metals, energy, grains, livestock, and softs
Percentile Rank Display: Shows CTA net positioning (long minus short) as a percentile over a customizable lookback period (default 156 weeks ≈ 3 years)
Extreme Zones: Visual highlighting of potential reversal zones when CTAs reach positioning extremes (>80th percentile = bearish, <20th percentile = bullish)
Liquidity Analysis Table (optional): Displays detailed positioning breakdown including:
Gross long and short positions
Net positioning
20-day average volume
Net position as % of average daily volume
Estimated days to unwind net position
Methodology:
The indicator pulls CFTC Commitment of Traders data from both Financial Traders (COT3) and Disaggregated (COT2) reports, focusing specifically on leveraged money managers (CTAs/hedge funds). It calculates:
Net Positioning = CTA Longs - CTA Shorts
Net as % of Open Interest
Percentile rank of current net positioning vs. lookback period
Interpretation:
High readings (>80): CTAs are extremely net long - potential bearish reversal signal
Low readings (<20): CTAs are extremely net short - potential bullish reversal signal
Works best as a contrarian indicator on weekly timeframes
Consider liquidity metrics to assess position size relative to market capacity
Settings:
Lookback Period: Adjustable percentile calculation window (default 156 periods)
Show Table: Toggle detailed positioning and liquidity data display
Supported Markets:
Equity Indices (ES, NQ, RTY, YM), Treasuries (ZT, ZF, ZN, ZB, UB), Currencies (6E, 6J, 6B, 6C, 6A), Crypto (BTC, ETH), Metals (GC, SI, HG, PL, PA), Energy (CL, NG, RB, HO, BZ), Grains (ZC, ZW, ZS, ZM, ZL), Livestock (LE, HE, GF), and Softs (SB, CT, KC, CC, OJ)
Note: COT data is released weekly on Fridays and reflects positions as of Tuesday close. This indicator works best on daily or weekly timeframes.
Data sourced from CFTC Commitment of Traders reports via TradingView's COT library.
Time Pattern Analyzer - Multi Mode [fmb]This is a lightweight session-behaviour overlay that helps you spot whether a market tends to move up or down at specific days or times.
- Two analysis modes
Weekday: Breaks performance down by Mon–Fri
Hour of Day: Breaks performance down by 0–23 and can also track a single exact time (hour + minute), like 09:30
- Visual timing markers (optional)
Draws vertical lines on the chart for the selected day(s) or time(s)
Line colour reflects the bar direction: green (up), red (down), grey (neutral)
Fully adjustable width and style (solid, dotted, dashed)
- Flexible “green vs red” definition
Body mode: Close > Open (candle body direction)
Previous close mode: Close > Close (momentum vs prior bar)
- Stats table (optional)
For each day or hour, the table shows:
Count (sample size)
% Green
% Red
Average % move (average return for that bucket)
Table can be positioned anywhere on the chart (top/bottom, left/centre/right)
Use cases
- Quickly identify recurring tendencies like “Mondays are strongest” or “first hour is choppy,” and validate timing ideas with clear counts and averages instead of guesswork.
Note: This tool reports historical tendencies, not predictions. Always account for regime changes, news risk, and liquidity.





















