ETFs Sector PerformanceDisplays a table of the Top 8 performing ETFs over a selected period (1M / 2M / 3M / 6M) to quickly identify industry strength.
Pre-Set Universe (39 ETFs)
ITA — iShares U.S. Aerospace & Defense ETF
DBA — Invesco DB Agriculture Fund
BOTZ — Global X Robotics & Artificial Intelligence ETF
JETS — U.S. Global Jets ETF
XLB — Materials Select Sector SPDR Fund
XBI — SPDR S&P Biotech ETF
PKB — Invesco Dynamic Building & Construction ETF
ICLN — iShares Global Clean Energy ETF
SKYY — First Trust Cloud Computing ETF
DBC — Invesco DB Commodity Index Tracking Fund
XLY — Consumer Discretionary Select Sector SPDR Fund
XLP — Consumer Staples Select Sector SPDR Fund
BLOK — Amplify Transformational Data Sharing ETF
KARS — KraneShares Electric Vehicles & Future Mobility ETF
XLE — Energy Select Sector SPDR Fund
ESPO — VanEck Video Gaming and eSports ETF
XLF — Financial Select Sector SPDR Fund
PBJ — Invesco Dynamic Food & Beverage ETF
ITB — iShares U.S. Home Construction ETF
XLI — Industrial Select Sector SPDR Fund
PAVE — Global X U.S. Infrastructure Development ETF
PEJ — Invesco Dynamic Leisure & Entertainment ETF
LIT — Global X Lithium & Battery Tech ETF
IHI — iShares U.S. Medical Devices ETF
XME — SPDR S&P Metals & Mining ETF
FCG — First Trust Natural Gas ETF
URA — Global X Uranium ETF
PPH — VanEck Pharmaceutical ETF
QTUM — Defiance Quantum Computing & Machine Learning ETF
IYR — iShares U.S. Real Estate ETF
XRT — SPDR S&P Retail ETF
SOXX — iShares Semiconductor ETF
BOAT — SonicShares Global Shipping ETF
IGV — iShares Expanded Tech-Software Sector ETF
TAN — Invesco Solar ETF
SLX — VanEck Steel ETF
IYZ — iShares U.S. Telecommunications ETF
IYT — iShares U.S. Transportation ETF
XLU — Utilities Select Sector SPDR Fund
Multitimeframe
Time separator by @alvaro.alemanfxThis indicator draws vertical lines on your chart at specific times you define.
You can customize the timezone, line style, color, thickness, and number of consecutive bars.
It allows setting a date range for drawing and recycles old lines to avoid exceeding limits.
You can also restrict the lines to appear only within your chosen minimum and maximum timeframes.
S/R Pro – 4-Level Zone-Based Signal Engine v4S/R Pro – 4-Level Zone-Based Signal Engine v4
The indicator combines support/resistance levels, moving averages, and cloud zones to identify trend strength and entry points. On higher timeframes, it helps define market direction, while on lower timeframes it provides buy/sell signals.
EMA + Bollinger + VWAP bySaMAll in one
EMA 20/50/200
BOLLINGER
VWAP
All in one for perfect market watching
S&D Elite Pro Timing V4S&D Pro Elite — Pro Timing (PT)
A clean, signal-first Supply & Demand tool that maps institutional-style zones and prints a compact PT (Pro Timing) label only when a timing setup forms inside an active zone. Minimal UI, no clutter—just zones and timing where they matter.
Why
Some zones hold, some don’t. The trader’s job is to reduce noise. This tool is built to elevate signal-to-noise, remove distractions, and focus execution on the most structured areas of price.
What it does
Maps Supply & Demand zones across multiple timeframes with optional Quality Score (0–100) and opacity tinting.
Pro structures (Rally-Base-Rally / Drop-Base-Drop) via ATR-based impulse/continuation and a tight-base check.
PT labels (buy/sell) appear only when a Pro Timing setup forms in the zone (you choose what “inside” means: close inside / any overlap / wick only / full-body inside).
Mitigation-aware: optionally stop reacting to a zone after any touch, body touch, or a minimum penetration %.
One-switch control: Show Pro Zones master toggle, plus per-TF switches (3m…Weekly).
Alerts: PT Buy / PT Sell.
PT = Pro Timing
A compact price-timing confirmation detected when specific price-action conditions align within an S&D zone. Presented as a single, clean label—no counts or numerals.
How it works (brief)
Zone detection: impulse → base → continuation using ATR thresholds and base compactness; optional rule that the base sits inside the impulse range. Zones project right; broken zones auto-remove.
Quality Score: weighted blend of impulse strength, base tightness, and continuation body, with an inside-base bonus. You can filter out low-score zones and/or tint opacity by quality.
PT inside the zone: the PT label prints only when price meets your chosen zone-touch mode and the internal timing criteria.
Repainting
Forming Zones ON: boxes may change while the higher-TF candle is open (early heads-up by design).
Forming Zones OFF: zones and PT labels use confirmed data for the selected timeframes.
Settings (at a glance)
Pro Zone Options: Show Pro Zones (master), Forming Zones, per-TF toggles (3m…Weekly), Force Lower-TF Aggregation (1m base).
RBR/DBD Filter: Impulse min body × ATR(14), Base max body % of impulse, Base inside prior impulse (on/off), Continuation min body × ATR(14).
Quality Score: toggle, min score filter, opacity tint, adjustable weights (Impulse / Base / Continuation) + inside-base bonus.
PT × Zone Filter: Only show inside zones; trigger mode (Close inside / Overlap / Wick only / Body inside); stop after mitigation (Any touch / Body / Penetration ≥ %).
Visuals: Buy/Sell label colors + text colors; optional text inside zones (TF label, quality).
Recommended starting values
Zone Difference Scale: 1.6–2.0
Impulse min body × ATR: 1.6
Base max body %: 0.40–0.60
Continuation min body × ATR: 1.0–1.2
Min Quality Score: 60
Touch mode: Overlap (any part) for discovery; then tighten to Body inside or Wick only.
Usage tips
Start with 15m / 1h / 4h to build the backbone, add LTFs once structure is clear, and treat PT as timing confirmation inside structure—combine with trend/session/context and manage risk.
Script by Loganscottfx.
Educational tool; not financial advice. Markets involve risk.
Published as an indicator (not a strategy).
S&D Elite Pro Timing V4S&D Pro Elite — Pro Timing (PT)
A clean, signal-first Supply & Demand tool that maps institutional-style zones and prints a compact PT (Pro Timing) label only when a timing setup forms inside an active zone. Minimal UI, no clutter—just zones and timing where they matter.
Why
Some zones hold, some don’t. The trader’s job is to reduce noise. This tool is built to elevate signal-to-noise, remove distractions, and focus execution on the most structured areas of price.
What it does
Maps Supply & Demand zones across multiple timeframes with optional Quality Score (0–100) and opacity tinting.
Pro structures (Rally-Base-Rally / Drop-Base-Drop) via ATR-based impulse/continuation and a tight-base check.
PT labels (buy/sell) appear only when a Pro Timing setup forms in the zone (you choose what “inside” means: close inside / any overlap / wick only / full-body inside).
Mitigation-aware: optionally stop reacting to a zone after any touch, body touch, or a minimum penetration %.
One-switch control: Show Pro Zones master toggle, plus per-TF switches (3m…Weekly).
Alerts: PT Buy / PT Sell.
PT = Pro Timing
A compact price-timing confirmation detected when specific price-action conditions align within an S&D zone. Presented as a single, clean label—no counts or numerals.
How it works (brief)
Zone detection: impulse → base → continuation using ATR thresholds and base compactness; optional rule that the base sits inside the impulse range. Zones project right; broken zones auto-remove.
Quality Score: weighted blend of impulse strength, base tightness, and continuation body, with an inside-base bonus. You can filter out low-score zones and/or tint opacity by quality.
PT inside the zone: the PT label prints only when price meets your chosen zone-touch mode and the internal timing criteria.
Repainting
Forming Zones ON: boxes may change while the higher-TF candle is open (early heads-up by design).
Forming Zones OFF: zones and PT labels use confirmed data for the selected timeframes.
Settings (at a glance)
Pro Zone Options: Show Pro Zones (master), Forming Zones, per-TF toggles (3m…Weekly), Force Lower-TF Aggregation (1m base).
RBR/DBD Filter: Impulse min body × ATR(14), Base max body % of impulse, Base inside prior impulse (on/off), Continuation min body × ATR(14).
Quality Score: toggle, min score filter, opacity tint, adjustable weights (Impulse / Base / Continuation) + inside-base bonus.
PT × Zone Filter: Only show inside zones; trigger mode (Close inside / Overlap / Wick only / Body inside); stop after mitigation (Any touch / Body / Penetration ≥ %).
Visuals: Buy/Sell label colors + text colors; optional text inside zones (TF label, quality).
Recommended starting values
Zone Difference Scale: 1.6–2.0
Impulse min body × ATR: 1.6
Base max body %: 0.40–0.60
Continuation min body × ATR: 1.0–1.2
Min Quality Score: 60
Touch mode: Overlap (any part) for discovery; then tighten to Body inside or Wick only.
Usage tips
Start with 15m / 1h / 4h to build the backbone, add LTFs once structure is clear, and treat PT as timing confirmation inside structure—combine with trend/session/context and manage risk.
Aslan - Signals, Overlays & PA Toolkit [6.4]SIGNALS & OVERLAYS INDICATOR
Next-generation trading signals powered by advanced algorithms, paired with precision overlays for added confidence.
Features:
3 Signal Models: Contrarian, Confirmation & Kernel
6 Asset-Class Specific Signal Filters
Auto Fibonacci Retracements
Dynamic Kernel-Based Support & Resistance
Trend Status Meter (Bar Coloring)
Volatility Bands (Standard Deviation)
PRICE ACTION TOOLKIT
Comprehensive price action analysis designed to highlight key market POIs and institutional levels with clarity.
Features:
Full Multi-Timeframe Functionality
Institutional Volumized Supply & Demand
Market Structure (BOS, MSS, CHoCH, EQL, EQH)
Displacement & Inducement Zones
Fair Value Gaps & Liquidity Mapping
Key Levels & Session Levels
Point of Control & Dealing Ranges
Equilibrium Tracking
Smart Trendlines & Trendline Signals
Trend Following S/R Fibonacci StrategyTrend Following S/R Fibonacci Strategy
Trend Following S/R Fibonacci Strategy
Aslan - Signals, Overlay & PA Toolkit [6.4]⟪ SIGNALS AND OVERLAYS INDICATOR ⟫
Cutting-edge trading signals driven by advanced algorithms, as well as helpful overlays to give extra confidence.
Three signal models (Contrarian, Confirmation and Kernel)
6 Signal filters each built for a separate asset class
Auto Fibonacci retracement
Dynamic kernel S&R
Trend status meter (Bar color)
Volatility bands (Standard Deviation)
⟪ PRICE ACTION TOOLKIT ⟫
Effectively analyzes complex price action so you don’t miss key market POIs.
FULL Multi timeframe functionality
Institutional Volumised S&D
Market structure (BOS, MSS, CHoCH, EQL, EQH)
Displacement
Inducement zones
Fair value gaps
Liquidity
Key levels
Session levels
Point of control
Dealing range
Equillibrium
Trendlines & Trendline signals
DaDaSto Current / Previous D, W, M High/Low
This script plots the current and previous Month/Week/Day High and Low. It allows for custom color and label inputs.
The original script credit to @The-Hunter
Total Return (divi reivested)Total Return (Dividends Reinvested) — Price Scale
This indicator overlays a Total Return price line on the chart. It shows how the stock would have performed if all dividends had been reinvested back into the stock (buying fractional shares) rather than taken as cash.
The line starts exactly at the price level of the first visible bar on your chart and moves in the same price units as the chart (not indexed to 100).
Until the first dividend inside the visible window, the Total Return line is identical to the price. From the first dividend onward, it gradually diverges upwards, reflecting the effect of reinvested payouts.
Settings:
Reinvest at Open / Close — Choose whether reinvestment uses the bar’s open or close price.
Apply effect on the next bar — If enabled, reinvestment shows up from the bar after the dividend date (common in practice).
Show dividend markers — Optionally plots labels where dividend events occur.
Line width — Adjusts the thickness of the plotted Total Return line.
Use case:
This tool is useful if you want to compare plain price performance with true shareholder returns including dividends. It helps evaluate dividend stocks (like BTI, T, XOM, etc.) more realistically.
STC Oscillator [Panel]📈 STC Oscillator – Short Description
This indicator plots the STC (Schaff Trend Cycle) line, ranging between 0 and 100, in a dedicated sub-panel.
It is intended to be used together with the main overlay script:
➡ "STC Advanced Signals with Early Warnings "
The oscillator provides the internal basis for all signals, such as:
Early warning pivots
Threshold confirmations
Candlestick alignment
Note:
The main overlay indicator does not show the oscillator line itself, in order to keep the price chart clean. Use this sub-panel version to monitor oscillator trends, divergence, or cycle phases directly.
STC Advanced Signals with Early Warnings [Overlay]🧠 STC Advanced Signals with Early Warnings – Indicator Description
Purpose:
The “STC Advanced Signals” indicator is designed for active traders (day traders, scalpers, swing traders) who require early signal detection without relying solely on one single indicator. It offers a combination of momentum shifts, candlestick confirmation, and visual guidance for high-quality trade setups.
🔍 Core Components
1. Early Warning Arrows (Orange)
Detected using pivot logic based on the internal STC oscillator curve.
Appear 1–3 bars before potential trend shifts.
Warning only – no execution signal yet.
Can alert traders to prepare for setups in advance.
2. Confirmed Signals (Gold Arrows)
Appear after threshold breakouts of the STC oscillator:
Up Arrow: STC crosses above thresholdUp (default: 25).
Down Arrow: STC crosses below thresholdDown (default: 75).
These are execution-level signals and often indicate momentum breakout or reversal confirmation.
3. Tiny Pre-Confirmation Circles (Yellow)
Optional component (can be toggled on/off).
Visualize potential micro-cycles before full signal confirmation.
Useful for anticipating trend continuation or delay.
4. Candlestick Pattern Recognition
Auto-detects 5 reliable patterns, printed one bar after confirmation:
HA = Hammer
SS = Shooting Star
DJ = Doji
EB = Engulfing Bullish
ES = Engulfing Bearish
Labels are plotted above candles and the bar is highlighted yellow.
Ideal for confirming signals via price action structure.
🧰 Chart Setup Recommendations
Best used on M5, M15 (Scalping/Intraday), or H1 (Swing).
Suggested workflow:
Observe orange Early Warning arrow
Wait for confirmed yellow/gold arrow
Confirm with candlestick pattern
Optionally add volume, trend filters (e.g., EMA200)
📊 Technical Notes
This script does not display the STC line itself.
To view the oscillator line (ranging 0–100), add the companion script:
➤ STC Oscillator
This panel-based indicator must be attached in a separate sub-window and mirrors the official cTrader STC calculation.
🛡 Risk Management Suggestions
Always use stop loss: e.g., below hammer low.
Max 0.5% account risk per trade.
Combine multiple signals before executing.
Avoid trading during high-impact news unless backtested.
Multi-Timeframe Trend Table By HarryTradingView table that shows live trend status (Bullish/Bearish) across multiple timeframes: Monthly, Weekly, Daily, 4H, 1H.
Price Change % & Pips by rajib127📊 Multi-Timeframe Price Change Table — Pips & Percentage Tracker
This custom-built TradingView indicator provides a clean and detailed table showing pip and percentage changes across multiple timeframes. It helps traders quickly assess short-term and mid-term price momentum by visualizing how much the price has changed over different intervals.
🔍 Features:
Displays pip change and percentage change side-by-side.
Covers a wide range of timeframes:
• Minute-based: M01, M02, M03, M04, M05, M10, M15, M20, M25, M30, M40, M50
• Hour-based: H01, H02, H03
Color-coded values for quick visual interpretation:
• 🟢 Positive movement (price increase)
• 🔴 Negative movement (price decrease)
Ideal for scalpers, day traders, and short-term swing traders.
🎯 Use Case:
This tool is designed to help you:
Detect early momentum shifts
Spot short-term trends or reversals
Confirm trade entries or exits based on recent price behavior
🛠 Customizable:
The script can be further extended or customized to include different timeframes, alert conditions, or integrate with other strategies.
Price Change % by rajib127Price Change % by rajib127
🎯 Key Features:
• Real-Time Multi-Timeframe Analysis - Track price changes across 15 different time periods (1 minute to 3 hours)
• Smart Color Coding - Green (profit), Red (loss), White (neutral) for instant visual recognition
• Highly Customizable Display - Toggle any timeframe on/off, adjust table position, size, and colors
• Universal Compatibility - Works on any chart timeframe without recalculation issues
• Clean Table Interface - Professional-looking data table that doesn't clutter your chart
📊 Supported Timeframes:
• Short-term: 1min, 2min, 3min, 4min, 5min, 10min
• Medium-term: 15min, 20min, 25min, 30min, 40min, 50min
• Long-term: 1 hour, 2 hours, 3 hours
⚙️ Customization Options:
• Individual Control - Enable/disable each timeframe independently
• Flexible Positioning - 9 different table positions (top, middle, bottom × left, center, right)
• Size Adjustment - 4 text size options (tiny, small, normal, large)
• Color Themes - Customizable background and text colors
💡 Perfect For:
• Day Traders - Quick percentage overview for scalping decisions
• Swing Traders - Monitor momentum across multiple timeframes
• Risk Management - Instant view of price volatility patterns
• Market Analysis - Compare short vs long-term price movements
🔧 Technical Advantages:
• 1-Minute Data Precision - Uses direct 1-minute data for accurate calculations
• No Lag Issues - Real-time updates without historical data delays
• Memory Efficient - Lightweight code that doesn't slow down your charts
• Error-Free Calculations - Handles all edge cases and data availability issues
📈 Use Cases:
• Monitor breakout strength across multiple timeframes
• Identify trending vs ranging market conditions
• Set alerts based on percentage thresholds
• Compare current volatility with recent periods
• Make informed entry/exit decisions
Installation: Simply add to chart and customize settings in the indicator panel. Works immediately on any symbol and timeframe!
MTF-Hidden Breaker Blocks TrackerThe MT-Hidden Breaker Blocks Tracker is a powerful indicator designed for SMC traders. Rooted in Smart Money Concepts (SMC), it uncovers institutional order flow by identifying Order Blocks (OB), Breaker Blocks (BB), and Partial Breaker Blocks (PBB) across multiple timeframes, revealing hidden liquidity zones for precise market structure analysis.
═══════ Key Features ═══════
Smart Money Detection: Order Blocks (OB): Pinpoints key candles before major market moves, marking institutional entry zones.
Breaker Blocks (BB): Detects OBs aligned with Fair Value Gaps (FVGs), signaling liquidity zones.
Partial Breaker Blocks (PBB): Tracks partially mitigated BBs for reaccumulation or distribution setups.
The MT-Hidden Breaker Blocks Tracker features a REPLAY-MODE that allows traders to analyze historical Order Blocks (OB), Breaker Blocks (BB), and Partial Breaker Blocks (PBB) with Fair Value Gaps (FVGs) directly on the current timeframe, enabling precise backtesting of SMC strategies.
Multi-Timeframe Liquidity Analysis: 70 pre-configured timeframes across five groups:
Group 1: Minutes & Hours (5m–4h)
Group 2: Hours (5h–23h)
Group 3: Days (1D–19D)
Group 4: Weeks (1W–12W)
Group 5: Months (1M–12M)
Group 6: 19 customizable timeframes for tailored strategies.
Advanced SMC Tools: FVG Filter: Enhances BB/PBB signals with 1–5 FVGs for high-probability setups.
Dynamic Mitigation: Monitors block mitigation in real-time with adjustable thresholds.
Columnar Confluence Display: Visualizes liquidity zones in timeframe-specific columns, highlighting multi-timeframe confluence.
Non-24/7 Market Support: Handles gaps in equities and forex markets.
Auto-Current Timeframe: Displays analysis for the chart’s active timeframe.
Visual Customization: Configurable bull/bear block colors.
Adjustable borders, widths, and timeframe labels with FVG counts.
Extended box projections for forecasting price action.
Clean, non-obtrusive overlay for seamless chart integration.
═══════ How It Works ═══════
The MT-HiddenLiquidityTracker leverages SMC principles to detect institutional order flow by analyzing Order Blocks and their evolution into Breaker or Partial Breaker Blocks. It scans multiple timeframes to uncover liquidity pools, using FVGs to filter high-probability signals. The columnar display highlights confluence zones, making it easy to spot where smart money activity converges, ideal for SMC trading strategies.
═══════ How to Use ═══════
Select Timeframe Group: Choose Current, Groups 1–5, or Custom timeframes.
Configure Block Types: Enable OB-only, BB/PBB-only, or all blocks.
Set FVG Filter: Specify 1–5 FVGs for BB/PBB detection (optional).
Customize Visuals: Adjust colors, labels, borders, and box extensions.
Tune Detection: Set OB sensitivity and mitigation thresholds.
═══════ Why It Stands Out ═══════
Unlike generic indicators, the MT-Hidden Breaker Blocks Tracker combines SMC-based liquidity hunting with multi-timeframe analysis, offering a unique approach to institutional order flow. Its FVG filtering, extensive timeframe options, and columnar confluence display provide clarity for ICT/SMC traders seeking high-probability setups in forex, crypto, and indices.
═══════ Best Practices ═══════
Prioritize higher-timeframe blocks (Groups 3–6) for major liquidity zones.
Combine with volume or price action for signal confirmation.
Use FVG counts to assess block strength.
Target confluence zones for stronger trade setups.
═══════ Performance Notes ═══════
Optimized for real-time analysis with efficient rendering.
Manages visuals within TradingView’s limits.
Supports historical analysis up to 10,000 bars.
Built in Pine Script v6, Beta version.
═══════ Access ═══════
This is an invite-only script.
Contact LiquidityForgeSMC via TradingView’s messaging system for details.
═══════ Disclaimer ═══════
This indicator is for educational and analytical purposes only and does not constitute financial, investment, or trading advice. Always conduct your own analysis before trading. The indicator is in active development, with additional SMC features planned for future updates.
INSTRUCTIONS: www.youtube.com
Most-Crossed Channels (FAST • Top-K • Flexible Window)//@version=5
indicator("Most-Crossed Channels (FAST • Top-K • Flexible Window)", overlay=true, max_boxes_count=60, max_labels_count=60)
// ---------- Inputs ----------
windowMode = input.string(defval="Last N Bars", title="Scan Window", options= )
barsLookback = input.int(defval=800, title="If Last N Bars → how many?", minval=100, maxval=5000)
sess = input.session(defval="0830-1500", title="Session (exchange tz)")
sessionsBack = input.int(defval=1, title="If Last N Sessions → how many?", minval=1, maxval=10)
minutesLookback = input.int(defval=120, title="If Last X Minutes → how many?", minval=5, maxval=24*60)
sinceTs = input.time(defval=timestamp("2024-01-01T09:30:00"), title="Since time (chart tz)")
channelsK = input.int(defval=3, title="How many channels (Top-K)?", minval=1, maxval=10)
binTicks = input.int(defval=8, title="Bin width (ticks)", minval=1, maxval=200) // NQ tick=0.25; 8 ticks = 2.0 pts
minSepTicks = input.int(defval=12, title="Min separation between channels (ticks)", minval=1, maxval=500)
countSource = input.string(defval="Wick (H-L)", title="Count bars using", options= )
drawMode = input.string(defval="Use Candle", title="Draw channel as", options= )
anchorPart = input.string(defval="Body", title="If Use Candle → part", options= )
fixedTicks = input.int(defval=8, title="If Fixed Thickness → thickness (ticks)", minval=1, maxval=200)
extendBars = input.int(defval=400, title="Extend to right (bars)", minval=50, maxval=5000)
showLabels = input.bool(defval=true, title="Show labels with counts")
// ---------- Colors ----------
colFill = color.new(color.blue, 78)
colEdge = color.new(color.blue, 0)
colTxt = color.white
// ---------- Draw caches (never empty) ----------
var box g_boxes = array.new_box()
var label g_lbls = array.new_label()
// ---------- Helpers ----------
barsFromMinutes(mins, avgBarMs) =>
ms = mins * 60000.0
int(math.max(2, math.round(ms / nz(avgBarMs, 60000.0))))
// First (oldest) candle in whose selected part contains `level`
anchorIndexForPrice(level, useBody, scanNLocal) =>
idx = -1
for m = 1 to scanNLocal - 1
k = scanNLocal - m // oldest → newest
o = open
c = close
h = high
l = low
topZ = useBody ? math.max(o, c) : h
botZ = useBody ? math.min(o, c) : l
if level >= botZ and level <= topZ
idx := k
break
idx
// ---------- Window depth ----------
inSess = not na(time(timeframe.period, sess))
sessStartIdx = ta.valuewhen(inSess and not inSess , bar_index, 0)
sessStartIdxN = ta.valuewhen(inSess and not inSess , bar_index, sessionsBack - 1)
sinceStartIdx = ta.valuewhen(time >= sinceTs and time < sinceTs, bar_index, 0)
avgBarMs = ta.sma(time - time , 50)
depthRaw = switch windowMode
"Last N Bars" => barsLookback
"Today (session)" => bar_index - nz(sessStartIdx, bar_index)
"Last N Sessions" => bar_index - nz(sessStartIdxN, bar_index)
"Last X Minutes" => barsFromMinutes(minutesLookback, avgBarMs)
"Since time" => bar_index - nz(sinceStartIdx, bar_index)
avail = bar_index + 1
scanN = math.min(avail, math.max(2, depthRaw))
scanN := math.min(scanN, 2000) // performance cap
// ---------- Early guard ----------
if scanN < 2
na
else
// ---------- Build price histogram (O(N + B)) ----------
priceMin = 10e10
priceMax = -10e10
for j = 0 to scanN - 1
loB = math.min(open , close )
hiB = math.max(open , close )
lo = (countSource == "Body only") ? loB : low
hi = (countSource == "Body only") ? hiB : high
priceMin := math.min(priceMin, nz(lo, priceMin))
priceMax := math.max(priceMax, nz(hi, priceMax))
rng = priceMax - priceMin
tick = syminfo.mintick
binSize = tick * binTicks
if na(rng) or rng <= 0 or binSize <= 0
na
else
// Pre-allocate fixed-size arrays (never size 0)
MAX_BINS = 600
var float diff = array.new_float(MAX_BINS + 2, 0.0) // +2 so iH+1 is safe
var float counts = array.new_float(MAX_BINS + 1, 0.0)
var int blocked = array.new_int(MAX_BINS + 1, 0)
var int topIdx = array.new_int()
binsN = math.max(1, math.min(MAX_BINS, int(math.ceil(rng / binSize)) + 1))
// reset slices
for i = 0 to binsN + 1
array.set(diff, i, 0.0)
for i = 0 to binsN
array.set(counts, i, 0.0)
array.set(blocked, i, 0)
array.clear(topIdx)
// Range adds
for j = 0 to scanN - 1
loB = math.min(open , close )
hiB = math.max(open , close )
lo = (countSource == "Body only") ? loB : low
hi = (countSource == "Body only") ? hiB : high
iL = int(math.floor((lo - priceMin) / binSize))
iH = int(math.floor((hi - priceMin) / binSize))
iL := math.max(0, math.min(binsN - 1, iL))
iH := math.max(0, math.min(binsN - 1, iH))
array.set(diff, iL, array.get(diff, iL) + 1.0)
array.set(diff, iH + 1, array.get(diff, iH + 1) - 1.0)
// Prefix sum → counts
run = 0.0
for b = 0 to binsN - 1
run += array.get(diff, b)
array.set(counts, b, run)
// Top-K with spacing
sepBins = math.max(1, int(math.ceil(minSepTicks / binTicks)))
picks = math.min(channelsK, binsN)
if picks > 0
for _ = 0 to picks - 1
bestVal = -1e9
bestBin = -1
for b = 0 to binsN - 1
if array.get(blocked, b) == 0
v = array.get(counts, b)
if v > bestVal
bestVal := v
bestBin := b
if bestBin >= 0
array.push(topIdx, bestBin)
lB = math.max(0, bestBin - sepBins)
rB = math.min(binsN - 1, bestBin + sepBins)
for bb = lB to rB
array.set(blocked, bb, 1)
// Clear old drawings safely
while array.size(g_boxes) > 0
box.delete(array.pop(g_boxes))
while array.size(g_lbls) > 0
label.delete(array.pop(g_lbls))
// Draw Top-K channels
sz = array.size(topIdx)
if sz > 0
for t = 0 to sz - 1
b = array.get(topIdx, t)
level = priceMin + (b + 0.5) * binSize
useBody = (drawMode == "Use Candle")
anc = anchorIndexForPrice(level, useBody, scanN)
anc := anc == -1 ? scanN - 1 : anc
oA = open
cA = close
hA = high
lA = low
float topV = na
float botV = na
if drawMode == "Use Candle"
topV := (anchorPart == "Body") ? math.max(oA, cA) : hA
botV := (anchorPart == "Body") ? math.min(oA, cA) : lA
else
half = (fixedTicks * tick) * 0.5
topV := level + half
botV := level - half
left = bar_index - anc
right = bar_index + extendBars
bx = box.new(left, topV, right, botV, xloc=xloc.bar_index, bgcolor=colFill, border_color=colEdge, border_width=2)
array.push(g_boxes, bx)
if showLabels
txt = str.tostring(int(array.get(counts, b))) + " crosses"
lb = label.new(left, topV, txt, xloc=xloc.bar_index, style=label.style_label_down, textcolor=colTxt, color=colEdge)
array.push(g_lbls, lb)
Sniper Swing — Short TF (Clean Signals) [v6]📘 How to Use the Sniper Swing Indicator
1. What It Does
It looks for short-term swing breaks in price.
It uses an oscillator (RSI/Stoch) and swing pivots to confirm moves.
It gives you 3 clear signals only:
BUY → Enter long (expecting price to go up).
Gay bear → Enter short (expecting price to go down).
EXIT → Close your trade (long or short).
Candles also change color:
Green = in a BUY trade.
Red = in a Gay bear trade.
Neutral (gray/none) = no trade.
2. When to Use
Works best on short timeframes (1m–5m) for scalping/intraday.
Use on liquid markets (MES/ES, NQ, SPY, BTC, ETH).
Avoid dead hours with no volume (like overnight futures lull or midday chop).
3. How to Trade With It
A. BUY trade
Wait for a BUY triangle below the candle.
Confirm:
Candle turned green.
Price broke a recent swing high.
Oscillator shows strength (indicator does this for you).
Enter long at the close of that candle.
Place your stop-loss:
At the yellow stop line (auto trailing stop), or
Just below the last swing low.
Stay in while candles are green.
Exit when:
An orange X appears, or
Price hits your stop.
B. Gay bear (short) trade
Wait for a Gay bear triangle above the candle.
Confirm:
Candle turned red.
Price broke a recent swing low.
Oscillator shows weakness.
Enter short at the close of that candle.
Place stop-loss:
At the yellow stop line, or
Just above the last swing high.
Stay in while candles are red.
Exit on an orange X or stop hit.
4. Pro Tips for New Traders
Only take one signal at a time → don’t double dip.
Quality > Quantity: ignore weak, sideways markets. Best signals happen during trends.
Start small: trade micros (MES) or small position sizes.
Use alerts: set TradingView alerts for BUY/Gay bear/EXIT so you don’t miss setups.
Think of the indicator like a navigator: it tells you the likely path, but you’re the driver → always manage risk.
5. Quick Mental Checklist
Signal? (BUY or Gay bear triangle)
Confirmed? (candle color + swing break)
Enter? (on close)
Stop? (yellow line or swing)
Exit? (orange X or stop)
EMA Cross Suite (8/20/50/200) GOLDEN/DEATH by Carlos Chavez📜 Short Description (max 160 characters)
“Advanced EMA crossover system with FAST, MID, GOLDEN, and DEATH signals. Includes alerts, optimized visuals, and full customization.”
📄 Full Description (Paste in the box)
📌 Overview
The Embilletados • EMA Cross Suite is a professional trading indicator designed for intraday traders, scalpers, and swing traders.
It provides clear crossover signals using 4 EMAs combined with optimized visualization and built-in alerts to help you catch opportunities faster.
✨ Key Features:
🔹 4 configurable EMAs → 8, 20, 50, and 200.
🔹 Instant visual signals with colored labels:
FAST CROSS (8/20) → Quick momentum shifts.
MID CROSS (20/50) → Trend confirmation signals.
GOLDEN CROSS (50/200) → Strong bullish trend signals.
DEATH CROSS (50/200) → Strong bearish trend signals.
🔹 Built-in alerts → Get notified instantly for all crossover events.
🔹 Optimized visualization → Clean and easy-to-read interface.
🔹 Highly customizable → Enable/disable signals, labels, colors, and alerts according to your strategy.
📊 Recommended Timeframes:
10-minute charts → Best for intraday setups.
1-hour charts → Ideal for swing trading and trend confirmation.
🚀 How to Use:
Add the indicator to your chart.
Set up alerts for the desired crossovers: FAST, MID, GOLDEN, or DEATH.
Trade confidently using clear visual confirmations and real-time notifications.
🌟 Perfect for:
✅ Intraday traders
✅ Scalpers
✅ Swing traders
✅ Trend-following strategies
Liquidity Levels (Buyside/Sellside , EQH/EQL , PDH/PDL ,PWH/PWL)Unlock the Hidden Market Structure with Advanced Liquidity Detection.
The Liquidity Concept indicator is a sophisticated, all-in-one toolkit designed for traders . It automatically identifies and visualizes key liquidity zones, equal highs/lows, and multi-timeframe levels, providing a significant edge in anticipating potential market movements and breakouts.
🔍 Core Features:
Smart Liquidity Zones:
Buyside Liquidity (BSL ): Detects and marks significant high clusters where stop losses are likely clustered. A break above these levels often triggers a rapid move to capture liquidity.
Sellside Liquidity (SSL) : Pinpoints significant low clusters. A break below can signal a sweep of liquidity before a potential reversal or continuation.
Customizable Sensitivity: Adjust the detection length and margin to fine-tune the indicator for any asset or timeframe.
Liquidity Voids:
Visualizes price gaps that represent a lack of trading activity (liquidity voids). These zones often act as magnets for price, filling in before a trend continues.
Equal Highs & Lows (EQH/EQL):
Automatically draws and labels significant equal highs and lows, which are crucial for identifying breakout and rejection points. Includes options to clear levels once they are breached.
Multi-Timeframe Perspective:
Overlays key levels from higher timeframes (Daily, Weekly, Monthly) directly onto your chart, including Previous Highs (PDH/PWH/PMH) and Previous Lows (PDL/PWL/PML)
⚙️ Fully Customizable:
Tailor every aspect of the indicator to fit your trading style and chart aesthetics:
Control the colors, transparency, and visibility of all elements.
Choose between "Present" mode for active levels or "Historical" mode for analysis.
Adjust line styles and text for perfect chart integration.
Gain a deeper understanding of where the market is likely to go next. Add the Liquidity Concept indicator to your chart today and start trading the hidden levels that move the market.
Opening Range Suite by SBSniperOpening Range Suite
An all-in-one opening-range tool suite. It draws the 30-second, 5-minute, and 30-minute opening ranges for the AM session (09:30 NY). Each range is highlighted with a rectangle (high/low with midpoint) and can display a full pack of projection levels.
⸻
What it draws
• AM 09:30 ORs: 30s, 5m, 30m ranges.
• Midpoint line inside each box.
• Projections from the opening range (measured both High→Low and Low→High) at:
−0.5, −1, −1.5, −2, −2.5, −3, −3.5, −4.
• Text labels inside rectangles (fixed text):
AM — “OR 30sec / OR 5min / OR 30min”; PM — “PM 30sec / PM 5min / PM 30min”.
⸻
Smart behavior
• Today always extends to the current bar (so the current session’s box grows with price/time).
• Previous 5 days of each selected range are shown and, by default, extend to 12:00 NY for AM and 16:00 NY for PM (2.5h span).
Toggle available to extend previous 5 out to the current bar instead.
• Projection day cap: You choose how many recent days (including today) draw projection lines. This prevents chart clutter and avoids TradingView object limits.
• Weekend skip: Automatically ignores Saturdays and Sundays based on New York time.
• Single label toggle: Turn all labels on/off; styling and text are fixed for clarity and consistency.
⸻
How ranges are calculated
• The script anchors to New York local time and detects:
• AM session: 09:30 → grabs the 30s/5m/30m bar(s) that open at 09:30:00 NY.
• Each range uses the bar’s high/low, draws a rectangle spanning the selected time window, and plots the midpoint.
⸻
Notes & best practices
• The 30-second OR requires a symbol/data plan that provides 30-second bars. If your feed doesn’t have 30s, keep the 30s toggles off and use 5m/30m.
• Use on intraday charts. The tool relies on bar times to align with NY session opens.
• For non-US symbols or 24/7 markets, NY anchoring still works; just be aware that “open” is tied to 09:30 New York time.