Daily Bias Trade Manager [MarkitTick]💡 The Daily Bias Trade Manager is a sophisticated technical analysis suite designed to automate the identification of high-probability intraday setups based on liquidity concepts and structural shifts. By synthesizing Previous Day High/Low (PDH/PDL) interactions with momentum confirmation and strict risk management protocols, this tool assists traders in navigating the "Daily Bias." It moves beyond simple signal generation by offering a complete trade management visualization system, projecting entries, stop losses, and take-profit levels directly onto the chart in real-time.
✨ Originality and Utility
This script distinguishes itself by integrating institutional price action theory—specifically Liquidity Sweeps and Change in State of Delivery (CISD)—with mechanical filtering. While many indicators simply highlight highs and lows, the Daily Bias Trade Manager validates these levels by analyzing what happens *after* price tests them.
It solves a common problem for intraday traders: "Analysis Paralysis." By automating the detection of structure breaks (MSS) and Fair Value Gaps (FVG) following a sweep of daily liquidity, it provides an objective framework for entry. Furthermore, the built-in "Position Box" feature removes the guesswork from trade execution by instantly calculating risk-to-reward ratios and visualizing them, allowing traders to see the feasibility of a trade before execution.
🔬 Methodology and Concepts
The core logic operates on a sequential detection model:
Liquidity Identification: The script first plots the Previous Day High (PDH) and Previous Day Low (PDL). These are critical institutional reference points where stop-loss orders (liquidity) often reside.
The Sweep: A "Sweep" is confirmed when price breaches a PDH/PDL but fails to sustain the breakout, closing back inside the previous day's range. This suggests a "Fake-out" or liquidity grab, often a precursor to a reversal.
Change in State of Delivery (CISD): Following a sweep, the script monitors local market structure. It looks for a decisive close past a recent swing point (Swing High for shorts, Swing Low for longs) within a user-defined bar window. This confirms that the counter-trend move has momentum.
Confluence Filtering: To reduce false positives, the engine applies optional filters:
RVOL (Relative Volume): Ensures the sweep occurred on significant volume (Climax behavior).
RSI Momentum: Verifies that momentum supports the reversal direction.
Trend Filter: Uses a long-term EMA to ensure trades align with the broader market direction.
Entry Model: Upon validation, the script calculates an entry at the close (or optionally at a Fair Value Gap), places a Stop Loss at the sweep extreme, and projects three Take Profit targets based on configurable R:R ratios.
🎨 Visual Guide
The indicator uses a distinct color-coded system to keep the chart clean yet informative:
● Liquidity Levels & Sweeps
Orange/Blue Lines: Represent the PDH (Previous Day High) and PDL (Previous Day Low).
Teal Shaded Zones: Indicate a "Buy-Side Sweep" (Price took highs and rejected).
Red Shaded Zones: Indicate a "Sell-Side Sweep" (Price took lows and rejected).
● Position Management Boxes
When a signal triggers, a structured box appears:
Solid Gray Line: The theoretical Entry Price.
Solid Red Line: The Stop Loss (SL), typically placed at the swing high/low of the sweep.
Dashed Blue Lines: Represent TP1, TP2, and TP3 targets based on Reward-to-Risk settings.
Labels: Data tags on the right side of the box show exact price coordinates for Entry, SL, and Targets.
● Signals & Clouds
Green "BUY" Labels: Appear below the bar when a bullish sweep and structural shift are confirmed.
Red "SELL" Labels: Appear above the bar when a bearish sweep is validated.
Yellow Clouds: Highlight Fair Value Gaps (FVG) used for entry confluence or retests.
● Multi-Timeframe (MTF) Dashboard
A panel (default: Top Right) displays the status of up to three higher timeframes.
Trend: Shows "BULL" or "BEAR" based on EMA alignment.
Liquidity: Indicates if the timeframe is "Taking Buy Liq", "Taking Sell Liq", or "Inside Range".
📖 How to Use
● Bullish Reversal Setup
Wait for price to drop below the Blue PDL Line.
Look for a Red Sell-Side Sweep Zone to form, indicating price has rejected lower prices.
Wait for the Green BUY Signal . This confirms a shift in structure (CISD) back to the upside.
Observe the Position Box. If the Risk/Reward is favorable (targets are within reasonable reach), consider the trade.
Optional: Use the "Dynamic Targets" setting to target the previous swing high instead of a fixed ratio.
● Bearish Reversal Setup
Wait for price to rally above the Orange PDH Line.
Look for a Teal Buy-Side Sweep Zone .
Wait for the Red SELL Signal confirming the rejection.
Ensure the dashboard shows alignment (e.g., Higher Timeframe Trend is Bearish) for higher probability.
● Trade Management
Enable the "ATR Trailing Stop" in settings to have the Stop Loss line dynamically adjust as price moves in your favor, locking in potential gains.
⚙️ Inputs and Settings
● General & Display
Show Daily Liquidity: Toggles the PDH/PDL lines.
Max Signals/Zones: Limits the visual clutter by restricting historical shapes.
● Detection Logic
Swing Detection Length: Controls the sensitivity of pivot points. Higher numbers = fewer, more significant swings.
CISD Window: How many bars after a sweep are allowed for the structure shift to occur.
Use FVG Entry: If true, the signal waits for a retest of a gap rather than entering immediately at the close.
● Filters
Volume (RVOL): Requires the sweep candle volume to be X times larger than average.
Trend Filter: Only allows Buy signals above the EMA and Sell signals below it.
Session Filter: Restricts signals to specific hours (e.g., New York Killzone).
● Targets & Management
Target R:R: Sets the multiplier for TP1, TP2, TP3 relative to the stop loss distance.
Use Dynamic Targets: Targets structural liquidity (Previous Highs/Lows) instead of fixed math ratios.
ATR Trailing Stop: Activates the trailing stop mechanism.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator is grounded in the principles of Market Microstructure and Mean Reversion theory .
1. Liquidity Pools & Stop Runs:
Academic literature on market microstructure suggests that order flow clusters around obvious visual references (PDH/PDL). Large market participants often utilize this "resting liquidity" to fill large block orders with minimal slippage. The "Sweep" logic detects this absorption phase.
2. Volatility Breakout vs. Fake-out:
The script differentiates between a genuine breakout and a mean-reverting "fake-out" by analyzing the Close relative to the Range . A close back within the prior day's range after a breach signifies a failure of auction in the new territory, statistically increasing the probability of a reversion to the mean (equilibrium).
3. Momentum Validation (RSI & RVOL):
By integrating Relative Volume (RVOL) and RSI, the script applies statistical significance testing to the price action. High volume at a range extreme without price progress (the sweep) indicates "Stopping Volume" or absorption, a key concept in Volume Spread Analysis (VSA).
🙏 Gratitude
I would like to express my gratitude to harry040708 for sharing the insightful idea that made this script possible.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Ict
[COG] NautilusOverview
This indicator combines multiple technical analysis tools to identify high-probability entry points in trending markets. It uses moving average crossovers for trend direction, Bollinger Bands for mean reversion opportunities, and optional filters to reduce false signals and avoid choppy market conditions.
What Makes This Indicator Unique
Heiken Ashi Toggle:
All calculations can be performed on either regular or Heiken Ashi candles with a single click
Multi-Layer Filtering System: Four independent filters work together to improve signal quality
First Entry Detection: Automatically identifies and labels the first signal after a trend change
Anti-Overtrading Protection: Built-in cooldown mechanism prevents signal spam
Core Components
1. Trend Detection (EMA/SMA Crossover)
The indicator uses a 15-period EMA and 50-period SMA to determine market direction. Buy signals only occur when EMA > SMA, and sell signals only when EMA < SMA.
// Trend Detection
bullishTrend = ema15 > sma50
bearishTrend = ema15 < sma50
2. Bollinger Bands Mean Reversion
Entry signals trigger when price touches or penetrates the Bollinger Bands, indicating potential reversal or pullback opportunities within the established trend.
//Bollinger Band Touch Detection
lowerBandTouch = selectedLow <= bbLower
upperBandTouch = selectedHigh >= bbUpper
// Base Entry Conditions
baseBuySignal = bullishTrend and lowerBandTouch and bullishClose
baseSellSignal = bearishTrend and upperBandTouch and bearishClose
3. Candle Confirmation
Signals require a bullish candle close (close > open) for buy signals and bearish candle close (close < open) for sell signals, ensuring momentum alignment.
// Candle Close Type
bullishClose = selectedClose > selectedOpen
bearishClose = selectedClose < selectedOpen
Optional Filters (All Toggleable)
Filter 1: StochRSI Momentum
Ensures entries occur during oversold/overbought conditions. Buy signals require StochRSI < 20, sell signals require StochRSI > 80.
// StochRSI Calculation
rsi = ta.rsi(stochRSISource, rsiLength)
stochRSI_K = ta.sma(ta.stoch(rsi, rsi, rsi, stochRSILength), stochKSmooth)
// Filter Conditions
stochRSIOversoldCondition = stochRSI_K < stochRSIOversold
stochRSIOverboughtCondition = stochRSI_K > stochRSIOverbought
Filter 2: MA Separation (Anti-Chop)
Blocks signals when moving averages are too close together, indicating sideways/choppy market conditions. Default threshold is 1% separation.
// Calculate percentage separation between EMA and SMA
maSeparationPct = (math.abs(ema15 - sma50) / sma50) * 100
// MA separation filter condition
maSeparationValid = maSeparationPct >= maSeparationThreshold
Why this matters: When the 15 EMA and 50 SMA are very close (< 1% apart), the market is typically consolidating. Signals in these conditions have lower win rates.
Filter 3: Cooldown Period
Prevents over-trading by blocking new signals for a specified number of bars (default: 10) after a signal occurs. Buy and sell cooldowns are tracked separately.
// Variables to track the bar index of the last signal
var int lastBuySignalBar = na
var int lastSellSignalBar = na
// Calculate bars since last signal
barsSinceLastBuy = na(lastBuySignalBar) ? 999999 : bar_index - lastBuySignalBar
// Cooldown filter condition
buyCooldownValid = barsSinceLastBuy >= cooldownBars
// Update tracking when signal fires
if buySignal
lastBuySignalBar := bar_index
Advanced Features
Heiken Ashi Mode
Toggle between regular candles and Heiken Ashi candles for all calculations. Heiken Ashi candles smooth price action and can reduce false signals in volatile markets.
// Fetch Heiken Ashi OHLC values
= request.security(
ticker.heikinashi(syminfo.tickerid),
timeframe.period,
)
// Select which OHLC to use based on toggle
selectedClose = useHeikenAshi ? haClose : close
First Entry Detection
Automatically identifies and labels the first signal after a trend change with "1. Trend Cycle Entry" text. This helps traders distinguish between fresh trend entries and continuation signals.
// Detect trend changes
trendChangedToBullish = bullishTrend and not bullishTrend
// Reset tracking when trend changes
if trendChangedToBullish
hadBuySignalInCurrentBullTrend := false
// Identify first signal in new trend
isFirstBuyInTrendCycle = buySignal and not hadBuySignalInCurrentBullTrend
How Signals Are Generated
The indicator uses a layered approach where each condition must be satisfied:
// Apply all filters
buySignal = enableBuySignals and baseBuySignal and
(not enableStochRSIFilter or stochRSIOversoldCondition) and
(not enableMASeparationFilter or maSeparationValid) and
(not enableCooldownFilter or buyCooldownValid)
Buy Signal Requirements:
✅ 15 EMA above 50 SMA (bullish trend)
✅ Candle low touches or goes below lower Bollinger Band
✅ Candle closes bullish (green)
✅ (Optional) StochRSI < 20
✅ (Optional) MA separation > threshold %
✅ (Optional) Cooldown period expired
Sell Signal Requirements:
✅ 15 EMA below 50 SMA (bearish trend)
✅ Candle high touches or goes above upper Bollinger Band
✅ Candle closes bearish (red)
✅ (Optional) StochRSI > 80
✅ (Optional) MA separation > threshold %
✅ (Optional) Cooldown period expired
Customization Options
Moving Averages:
Adjustable EMA length (default: 15)
Adjustable SMA length (default: 50)
Source selection (Close, Open, High, Low, HL2, HLC3, OHLC4)
Bollinger Bands:
Adjustable length (default: 20)
MA type selection (SMA, EMA, SMMA, WMA, VWMA)
Adjustable standard deviation multiplier (default: 2.0)
StochRSI Filter:
Adjustable RSI length (default: 14)
Adjustable Stochastic length (default: 14)
Customizable oversold/overbought levels (default: 20/80)
MA Separation Filter:
Adjustable minimum separation percentage (default: 1.0%)
Cooldown Filter:
Adjustable cooldown period in bars (default: 10)
Visual Settings:
Customizable colors for all elements
Adjustable line widths
Toggle first entry labels on/off
How to Use
Basic Setup: Apply the indicator to your chart. By default, it shows moving averages, Bollinger Bands, and entry signals.
Choose Your Mode: Enable Heiken Ashi mode if you prefer smoother signals and are willing to accept some lag.
Enable Filters: Start with all filters disabled to see raw signals. Then enable filters one by one:
Start with MA Separation filter to avoid choppy markets
Add StochRSI filter to catch better momentum conditions
Add Cooldown filter to prevent over-trading
Adjust Parameters: Tune the parameters based on your timeframe and trading style:
Lower timeframes: Consider shorter cooldown periods
Higher timeframes: May want tighter MA separation requirements
Watch for First Entry Labels: The "1. Trend Cycle Entry" label highlights the highest-probability signals occurring right after trend changes.
Important Notes
⚠️ This indicator does not repaint. All signals appear on closed candles only.
⚠️ Past performance is not indicative of future results. This indicator should be used as part of a complete trading strategy with proper risk management.
⚠️ Filters reduce signal frequency: Enabling multiple filters will significantly reduce the number of signals. This is intentional to improve quality over quantity.
⚠️ Heiken Ashi mode considerations: While HA mode smooths signals, it can also introduce lag. Test both modes on your preferred timeframe.
Best Practices
Always backtest on your preferred timeframe before live trading
Start conservative with tighter filters, then loosen if needed
Pay special attention to "First Entry" signals for highest probability setups
Use appropriate position sizing and stop losses
Consider market conditions: trending vs ranging
Disclaimer
This indicator is for educational purposes only and should not be considered financial advice. Trading involves substantial risk of loss. Always do your own research and consider your risk tolerance before trading.
AMDX TRUE QUARTERS 6h+90m cycles.Этот индикатор предназначен для визуализации концепции Quarterly Theory (SMT / Smart Money Theory) с привязкой к нью-йоркскому времени. Основной цикл дня начинается в 18:00 по Нью-Йорку и длится ровно 24 часа — до 18:00 следующего дня (по местному времени NY, с автоматическим учётом перехода на летнее/зимнее время).
Каждый такой 24-часовой SMT-день делится на четыре 6-часовых блока:
18:00–00:00 (Asia Killzone)
00:00–06:00 (London Open)
06:00–12:00 (NY AM)
12:00–18:00 (NY PM)
Каждый 6-часовой блок, в свою очередь, разделён на четыре 90-минутных микроцикла.
Индикатор рисует:
полупрозрачные цветные прямоугольники (боксы) для 6-часовых сессий с разными цветами и соответствующими названиями
более светлые оранжевые боксы для 90-минутных циклов внутри каждого 6-часового блока
вертикальные пунктирные линии на границах 6-часовых сессий (разные цвета)
тонкие точечные линии на границах 90-минутных циклов
вертикальную жирную линию на конец SMT-дня (следующие 18:00 NY)
текстовые метки с названиями основных сессий над графиком
Важные особенности:
отображаются только объекты текущего активного SMT-дня (при смене дня в 18:00 NY все предыдущие боксы, линии и метки автоматически удаляются)
диапазон по вертикали определяется динамически (максимум high за последние 250 баров минус несколько значений ATR)
все временные расчёты производятся в часовом поясе "America/New_York"
есть возможность отдельно включать/выключать 6-часовые боксы, 90-минутные боксы, разделительные линии и метки сессий
настраивается прозрачность боксов через входные параметры
English description of the script
This indicator visualizes the Quarterly Theory (SMT / Smart Money Theory) concept anchored to New York time. The main daily cycle starts at 18:00 NY time and lasts exactly 24 hours — until 18:00 the next day (local NY time, automatically handling daylight saving time transitions).
Each 24-hour SMT day is divided into four 6-hour blocks:
18:00–00:00 (Asia Killzone)
00:00–06:00 (London Open)
06:00–12:00 (NY AM)
12:00–18:00 (NY PM)
Each 6-hour block is further subdivided into four 90-minute micro-cycles.
The indicator draws:
semi-transparent colored rectangles (boxes) for the 6-hour sessions using different colors and corresponding session names
lighter orange boxes for the 90-minute cycles inside each 6-hour block
vertical dashed lines at the boundaries of 6-hour sessions (different colors)
thin dotted lines at the boundaries of 90-minute cycles
a thick vertical line marking the end of the SMT day (next 18:00 NY)
text labels with the main session names placed above the chart
Key features:
only objects belonging to the currently active SMT day are displayed (at the moment the new day starts at 18:00 NY, all previous boxes, lines and labels are automatically removed)
vertical range is calculated dynamically (highest high of the last 250 bars minus several ATR values)
all time calculations are performed in the "America/New_York" timezone
separate toggles are available for 6-hour boxes, 90-minute boxes, session divider lines and session name labels
box transparency for both 6-hour and 90-minute rectangles can be adjusted via input parameters
SMT Quarterly Theory - REAL 6H+90M cyclesEnglish description of the script
This indicator visualizes the Quarterly Theory (SMT / Smart Money Theory) concept anchored to New York time. The main daily cycle starts at 18:00 NY time and lasts exactly 24 hours — until 18:00 the next day (local NY time, automatically handling daylight saving time transitions).
Each 24-hour SMT day is divided into four 6-hour blocks:
18:00–00:00 (Asia Killzone)
00:00–06:00 (London Open)
06:00–12:00 (NY AM)
12:00–18:00 (NY PM)
Each 6-hour block is further subdivided into four 90-minute micro-cycles.
The indicator draws:
semi-transparent colored rectangles (boxes) for the 6-hour sessions using different colors and corresponding session names
lighter orange boxes for the 90-minute cycles inside each 6-hour block
vertical dashed lines at the boundaries of 6-hour sessions (different colors)
thin dotted lines at the boundaries of 90-minute cycles
a thick vertical line marking the end of the SMT day (next 18:00 NY)
text labels with the main session names placed above the chart
Key features:
only objects belonging to the currently active SMT day are displayed (at the moment the new day starts at 18:00 NY, all previous boxes, lines and labels are automatically removed)
vertical range is calculated dynamically (highest high of the last 250 bars minus several ATR values)
all time calculations are performed in the "America/New_York" timezone
separate toggles are available for 6-hour boxes, 90-minute boxes, session divider lines and session name labels
box transparency for both 6-hour and 90-minute rectangles can be adjusted via input parameters
Этот индикатор предназначен для визуализации концепции Quarterly Theory (SMT / Smart Money Theory) с привязкой к нью-йоркскому времени. Основной цикл дня начинается в 18:00 по Нью-Йорку и длится ровно 24 часа — до 18:00 следующего дня (по местному времени NY, с автоматическим учётом перехода на летнее/зимнее время).
Каждый такой 24-часовой SMT-день делится на четыре 6-часовых блока:
18:00–00:00 (Asia Killzone)
00:00–06:00 (London Open)
06:00–12:00 (NY AM)
12:00–18:00 (NY PM)
Каждый 6-часовой блок, в свою очередь, разделён на четыре 90-минутных микроцикла.
Индикатор рисует:
полупрозрачные цветные прямоугольники (боксы) для 6-часовых сессий с разными цветами и соответствующими названиями
более светлые оранжевые боксы для 90-минутных циклов внутри каждого 6-часового блока
вертикальные пунктирные линии на границах 6-часовых сессий (разные цвета)
тонкие точечные линии на границах 90-минутных циклов
вертикальную жирную линию на конец SMT-дня (следующие 18:00 NY)
текстовые метки с названиями основных сессий над графиком
Важные особенности:
отображаются только объекты текущего активного SMT-дня (при смене дня в 18:00 NY все предыдущие боксы, линии и метки автоматически удаляются)
диапазон по вертикали определяется динамически (максимум high за последние 250 баров минус несколько значений ATR)
все временные расчёты производятся в часовом поясе "America/New_York"
есть возможность отдельно включать/выключать 6-часовые боксы, 90-минутные боксы, разделительные линии и метки сессий
настраивается прозрачность боксов через входные параметры
ICT ORG with EightsICT ORG with Eights
What It Does
Plots the RTH overnight gap (4:15pm close → 9:30am open) with eighth-level divisions instead of just quartiles.
Gap Levels:
0.000 (Low) | 0.125 | 0.250 | 0.375 | 0.500 (Mid) | 0.625 | 0.750 | 0.875 | 1.000 (High)
Key Features
Visual gap box between previous close and current open
6 additional levels beyond standard quartiles (0.125, 0.375, 0.625, 0.875)
Customizable labels with dates for each level
Auto SPY detection (adjusts close time to 4:00pm)
Historical gaps - show 1-10 previous days
Extend right - project levels forward with buffer bars
Quick Setup
Best on 5min charts or lower
Start with 1-2 historical boxes for clean charts
Toggle eighth lines on/off as needed
Use labels to track which gap/date you're looking at
Use Cases
Gap fill trading - precise entry/exit at eighth levels
S/R levels - eighths often act as support/resistance
Profit targets - use 0.125/0.875 for extreme reversals, 0.375/0.625 for partial fills
Settings
Time offsets for international indices
No plot session to pause drawing during specific hours
Full customization of colors, styles, widths, labels
Why Eighths?
More granularity = better entries. The 0.125/0.875 and 0.375/0.625 levels provide additional confluence zones where price frequently reacts during gap fills.
[TehThomas] - Order Blocks█ OVERVIEW
This Order Blocks indicator identifies institutional-level support and resistance zones using fractal pattern recognition combined with Fair Value Gap (FVG) filtering. Order blocks represent areas where large institutional orders have been placed, creating significant price reactions when retested. This indicator uses a 5-bar fractal pattern to detect market structure breaks and highlights the last bearish or bullish candle before a strong impulse move.
█ KEY FEATURES
- Fractal-Based Detection: Uses 5-candle fractal patterns to identify key market structure highs and lows
- FVG Filtering: Optional Fair Value Gap confirmation ensures order blocks are followed by true market imbalances
- Automatic Mitigation: Order blocks are automatically removed when price breaks through them
- Overlap Prevention: Prevents cluttered charts by avoiding overlapping order block zones
- Customizable Display: Full control over colors, labels, line heights (body/wick), and maximum blocks shown
- Dual Polarity: Detects both bullish (OB+) and bearish (OB-) order blocks independently
█ HOW IT WORKS
The indicator scans price action for fractal patterns where the middle candle forms a local extreme (highest high or lowest low among 5 bars). When price breaks above a fractal high or below a fractal low, the script identifies the last opposing candle in the impulse move as the order block.
For bearish order blocks, it finds the highest bullish candle before a fractal low is broken, marking institutional selling pressure. For bullish order blocks, it locates the lowest bearish candle before a fractal high is breached, indicating institutional buying.
When FVG filtering is enabled, the indicator confirms that a Fair Value Gap (a 3-candle imbalance where price leaves an unfilled gap) occurred within the specified distance from the order block. This combination increases the probability that institutional traders are present in these zones.
█ SETTINGS
Bullish Order Block Settings
- Show/hide bullish order blocks
- Customize fill color and border color
- Toggle OB+ label display
Bearish Order Block Settings
- Show/hide bearish order blocks
- Customize fill color and border color
- Toggle OB- label display
Label Settings
- Label size: Tiny, Small, Normal, or Large
- Label text color customization
General Settings
- Bars Back to Check (10-200): Lookback period for order block detection
- Filter by FVG: Requires Fair Value Gap confirmation
- Max Bars Between OB and FVG (1-6): Distance tolerance for FVG filtering
- Line Height: Choose between Body or Wick for order block boundaries
- Prevent Overlapping OBs: Avoids drawing overlapping zones
- Max Order Blocks to Display (1-50): Limits active blocks on chart
- Length of Boxes (10-100): Horizontal projection length
█ HOW TO USE
1. Add the indicator to your TradingView chart
2. Configure settings based on your trading timeframe and style
3. Watch for OB+ labels (bullish order blocks) as potential support zones where price may bounce
4. Watch for OB- labels (bearish order blocks) as potential resistance zones where price may reverse
5. Wait for price retracement to the order block zone before taking entries
6. Use confirmation signals like volume spikes or reversal patterns at the order block
7. Place stop loss just outside the order block boundary to manage risk
8. Monitor mitigation: Order blocks disappear when price breaks through them completely
█ TRADING STRATEGY EXAMPLES
Bullish Order Block Strategy
Wait for a market structure shift from bearish to bullish. When price creates a bullish impulse breaking a fractal high, identify the OB+ zone. Enter long positions when price retraces to test the bullish order block, placing stop loss 10-20 pips below the zone's low. Target previous highs or resistance levels.
Bearish Order Block Strategy
Monitor for market structure shift from bullish to bearish. After price creates a bearish impulse breaking a fractal low, locate the OB- zone. Enter short positions when price retraces to test the bearish order block, placing stop loss 10-20 pips above the zone's high. Target previous lows or support levels.
FVG-Confirmed Entries
Enable FVG filtering to only display order blocks validated by Fair Value Gaps. These aligned setups increase probability as they combine institutional order placement with market inefficiencies. Trade retracements to these high-confluence zones for better risk-reward ratios.
█ IDEAL FOR
- ICT Traders: Follows Inner Circle Trader methodology for institutional order flow
- Smart Money Concepts: Tracks where large players place orders
- Swing Traders: Identifies key support/resistance for multi-day holds
- Price Action Traders: Pure chart-based approach without lagging indicators
- Breakout Traders: Confirms structure breaks with fractal patterns
- Forex, Crypto, and Stock Markets: Works on all liquid markets and timeframes
█ TECHNICAL SPECIFICATIONS
- Max Boxes: 500
- Max Labels: 500
- Detection Method: 5-bar fractal pattern recognition
- Mitigation Logic: Automatic removal when price breaks order block boundaries
- Time Projection: Uses time offset calculations for box extension
- Array Management: Dynamic array cleanup to prevent memory issues
█ NOTES & DISCLAIMERS
- Order blocks work best when combined with overall market context and trend analysis
- Not all order blocks result in price reversals; use proper risk management
- FVG filtering may reduce the number of signals but increases quality
- Fractal patterns require 5 bars to form, causing a 2-bar delay in detection
- Works optimally on higher timeframes (4H, Daily) for institutional footprints
- This indicator does not guarantee profitable trades; always use stop losses
- Past performance of order blocks does not predict future results
- Compatible with other ICT concepts like liquidity sweeps and market structure
[COG] Platypus Platypus
Overview
Platypus is a volume momentum indicator that combines price action, volume analysis, and multi-timeframe confirmation to generate trade signals. Unlike traditional volume indicators, Platypus reconstructs volume momentum by factoring in price velocity, volatility adjustment, and market structure to identify true institutional momentum shifts.
The indicator features a comprehensive filtering system including EMA alignment, background state confirmation, and optional multi-timeframe filters to eliminate false signals and ensure you only trade with the strongest momentum.
Key Features
✅ Volume Momentum Calculation
Volatility-Adjusted Volume: Normalizes volume relative to recent volatility periods
Quiet Market Filtering: Reduces noise during low-activity periods
Spike Detection: Identifies abnormal volume surges with boosted weighting
Momentum Smoothing: EMA-based smoothing prevents erratic signals
✅ Entry Pattern Detection
3-Bar Pattern Requirement: RED → GREEN → GREEN for buys (opposite for sells)
State Management: Prevents consecutive signals in same direction without reset
Background Confirmation: Must align with bullish/bearish market state
EMA Alignment Filter: Ensures trend structure supports the trade direction
✅ Multi-Timeframe Filtering System
HTF Closed Bar Filter: Confirms last closed higher timeframe bar matches direction (no repaint)
HTF Momentum Filter: Requires current HTF bar to match direction (live, prevents delayed entries)
Dual-Filter Capability: Use both filters for maximum precision
✅ Dashboard
Real-time Status Monitoring: Volume trend, background state, EMA order, trade state
Filter Status Display: Shows HTF filter conditions and signal permission
Pattern Detection: Indicates when 3-bar entry pattern is forming
✅ On-Chart Integration
50/100/200 EMAs: Automatically plotted on price chart with customizable colors
Visual Entry Markers: Triangle signals appear on price chart at entry points
Signal Alerts: Built-in alert conditions for all signal types
📚 Core Settings Explained
signalPeriod = input.int(8, "Signal Period", minval=1, group="Core Settings")
Signal Period (Default: 8): Controls the smoothing of the signal line (blue line). Lower values = more responsive, higher values = smoother but slower to react.
volatilityPeriod = input.int(20, "Volatility Period", minval=1, group="Core Settings")
Volatility Period (Default: 20): Lookback period for volume and price range calculations. This period is used to normalize volume relative to recent market conditions.
priceFilterLength = input.int(200, "Price Filter MA Length", minval=1, group="Core Settings")
Price Filter MA Length (Default: 200): The SMA period used for background state determination. Price must be above this MA for bullish background, below for bearish background.
Advanced Settings
momentumMultiplier = input.float(50.0, "Momentum Multiplier", minval=20.0, maxval=80.0, step=2.0, group="Advanced")
Momentum Multiplier (Default: 50.0): Scales the final momentum score. Higher values = larger histogram bars and more sensitivity. Adjust based on your instrument's volatility.
momentumSmoothing = input.int(4, "Momentum Smoothing", minval=1, maxval=15, group="Advanced")
Momentum Smoothing (Default: 4): EMA period applied to raw momentum before normalization. Higher values reduce noise but add lag.
quietThreshold = input.float(0.3, "Quiet Market Filter", minval=0.0, maxval=1.0, step=0.05, group="Advanced")
Quiet Market Filter (Default: 0.3): During low-volume periods, this applies exponential dampening to momentum. Higher values = more aggressive filtering of weak moves.
volStrengthFactor = volRatio < (1.0 + quietThreshold) ? math.pow(volRatio, 2) : volRatio
When volume is less than average + threshold, it squares the ratio (dampening), otherwise uses linear scaling.
ICT Liquidity & OTE Engine - Real TimeICT Liquidity & OTE Engine - Real Time
This indicator is a comprehensive toolkit designed for traders utilizing Inner Circle Trader (ICT) concepts. It automates the identification of key structural liquidity pools (Buy Side & Sell Side Liquidity) and calculates real-time Optimal Trade Entry (OTE) levels, allowing you to react instantly to market structure shifts and liquidity sweeps.
Core Features
1. Dynamic Liquidity Pools (BSL / SSL) The script uses pivot high and low logic to identify significant swing points where stop losses and breakout orders typically reside.
BSL (Buy Side Liquidity): Green lines extending from Pivot Highs. These represent areas where short sellers have stops (buy stops).
SSL (Sell Side Liquidity): Red lines extending from Pivot Lows. These represent areas where long traders have stops (sell stops).
2. Real-Time "Sweep" Detection Unlike static support/resistance indicators, this script reacts to live price action.
Visual Feedback: When price "sweeps" or purges a liquidity level (breaks a BSL or SSL line), the line style automatically changes from solid to dotted and becomes semi-transparent.
Why this matters: This provides immediate visual confirmation that a "Stop Hunt" has occurred, often a precursor to a Smart Money reversal.
3. Optimal Trade Entry (OTE) 70.5% The indicator continuously tracks the highest high and lowest low over a definable lookback period (default 40 bars) to establish the current dealing range.
It plots the 70.5% Fibonacci retracement level, which is the classic ICT "Sweet Spot" for entries during a retracement.
This removes the need to manually draw and redraw Fib tools every time the range expands.
4. Bullish Fair Value Gap (FVG) Markers The script highlights specific bars that exhibit bullish displacement gaps, aiding in the identification of strong buying pressure or potential entries after a liquidity sweep.
How It Works
Pivots: It calculates pivots based on your user-defined Lookback input (default 20). A higher number finds longer-term swings; a lower number finds short-term scalping levels.
Liquidity Logic: Once a pivot is confirmed, a line is projected forward. If the current live High or Low breaches this line, the script detects the liquidity run and alters the line's appearance.
OTE Logic: (Highest High - Lowest Low) * 0.705. This dynamic calculation ensures the OTE level moves with the market structure in real-time.
How to Use
Identify the Sweep: Wait for price to run a SSL (Red Line) or BSL (Green Line). Watch for the line to turn dotted, indicating the liquidity has been taken.
Wait for Displacement: Look for a reaction away from the sweep (e.g., a sharp move up after taking SSL).
Find the Entry: Look for price to retrace to the plotted OTE 70.5% Line, ideally aligning with a marked FVG square, to position yourself in alignment with Smart Money.
Settings
Pivot Lookback: Adjusts the sensitivity of the liquidity lines (Default: 20).
Show BSL/SSL Lines: Toggles the liquidity pools on/off.
Show OTE Levels: Toggles the real-time Fibonacci level.
OTE Line Color: Customize the visual style of your entry level.
PSP with Color ThemesEnglish Description
The PSP with Color Themes indicator is a sophisticated tool for detecting price swing divergences between the current trading instrument and a selected reference asset. This indicator implements PSP (Price Swing Divergence) logic to identify moments when price movements between two correlated assets diverge from their typical relationship. Traders can select from multiple professionally designed color themes or customize their own color scheme, with adjustable opacity for optimal chart visibility. The core functionality compares candlestick patterns between the current chart and the reference symbol, highlighting bullish signals when the current asset rises while the reference falls (or vice versa in inverse mode). This divergence detection helps identify potential momentum shifts and trading opportunities before they become apparent in single-asset analysis. The indicator offers flexible configuration including inverse correlation mode for negatively correlated pairs and a clean visual presentation that doesn't clutter the price chart while providing immediate visual cues through colored candlesticks.
Русское описание
Индикатор PSP с цветовыми темами представляет собой продвинутый инструмент для обнаружения дивергенций колебаний цены между текущим торговым инструментом и выбранным эталонным активом. Этот индикатор реализует логику PSP (Price Swing Divergence) для выявления моментов, когда движения цен между двумя коррелирующими активами отклоняются от их типичной взаимосвязи. Трейдеры могут выбирать из нескольких профессионально разработанных цветовых тем или настраивать собственную цветовую схему с регулируемой прозрачностью для оптимальной видимости на графике. Основная функция сравнивает свечные модели между текущим графиком и эталонным символом, выделяя бычьи сигналы, когда текущий актив растет, а эталонный падает (или наоборот в инверсном режиме). Это обнаружение дивергенций помогает выявить потенциальные сдвиги импульса и торговые возможности до того, как они станут очевидными при анализе одного актива. Индикатор предлагает гибкую настройку, включая режим обратной корреляции для отрицательно коррелированных пар, и чистое визуальное представление, которое не загромождает ценовой график, обеспечивая при этом мгновенные визуальные подсказки через окрашенные свечи.
Smart Money Structure FilterEnglish Description
Overview
Smart Money Structure Analyzer is a professional trading tool that implements Smart Money Concepts (SMC) to identify key market structure shifts, Break of Structure (BOS), and Change of Character (CHoCH) patterns. This indicator helps traders follow the "smart money" flow by detecting institutional order flow patterns on any timeframe.
Key Features
Swing Point Detection - Identifies significant highs and lows using fractal-based logic
Market Structure Analysis - Classifies market conditions as Uptrend, Downtrend, or Consolidation
Break of Structure (BOS) - Detects when price breaks key structural levels
Change of Character (CHoCH) - Identifies potential trend reversals
Mitigation Levels - Shows potential retracement targets after structure breaks
How It Works
The indicator analyzes price action through several layers:
Swing Detection Algorithm
Uses a configurable swing period (3-21 bars)
Identifies valid swing highs and lows that are confirmed by surrounding price action
Stores the last 20 swings for structure analysis
Structure Determination
Uptrend: Higher Highs (HH) + Higher Lows (HL)
Downtrend: Lower Lows (LL) + Lower Highs (LH)
Consolidation: Mixed structure or ranging market
Break of Structure (BOS) Logic
Bearish BOS: Price closes below the last confirmed Higher Low (HL)
Bullish BOS: Price closes above the last confirmed Lower High (LH)
Change of Character (CHoCH) Logic
Bearish CHoCH: After a bearish BOS, price forms a Lower Low (confirms trend reversal)
Bullish CHoCH: After a bullish BOS, price forms a Higher High (confirms trend reversal)
Mitigation Levels
Calculates potential retracement levels after BOS (typically ±0.2% from broken structure)
Visual Elements
Fractals: Swing points (optional display)
Structure Lines: Last Higher Low (blue) and Last Lower High (purple)
BOS Signals: Triangles marking structure breaks
CHoCH Signals: Circles confirming trend changes
Mitigation Levels: Dotted orange lines for potential retracements
Info Label: Real-time structure status and key levels
Alerts
The indicator provides alerts for:
Break of Structure (BOS) events
Change of Character (CHoCH) confirmations
Settings
Swing Period: Sensitivity of swing detection (default: 3)
Show Fractals: Toggle swing point markers
Show Structure Lines: Display key structure levels
Show Break of Structure: Display BOS signals
Show Change of Character: Display CHoCH signals
Show Mitigation Levels: Display retracement levels
Best Practices
Use on higher timeframes (1H+) for more reliable signals
Combine with volume analysis for confirmation
Wait for CHoCH confirmation before entering trades
Use mitigation levels as potential entry zones
Русское описание
Обзор
Smart Money Structure Analyzer - профессиональный торговый инструмент, реализующий концепции Smart Money (SMC) для определения ключевых сдвигов рыночной структуры, Break of Structure (BOS) и Change of Character (CHoCH). Индикатор помогает отслеживать поток "умных денег", выявляя паттерны институционального ордерного потока на любом таймфрейме.
Ключевые возможности
Определение свингов - Выявляет значимые максимумы и минимумы с помощью фрактальной логики
Анализ структуры рынка - Классифицирует состояние рынка: Восходящий тренд, Нисходящий тренд или Консолидация
Break of Structure (BOS) - Обнаружение пробития ключевых уровней структуры
Change of Character (CHoCH) - Определение потенциальных разворотов тренда
Уровни митигации - Показывает потенциальные цели отката после пробоя структуры
Принцип работы
Индикатор анализирует ценовое действие через несколько уровней:
Алгоритм определения свингов
Использует настраиваемый период свинга (3-21 свечи)
Определяет валидные максимумы и минимумы, подтвержденные окружающим движением цены
Сохраняет последние 20 свингов для анализа структуры
Определение структуры
Восходящий тренд: Higher Highs (HH) + Higher Lows (HL)
Нисходящий тренд: Lower Lows (LL) + Lower Highs (LH)
Консолидация: Смешанная структура или флет
Логика Break of Structure (BOS)
Медвежий BOS: Цена закрывается ниже последнего Higher Low (HL)
Бычий BOS: Цена закрывается выше последнего Lower High (LH)
Логика Change of Character (CHoCH)
Медвежий CHoCH: После медвежьего BOS формируется Lower Low (подтверждает разворот)
Бычий CHoCH: После бычьего BOS формируется Higher High (подтверждает разворот)
Уровни митигации
Расчет потенциальных уровней отката после BOS (обычно ±0.2% от сломанной структуры)
Визуальные элементы
Фракталы: Точки свингов (опционально)
Линии структуры: Последний Higher Low (синий) и последний Lower High (фиолетовый)
Сигналы BOS: Треугольники, отмечающие пробой структуры
Сигналы CHoCH: Круги, подтверждающие изменение тренда
Уровни митигации: Пунктирные оранжевые линии для потенциальных откатов
Инфо-метка: Статус структуры и ключевые уровни в реальном времени
Оповещения
Индикатор предоставляет алерты для:
Событий Break of Structure (BOS)
Подтверждений Change of Character (CHoCH)
Настройки
Период свинга: Чувствительность определения свингов (по умолчанию: 3)
Показывать фракталы: Включение/выключение маркеров свингов
Показывать линии структуры: Отображение ключевых уровней структуры
Показывать Break of Structure: Отображение сигналов BOS
Показывать Change of Character: Отображение сигналов CHoCH
Показывать уровни митигации: Отображение уровней отката
Рекомендации по использованию
Используйте на старших таймфреймах (1H+) для более надежных сигналов
Комбинируйте с анализом объема для подтверждения
Ждите подтверждения CHoCH перед входом в сделку
Используйте уровни митигации как потенциальные зоны входа
Технические особенности
Максимальное количество меток: 500
Работает на любых таймфреймах
Не перерисовывает прошлые сигналы
Эффективно использует ресурсы благодаря ограничению хранения свингов
Индикатор предназначен для трейдеров, работающих с Price Action и концепциями Smart Money, и помогает систематизировать анализ рыночной структуры в соответствии с подходами институциональных трейдеров.
Custom Dividers [louis]Custom Dividers is a streamlined utility designed for Multi-Timeframe Analysis (MTF). It allows you to visualize higher timeframe structures directly on lower timeframe charts by drawing infinite vertical lines at the open of new periods.
Unlike standard grid lines and other divider indicators, this has custom inputs, giving you complete control over non-standard timeframes (e.g., 90-minute cycles, 6-hour blocks, or 2-day periods).
🔑 Key Features
- 4 Independent Timeframe Slots: Configure up to four different vertical dividers simultaneously.
- Custom Minute Inputs (TF 1 & TF 2): Instead of restricting you to a dropdown, the first two slots allow you to input any integer for minutes.
Example: Set 90 for 90-minute cycle dividers.
Example: Set 360 for 6-hour dividers.
- Standard Timeframe Selectors (TF 3 & TF 4): Traditional dropdowns for standard periods like Daily (D), Weekly (W), or Monthly (M).
- Visual Customization:
Lines: Uses line.new() drawing logic to ensure dividers stretch infinitely from top to bottom, regardless of price scale.
Styles: Select from Solid, Dashed, or Dotted directly in the inputs.
Width & Color: Fully customizable to blend into your chart theme.
⚙️ How to Configure
Go to the Settings (Inputs Tab):
TF 1 & TF 2: Enter the specific number of minutes (e.g., 60 = 1 Hour, 240 = 4 Hours). Toggle the checkbox to Show/Hide.
TF 3 & TF 4: Select the timeframe period from the dropdown. Toggle the checkbox to Show/Hide.
Style: Choose your line style, color, and width.
Note: Since this indicator uses geometric drawings (line.new) to achieve full-height vertical lines, all visual settings (Color, Width, Style) are located in the Inputs Tab, not the Style tab.
Multi-Timeframe Order BlocksDesigned to identify and visualize key supply and demand zones based on order block theory across multiple timeframes. The indicator detects order blocks by analyzing sequential candle patterns and price movement thresholds to highlight potential reversal or continuation zones where institutional buying or selling activity may have occurred.
The indicator works by scanning for clusters of consecutive bullish or bearish candles followed by a significant price move, which signals the formation of an order block. It then plots these zones as colored boxes on the chart—green for demand (bullish order blocks) and red for supply (bearish order blocks). The zones can be based on candle bodies or wicks, depending on user preference, and the indicator supports multi-timeframe analysis by allowing optional higher timeframe inputs.
How It Works:
Sequential Candle Detection: The indicator looks for a specified number of consecutive bullish or bearish candles (configurable by the user) to identify potential order blocks.
Price Movement Threshold: It checks if the price movement after the order block formation exceeds a user-defined percentage threshold, ensuring only significant zones are marked.
Zone Plotting: Once an order block is confirmed, the indicator draws a supply or demand zone as a box on the chart, using either candle bodies or wicks for zone boundaries.
Multi-Timeframe Support: Users can optionally specify higher timeframes to incorporate broader market context, enhancing the reliability of the zones.
Zone Management: The indicator limits the number of zones displayed to avoid clutter, automatically removing the oldest zones when the maximum count is exceeded.
How to Interpret:
Demand Zones (Green Boxes): These represent areas where buying pressure was strong enough to create a bullish order block. Price often finds support here, making these zones potential entry points for long trades or areas to watch for price bounces.
Supply Zones (Red Boxes): These indicate areas of strong selling pressure forming bearish order blocks. Price may face resistance in these zones, which can be used as potential exit points for longs or entry points for shorts.
Multi-Timeframe Confirmation: Zones identified on higher timeframes tend to be stronger and more reliable. Use the optional higher timeframe inputs to align your trades with broader market trends.
Use with Other Indicators: Combine order block zones with volume, momentum, or trend indicators to improve trade confirmation and risk management.
Zone Breaks: A decisive break and close beyond a supply or demand zone may signal a shift in market sentiment and potential trend continuation or reversal.
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial advice. Trading involves significant risk, and it is possible to lose more than your initial investment. Users should conduct their own research and consider their financial situation carefully before making any trading decisions. The developer and publisher of this indicator are not responsible for any trading losses or damages incurred. Always use proper risk management and consult with a licensed financial advisor if needed.
15 Zaman Kutusu ve 10 Zaman Acilisi15 Range Boxes & 10 Open Lines
This indicator is a comprehensive technical analysis tool designed to track specific time intervals (Sessions, Killzones) and critical opening prices on your chart.
Key Features:
15 Custom Range Boxes: Individual settings for color, time, and labels.
10 Open Price Lines: Track daily, weekly, or session opens.
Smart History Limit: "Son X Kutuyu Goster" feature preventing lag and flickering.
Pips Display: Automatically calculates and displays the range width in pips.
Minimalist Mode: Hides details when "Cok Kucuk" label size is selected.
Language: Fully Turkish menu settings.
Note: Inspired by Nephew Sam's concept, coded from scratch with performance optimizations and additional features.
DISCLAIMER This indicator is for educational purposes only. It does not constitute financial advice or trading signals. Use at your own risk.
[LJ] RSIM + ICT KillzonesIndicator Summary
This Pine Script indicator is a comprehensive, all-in-one toolkit designed for traders utilizing Inner Circle Trader (ICT) concepts. It visually maps out crucial time-based trading sessions, killzones, and key opening price levels directly on the chart. Alongside the time and price tools, it features a real-time "RSIM" (MTF RSI Monitor) dashboard to track market momentum across multiple timeframes, all while maintaining a lag-free chart through automated drawing cleanup.
Core Functionalities
ICT Killzones & Silver Bullets:
Visually demarcates specific high-probability trading windows—including the Asian, London, and New York (AM & PM) killzones, as well as the UK and US "Silver Bullet" times—using vertical lines and colored background highlights.
Key Opening Price Levels:
Automatically plots horizontal lines for significant opening prices, such as the New York Midnight Open (often used as true day open), CME Open, and NY AM/PM Opens. It also includes Higher Time Frame (HTF) levels for Weekly and Monthly opens.
Session High/Low Tracking:
Actively tracks and draws horizontal price levels for the High and Low of the current day, previous day, and individual Globex, Asian, London, and NY sessions.
Multi-Timeframe RSI Dashboard (RSIM):
An on-chart table that displays the current Relative Strength Index (RSI) values and a live countdown timer ("time to close") for the 5-minute, 15-minute, 1-hour, 4-hour, Daily, and Weekly timeframes.
Lunch "No-Trade-Zone":
Specifically highlights the New York Lunch period, visually warning traders of potential low-volume or erratic price action.
Automated Housekeeping:
A built-in memory management system that automatically deletes drawings (lines and labels) older than a user-defined number of days to prevent chart clutter and performance lag.
Built-in Debug Logger:
An optional on-chart logging table that tracks session triggers and script events, helping traders verify that times and levels are plotting correctly for their selected asset.
cephxs + fadi / HTF PSPHTF PSP - PRECISION SWING POINTS
Detect divergence-based Precision Swing Points (PSPs) across multiple higher timeframes with automatic correlated asset detection.
WHAT'S NEW (vs Original HTF Candles)
This indicator builds on @fadizeidan's excellent ICT HTF Candles foundation with significant new functionality, depending on who you ask of course:
✨ PSP Divergence Detection: Automatically identifies Precision Swing Points where price diverges from correlated assets—the original has no divergence analysis
✨ Auto Asset Correlation: Uses AssetCorrelationUtils library to detect and pair correlated assets (ES↔NQ↔DXY, BTC↔ETH, Gold↔Silver, etc.)—no manual setup required
✨ Multi-Asset Comparison: Tracks up to 3 correlated assets simultaneously with divergence relationships between all pairs
✨ Dynamic Asset Reordering: When you switch charts, the indicator automatically reorders assets so your chart is always primary
✨ Inverse Correlation Support: Properly handles inversely correlated assets like DXY (bullish DXY = bearish signal for risk assets)
✨ HTF Sweep Detection: New sweep line feature highlights when HTF candles take out previous highs/lows and close back inside. One of my followers asked me for this, there you go anon.
🔧 Streamlined to 3 HTFs: Focused design with 3 HTF slots (vs 6) for cleaner charts and better performance
The original remains excellent for pure HTF candle visualization. This version adds institutional flow analysis through divergence detection.
WHAT IT DOES
This indicator displays Higher Timeframe (HTF) candles to the right of your chart and highlights Precision Swing Points—pivots where price diverges from correlated assets. When ES makes a new high but NQ doesn't follow, or gold pushes higher while DXY fails to confirm, you're looking at institutional repositioning.
PSPs mark these moments on your HTF candles, giving you a clean visual signal for potential reversals.
HOW IT WORKS
Divergence Detection
The indicator compares price action between your chart and up to two correlated assets. A divergence occurs when one asset makes a directional move (bullish/bearish candle) while a correlated asset moves the opposite direction.
Three divergence relationships are tracked:
Primary vs Secondary (e.g., ES vs NQ)
Primary vs Tertiary (e.g., ES vs DXY)
Secondary vs Tertiary (e.g., NQ vs DXY)
PSP Confirmation
A candle is marked as a PSP when:
A divergence exists between correlated assets
A swing pivot forms (high > previous high AND high > next high, or vice versa for lows)
This dual confirmation filters noise and highlights only meaningful institutional activity.
Automatic Asset Detection
In Auto mode, the indicator uses the AssetCorrelationUtils library to detect your chart's asset class and automatically select the most relevant correlated pairs:
Indices: ES ↔ NQ ↔ DXY, YM ↔ ES ↔ NQ
Forex: EURUSD ↔ DXY ↔ GBPUSD, USDJPY ↔ DXY ↔ US10Y
Crypto: BTC ↔ ETH ↔ DXY
Metals: Gold ↔ Silver ↔ DXY
Energy: CL (Oil) ↔ NG ↔ DXY
HTF Sweep Detection
Sweeps are detected when an HTF candle (C2) takes out the high or low of the previous candle (C1) and then closes back inside. This marks liquidity grabs on the higher timeframe.
HOW TO USE
Enable HTF timeframes: Select 1-3 higher timeframes relevant to your trading style (e.g., 30m, 90m, 4H for intraday traders)
Watch for PSP candles: When a candle body color changes to the divergence color, a PSP has formed
Note the direction: Bullish divergence (your asset bullish while correlated asset bearish) suggests upside; bearish divergence suggests downside
Combine with LTF structure: Use PSPs as bias, then look for entry on lower timeframes (CHoCH, FVG, etc.)
Sweeps confirm liquidity: A sweep followed by a PSP is a strong reversal signal
INPUTS
HTF Selection
HTF 1/2/3: Enable/disable each HTF slot with timeframe and candle count
Custom Daily Open: Use Midnight, 8:30, or 9:30 ET as daily candle open
Styling
Body/Border/Wick Colors: Customize bullish and bearish candle appearance
Padding/Buffer/HTF Buffer: Control spacing between candles and timeframe groups
Labels
HTF Label: Show timeframe name above/below candles
Remaining Time: Countdown to candle close
Label Position: Top, Bottom, or Both
Label Alignment: Align across timeframes or follow individual candles
Interval Value: Show interval details on candles
Imbalance
Fair Value Gap: Highlight FVGs on HTF candles
Volume Imbalance: Highlight VIs on HTF candles
HTF Sweeps: Show sweep lines when C2 takes out C1's high/low
Trace
Trace Lines: Draw lines from HTF candle OHLC levels back to chart price
Anchor: Anchor to first or last timeframe
PSP Divergence Detection
Precise Mode: Only highlight pivots on current asset (stricter confirmation)
Divergence Body Colors: Custom colors for bullish/bearish divergence candles
Asset Selection
Correlation Preset: Auto (library-detected) or Manual
Manual Assets 1/2/3: Specify custom correlated assets
Invert Asset 3: Flip the bullish/bearish interpretation for inverse correlations (e.g., DXY)
KEY FEATURES
Multi-HTF Display: Up to 3 higher timeframes displayed simultaneously
Auto Asset Detection: Automatically finds relevant correlated assets for your chart
Dynamic Reordering: When you switch charts, assets reorder so the chart is always primary
Inverse Correlation Support: Properly handles DXY and other inversely correlated assets
HTF Sweep Detection: Highlights liquidity grabs on higher timeframes
FVG/VI Detection: Fair Value Gaps and Volume Imbalances on HTF candles
Remaining Time Counter: Know exactly when the next HTF candle closes
BEST PRACTICES
Use PSPs as directional bias, not direct entries—wait for LTF confirmation
A PSP at a key level (previous day high, weekly open) carries more weight
Multiple PSPs across different HTFs pointing the same direction = stronger signal
Sweeps that fail to hold (sweep + PSP) often mark significant reversals
In Auto mode, trust the library's asset selection—it's been tuned for common correlations
DISCLAIMER
This indicator is for educational purposes only and does not constitute financial advice. Divergences and PSPs do not guarantee reversals—always use proper risk management and confirm signals with your own analysis. Past performance does not guarantee future results.
CREDITS
Original HTF candle plotting concept by @fadizeidan. PSP divergence detection and asset correlation logic by cephxs & fstarcapital. Uses the AssetCorrelationUtils library by fstarcapital.
Open Sourced For all.
Enjoy.
Made with ❤️ by cephxs + fadi
cephxs + fadi / Previous Time Based Dealing RangesPREVIOUS TIME BASED DEALING RANGES
Visualize previous and current higher timeframe dealing ranges with dual-box OHLC representation, extending reference lines, and HTF candle displays.
Open Source Fork of @fadizeidan 's HTF Candles Indicator
OVERVIEW
This indicator displays time-based dealing ranges from higher timeframes directly on your chart. It shows the complete price action structure of previous (or current/forming) periods using a dual-box system: one box for the full High-Low range and another for the Open-Close body. Reference lines extend from key levels to help identify potential support, resistance, and mean reversion zones.
Perfect for traders who use ICT concepts, market structure analysis, or any methodology that relies on understanding where price has been relative to previous dealing ranges.
KEY FEATURES
Dual-Box Range Visualization: Each range displays two boxes - the full H-L range (outer) and the O-C body (inner) - giving immediate visual context of candle structure
Multiple Timeframes: Support for 90m, 4H, 6H, 1D, 1W, 1M, and 3M ranges
Previous/Current Mode: View completed ranges (Previous) or the forming range (Current) with real-time updates
Auto Mode: Automatically selects the appropriate range based on your chart timeframe
Reference Lines: Extending lines from High, Mid, Low (or Quadrants: H/75/M/25/L) with trade-into detection
HTF Candle Display: Visual HTF candles positioned to the right of price for context
6H Session Support: Session-aware ranges for Asia, London, NY AM, and NY PM with labeled names
Open Line: Vertical line marking the range's opening price/time
Imbalance Detection: Fair Value Gaps and Volume Imbalances highlighted on HTF candles
MODE OPTIONS
Previous/Current: Previous shows the last completed range. Current shows the forming range with dynamic H/L/C updates
Auto/Manual: Auto selects range by chart TF. Manual lets you choose specific ranges
Extend Box (Current): In Current mode, extends the box's right edge as price develops
AUTO MODE TIMEFRAME LOGIC
Auto mode now selects up to 3 ranges automatically based on chart timeframe, providing multi-timeframe context:
Chart ≤ 3m → 90m + 6H + 1D
Chart 4m-14m → 6H + 1D + 1W
Chart 15m-59m → 1D + 1W (+ 1M available)
Chart 1H-3H → 1D + 1W + 1M
Chart 4H-23H → 1W + 1M + 3M
Chart ≥ 1D → 1M + 3M
INPUTS
Mode
Mode: Previous/Current - Choose completed or forming range
Auto/Manual: Auto selects range by chart TF, Manual lets you choose
Extend Box (Current): Extends box right edge with price (Current mode only)
Show Range Boxes: Toggle box visibility (lines remain visible when off)
Filter Lines by Distance: When boxes are hidden, hide reference lines that are too far from current price (Really Close / Balanced / Slightly Far)
Previous Ranges
Range 1: Enable/disable, select timeframe (90m/4H/6H/1D/1W/1M/3M), max display count (1-2)
Range 2: Second range layer for multi-timeframe analysis
Range 3: Third range layer for additional context
Reference Lines
Line Mode: Levels (H/M/L) or Quadrants (H/75/M/25/L)
Line Style: Solid, dashed, or dotted
Line Thickness: 1-4 pixels
Show Labels: Toggle reference line labels
Label Offset: Distance of labels from current price (1-20 bars)
HTF Candle Levels: Show mini H/M/L lines on HTF candles
Open Line: Vertical line at range open with customizable style
Range Boxes & Colors
Per-Range Colors: Customize box and line colors for each timeframe (90m, 4H, 6H, 1D, 1W, 1M, 3M)
HTF Candle Styling
Show HTF Candles: Toggle HTF candle display
Body/Border/Wick Colors: Customize bull and bear candle appearance
Padding/Buffer/Width: Control candle spacing and size
Labels
HTF Label: Show timeframe label above/below candles
Remaining Time: Countdown timer to candle close
Label Position: Top, Bottom, or Both
Label Alignment: Align across timeframes or follow individual candles
Imbalance
Fair Value Gap: Highlight FVGs on HTF candles
Volume Imbalance: Highlight VIs on HTF candles
HOW TO USE
Add the indicator to your chart
Choose Previous or Current mode based on your analysis preference
Use Auto mode for intelligent range selection, or Manual to select specific timeframes
Reference lines extend from range levels - watch for price reactions at H/M/L
In Current mode, observe how the range develops with real-time updates
Use the HTF candles on the right for quick multi-timeframe context
REFERENCE LINE LABELS
Labels follow this format:
Previous mode: pD-H (previous Daily High), pW-M (previous Weekly Mid), p6H-London-L (previous 6H London Low)
Current mode: D-H (Daily High), W-M (Weekly Mid), 6H-Asia-L (6H Asia Low)
6H SESSION NAMES
Asia: 18:00-00:00 ET
London: 00:00-06:00 ET
NYAM: 06:00-12:00 ET
NYPM: 12:00-18:00 ET
RECOMMENDED TIMEFRAMES
Tick/Second charts: 90m ranges
1-5 minute charts: 6H or 1D ranges
15-60 minute charts: 1D or 1W ranges
4H charts: 1W or 1M ranges
Daily charts: 1M or 3M ranges
Or simply use Auto mode to let the indicator choose the optimal range.
TIPS
The Mid (M) level often acts as equilibrium - watch for mean reversion plays
High and Low levels are natural support/resistance zones
In Current mode, watch how price interacts with the forming range boundaries
Combine with your existing analysis for confluence
The Open Line helps identify the "true open" of each range for gap analysis
DISCLAIMER
This indicator is for educational and informational purposes only.
Past performance does not guarantee future results.
Always use proper risk management and never risk more than you can afford to lose.
Trading involves substantial risk of loss and is not suitable for all investors.
CREDITS
Original indicator by @fadizeidan.
Enhanced by cephxs/fstarcapital
CHANGELOG
Pro + v1.1: Reupload + Added 90m ranges for ultra-low timeframe analysis, distance-based line filtering (lines-only mode), third range slot.
Open sourced so users can add more slots.
Enjoy 🤙
cephxs / New X Opening Gaps [Pro +]NWOG & NDOG - OPENING GAPS
Smart Gap Detection with Intelligent Filtering
Visualizes New Week Opening Gaps (NWOGs) and New Day Opening Gaps (NDOGs) with built-in intelligence to show you only what matters. No more cluttered charts with gaps from 3 months ago that price will never revisit.
THE PROBLEM WITH GAP INDICATORS
Most gap indicators dump every single gap on your chart and call it a day. You end up with 50 boxes cluttering your screen, half of which are miles away from current price and the other half are so tiny they're basically noise.
This one's different and I explain why below.
SMART FILTERING (THE GOOD STUFF)
Two filters work together to keep your chart clean:
Size Filter: Uses ATR-based detection to filter out insignificant gaps, dynamic with less volatile time periods
- Filter None: Show everything (if you really want chaos)
- Filter Insignificant: Hide the micro-gaps that don't matter
- Juicy Gaps Only: Only show gaps worth paying attention to
Distance Filter: Only displays gaps within range of current price
- Really Close: 0.5 ATR - tight focus on immediate levels
- Balanced: 1 ATR - sweet spot for most traders
- Slightly Far: 3 ATR - wider view for swing traders
Cleanup Interval: Controls how quickly out-of-range gaps disappear
- Immediately: Gaps hide/show every bar as price moves
- 5 / 15 / 30 Minutes: Gaps only update visibility at interval boundaries - reduces visual noise during choppy price action
The magic: gaps appear and disappear as price moves toward or away from them. Old gaps that price has left behind fade out, and gaps that become relevant fade back in. Use delayed cleanup intervals if you want gaps to "stick around" a bit longer before disappearing.
GAP TYPES EXPLAINED
New Week Opening Gaps (NWOGs):
The gap between Friday's close and Monday's open. These form over the weekend when markets are closed and often act as significant support/resistance.
Two classifications:
Void Gaps: Gap direction aligns with Friday's candle direction (continuation)
Overlap Gaps: Gap direction conflicts with Friday's candle (potential reversal)
New Day Opening Gaps (NDOGs):
The gap between one day's close and the next day's open. Smaller but frequent - useful for intraday traders looking for fill targets.
FEATURES
Automatic Week/Day Detection: Handles forex (17:00 ET open) and futures (18:00 ET open) correctly
DST-Aware: Uses New York timezone with automatic daylight saving adjustments
50% Equilibrium Line: Marks the midpoint of each gap - key level for entries
Days Ago Labels: Shows how old each gap is at a glance
Extension Modes: Choose between live-extending boxes or fixed-width boxes
Separate Color Schemes: Different colors for void vs overlap NWOGs, bullish vs bearish NDOGs
INPUTS
NWOG Display
Show NWOGs: Master toggle
Extension Mode: "Extend Live" or "Extend to Week Close"
Maximum NWOGs: Limit displayed gaps (1-50)
Show Void/Overlap Gaps: Toggle each type independently
Show NWOG Labels: Toggle gap labels
NDOG Display
Show NDOGs: Master toggle
Extension Mode: "Extend Live" or "Extend to Day Close"
Maximum NDOGs: Limit displayed gaps (1-50)
Show NDOG Labels: Toggle gap labels
Filter Settings
Size Filter: Filter None / Filter Insignificant / Juicy Gaps Only
Only Show Near Price: Enable/disable distance filtering
Distance Filter: Really Close / Balanced / Slightly Far
Cleanup Interval: Immediately / 5 Minutes / 15 Minutes / 30 Minutes - controls how often gaps update visibility
ATR Period: Period for ATR calculation (default: 14)
Right Edge Offset: How many bars ahead boxes extend
Styling
Box Transparency: Fill and border opacity
Midline Style: Solid / Dotted / Dashed
Label Style: Simple ("NWOG, 5d ago") or Descriptive ("NWOG (Void Bull), 5d ago")
Label Size: Tiny / Small / Normal / Large
RECOMMENDED SETTINGS
For intraday (1m-15m):
Size Filter: Filter Insignificant
Distance Filter: Really Close or Balanced
Show NDOGs: On
Maximum NDOGs: 5-10
For swing trading (1H-4H):
Size Filter: Juicy Gaps Only
Distance Filter: Balanced or Slightly Far
Show NWOGs: On
Maximum NWOGs: 10-20
TIMEFRAME NOTES
Works on daily timeframe and below. Above daily, the indicator disables itself since NWOG/NDOG gap detection requires daily open/close data.
ASSET SUPPORT
Automatically handles different market open times:
Forex: Week opens Sunday 17:00 ET, closes Friday 17:00 ET
Futures: Week opens Sunday 18:00 ET, closes Friday 16:15 ET
Stocks/Other: Uses session-based detection
FAQ
Why do gaps appear and disappear?
That's the distance filter working. As price moves, gaps that were far away become relevant and appear. Gaps that price leaves behind disappear. This keeps your chart focused on actionable levels.
What's the difference between void and overlap gaps?
Void gaps continue Friday's direction (trend continuation). Overlap gaps conflict with Friday's direction (potential reversal setup). Different traders prefer different types.
Why can't I see any gaps?
Check your filter settings. "Juicy Gaps Only" with "Really Close" distance filter is very selective. Try "Filter Insignificant" with "Balanced" for more gaps.
DISCLAIMER
This indicator is for educational purposes only. Opening gaps are one tool among many - they don't guarantee fills or reversals. Always use proper risk management and never trade based on a single indicator. Past gap fills don't guarantee future performance. Do your own analysis.
CHANGELOG
Pro +: Added smart size/distance filtering, void/overlap classification, NDOG support, DST-aware timezone handling
Base: Initial NWOG visualization
Made with ❤️ by fstarlabs
Key levels by Chav3zNY-Time Anchored Sessions
Visualizes the Asia, London, and New York sessions using customizable boxes or high/low lines. Unlike standard session indicators, this tool uses the America/New York time zone to ensure your session start and end times remain accurate throughout Daylight Savings changes.
2. Dynamic HTF Key Levels (PDH/PDL, PWH/PWL, PMH/PML)
Automatically plots the Previous Daily, Weekly, and Monthly Highs and Lows.
Clean Intraday Origin: To prevent "chart clutter," these lines do not drag across the entire historical data. They originate at the start of the current day (NY Midnight), providing a clean horizontal reference for the current trading session.
Lookback Control: Choose how many days of historical key levels you want to remain visible on your chart.
3. Custom Time-Anchored Levels
Includes two fully customizable "Price Anchors" (e.g., Midnight Open, 09:30 AM NY Open).
Origin Point Precision: Lines start exactly at the candle of the specified time (e.g., 09:30) and extend forward, rather than drawing through the pre-market.
Price Capture: Choose to anchor to the Open, High, or Low of that specific timestamp.
4. Full Aesthetic Customization
Every level (Daily, Weekly, Monthly, and Custom) can be individually styled:
Color & Visibility: Set each level to your preferred color (Defaulted to Black for a clean look).
Line Style: Toggle between Solid, Dashed, or Dotted lines.
Thickness: Adjust the line width (1px, 2px, etc.) for better visibility on high-resolution screens.
How to Use
Midnight Open: Set Level 1 to 0000 to track the Daily Open, a crucial level for determining daily bias.
NY Open: Set Level 2 to 0930 to mark the "Opening Range" anchor for the New York session.
Liquidity Targets: Use the PDH/PDL and PWH/PWL levels to identify draw-on-liquidity areas for intraday scalp or swing setups.
AssetCorrelationUtils
- Open source Library Used for Indicators that utilize correlation between assets for divergence calculations. It has no drawing elements.
ASSET CORRELATION UTILS
PineScript library for automatic detection of correlated asset pairs and triads for multi-asset analysis.
WHAT IT DOES
This library automatically identifies correlated assets based on the current chart symbol. It returns properly configured asset pairings for use in SMT divergence detection, inter-market analysis, and multi-asset comparison tools.
HOW IT WORKS
The library matches your chart symbol against known correlation groups:
Index Futures: NQ/ES/YM/RTY triads (including micros)
Metals: Gold/Silver/Copper triads (futures and CFD)
Forex: EUR/GBP/DXY and USD/JPY/CHF triads
Energy: Crude/Gasoline/Heating Oil triads
Treasury: ZB/ZF/ZN bond triads
Crypto: BTC/ETH/TOTAL3 and major altcoin pairings
Inversion flags are automatically computed for assets that move inversely (e.g., DXY vs EUR pairs).
HOW TO USE
import fstarcapital/AssetCorrelationUtils/1 as acu
// Simple: auto-detect from current chart
config = acu.resolveCurrentChart()
// Access resolved assets
primary = config.primary
secondary = config.secondary
tertiary = config.tertiary
EXPORTED FUNCTIONS
resolveCurrentChart(): One-call auto-detection using chart syminfo
resolveAssets(): Full detection with custom parameters
resolveTriad() / resolveDyad(): Manual resolution with inversion logic
detect*() functions: Category-specific detectors for custom workflows
TYPES
AssetPairing: Core structure for primary/secondary/tertiary tickers with inversion flags
AssetConfig: Full resolution result with detection status and asset category
DISCLAIMER
This library is a utility for building multi-asset indicators. Asset correlations are not guaranteed and may change over time. Always validate pairings for your specific trading context.
Full Default Function @type and @field descriptions below.
Library "AssetCorrelationUtils"
detectIndicesFutures(ticker)
Detects Index Futures (NQ/ES/YM/RTY + micro variants)
Parameters:
ticker (string) : The ticker string to check (typically syminfo.ticker)
Returns: AssetPairing with secondary and tertiary assets configured
detectMetalsFutures(ticker)
Detects Metal Futures (GC/SI/HG + micro variants)
Parameters:
ticker (string) : The ticker string to check
Returns: AssetPairing with secondary and tertiary assets configured
detectForexFutures(ticker)
Detects Forex Futures (6E/6B + micro variants)
Parameters:
ticker (string) : The ticker string to check
Returns: AssetPairing with secondary and tertiary assets configured
detectEnergyFutures(ticker)
Detects Energy Futures (CL/RB/HO + micro variants)
Parameters:
ticker (string) : The ticker string to check
Returns: AssetPairing with secondary and tertiary assets configured
detectTreasuryFutures(ticker)
Detects Treasury Futures (ZB/ZF/ZN)
Parameters:
ticker (string) : The ticker string to check
Returns: AssetPairing with secondary and tertiary assets configured
detectCryptoFutures(ticker)
Detects CME Crypto Futures (BTC/ETH + micro variants)
Parameters:
ticker (string) : The ticker string to check
Returns: AssetPairing with secondary and tertiary assets configured
detectCADFutures(ticker)
Detects CAD Forex Futures (6C + micro variants)
Parameters:
ticker (string) : The ticker string to check
Returns: AssetPairing with secondary and tertiary assets configured
detectForexCFD(ticker, tickerId)
Detects Forex CFD pairs (EUR/GBP/DXY, USD/JPY/CHF triads)
Parameters:
ticker (string) : The ticker string to check
tickerId (string) : The full ticker ID (syminfo.tickerid) for primary asset
Returns: AssetPairing with secondary and tertiary assets configured
detectCrypto(ticker, tickerId)
Detects major Crypto assets (BTC, ETH, SOL, XRP, alts)
Parameters:
ticker (string) : The ticker string to check
tickerId (string) : The full ticker ID for primary asset
Returns: AssetPairing with secondary and tertiary assets configured
detectMetalsCFD(ticker, tickerId)
Detects Metals CFD (XAU/XAG/Copper)
Parameters:
ticker (string) : The ticker string to check
tickerId (string) : The full ticker ID for primary asset
Returns: AssetPairing with secondary and tertiary assets configured
detectIndicesCFD(ticker, tickerId)
Detects Indices CFD (NAS100/SP500/DJ30)
Parameters:
ticker (string) : The ticker string to check
tickerId (string) : The full ticker ID for primary asset
Returns: AssetPairing with secondary and tertiary assets configured
detectEUStocks(ticker, tickerId)
Detects EU Stock Indices (GER40/EU50) - Dyad only
Parameters:
ticker (string) : The ticker string to check
tickerId (string) : The full ticker ID for primary asset
Returns: AssetPairing with secondary asset configured (tertiary empty for dyad)
getDefaultFallback(tickerId)
Returns default fallback assets (chart ticker only, no correlation)
Parameters:
tickerId (string) : The full ticker ID for primary asset
Returns: AssetPairing with chart ticker as primary, empty secondary/tertiary (no correlation)
applySessionModifierWithBackadjust(tickerStr, sessionType)
Applies futures session modifier to ticker WITH back adjustment
Parameters:
tickerStr (string) : The ticker to modify
sessionType (string) : The session type (syminfo.session)
Returns: Modified ticker string with session and backadjustment.on applied
applySessionModifierNoBackadjust(tickerStr, sessionType)
Applies futures session modifier to ticker WITHOUT back adjustment
Parameters:
tickerStr (string) : The ticker to modify
sessionType (string) : The session type (syminfo.session)
Returns: Modified ticker string with session and backadjustment.off applied
isTriadMode(pairing)
Checks if a pairing represents a valid triad (3 assets)
Parameters:
pairing (AssetPairing) : The AssetPairing to check
Returns: True if tertiary is non-empty (triad mode), false for dyad
getAssetTicker(tickerId)
Extracts clean ticker string from full ticker ID
Parameters:
tickerId (string) : The full ticker ID (e.g., "BITGET:BTCUSDT.P")
Returns: Clean ticker string (e.g., "BTCUSDT.P")
resolveTriad(chartTickerId, pairing)
Resolves triad asset assignments with proper inversion flags
Parameters:
chartTickerId (string) : The current chart's ticker ID (syminfo.tickerid)
pairing (AssetPairing) : The detected AssetPairing
Returns: Tuple
resolveDyad(chartTickerId, pairing)
Resolves dyad asset assignment with proper inversion flag
Parameters:
chartTickerId (string) : The current chart's ticker ID
pairing (AssetPairing) : The detected AssetPairing (dyad: tertiary is empty)
Returns: Tuple
resolveAssets(ticker, tickerId, assetType, sessionType, useBackadjust)
Main auto-detection entry point. Detects asset category and returns fully resolved config.
Parameters:
ticker (string) : The ticker string to check (typically syminfo.ticker)
tickerId (string) : The full ticker ID (typically syminfo.tickerid)
assetType (string) : The asset type (typically syminfo.type)
sessionType (string) : The session type for futures (typically syminfo.session)
useBackadjust (bool) : Whether to apply back adjustment for futures session alignment
Returns: AssetConfig with fully resolved assets, inversion flags, and detection status
resolveCurrentChart()
Simplified auto-detection using current chart's syminfo values
Returns: AssetConfig with fully resolved assets, inversion flags, and detection status
AssetPairing
Core asset pairing structure for triad/dyad configurations
Fields:
primary (series string) : The primary (chart) asset ticker ID
secondary (series string) : The secondary correlated asset ticker ID
tertiary (series string) : The tertiary correlated asset ticker ID (empty for dyad)
invertSecondary (series bool) : Whether secondary asset should be inverted for divergence calc
invertTertiary (series bool) : Whether tertiary asset should be inverted for divergence calc
AssetConfig
Full asset resolution result with mode detection and computed values
Fields:
detected (series bool) : Whether auto-detection succeeded
isTriadMode (series bool) : True if triad (3 assets), false if dyad (2 assets)
primary (series string) : The resolved primary asset ticker ID
secondary (series string) : The resolved secondary asset ticker ID
tertiary (series string) : The resolved tertiary asset ticker ID (empty for dyad)
invertSecondary (series bool) : Computed inversion flag for secondary asset
invertTertiary (series bool) : Computed inversion flag for tertiary asset
assetCategory (series string) : String describing the detected asset category
PSP with Color ThemesPSP (Price State Parity) Indicator
This indicator identifies Price State Parity between the current trading instrument and a reference asset. It visually highlights candles where price movements show significant correlation patterns.
Key Features:
Dual Mode Operation:
Divergence Mode (Default): Highlights candles where current and reference assets move in opposite directions
Convergence Mode (Inverse): Highlights candles where both assets move in the same direction
Customizable Visualization:
Separate color selection for bullish and bearish PSP candles
Adjustable transparency for optimal chart visibility
Non-PSP candles remain unchanged for clear price action reading
Flexible Reference Asset:
Compare against any TradingView symbol (crypto, forex, stocks, indices)
Default: ETH/USDT for crypto correlation analysis
Use Cases:
Crypto Correlation Trading: Spot divergence/convergence between crypto pairs
Inter-Market Analysis: Compare stocks with sector ETFs or indices
Forex Pairs Correlation: Analyze currency pair relationships
Hedging Opportunities: Identify when correlated assets decouple
How to Use:
Select your reference symbol in settings
Choose between Divergence or Convergence mode
Customize colors to match your trading style
Watch for highlighted candles indicating PSP signals
Indicator Logic:
Bullish PSP: Current candle bullish + Reference candle bearish (or same in inverse mode)
Bearish PSP: Current candle bearish + Reference candle bullish (or same in inverse mode)
AI-Enhanced MSS HunterAI-Enhanced MSS Hunter
This indicator is a hybrid trading system that merges Mechanical Price Action (ICT Concepts) with Statistical Machine Learning (K-Nearest Neighbors). It is designed to assist traders in identifying high-probability reversals after liquidity sweeps, as well as trend-continuation entries during specific "Kill Zone" sessions.
How It Works
The script operates on a strict 3-step validation process to filter out false signals during choppy market conditions.
1. Liquidity Sweep (The Trigger) The system automatically plots the Previous Day High (PDH) and Previous Day Low (PDL).
The logic begins only when price "sweeps" (breaks) one of these key levels.
State Persistence: Once a level is swept, the system remembers this event for the remainder of the session (or until a signal fires), waiting for the market to reverse.
2. Market Structure Shift (The Setup) After a sweep, the indicator hunts for a Market Structure Shift (MSS).
It tracks dynamic Swing Highs and Swing Lows.
A signal is prepared only if price breaks a recent structural swing point in the opposite direction of the sweep (e.g., Sweep PDL -> Break Swing High).
3. AI / Machine Learning Filter (The Confirmation) To reduce false positives, the signal must be confirmed by a K-Nearest Neighbors (KNN) algorithm.
The Logic: The script analyzes the current values of RSI (14), CCI (14), and ROC (10).
The Comparison: It looks back at the last ~1,000 bars of history to find similar market conditions (neighbors).
The Prediction: If the majority of those historical "neighbors" resulted in a favorable move, the AI confirms the trade. If historical data suggests chop or reversal, the signal is blocked.
Key Features
🎯 Primary Reversal Signals (Circles)
Green Circle: Price swept PDL + Bullish MSS + AI Confirmation.
Red Circle: Price swept PDH + Bearish MSS + AI Confirmation.
♻️ Golden Zone Re-Entries (Triangles) Once a Primary Signal is active, the script tracks the new trend leg.
It automatically draws a dynamic Golden Zone (0.5 – 0.618 Fibonacci Retracement).
If price pulls back into this zone and forms a new MSS, a Re-Entry Triangle is plotted.
Invalidation: If the pullback breaks the original setup's low/high, the zone is removed to prevent bad trades.
⏰ Kill Zone Time Filters Signals are filtered by time to ensure you are trading during high-volume sessions.
Default AM Session: 08:30 – 10:00 (New York Time)
Default PM Session: 14:00 – 15:00 (New York Time)
Fully customizable in settings.
Settings Guide
Key Levels: Toggle PDH/PDL lines and customize colors.
Kill Zones: Enable/Disable time filtering and highlight background colors.
AI Settings:
K-Nearest Neighbors (k): Number of historical neighbors to compare (Default: 5).
Training Window: How far back the AI looks for patterns (Default: 1000 bars).
Visuals: Turn on/off the Golden Zone fib clouds or text labels.
Disclaimer
This tool is for educational purposes only. The "AI" component is a statistical classification algorithm based on historical momentum and does not guarantee future results. Always manage risk and use this indicator as part of a comprehensive trading plan.
Breaker Blocks Signals [AlgoAlpha]🟠 OVERVIEW
This script automates the detection of Breaker Blocks, a popular smart money concept used to identify high-probability reversal zones. It monitors price action for aggressive impulses—measured through a normalized Z-Score—to identify Orderblocks. When these blocks are "broken" or invalidated by price moving through them, they transform into Breaker Blocks. These zones act as "flipped" support or resistance, offering traders specific areas to look for retests and trend continuations. By handling the complex management of zone life-cycles and mitigation, this script provides a clean, real-time map of institutional supply and demand shifts.
🟠 CONCEPTS
The indicator relies on the relationship between price momentum and structural invalidation. It first identifies "impulsive" candles by calculating a Z-Score of price distance covered over a specific window. A Z-Score above 4 marks an "Algorithmically Significant" move. When such a move occurs, the script identifies the last opposite-colored candle (the Orderblock) and draws a gray zone. The transformation happens when price closes entirely through one of these gray zones. This "mitigation" is what triggers the creation of a Breaker Block: an old bearish supply zone becomes a bullish demand zone, and vice versa. This transition reflects a shift in market regime where previous trapped participants are forced to exit, often leading to price rejections at these newly formed levels.
🟠 FEATURES
Automated Breaker Transformation : Instantly flips mitigated Orderblocks into colored Breaker Blocks (Bullish/Bearish).
Rejection Markers : Small arrow icons appear when price enters a Breaker Block and shows signs of respect/reversal.
Comprehensive Alerts : Notifications for both the formation of new breakers and real-time price rejections.
🟠 USAGE
Setup : Add the script to your chart. It is effective on most timeframes, but many traders prefer the 15m or 1h for intraday structure. Use the "Z-Score Window" to adjust sensitivity; 100 is standard, but lower values (e.g., 50) will find more frequent, smaller impulses.
Read the chart : Gray boxes are "Pending" blocks. If price closes above a gray bearish box, it turns into a Bullish Breaker (Green). If price closes below a gray bullish box, it turns into a Bearish Breaker (Red). Look for price to return to these colored zones; the "▲" and "▼" symbols indicate the script has detected a rejection from that level.
Settings that matter : Prevent Overlap is useful for avoiding "cluttered" zones in ranging markets. Max Box Age is critical; it ensures that very old, irrelevant zones are removed from your chart after a set number of bars, keeping your technical analysis current and focused on recent price action.
Session Liquidity & FibsThis is a comprehensive, all-in-one toolkit designed for traders utilizing ICT concepts and time-based liquidity runs. The Session Liquidity & Fibs indicator automates the tedious process of marking up charts, allowing you to focus on price action and execution.
This indicator focuses on "Reverse Engineering" the daily narrative by plotting key sessions, mitigation lines, specific Fibonacci retracement setups, and Higher Timeframe (HTF) liquidity pools automatically.
Key Features:
1. Dynamic Session Killzones Automatically highlights key trading sessions with customizable boxes and extends the High/Low liquidity lines forward until they are mitigated (hit by price).
Asia Range: (Default 20:00 - 00:00)
London Session: (Default 02:00 - 05:00)
NY AM Session: (Default 09:30 - 11:00)
NY PM Session: (Default 13:30 - 16:00)
Note: Lines automatically cut off once price trades through them, keeping your chart clean.
2. Institutional Fibonacci Setups Auto-drawing Fibonacci anchors based on specific time windows to identify OTE (Optimal Trade Entry) and key extensions.
Overnight Fib: Measures the range from 18:00 to 05:00.
9 AM "Silver Bullet" Fib: Measures the 09:00 - 10:00 candle range to determine the morning bias.
Includes standard institutional levels (0, 1, 0.236, 0.786).
3. Higher Timeframe (HTF) Matrix Never lose track of the bigger picture. This tool plots major liquidity levels from higher timeframes onto your intraday chart:
Daily: True Day Open (TDO), Previous Day High/Low (PDH/PDL), and Daily Equilibrium (50%).
Weekly: Previous Week High/Low and Weekly Equilibrium.
Macro: Monthly and Quarterly Highs/Lows + 50% levels.
4. Price Action Helpers
Engulfing / Outside Bar Detector: Highlights bars that fully engulf the previous candle's range (Higher High & Lower Low). These are often key volatility candles used to draw manual Fibonacci ranges or identify immediate reversals.
Previous Bar 50%: Automatically marks the midpoint of the previous candle, useful for immediate rebalancing entries.
Settings & Customization:
Fully customizable colors for every session and level.
Toggle any feature on or off to suit your specific strategy.
Adjustable lookback history to manage chart load.
Usage: This indicator is best used on intraday timeframes (1m, 5m, 15m) for Futures (NQ, ES) and Forex pairs. It is designed to help you spot liquidity sweeps and session reversals without manually drawing every box and line.
This indicator is a Work In Progress. I created this tool primarily for myself to consolidate everything I need for my personal trading style into a single, efficient indicator. However, I am sharing it in case others find it useful. If you are using this and have requests for changes or ideas on how to make it better, please leave a comment or reach out, I will look into what I can do to improve it.






















