Manipulation Candle (RIC) V0.2Interpretation and Trading Use
Boxed Candles: Represent 15-minute periods with unusually high range relative to daily volatility. These may signal:
Market manipulation (e.g., stop hunts or fakeouts).
Breakouts, reversals, or high-impact news.
Entry/exit points in strategies focusing on volatility expansion.
No Boxes: Indicates normal or low-volatility candles (range < threshold).
Multi-Timeframe Analysis: On lower timeframes (e.g., 5-min), boxes encompass multiple bars. On higher (e.g., 1-hour), they highlight specific 15-min segments.
Example: On a volatile stock like TSLA, a 0.2 multiplier might highlight candles during earnings releases, aiding in spotting trading opportunities.
Limitations and Considerations
Drawing Limits: TradingView caps drawing objects at ~500 per script. On long histories, older boxes may not load—zoom in or reduce chart bars.
Data Availability: Requires 15-minute and daily data; may not work on illiquid symbols or non-standard charts (e.g., Renko).
Real-Time Delays: Boxes appear only after 15-min closes; no intra-bar drawing.
No Alerts Built-In: Add custom alerts via TradingView's alert system (e.g., on condition changes).
Performance: Efficient, but on very low timeframes with long history, it may use more resources due to persistent boxes.
Customization: For extensions (e.g., labels, multiple timeframes), modify the code carefully in Pine Script® v6 to avoid errors.
Version History
V0.2: Added persistent historical boxes; refined new candle detection.
Future Updates: Potential additions like box limits or multi-multiplier support. Check for updates in the script comments.
If you encounter issues or need customizations, refer to TradingView's Pine Script® documentation or community forums. For error-free extensions in Pine Script® v6, ensure proper variable scoping, type declarations, and testing on historical data.
Chỉ báo và chiến lược
Rango Pre-Apertura (8am-9am)Overview
This indicator is specifically designed for the index trading community, with a focus on US30 (Dow Jones). It centers on the concepts of "Capital Injection" and "Opening Traps," automatically identifying the most critical liquidity levels prior to the New York Open (09:30 AM EST).
Indicator Logic
The script operates on the premise that the range formed between 08:00 AM and 09:00 AM EST acts as a key accumulation or manipulation zone before the official session. By marking these levels, traders can visualize where institutional algorithms are likely to seek liquidity before the day’s primary expansive move begins.
Key Features
08:00 - 09:00 AM Range: Automatically calculates and projects the exact High and Low of this pre-market window.
Previous Day Levels (PDH/PDL): Identifies the Previous Day High and Low as primary zones for External Liquidity (BSL/SSL).
Visual Clarity: Lines are projected only until 01:00 PM EST to keep the chart clean for post-session analysis.
Professional Styling: Uses non-continuous plots to avoid visual noise and diagonal line "bleeding" between trading days.
How to Trade with this Script
Mapping: Identify whether the price opens above or below the 8:00 AM range.
The Trap: Look for liquidity sweeps (Stop Runs) of the marked lines exactly at 09:30 AM.
Confirmation: Combine this indicator with price action to detect "Force Invalidations" (Engulfing patterns) at H1 or H4 Points of Interest (POI).
Portfolio P&L Table 10 SlotsOverview
This indicator displays a compact, Excel-style position P&L table directly on your TradingView chart. It is designed to help traders track unrealized profit/loss for a manually-entered position and ensure the calculations only apply to the symbols you actually trade, preventing confusion when switching between tickers.
The script is symbol-aware: it checks the current chart symbol against up to 10 user-defined position slots and shows P&L only when a match is found.
Core Concept
Most P&L scripts on TradingView rely on a single set of inputs (average price, quantity), which remains active even when the user changes chart symbols. That can lead to incorrect P&L displays on instruments where no position exists.
This indicator solves that by combining:
Symbol matching logic (ticker / exchange:ticker / base ticker normalization)
Slot-based position storage (up to 10 positions)
Dynamic real-time P&L calculations driven by the chart’s live price
As a result, the table behaves like a “position panel” that follows the chart, while respecting your actual holdings list.
Matching & Display Logic
Symbol Detection
The indicator compares the current chart symbol to each slot’s symbol using multiple matching methods to reduce false mismatches:
Full symbol (EXCHANGE:TICKER)
Ticker only (TICKER)
Normalized “base ticker” extraction (useful when your chart format differs from inputs)
Position Selection
The first matching slot is selected and displayed.
If no slot matches, the table shows “No position for this symbol” and does not output P&L values.
P&L Calculation Logic
When a valid slot is matched and its values are valid:
Unrealized Gross P&L
Long: (Last Price − Avg Price) × Quantity
Short: (Avg Price − Last Price) × Quantity (handled via direction multiplier)
Unrealized Net P&L (optional)
If fees are enabled, the script subtracts the slot’s total fees from gross P&L.
P&L %
Calculated relative to average price, direction-adjusted for long/short positions.
Breakeven Price
Without fees: breakeven = average price
With fees: breakeven is adjusted using fees / quantity and direction.
The table updates automatically with market movement because all values are recalculated from the chart’s current price.
Inputs and Defaults
General
Include Fees? (default: Off)
Text Size
Table Position (Top/Bottom, Left/Right)
Slots (1 → 10)
Each slot contains:
Symbol (example formats: NVTS, NASDAQ:NVTS, NYSE:PATH)
Side (Long / Short)
Average Price
Quantity
Total Fees (optional; applied only when “Include Fees” is enabled)
Colors (Fully Customizable)
The table supports user-defined colors for:
Header text/background
Body text/background
Positive P&L color
Negative P&L color
Neutral/no-position color
This allows you to match the table visually to any chart theme.
The indicator is intended for :
Quick P&L visibility while charting
Avoiding accidental P&L “carry over” when switching symbols
Tracking a shortlist of positions without external spreadsheets
If you trade more than 10 tickers regularly, the script can be extended further using the same slot architecture.
Limitations
Values are unrealized and based on the chart’s price (close/last available feed).
The script does not track multiple lots per symbol automatically; each slot represents a single consolidated position (avg + total qty).
Disclaimer
This script is provided for educational and analytical purposes only. It does not constitute financial advice, investment recommendations, or an invitation to trade. Trading involves risk, and past performance does not guarantee future results. Always verify your position data and calculations independently before making trading decisions.
Volume-Weighted Fibonacci PivotThis indicator automatically plots dynamic Fibonacci retracement and extension levels based on a volume-weighted pivot point within a user-defined lookback period or date range. It intelligently calculates a central "pivot" price biased toward high-volume bars, then draws symmetric levels both upward (extensions) and downward (retracements) for balanced confluence analysis.
How It Works (Technical Methodology)
Lookback Period Determination
Multiple filter modes control the data range used for calculations:
"Last X Bars": Fixed number of recent bars (default 400, max 4999).
"Manual Date": User-specified start date.
"Interactive (Chart)": Confirmed start date via input.
"None": Full available history (falls back to max bars).
Optionally, when using "Last X Bars", calculations can pull data from a higher/lower user-selected timeframe via request.security() for multi-timeframe alignment.
A dotted vertical line marks the start point in date-based modes.
Range and Pivot Calculation
Within the selected period:
Highest high and lowest low define the full price range.
Average volume is computed across the period.
Volume-Weighted Pivot: Average close price only from bars where volume > average volume (fallback to simple midpoint if no high-volume bars).
This creates a "smart" central pivot that leans toward areas of greater participation, often aligning with institutional activity.
Fibonacci Level Generation
User-configurable ratios (default: 0.236, 0.382, 0.5, 0.618, 0.786, 1.0, 1.272, 1.414, 1.618).
Levels are calculated symmetrically around the volume-weighted pivot:
Upward: Pivot + (Range × Ratio × Correction Factor) – teal/cyan shades.
Downward: Pivot - (Range × Ratio × Correction Factor) – red shades.
Correction Factor (default 0.5): Scales level spacing for tighter/wider grids without altering ratios.
Only the user-defined number of active lines (default 9) are drawn.
Visual Construction
Central Pivot Line: Thick yellow horizontal line with label showing exact price.
Up/Down Levels: Dashed lines extended into the future, labeled with ratio direction ("Up" or "Dn").
All objects redraw only on the last bar for performance, clearing previous drawings.
Multi-Timeframe Option
When enabled with "Last X Bars":
Pulls high/low/volume data from specified timeframe.
Aligns the pivot and levels to higher-timeframe structure while displaying on current chart – ideal for intraday traders seeking HTF confluence.
How to Use
This tool provides clean, volume-aware Fibonacci grids for identifying potential support/resistance, reversal zones, and targets.
Volume-Weighted Pivot: Often acts as a strong mean reversion level or fair value area.
Upward Levels (Teal): Potential resistance/extensions in bullish moves; watch for reactions on retests.
Downward Levels (Red): Potential support/retracements in bearish moves.
Confluence: High probability when price reacts at levels aligning with other tools (order blocks, pivots, volume profile).
Correction Factor: Lower values (<0.5) for tighter grids in ranging markets; higher (>0.5) for trending markets.
Multi-Timeframe Mode: Use on lower charts (e.g., 15m) with HTF input (e.g., 4H or Daily) to project major structure levels.
Common Setups:
Pullbacks to 0.618–0.786 zones for continuation entries.
Breaks beyond 1.0–1.618 for extension targets.
Reactions near pivot line for mean reversion trades.
Adjust ratios and active line count to match your preferred Fibonacci style (classic retracement vs. extensions).
Disclaimer
This indicator is a technical analysis tool and should be used in conjunction with other forms of analysis. Past performance does not guarantee future results. Always use proper risk management.
Long-term KST (Know Sure Thing)Description
Long-term Know Sure Thing (KST) oscillator, specifically adapted for non-24h markets such as stocks, indices, ETFs and futures.
This version correctly scales the weekly ROC periods based on the actual trading week length and daily session duration of the instrument — making it accurate across different asset classes (European indices, US equities, crypto, etc.).
Key features:
• Fully customizable trading week (5 days for most stock markets, 7 days for crypto/24h markets)
• Customizable daily session length (8.5h for FTSE MIB/DAX, 6.5h for US equities, 24h for crypto/forex)
• Automatically adjusts bar count per week on any chart timeframe (including Weekly)
• Classic Martin Pring KST parameters (10/13/15/20 ROC weeks, 10/13/15/20 SMA weeks, 1-2-3-4 weighting)
• Includes signal line (SMA of KST) and visual fill between KST and signal (green/red)
What is the Long-term KST used for?
The KST (Know Sure Thing) is a momentum oscillator created by Martin Pring to detect major trend changes, confirm the primary trend direction, and identify significant reversals in medium- to long-term cycles (weeks to months).
Main practical uses:
• Major trend reversals: KST crossing above/below signal line
• Primary trend confirmation: KST above/below zero line
• Classic divergences: Price vs KST divergences often precede important tops/bottoms
• Cycle identification: Helps spot the end of multi-month corrections or the start of new bull/bear phases
• Trend-following filter: Stay long when KST > 0 and rising, stay short when KST < 0 and falling
It is especially powerful on major indices (FTSE MIB, DAX, SPX, NDX, RUT, CAC40, Nikkei…) because it captures institutional money flow with fewer, higher-quality signals compared to faster oscillators.
Best used on:
• Daily, 4H, Weekly charts
• European indices (FTSE MIB, DAX, IBEX…)
• US indices/ETFs (SPX, NDX, RUT…)
• Crypto pairs (set week_length=7, session_duration=24h)
Enjoy trading the big-picture momentum!
Daily candle separation + NY open + First hour open Daily candle separation + NY open + First hour open
Options Volume IndicatorShows the RSI volume based on options volume. Useful for comparing against asset buy and sell signals to see strength of demand for recent options.
VWAP Extreme Zones (Elite Style)Short Description
VWAP Extreme Zones (Elite Style) highlights statistically stretched price areas above and below VWAP, helping traders identify potential overextension, mean-reversion zones, and high-risk breakout areas during intraday sessions.
Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice or trade signals.
All trading involves risk. Always confirm with price action, market context, and proper risk management before taking any trade.
Prop ES EMA Cross during Single/Dual Trading SessionEMA crossover strategy for ES futures optimized for prop firm rules.
Choose long-only, short-only, or both directions.
Customizable short and long EMA lengths.
Enter trades during one or two configurable sessions specified in New York time.
Fixed TP/SL in ticks with forced close by 4:59 PM NY time.
High/Low Tracker (Dual Sessions)VV4High and lows in 2 timeframes
16:00 -> 03:55
19:30 -> 02:55
Toggle on/off of
- Auto extending untill 09:25
- Live updating during price action
Configure linestyles, box styles
It is now displaying correctly for both CL and ES
SMC Strategy Tool v1.0 - Institutional SuiteDescription: The SMC Strategy Tool v1.0 is a comprehensive technical analysis suite designed for traders following the Smart Money Concepts (SMC) methodology. It combines market structure, institutional liquidity zones, and mathematical pivots to provide a high-probability trading environment.
Key Features:
Automatic Market Structure: Real-time detection of CHoCH (Change of Character) and BOS (Break of Structure) based on price action confirmation.
Institutional Order Flow (FVG): Identifies Fair Value Gaps with a dynamic mitigation system (boxes disappear once the price fills the inefficiency).
Premium & Discount Zones: Automatically calculates the current trading range and highlights the "cheap" (Discount) and "expensive" (Premium) areas for optimal entry.
Daily Pivot Points: Seamless integration of Daily Pivots (P, R1-R3, S1-S3) for institutional confluence.
Live Analytics Dashboard: A clean, non-intrusive table monitoring Market Phase, RSI (Momentum), and ATR (Volatility).
Smart Alerts: Built-in logic for "Discount Entry" during Bullish trends and "Premium Entry" during Bearish trends.
How to Trade:
Identify the Trend: Look at the Dashboard for the current Market Phase (Bullish/Bearish).
Wait for Value: Do not chase the price. Wait for the price to return to the Discount Zone (for Longs) or Premium Zone (for Shorts).
Find Confluence: The highest probability trades occur when a Discount/Premium entry aligns with an FVG and a Daily Pivot level.
Confirmation: Check the RSI cell. If it's red/green, the move might be exhausted; wait for a neutral reading or a structural reaction.
Available Alerts:
Trend Shift (CHoCH): Get notified immediately when the market structure shifts (e.g., from Bearish to Bullish).
Trend Continuation (BOS): Signals when the current trend is confirmed by a new structural break.
Discount Zone Entry (Long Bias): Notifies you when the price enters the Discount Zone while the Market Phase is Bullish. This prevents FOMO buying at high prices.
Premium Zone Entry (Short Bias): Notifies you when the price enters the Premium Zone while the Market Phase is Bearish. This ensures you are selling at institutional "expensive" prices.
How to set up Alerts:
Click the Alerts icon in the right sidebar.
Under Condition, select: SMC Strategy Tool v1.0 - Institutional Suite.
Select "Any alert() function call" (or Qualsiasi chiamata alla funzione alert()).
Choose your preferred notification method (Popup, Email, or App notification).
The alert message will automatically include the Ticker, Timeframe, and the specific action to take!
Gold ORB Strategy (3/5/15/30 Min)It's a multi-mode Opening Range Breakout system for Gold futures that automates the detection of the 7:20-7:23 AM CT opening range and provides clear visual signals for four different trading styles.
In Plain English:
"It draws a box around gold's first 3 minutes of trading, then alerts you when price breaks out with confirmation from volume, VWAP, and moving averages. It automatically calculates your entry, stop, and target prices based on your chosen strategy style."
What Makes It Unique:
4 Trading Personalities in One Tool:
Aggressive = "I want every breakout, I'll manage the fakeouts"
Confirmed = "Show me only moves that close beyond the range"
Retest = "I want the pullback entry for better R:R"
Fibonacci = "Let me buy the dip after the initial move"
Smart Confluence Filtering:
Doesn't just show every breakout
Checks if VWAP agrees (trend filter)
Verifies EMA alignment (momentum filter)
Flags volume spikes (conviction filter)
Complete Trade Management:
Automatically calculates stops (3 different methods)
Shows profit targets based on your R:R preference
Labels stick to price levels as you scroll
Visual dashboard shows all key info at a glance
What It's NOT:
Not a "buy here, sell there" robot - you still need to read the market
Not foolproof - no strategy works every day
Not optimized yet - you'll need to backtest and adjust settings for your style
The Real Value:
It takes a proven strategy from your research and makes it systematic and repeatable. Instead of manually drawing boxes and calculating stops every morning, it does the math and shows you exactly where the setup is.
Rolling Cumulative Volume Delta (N bars)Rolling CVD, not anchored to a date and reset after anchor+period reached
Gold Asia Session Highlighter [IST]Here is a polished description and guide for your Gold Asia Session Highlighter. You can use this text for a YouTube description, a Telegram post, or a PDF guide to explain the tool to others.
Gold Asia Session Highlighter (IST) | Visual Indicator
This is a custom TradingView indicator designed to simplify the Gold Asia Strategy. Instead of automating trades, this tool purely handles the visuals. It automatically highlights the correct Asia Session time window (adjusting for Winter/Summer hours) and marks the exact points where you should draw your Fixed Range Volume Profile (FRVP) tool.
Perfect for: Traders who prefer to draw their own FRVP levels manually but want to ensure they are using the exact, error-free time range every single day.
Features
✅ Automatic Time Zone: Strictly calculated using IST (Indian Standard Time), so you don't need to convert time zones manually.
✅ Smart Season Detection: Automatically switches between Winter Session (04:30 – 06:25) and Summer Session (03:30 – 05:25) based on the current month.
✅ Visual Guidance: Highlights the session background and places "START" and "END" labels on the exact candles.
✅ Zero Clutter: Clean visuals with no moving averages or strategy lines—just the session box.
How to Use It
Add to Chart: Apply the script to your Gold (XAUUSD) 5-minute chart. You will see a blue highlighted box appear during the Asia session.
Locate the Labels:
Look for the blue START label (bottom of the candle).
Look for the red END label (top of the candle).
Draw Your FRVP:
Select the Fixed Range Volume Profile tool from your TradingView toolbar.
Click exactly on the START candle.
Drag and release exactly on the END candle.
Trade: You now have the exact Value Area High (VAH), Value Area Low (VAL), and Point of Control (POC) for the day. Use your breakout strategy as usual!
NQ Conservative MTF (1m entries + 15m trend)//@version=5
strategy(title="NQ Conservative MTF (1m entries + 15m trend) v5",
overlay=true,
initial_capital=10000,
pyramiding=0,
calc_on_every_tick=false,
commission_type=strategy.commission.cash_per_contract,
commission_value=0.0)
//====================
// Inputs
//====================
useLongs = input.bool(true, "Enable Longs")
useShorts = input.bool(true, "Enable Shorts")
// 15m Trend Filter
tfTrend = input.timeframe("15", "Trend Timeframe")
emaFastLenHTF = input.int(50, "HTF EMA Fast", minval=1)
emaSlowLenHTF = input.int(200, "HTF EMA Slow", minval=1)
// 1m Entry Tools
emaPullLenLTF = input.int(50, "LTF Pullback EMA", minval=1)
rsiLen = input.int(14, "RSI Length", minval=1)
rsiLongMin = input.int(50, "RSI Long Min", minval=1, maxval=100)
rsiShortMax = input.int(50, "RSI Short Max", minval=1, maxval=100)
// DMI / ADX Filter (LTF)
dmiLen = input.int(14, "DMI Length", minval=1)
adxSmooth = input.int(14, "ADX Smoothing", minval=1)
adxMin = input.float(15.0, "Min ADX", step=0.5)
// Risk Management
atrLen = input.int(14, "ATR Length", minval=1)
atrSLmult = input.float(1.5, "ATR Stop Mult", step=0.1)
atrTPmult = input.float(2.0, "ATR Target Mult", step=0.1)
// Session + Cooldown
useSession = input.bool(true, "Use Session Filter")
sessionStr = input.session("0630-1300", "Session (exchange time)")
cooldownBars = input.int(10, "Cooldown Bars After Entry (1m)", minval=0)
//====================
// Helpers
//====================
inSession = not useSession or not na(time(timeframe.period, sessionStr))
// Cooldown tracking (bar_index of last entry)
var int lastEntryBar = na
canTrade = na(lastEntryBar) or (bar_index - lastEntryBar > cooldownBars)
//====================
// HTF Trend (15m)
//====================
emaFastHTF = request.security(syminfo.tickerid, tfTrend, ta.ema(close, emaFastLenHTF), barmerge.gaps_off, barmerge.lookahead_off)
emaSlowHTF = request.security(syminfo.tickerid, tfTrend, ta.ema(close, emaSlowLenHTF), barmerge.gaps_off, barmerge.lookahead_off)
trendUp = emaFastHTF > emaSlowHTF
trendDown = emaFastHTF < emaSlowHTF
//====================
// LTF Indicators (1m)
//====================
emaPull = ta.ema(close, emaPullLenLTF)
rsiVal = ta.rsi(close, rsiLen)
atrVal = ta.atr(atrLen)
// Proper DMI destructuring (prevents your ta.dmi tuple errors)
= ta.dmi(dmiLen, adxSmooth)
//====================
// Entry Logic (Conservative pullback + confirmation)
//====================
// Pullback idea: price is near/through pullback EMA, then resumes direction
pullbackLong = close > emaPull and low <= emaPull
pullbackShort = close < emaPull and high >= emaPull
confirmLong = (rsiVal >= rsiLongMin) and (adxVal >= adxMin) and (dmiPlus > dmiMinus)
confirmShort = (rsiVal <= rsiShortMax) and (adxVal >= adxMin) and (dmiMinus > dmiPlus)
longCond = useLongs and inSession and canTrade and trendUp and pullbackLong and confirmLong
shortCond = useShorts and inSession and canTrade and trendDown and pullbackShort and confirmShort
//====================
// Orders + Exits (ATR SL/TP)
//====================
longStop = close - (atrVal * atrSLmult)
longLimit = close + (atrVal * atrTPmult)
shortStop = close + (atrVal * atrSLmult)
shortLimit = close - (atrVal * atrTPmult)
if (longCond and strategy.position_size == 0)
strategy.entry("L", strategy.long)
lastEntryBar := bar_index
if (shortCond and strategy.position_size == 0)
strategy.entry("S", strategy.short)
lastEntryBar := bar_index
strategy.exit("L-Exit", from_entry="L", stop=longStop, limit=longLimit)
strategy.exit("S-Exit", from_entry="S", stop=shortStop, limit=shortLimit)
//====================
// Plotting
//====================
plot(emaPull, "1m Pullback EMA", linewidth=2)
plot(emaFastHTF, "15m EMA Fast", linewidth=2)
plot(emaSlowHTF, "15m EMA Slow", linewidth=2)
plotchar(trendUp, title="Trend Up", char="▲", location=location.top, size=size.tiny)
plotchar(trendDown, title="Trend Down", char="▼", location=location.top, size=size.tiny)
Multitime ATR with ATR Heat Line# Multi-Timeframe ATR Supertrend with ATH Finder
## Overview
This advanced Pine Script indicator combines multi-timeframe ATR-based Supertrend analysis with an All-Time High (ATH) tracking system. Designed for swing traders who need comprehensive trend analysis across multiple timeframes while monitoring key price levels.
## Key Features
### 1. Multi-Timeframe ATR Supertrend (1H, 4H, 1D)
- **1 Hour Supertrend** (Blue): Short-term trend identification
- **4 Hour Supertrend** (Purple): Medium-term trend confirmation
- **1 Day Supertrend** (Green/Red): Primary trend direction
- Each timeframe displays independent trend lines with customizable colors and visibility
### 2. Dual ATR Data System (1D Only)
- **Previous Day ATR** (lookahead_off): Used for main ATR lines - enables pre-market study and avoids intraday crossover issues
- **Current Day ATR** (lookahead_on): Used for Overheating Line calculation - provides real-time profit-taking signals
### 3. Overheating Line
- Dynamically calculated as: `1D ATR + (ATR Width × 1.3)`
- Orange line indicating potential overextension zones
- Uses current day real-time ATR for intraday decision-making
- Only displays during uptrends
- Customizable multiplier (default: 1.3)
### 4. ATH (All-Time High) Finder
- Automatically tracks and displays the all-time high with a horizontal line
- **Line Color**: Lime green (customizable)
- **Label System**:
- Green label when price is at ATH
- Red label when ATH is historical
- Toggle label visibility independently
- **Bug Fix**: Prevents vertical line display when ATH occurs on current bar
- Line extends to the right for easy visualization
### 5. Warning & Break Signals
Each timeframe provides two types of alerts:
- **Warning Signal** (⚠️): Price closes below uptrend line (potential reversal warning)
- **Break Signal** (⚡): Price closes above downtrend line (potential breakout)
- Smart timing intervals prevent signal spam:
- 1H: Checks every 4 hours (warning) / 1 hour (break)
- 4H/1D: Max 2 signals per day
### 6. Trend Change Indicators
- Small circles mark the exact bar where trend changes occur
- Color-coded for each timeframe
- Helps identify reversal points and trend strength
### 7. Master Control Switches
Efficiently manage all visual elements:
- **Master Highlighter**: Toggle all background fills on/off
- **Master Signals**: Toggle all warning/break signals
- **Master Up Trend**: Toggle all uptrend lines and circles
- **Master Down Trend**: Toggle all downtrend lines and circles
### 8. Fast Cut Lines (Optional)
- Additional support/resistance lines offset by a percentage from main ATR lines
- Useful for tighter stop-loss management
- Separate controls for up and down trends
- Default: OFF (customizable offset percentage)
### 9. Timeframe Visibility Control
- **Hide on Daily+**: Automatically hides indicators (except 1D ATR) on daily timeframes and above
- Reduces chart clutter on higher timeframes
- 1D ATR always visible regardless of chart timeframe
### 10. EMA Integration (Optional)
- Display 20/50/200 EMAs for confluence with ATR trends
- Toggle on/off independently
## Use Cases
### For Swing Traders
1. **Entry Timing**: Wait for multiple timeframe alignment (1H, 4H, 1D all in uptrend)
2. **Trend Confirmation**: Use trend change circles to identify momentum shifts
3. **Profit Taking**: Monitor Overheating Line for potential exit zones
### For Position Management
1. **Stop Loss Placement**: Use 1D ATR line or Fast Cut lines as dynamic stop levels
2. **Risk Assessment**: Distance between timeframe ATR lines indicates volatility
3. **Breakout Trading**: Break signals (⚡) identify potential breakout opportunities
### For Pre-Market Analysis
- 1D ATR uses previous day data, allowing traders to:
- Study support/resistance levels before market open
- Plan entry/exit strategies based on confirmed data
- Avoid false signals from incomplete daily candles
## Settings Guide
### ATH Finder Settings
- **Show ATH Line**: Toggle ATH line visibility
- **Show ATH Label**: Toggle ATH label display (can hide label while keeping line)
- **ATH Line Color**: Customize line color (default: lime)
- **ATH Line Width**: Adjust line thickness (1-5)
### Timeframe Settings (Each timeframe has independent controls)
- **ATR Period**: Lookback period for ATR calculation (default: 10)
- **ATR Multiplier**: Distance multiplier from price (default: 1.0)
- **Show Label**: Display " " / " " / " " text labels
- **Show Warning/Break Signals**: Toggle alert symbols
- **Highlighter**: Toggle background fill between price and ATR line
### Overheating Line Settings
- **Show Overheating Line**: Toggle visibility
- **Overheating Multiplier**: Adjust distance above 1D ATR (default: 1.3)
### Cut Lines Settings
- **Show Fast Cut Line (Up/Down)**: Toggle visibility
- **Fast Cut Offset %**: Percentage distance from ATR lines (default: 1.0%)
## Color Scheme
- **Current TF**: Green (up) / Red (down)
- **1H ATR**: Blue (#1848cc) / Dark Blue (#210ba2)
- **4H ATR**: Purple (#7b1fa2) / Dark Purple (#4e0f60)
- **1D ATR**: Green (#4caf50) / Dark Red (#8c101a)
- **Overheating Line**: Orange (#ff9800)
- **ATH Line**: Lime (customizable)
## Technical Notes
### ATR Calculation
- Uses True Range for volatility measurement
- Option to switch between SMA and EMA calculation methods
- Adapts to both volatile and stable market conditions
### Performance Optimization
- Maximum 500 lines and 500 labels to prevent memory issues
- Bar index limitations prevent historical data errors
- Efficient repainting prevention for 1D timeframe
### Alert System
Built-in alert conditions for:
- Buy/Sell signals (Current TF)
- Warning signals (all timeframes)
- Break signals (all timeframes)
## Best Practices
1. **Multiple Timeframe Confirmation**: Don't trade against higher timeframe trends
2. **Overheating Awareness**: Consider profit-taking when price reaches orange line
3. **ATH Monitoring**: Exercise caution near all-time highs (increased volatility risk)
4. **Signal Filtering**: Use warning signals as alerts, not immediate action triggers
5. **Stop Loss Management**: Place stops below the most relevant ATR line for your timeframe
## Version Information
- Pine Script Version: 5
- Indicator Type: Overlay
- Max Lines: 500
- Max Labels: 500
## Credits
Created by @yohei ogura with <3
Modified for Multi-Timeframe functionality with ATH tracking
High/Low Tracker (Dual Sessions)V4High and lows in 2 timeframes
16:00 -> 03:55
19:30 -> 02:55
Toggle on/off of
- Auto extending untill 09:25
- Live updating during price action
Configure linestyles, box styles
It is now displaying correctly for both CL and ES
Overnight Gap - Close to Open - TF PascalCalculates the percentage change in the opening price of the candle above relative to the closing price of the previous candle.
Not available for S&P500 CFDs.
Can be used for cash prices such as TVC's SPX for the S&P500.
Anurag -Precision Options Scalper [Multi-TF] -A professional-grade options day trading system built for SPY, QQQ, and SPX.
CORE FEATURES:
- Multi-timeframe analysis (15m regime → 5m setup → 1m execution)
- Market regime detection using ADX + ATR Z-Score (filters out chop)
- Confidence scoring system (0-100) — only takes high-probability setups
- Auto DTE engine recommends 0DTE vs 1DTE based on conditions
- Suggested strike prices (slightly OTM)
- Built-in position tracking with stop/target levels
- Session filtering (9:30 AM - 4:00 PM ET only)
- End-of-day forced exit warning
SIGNAL LOGIC:
CALL: 15m bullish bias + trending regime + price above VWAP/EMAs + pullback to support + bullish candle + 1m momentum confirmation
PUT: 15m bearish bias + trending regime + price below VWAP/EMAs + rejection from resistance + bearish candle + 1m momentum confirmation
RISK MANAGEMENT:
- ATR-based stops and targets
- Break-even stop movement after partial profit
- Time-based exit if momentum dies
- Max 4 trades per day (configurable)
- Gamma scalp mode for 0DTE (tighter stops/targets)
BEST ON: 5-minute chart | SPY, QQQ, SPX
STYLE: Pullback entries in trending markets
⚠️ For educational purposes. Not financial advice. Manage your own risk.
SMC Post-Analysis Lab [PhenLabs]📊 SMC Post-Analysis Lab
Version: PineScript™ v6
📌 Description
The SMC Post-Analysis Lab is a dedicated hindsight analysis tool built for traders who want to understand what really happened during any historical trading period. Unlike forward-looking indicators, this tool lets you scroll back through time and instantly receive algorithmic classification of market states using Smart Money Concepts methodology.
Whether you’re reviewing a losing trade, studying a successful session, or building your pattern recognition skills, this indicator provides immediate context. The expansion-aware algorithm processes price action within your selected window and outputs clear, actionable classifications ranging from Parabolic Expansion to Consolidation Inducements.
Stop relying on subjective post-trade analysis. Let the algorithm objectively tell you whether institutional players were accumulating, distributing, or running inducements during your trades.
🚀 Points of Innovation
First indicator specifically designed for SMC-based post-trade review rather than live signal generation
Dual-mode analysis system allowing both dynamic scrollback and precise date selection
Expansion-aware classification algorithm that weighs range position against net displacement
Real-time efficiency metrics calculating directional quality of price movement
Integrated visual FVG detection within the analysis window only
Interactive table with clickable date range adjustment via chart interface
🔧 Core Components
Pivot Detection Engine: Uses configurable pivot length to identify significant swing highs and lows for structure break detection
Window Calculator: Determines active analysis zone based on either bar offset or timestamp boundaries
Data Aggregator: Tracks window open, high, low, close and counts bullish/bearish structure break events
State Classification Algorithm: Applies hierarchical logic to determine market state from six possible classifications
Visual Renderer: Draws structure breaks, FVG boxes, and window highlighting within the active zone
🔥 Key Features
Sliding Window Mode: Use the Scroll Back slider to dynamically move your analysis zone backwards through history bar-by-bar
Date Range Mode: Select specific start and end timestamps for precise session or trade review
Six Market State Classifications: Parabolic Expansion (Bull/Bear), Bullish/Bearish Order Flow, Accumulation/Distribution Reversal, and Consolidation/Inducement
Range Position Percentile: See exactly where price closed relative to the window’s high-low range as a percentage
Bull/Bear Event Counter: Quantified count of structure breaks in each direction during the analysis period
Efficiency Calculation: Net move divided by total range reveals trending quality versus chop
🎨 Visualization
Blue Window Highlight: Active analysis zone is clearly marked with blue background shading on the chart
Structure Break Lines: Dashed lines appear at each bullish or bearish structure break within the window
FVG Boxes: Fair Value Gaps automatically render as semi-transparent boxes in bullish or bearish colors
Dashboard Table: Top-right positioned table displays State, Analysis description, and Metrics in real-time
Color-Coded States: Each classification uses distinct coloring for immediate visual recognition
Interactive Tip Row: Optional help text guides users on clicking the table to adjust date range
📖 Usage Guidelines
General Configuration
Analysis Mode: Default is Sliding Window. Choose Date Range for specific timestamp analysis.
Sliding Window Settings
Scroll Back (Bars): Default 0. Increase to move window backwards into history.
Window Width (Bars): Default 100. Range 20-50 for scalping, 100+ for swing analysis.
Date Range Settings
Start Date: Select the beginning timestamp for your analysis period.
End Date: Select the ending timestamp for your analysis period.
Visual Settings
Show Help Tip: Default true. Toggle to hide instructional row in dashboard.
Bullish Color: Default teal. Customize for bullish elements.
Bearish Color: Default red. Customize for bearish elements.
SMC Parameters
Pivot Length: Default 5. Lower values (3-5) catch minor breaks. Higher values (10+) focus on major swings.
✅ Best Use Cases
Post-trade review to understand why entries succeeded or failed
Session analysis to identify institutional activity patterns
Trade journaling with objective algorithmic classifications
Pattern recognition training through historical scrollback
Identifying whether stop hunts were inducements or legitimate breaks
Comparing your real-time read versus what the algorithm detected
⚠️ Limitations
Designed for historical analysis only, not live trade signals
Classification accuracy depends on appropriate pivot length for the timeframe
FVG detection uses simple gap logic without mitigation tracking
State classification is based on window data only, not broader context
Requires manual scrolling or date input to review different periods
💡 What Makes This Unique
Purpose-Built for Review: Unlike most indicators focused on live signals, this is designed specifically for post-trade analysis
Expansion-Aware Logic: Algorithm weighs both position in range AND directional efficiency for accurate state detection
Interactive Date Control: Click the dashboard table to reveal draggable anchors for window adjustment directly on chart
🔬 How It Works
1. Window Definition:
User selects either Sliding Window or Date Range mode
System calculates which bars fall within the active analysis zone
Active zone receives blue background highlighting
2. Data Collection:
Algorithm captures window open, running high, running low, and current close
Structure breaks are detected when price crosses above last pivot high or below last pivot low
Bullish and bearish events are counted separately
3. State Classification:
Range Position calculates where close sits as percentage of high-low range
Efficiency calculates net move divided by total range
Hierarchical logic applies priority rules from Parabolic states down to Consolidation
4. Output Rendering:
Dashboard table updates with State title, Analysis description, and Metrics
Visual elements render within window only to keep chart clean
Colors reflect bullish, bearish, or neutral classification
💡 Note:
This indicator is intended for educational and review purposes. Use it to develop your understanding of Smart Money Concepts by analyzing what institutional order flow looked like during historical periods. Combine insights with your own analysis methodology for best results.
NQ Conservative MTF (1m entries + 15m trend)This is a conservative intraday futures algorithm designed for the NASDAQ (NQ) on the 1-minute chart. Trades are entered only in the direction of the confirmed 15-minute trend, using moving averages and ADX/DMI to ensure sufficient trend strength. Entries occur on controlled pullbacks toward a 1-minute EMA, avoiding extended or choppy conditions. Risk is managed with ATR-based stop losses and profit targets, optional trailing stops, session filtering, and a cooldown period between trades to reduce overtrading. The strategy prioritizes capital preservation, realistic execution, and consistency over high trade frequency.
Sector Flow AnalysisSector Flow Analysis - Track market leadership and rotation across 11 major sector ETFs with real-time performance rankings.
Key Features:
Monitors all 11 S&P sector ETFs (XLK, XLF, XLI, XLU, XLV, XLP, XLY, XLB, XLRE, XLC, XLE)
Configurable lookback period (5-60 days) for performance calculation
Color-coded risk indicators: 🟢 Risk-On sectors leading (bullish), 🟠 Risk-Off sectors leading (defensive), 🟡 Neutral sectors
Display top N sectors (1-11) to declutter your chart
Fully customizable positioning, text size, and color
Clean, minimal table overlay that won't obstruct your chart
Use Cases:
Identify sector rotation patterns and market leadership changes
Gauge market sentiment (risk-on vs risk-off behavior)
Find opportunities by tracking which sectors are gaining/losing momentum
Confirm trend strength when your stock's sector is leading
Perfect companion to comprehensive market analysis tools for a complete picture of sector dynamics.
Global Sessions Pro NY/London/Tokyo - O/C/H/LGLOBAL SESSIONS PRO — NY / LONDON / TOKYO
Session Opens, Highs, Lows, Midpoints, Closes, Ranges & Killzones
OVERVIEW
Global Sessions Pro is a comprehensive session-mapping indicator designed for traders who rely on market structure, session context, and time-based behavior.
The indicator automatically plots New York, London, and Tokyo sessions, including:
• Session Open, High, Low, Midpoint, and Close
• Prior session levels projected forward
• Session range boxes
• Right-side labeled price levels (clearly identified)
• Stacked session summary labels (no overlap)
• Optional killzones and overlap windows
• Breakout alerts (prior or current session levels)
The script is fully timezone-aware, DST-safe, and works on any chart timeframe.
KEY FEATURES
SESSION MAPPING
For each session (NY / London / Tokyo), the indicator can display:
• Open
• High
• Low
• Midpoint (High + Low) / 2
• Close
Each level is drawn with its own horizontal line and optional right-side label, so there is never confusion about which line represents which level.
SESSION RANGE BOXES
Optional shaded boxes highlight the true session range as it develops in real time.
These are useful for visualizing:
• Compression vs expansion
• Relative session volatility
• Strength or weakness between sessions
Opacity and visibility are fully configurable.
RIGHT-SIDE LEVEL LABELS
Each session level can be labeled on the right edge of the chart, showing:
• Session name (NY / Lon / Tok)
• Level type (O / H / L / M / C)
• Optional price value
Examples:
NY H: 18234.25
Lon L: 18098.50
Tok M: 18142.75
This eliminates ambiguity when multiple session levels overlap or share similar colors.
SESSION SUMMARY LABELS (AUTO-STACKED)
At the top of each session range, an optional summary label displays:
• Session name
• Open / High / Low / Close
• Total range (points)
• Range in ticks
• ATR multiple
Summary labels are automatically stacked vertically using ATR-based or tick-based spacing, preventing overlap even when multiple sessions occur close together.
PRIOR SESSION LEVELS
The indicator can project prior session levels into the next session, including:
• Prior High and Low
• Optional prior Open, Close, and Midpoint
These levels are commonly used for:
• Support and resistance
• Liquidity sweeps
• Mean reversion
• Failed breakouts
Projection length is configurable and safely capped to comply with TradingView drawing limits.
KILLZONES AND SESSION OVERLAPS
Optional background shading highlights key institutional windows:
• London Open
• New York Open
• London / New York overlap
These zones help identify high-probability volatility windows and time-based trade filters.
All killzones respect the selected session timezone basis.
ALERTS
Built-in alerts are available for:
• Break of prior session high
• Break of prior session low
• Break of current session high
• Break of current session low
Alerts can be configured to trigger on wick or close.
Alert logic is written using precomputed crossover detection to ensure historical consistency and avoid missed or false alerts.
TIMEZONE AND SESSION HANDLING (IMPORTANT)
SESSION TIME BASIS OPTIONS
The indicator supports three session-time modes:
Market Local (DST-aware) – Recommended
• New York uses America/New_York
• London uses Europe/London
• Tokyo uses Asia/Tokyo
• Automatically adjusts for daylight saving time
UTC (Fixed)
• Sessions are interpreted strictly in UTC
• Best for crypto or non-DST workflows
• Requires manual adjustment during DST changes
Custom Timezone
• Define a single custom timezone for all sessions
This ensures sessions display correctly regardless of the chart’s timezone.
DEFAULT SESSION TIMES
(Default values assume Market Local (DST-aware) mode)
Tokyo: 09:00 – 15:00
London: 08:00 – 16:30
New York: 09:30 – 16:00
These defaults are optimized for cash and index trading.
FX traders may adjust session windows as needed.
BEST USE CASES
This indicator is particularly effective for:
• Index futures (ES, NQ, RTY, DAX, FTSE)
• Forex session-based strategies
• Time-based breakout systems
• Liquidity sweep and mean-reversion models
• London Open and New York Open trading
• Multi-session market context analysis
PERFORMANCE AND SAFETY NOTES
• All future-drawn objects are capped to comply with TradingView limits
• Crossover logic is evaluated every bar to prevent calculation drift
• Old session drawings are automatically culled to reduce chart clutter
• Works on all intraday and higher timeframes
RECOMMENDED SETTINGS
For most traders:
• Session Time Basis: Market Local (DST-aware)
• Show Open / High / Low / Midpoint: ON
• Prior Session Levels: ON
• Summary Labels: ON
• Killzones: ON
• Alerts: ON (Close-based)
FINAL NOTES
This indicator is designed to provide objective session structure without opinionated trade signals. It works best as a context layer combined with your own execution rules, confirmations, and risk management.
If you trade time, structure, and liquidity, this script provides the framework.






















