Johnny's Calculated Brain## Overview
Johnny’s Calculated Brain is a real-time market context indicator designed to frame continuation and correction opportunities using higher timeframe structure.
It continuously evaluates price imbalance, volume participation, trend strength, and multi-timeframe alignment to help traders understand what type of market environment they are operating in. Continuation, pullback, or mean reversion, as price unfolds in real time.
This indicator provides context, not just execution.
---
## Brain Zones
Brain Zones highlight areas where price moves with strong directional intent and imbalance in real-time, for simple continuation trades in the same direction, or reversal entries for corrections, also often leaving behind zones that price may 'later' react to as well.
These zones:
- Are calculated on a locked higher timeframe (default: 4H)
- Are non-repainting and historical
- Are volume weighted, reflecting participation strength
- Dim automatically once fully mitigated
Brain Zones are not buy or sell signals, in the real world, those types of indicators don't exist and don't work either. They represent areas of interest where continuation, correction, or rejection may occur depending on market conditions.
---
## Real-Time Market Framing
Johnny’s Calculated Brain operates in real time and can be used to frame:
- Continuation trades
When trend strength and multi-timeframe alignment support further directional movement.
- Corrective / pullback trades
When price retraces into Brain Zones within an established trend.
- Mean-reversion conditions
When trend strength weakens and structure becomes balanced.
The indicator does not decide entries, it helps you decide which type of setup to look for and shows when that opportunity presents itself.
---
## Dashboard
The dashboard provides higher-timeframe context at a glance.
ADX:
- Indicates whether the market is Trending or Ranging
- Color coded for clarity
MTF (Multi-Timeframe Alignment):
- Bullish → Higher timeframes aligned upward
- Bearish → Higher timeframes aligned downward
- Mixed → No clear alignment
This helps determine whether continuation or correction setups are more appropriate.
---
## Highs & Lows (MTF)
Optional reference levels include:
- Daily High / Daily Low
- Weekly High / Weekly Low
- Monthly High / Monthly Low
These levels often act as liquidity targets, reaction zones, and structural boundaries that add confluence to Brain Zones.
---
## Alerts
Alerts are designed to help you monitor multiple markets efficiently.
How to use alerts:
1. Create a watchlist of assets you are interested in (FX, Crypto, Indices, etc.)
2. Set a TradingView alert using the script’s alert conditions against the watchlist and select 'Johnny's Calculated Brain' as the indicator.
3. Ensure the chart timeframe is set to **4H**
4. Select **Once Per Bar Close** when creating the alert
When an alert triggers, it means a **new Brain Zone has formed** on the higher timeframe and a **potential opportunity may be present**.
They notify you of new structural developments and potential trade opportunities.
---
## If You Cannot Use Alerts
If your TradingView membership does not allow automated alerts:
- Keep the indicator applied on your chart
- Monitor the chart on the 4H timeframe
- Watch for new Brain Zones forming visually (wait for H4 candle close)
- Treat newly formed zones as an area of potential trade opportunity
The indicator behaves the same with or without alerts.
---
## Recommended Settings
It is strongly recommended to leave all settings at their default values.
The defaults are tuned for higher timeframe reliability, reduced noise, and balanced sensitivity.
Changing sensitivity does not guarantee better results, it simply changes how strict the Brain is.
---
## How to Use
1. Start on a higher timeframe (4H recommended)
2. Wait for a new Brain Zone to form
- via alert notification, or
- visually on the chart
3. Check ADX (trend strength) and MTF alignment
4. Decide whether the market favors continuation or correction
5. Execute using your own strategy and risk management
This indicator is a decision support tool, not a blind buy/sell system.
---
## Disclaimer
This script is for educational purposes only and does not constitute financial advice.
Always use proper risk management and your own judgment when trading.
Multitimeframe
[JF] Trading SessionsThis indicator outlines trading sessions. You are able to outline Asia, London and each New York sessions.
Dynamic High/Low Rays v6 - AnchoredThis indicator automatically identifies and tracks the High and Low levels of the most recently completed candle from a user-selected timeframe (e.g., 15m, 1h, 4h). It draws clean, horizontal rays that anchor specifically to the start of that candle, providing a clear visual representation of the immediate trading range.
How it Works
Unlike standard static lines, these rays update dynamically with every new candle. When a candle on your chosen timeframe closes, the script "jumps" the rays to the new High and Low levels.
Anchored Visualization: The rays start at the exact beginning of the higher-timeframe candle, allowing you to see where the range was established relative to current price action.
Auto-Cleanup: To keep your charts clutter-free, the script automatically deletes old rays, leaving only the most relevant current levels visible.
Fully Customizable: Works on any chart timeframe and allows you to select any source timeframe via the settings menu.
Key Features
Multi-Timeframe Support: Select your preferred HTF (15m, 1h, Daily, etc.) regardless of your current chart view.
Real-Time Movement: The rays extend to the right in real-time as new price data comes in.
Clean Aesthetics: Built using Pine Script v6 for optimized performance and visual clarity.
How to Use
Apply the script to your chart.
Open Settings to choose your desired timeframe (default is 15 minutes).
Use these levels as dynamic Support and Resistance, or to monitor for range breakouts/retests.
MTF ATR LadderMTF ATR Ladder plots a higher‑timeframe ATR‑based ladder around a central pivot, mapped to your holding style (Scalp, DayTrade, ShortSwing, LongSwing, MediumHold, LongTerm). It anchors to regular‑session closes and computes a mode‑based central pivot plus configurable ATR levels: trigger bands at ±0.236 ATR, fib steps (±0.382/0.50/0.618/0.786), and core ±1 ATR, with optional ATR extensions out to ±3 ATR. You can independently toggle central, daily, weekly, monthly, and quarterly pivots and labels, choose current vs previous HTF close, customize line width/color, and control whether price, ATR labels, or both are shown at each level for clean intraday or swing execution framing
Intenza Trading Technologies - MS Bias + shifts&zonesIntenza MS Bias Indicator - Professional Market Structure Tool
What does this indicator do?
This indicator combines Market Structure, PDH/PDL levels, and BOS/CHoCH detection to give you a clear trading bias and eliminate guesswork in your trading decisions.
Perfect for Martingale EA traders, scalpers, and swing traders who need crystal-clear direction signals.
---
Key Features
🟢 BIAS ZONES (Background Colors)
- Green Zone = STRONG BUY - Trade only long positions
- Red Zone = STRONG SELL - Trade only short positions
- Yellow Zone = NEUTRAL - NO TRADING (ranging market)
Why this matters:
Eliminates 70% of dangerous ranging periods where most traders lose money. Perfect for protecting Martingale strategies from choppy markets.
📈 Market Structure Detection
- HH/HL (Higher Highs/Higher Lows)** = Bullish structure
- LH/LL (Lower Highs/Lower Lows)** = Bearish structure
- Choose **any timeframe** for structure calculation (15M, 1H, 4H recommended)
🔄 BOS & CHoCH Indicators
- BOS (Break of Structure)** = Continuation of current trend
- CHoCH (Change of Character)** = Trend reversal signal
- Fully customizable pivot settings for sensitivity control
📍 Key Levels
- PDH/PDL (Previous Day High/Low) - Daily support/resistance
- PWH/PWL (Previous Week High/Low) - Weekly support/resistance
- Automatic level detection and plotting
🌍 Trading Sessions
- Asia Session (00:00-08:00 UTC)
- London Session (08:00-17:00 UTC)
- NY Session (13:00-22:00 UTC)
- Customizable colors and timezone offset
---
⚙️ Settings Explained
Structure Timeframe
Choose which timeframe to use for Market Structure analysis:
- Leave *empty* = Current chart timeframe
- *15* = 15-minute structure (recommended for 1M-5M charts)
- *60* = 1-hour structure (recommended for 15M-30M charts)
- *240* = 4-hour structure (recommended for 1H+ charts)
💡 Pro tip: Use higher timeframe structure even on lower timeframe charts for cleaner signals!
Bias Mode
Three modes available:
1. PDH/PDL Only (Default)
- Uses daily levels + market structure
- Best for intraday trading
2. Weekly + Daily
- **VERY STRONG** signals when both weekly AND daily align
- **STRONG** signals when only daily aligns
- More conservative, higher quality setups
3. Weekly Only
- Uses weekly levels only
- Best for swing trading
- Fewer but stronger signals
Pivot Left/Right Bars
- Controls BOS/CHoCH detection sensitivity
- **Lower values** (2-3) = More signals, faster detection
- **Higher values** (5-10) = Fewer signals, more reliable
---
📖 How to Use
For Manual Trading:
1. Wait for bias zone (green or red background)
2. Confirm with BOS/CHoCH for entry timing
3. Use PDH/PDL as targets and stop-loss levels
4. Exit when zone turns yellow (neutral)
For EA/Bot Trading:
```
Green Zone → Set EA to BUY mode only
Red Zone → Set EA to SELL mode only
Yellow Zone → Stop EA, close positions, wait
```
Perfect for Martingale EAs - prevents trading in dangerous ranging markets!
---
🎨 Customization
- Toggle BOS/CHoCH - Show only BOS, only CHoCH, or both
- Color themes - Customize all colors to your preference
- Session backgrounds - Show/hide trading sessions
- Level visibility - Toggle PDH/PDL and PWH/PWL independently
---
🔔 Alerts Available
- Strong Buy/Sell Bias activated
- PDH/PDL breaks
- PWH/PWL breaks
- Customizable alert messages
---
💡 Pro Tips
1. Use HTF structure on LTF charts- Set structure to 15M-1H even when trading on 1M
2. Disable what you don't need - Cleaner charts = better decisions
3. Combine bias modes - Start with "PDH/PDL Only", upgrade to "Weekly + Daily" for conservative trading
4. Respect the yellow zone - No trading in neutral = protecting your capital
---
📊 Best Suited For
✅ Scalpers (1M - 15M)
✅ Day traders (15M - 4H)
✅ Martingale EA users
✅ Smart Money traders
✅ Structure-based traders
---
⚠️ Disclaimer
This indicator is a tool to assist in trading decisions. It does not guarantee profits.
Always use proper risk management and test thoroughly on demo accounts before live trading.
---
📞 Support & Updates
For questions, suggestions, or bug reports, please use the comments section below.
© 2025 Intenza Trading Technologies
---
Like this indicator? Please leave a 🌟 rating and boost!
EMA + MTF CloudsUsing EMA values 8,21,50 it plots a cloud on desired timeframe. It also helps to plot hourly 50, Daily 21, 50 on short timeframes so crossover identification is possible
CRR Trend Decider v1• Bollinger Band structure to observe volatility expansion and contraction
• VWAP reference to study price positioning relative to average traded value
• SuperTrend-based directional shifts for structural trend observation
• Local range levels highlighting recent price boundaries
• Higher-timeframe zones derived from broader market data
• State-based candle coloring to visually track directional phases
All components are designed to work together as visual context tools, not decision systems.
🟦 Higher-Timeframe Zones (Study Focus)
The zone system highlights areas derived from higher timeframes where price has historically shown concentration or reaction.
These zones are useful for study because they help users:
• Observe how price behaves when approaching broader market levels
• Compare lower-timeframe movement against higher-timeframe structure
• Study pauses, consolidations, or expansions near key areas
• Understand how trend phases interact with wider market context
Zones are displayed as extended visual regions, allowing users to analyze price interaction over time, rather than isolated events.
🎨 Visual Signals & Candle Coloring
Directional conditions are shown using neutral visual symbols instead of trading terminology.
Candle colors adjust based on the current directional state, helping users:
• Visually follow sustained upward or downward phases
• Distinguish continuation candles from counter-move candles
• Study momentum behavior within and around zones
These visuals are designed to support chart reading, not execution.
📚 How This Study Can Be Used
This indicator can assist users in:
• Learning how trend tools align with volatility structure
• Studying price reactions around higher-timeframe zones
• Observing market behavior during different directional phases
• Practicing discretionary analysis and pattern recognition
Users are encouraged to combine this study with their own analysis methods and market knowledge.
⚠️ Important Notes
• This script does not provide trading advice
• No outcomes or performance are implied
• Past chart behavior does not predict future results
• This is a study, not a strategy or automated system
Broadening Formation Structure Review ToolThis script provides an educational, checklist-based framework for studying Broadening Formations together with basic Strat-style reversal behavior and higher-timeframe direction. It is designed to show multiple structural conditions in one place so users can observe how they interact. It does not execute trades, generate signals, or provide financial advice.
What makes this script original is the integration of four components into a single logical framework:
• dynamic tracking of Broadening Formation high/low levels
• proximity evaluation relative to those levels
• classification of simple bar reversal behavior
• higher-timeframe open–close continuity checks
Instead of using these concepts as separate tools, the script combines them into a single checklist so users can see when multiple conditions occur at the same time.
Broadening Formation levels may be user-defined or automatically derived using:
• unlimited dynamic expansion
• range-limited dynamic expansion
• swing-pivot detection
• manual input mode
Users may also optionally lock levels once a structure is identified.
Proximity to BF levels can be measured in several ways, including percentage, ticks, points, dollars, ATR multiples, or expected-move multiples. The script can also detect when price takes out BF highs or lows.
The script classifies basic Strat-style price behavior, including:
• two-up / two-down moves
• outside bars
• failed 2U/2D reversals
• 2D→2U and 2U→2D reversals
A selectable higher timeframe (such as 60, 240, D, W, or M) is used to evaluate direction by comparing the higher-timeframe open and close.
The on-chart table summarizes:
• current BF High and BF Low levels
• proximity status relative to those levels
• whether BF highs or lows have been taken out
• reversal classification results
• higher-timeframe direction
• theoretical risk distance and 2R/3R projections
Optional alerts can notify when three-condition or four-condition checklist alignment occurs, based only on the logical rules visible in the script. Optional chart lines for BF levels may also be displayed.
Transparency and behavior notes
• swing pivots repaint until confirmed
• higher-timeframe direction is only final at bar close
• dynamically derived BF levels may update as price forms new extremes
This script is intended purely for market-structure study and education. It does not guarantee performance, predict outcomes, or recommend trades.
MA-MTF-12 Overlay📊 MA-MTF-12 Overlay — Indicator Description
■ Overview
MA-MTF-12 Overlay is a multi-timeframe moving average indicator that allows you to display up to 12 moving averages (SMA / EMA) simultaneously, calculated either from the current timeframe (Local) or from higher timeframes (MTF).
It is designed to help traders visualize short-term price action and higher-timeframe market structure on a single chart, enabling clearer trend context and better decision-making.
■ Key Features
✅ Up to 12 Moving Averages
Display MA1–MA12 independently
Choose SMA or EMA for each MA
Fully customizable length, color, and line width
✅ Per-MA Local / MTF Selection
Each moving average can be set individually to:
Local – calculated on the current chart timeframe
MTF – retrieved from a higher timeframe (e.g. 1H, 4H, Daily, Weekly, Monthly)
This allows you to clearly separate entry signals from higher-timeframe trend context.
✅ Confirmed Bar Mode (Repaint Control)
When using MTF, each MA supports Confirmed Bar Mode:
ON – updates only after the higher-timeframe bar is closed (minimal repaint, backtest-friendly)
OFF – follows the current higher-timeframe bar in real time (discretionary trading)
✅ Gap Handling Option
Gaps OFF – higher-timeframe values are filled smoothly (step-style, easier to read)
Gaps ON – values appear only when a higher-timeframe bar updates (theoretical accuracy)
✅ Lightweight & Efficient Design
Each MA includes separate:
Calculation ON / OFF
Display ON / OFF
Unused MAs can be completely disabled, preventing unnecessary calculations and keeping the indicator fast even with multiple MTF sources.
■ Example Use Case
MA1–MA3: Local timeframe MAs for short-term momentum
MA4–MA6: Higher-timeframe MAs (4H / Daily / Weekly) for trend structure
MA7–MA12: Optional layers, disabled by default
This setup makes it easy to understand where price is trading within the broader market context.
■ Who This Indicator Is For
Traders who rely on multi-timeframe trend analysis
Scalpers, day traders, and swing traders who want one-chart clarity
Users concerned about repainting and indicator performance
Anyone who uses moving averages as structural reference points, not just signals
■ Technical Notes
Pine Script v5
Overlay indicator (drawn on price chart)
Multi-timeframe support via request.security()
No alerts or shapes — pure visual analysis
📊 MA-MTF-12 Overlay – インジケーター解説
■ 概要
MA-MTF-12 Overlay** は、
最大12本の移動平均(SMA / EMA)を、現在足(Local)または上位足(MTF)から自由に組み合わせて表示できる**
マルチタイムフレーム対応の高機能MAインジケーターです。
短期足の値動きから、1時間・4時間・日足・週足・月足といった
上位足のトレンド環境を、1つのチャート上で同時に把握**することを目的に設計されています。
---
■ 主な特徴
✅ 最大12本のMAを同時表示
* MA1〜MA12を個別に設定可能
* SMA / EMA をMAごとに選択
* 期間・色・太さもすべて自由にカスタマイズ
---
✅ Local / MTF をMAごとに切替可能
各MAは以下を個別に選択できます。
Local:現在のチャート時間足で計算
MTF:指定した上位足(例:1H / 4H / D / W / M)から取得
👉
短期MAはLocal、
環境認識用MAはMTF、
という役割分担を1つのインジケーターで実現できます。
---
✅ 確定足モード(リペイント制御)
MTF使用時は、確定足モードをMAごとに設定可能。
ON:上位足が確定してから更新(リペイント最小・検証向き)
OFF:上位足の進行中の値もリアルタイムで反映(裁量トレード向き)
用途に応じて柔軟に使い分けられます。
---
✅ ギャップ表示 ON / OFF
OFF:上位足MAを階段状に補完表示(視認性重視)
ON:上位足更新点のみ表示(理論重視)
---
✅ 計算ON / 表示ON を分離した軽量設計
各MAには
計算ON / OFF
表示ON / OFF**
を個別に用意。
使わないMAは計算そのものを停止できるため、
MTFを多用しても**動作が重くなりにくい設計です。
---
■ 想定される使い方
* MA1〜MA3:Local(短期〜中期の勢い把握)
* MA4〜MA6:MTF(4H・日足・週足のトレンド環境)
* MA7〜MA12:必要に応じて追加(初期はOFF)
👉
「今どの時間軸のトレンドの中にいるのか」を
MAだけで直感的に把握できます。
---
■ こんな方におすすめ
* 上位足MAを使った環境認識を重視するトレーダー
* スキャル・デイトレ・スイングを1チャートで完結させたい方
* MTFインジケーターのリペイントや重さが気になる方
* MAを「本数・役割・時間軸」で整理して使いたい方
---
■ 技術仕様
* Pine Script v5
* overlay=true(価格チャート上に表示)
* MTF対応(request.security 使用)
* アラート・シェイプなし(純粋な分析用)
---
TX Ultra Trend AnalyticsTX Trend Analytics & Regime Dashboard is a multi-timeframe trend-following decision tool built to keep execution aligned with a higher-timeframe regime. It combines an HTF bias filter (context) with a simple LTF trigger (timing) and presents the result in a clean on-chart dashboard.
WHAT IT DOES
* HTF Regime Filter: Classifies the higher reference timeframe into Uptrend / Downtrend / Neutral.
* LTF Trigger: Generates entry triggers only when the chart-timeframe setup aligns with the current HTF regime.
* Regime Visualization: Optional background shading and optional “baseline” plots (hidden by default).
* Visual Bar Coloring: Optional Heikin Ashi-based bar coloring for readability (visual-only; it does not affect signals).
CORE WORKFLOW (HOW TO USE)
1. Read the dashboard:
* Uptrend → Look for BUY only
* Downtrend → Look for SELL only
* Neutral → Avoid trading (higher whipsaw risk)
2. Wait for a trigger in the direction of the bias on your chart timeframe.
3. Apply your own risk management and exit rules (this indicator provides structure and timing, not trade management).
REGIME LOGIC OPTIONS
* Flow Engine: A baseline-based regime filter designed for smooth trend context.
* Velocity Engine: A strength-confirmed regime filter designed to avoid low-momentum chop.
Choose the engine that best matches your market behavior (smooth trends vs. frequent ranges).
AUTOMATIC REFERENCE TIMEFRAME (MTF)
The indicator automatically selects a higher reference timeframe relative to your chart timeframe to keep the bias meaningful (displayed on the dashboard as “Ref TF”).
KEY SETTINGS (QUICK GUIDE)
* Regime Logic: Select Flow Engine or Velocity Engine.
* Flow Baseline (Fast/Slow): Higher values = slower regime changes, fewer flips.
* Momentum Threshold: Higher values = stricter trend confirmation, fewer “trend” states.
* Trigger Sensitivity: Lower = faster triggers, higher = smoother triggers.
* Visual Interface toggles: Use these to keep the chart clean (baselines are OFF by default).
IMPORTANT LIMITATIONS
* Range-bound markets can produce whipsaws. Treat “Neutral” as a no-trade state.
* High-volatility events (news spikes, gaps) can reduce signal quality.
* Multi-timeframe bias can shift as the higher-timeframe candle develops; conservative users may prefer confirmation at candle close.
ALERTS
Built-in alert conditions are included for BUY/SELL triggers aligned with the current HTF bias.
DISCLAIMER
This indicator is a decision-support tool for education and analysis only. It is not financial advice. Always forward-test and use proper risk management.
[AMBAGES] X ProtocolTitle: X Protocol
Description: The X Protocol is an institutional-grade framework designed for traders utilizing Smart Money Concepts (SMC) and ICT methodologies. Rather than providing static overlays, this script functions as a logic engine that filters market noise by requiring confluence between time, price, and cross-asset correlation.
The Purpose of this Integration (The Mashup) Traders often struggle with "chart paralysis" when monitoring multiple timeframes. The X Protocol solves this by integrating disparate elements—MTF Fair Value Gaps, Time Cycles, and SMT Divergences—into a single Confluence Score. The script does not simply plot these indicators; it evaluates their relationship. For example, an Entry Model (like a CISD) is only highlighted if it occurs within a specific HTF POI during a designated Macro time window.
Key Methodology & Features
1. The Confluence Dashboard The heart of the system is a dynamic calculation engine that assigns a real-time score (0–10) based on:
Bias Detector: Evaluates market structure by comparing the current swing points against Higher Timeframe (HTF) PD Arrays.
POI Analysis: Tracks price interaction with Monthly, Weekly, and Daily High/Low levels.
Macro Alignment: Validates setups based on time-of-day algorithmic windows (e.g., London Open, AM/PM Silver Bullet windows).
2. Smart Money Technique (SMT) Scanner The script utilizes a multi-symbol comparison (default: ES, NQ, YM) to detect "cracking" correlations.
Logic: It calculates the divergence between the current ticker and two external tickers. A signal is only plotted when a "Swing High/Low" failure occurs at a key liquidity level, preventing the common issue of constant, irrelevant SMT signals.
3. Algorithmic Time Cycles & DWM
DWM Levels: Plots Previous Daily, Weekly, and Monthly levels using precise pivot-time logic rather than standard daily closes.
Time Cycles: Visualizes 90-minute and 270-minute accumulation/distribution cycles to help traders anticipate volatility shifts.
4. Advanced Entry Models The script visualizes two specific institutional models:
CISD (Change in State of Delivery): Defined here as a specific volume-weighted shift following a liquidity sweep.
IFVG (Inverse Fair Value Gap): Identifies gaps that have been reclaimed and "flipped," acting as a support/resistance anchor.
How to Use
Check Bias: Ensure the Dashboard indicates a Bullish or Bearish lean based on HTF structure.
Wait for POI: Monitor for price to reach a DWM level or HTF FVG.
Monitor SMT: Look for the SMT Divergence indicator to confirm institutional accumulation/distribution.
Execution: Look for a CISD or IFVG print when the Confluence Score is 6 or higher.
Credits & Attribution This script utilizes concepts popularized by Inner Circle Trader (ICT). All logic and calculations for the dashboard, confluence scoring, and SMT scanning were custom-coded by .
Disclaimer: This tool is for analytical purposes only. Trading involves significant risk. Past performance does not guarantee future results.
Q# ML Logistic Regression Indicator [Lite]
Q TechLabs MLLR Lite — Machine Learning Logistic Regression Trading Indicator
© Q# Tech Labs 2025 Developed by Team Q TechLabs
Overview
Q# MLLR Lite is an open-source, lightweight TradingView indicator implementing a logistic regression model to generate buy/sell signals based on engineered price features. This “lite” version is designed for broad community access and serves as a foundation for the upcoming Pro version with advanced features and integration.
Features
Logistic Regression-based buy/sell signal generation
Customizable price source input (Open, High, Low, Close, HL2, HLC3, OHLC4)
Adjustable signal threshold and smoothing parameters
Signal confidence plotted in a separate pane
Alert conditions for buy and sell signals
Fully documented, clean Pine Script (v6) code for easy customization
Installation
Open TradingView and navigate to the Pine Script editor
Create a new script and paste the full content of the Q# MLLR Lite Pine Script
Save and add to chart
Configure inputs as needed for your trading style
Licensing
Q# MLLR Lite is provided under the MIT License, promoting open use, modification, and community collaboration with attributi
Q# MLLR Lite — Machine Learning Logistic Regression Trading Indicator
© Q# Tech Labs 2025 — Developed by Team Q#
Overview
Q# MLLR Lite is an open-source, lightweight TradingView indicator implementing a logistic regression model to generate buy/sell signals based on engineered price features. This “lite” version is designed for broad community access and serves as a foundation for the upcoming Pro version with advanced features and integration.
Features
Logistic Regression-based buy/sell signal generation
Customizable price source input (Open, High, Low, Close, HL2, HLC3, OHLC4)
Adjustable signal threshold and smoothing parameters
Signal confidence plotted in a separate pane
Alert conditions for buy and sell signals
Fully documented, clean Pine Script (v6) code for easy customization
Installation
Open TradingView and navigate to the Pine Script editor
Create a new script and paste the full content of the Q# MLLR Lite Pine Script
Save and add to chart
Configure inputs as needed for your trading style
Licensing
Q# MLLR Lite is provided under the MIT License, promoting open use, modification, and community collaboration with attribution.
Copyright (c) 2025 Q# Tech Labs
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
[ICT Sebo] HTF FVGOverview
This indicator identifies and visualizes higher-timeframe Fair Value Gaps (HTF FVGs) directly on a lower-timeframe chart. It aggregates price action internally to construct higher-timeframe candles and highlights structurally relevant imbalances without using request.security().
The script is designed as a contextual HTF imbalance reference tool and does not generate trade signals.
How it works
The indicator reconstructs higher-timeframe candles by aggregating lower-timeframe price data in real time. Each higher-timeframe bar is built internally, preserving its open, high, low and close values as well as its exact time window.
Once three consecutive higher-timeframe candles are available, the script evaluates whether a Fair Value Gap has formed. A bullish HTF FVG is detected when a completed bullish candle is followed by a price imbalance where the high of the candle two periods back is below the low of the current candle. A bearish HTF FVG is detected when the low of the candle two periods back is above the high of the current candle.
Each detected gap is validated using a minimum size filter expressed as a percentage of price.
Visualization
Valid HTF Fair Value Gaps are displayed as shaded boxes projected forward for a fixed number of higher-timeframe bars. Each gap includes a dashed midpoint line representing the equilibrium level and a centered label indicating the originating higher timeframe.
Bullish gaps are displayed in green and bearish gaps are displayed in red.
The indicator plots gaps only after a full higher-timeframe structure is confirmed and does not repaint previously confirmed zones.
Intended use
This tool supports higher-timeframe context analysis, imbalance mapping and multi-timeframe market structure observation. It is suitable for intraday analysis where higher-timeframe levels are used as contextual references and should be combined with broader market context and risk management.
Notes
This indicator does not predict price direction, does not provide entry or exit signals and is intended purely as a visual reference for higher-timeframe Fair Value Gaps.
4x Emperor CRT with SMTCRT + SMT Market Structure Indicator
Candle Range Theory | SMT| | AMD | IFVG
This indicator is a professional market-structure and smart money analysis tool built for traders who use CRT (Candle Range Theory), SMT divergence, AMD phases, and IFVG zones to identify high-probability trading opportunities.
Designed for multi-timeframe analysis, the indicator combines institutional concepts into a clean, automated framework that reduces analysis time and improves consistency.
For any queries connect on telegram : t.me
Key Features
CRT (Candle Range Theory) Detection
Automatically identifies and plots CRT ranges, helping traders focus on key liquidity zones and high-reaction price areas.
Auto Multi-Timeframe CRT Alignment
Lower-timeframe CRTs are aligned with higher-timeframe structure to maintain directional bias and structural context.
Manual HTF CRT Control
Users can manually select the Higher Timeframe CRT from settings, allowing full customization based on strategy, session, or market conditions.
AMD (Accumulation, Manipulation, Distribution) Structure
Visually maps AMD phases on the chart to improve understanding of market behavior and institutional activity.
SMT (Smart Money Technique) Divergence
Detects SMT divergence between correlated instruments, helping identify potential reversals, continuations, and imbalance scenarios.
IFVG (Inverse Fair Value Gap)
Automatically marks IFVG zones where price may seek rebalancing, adding confluence to CRT, SMT, and AMD analysis.
Clean Institutional-Grade Visualization
Optimized to minimize chart clutter while preserving critical structural information.
Who This Indicator Is For
CRT-based traders
ICT-style market structure traders
Scalpers, intraday traders, and swing traders
Traders seeking multi-timeframe confluence and automation
Supported Trading Styles & Markets
Scalping, intraday, and swing trading
Forex, indices, crypto, and futures
Works across all TradingView-supported timeframes
Follow us on our social channels for updates and insights
Telegram : t.me
X : x.com
Discord : discord.gg
ICT Flow Matrix [Ultimate]🔷 ICT FLOW MATRIX v6.0 🔷
Multi-Timeframe Smart Money Concepts Framework
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ICT Flow Matrix is the most comprehensive Smart Money Concepts (SMC) indicator available, combining all essential ICT methodologies into a single, highly customizable tool. Designed for serious traders who understand institutional order flow and want a clean, professional charting experience.
This indicator automatically detects and tracks:
- Fair Value Gaps (FVG) with intelligent mitigation
- Order Blocks with Breaker Block conversion
- Liquidity pools and sweep detection
- Market Structure Shifts
- ICT Macro Time windows
- Session-based analysis (Asia/London/NY)
- Multi-timeframe orderflow context
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ CORE FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 FAIR VALUE GAPS (FVG)
────────────────────────
Fair Value Gaps represent price imbalances where institutional orders may rest. These zones often act as magnets for price or provide high-probability entry areas.
Features:
✓ Automatic bullish/bearish detection
✓ Consequent Encroachment (CE) midlines
✓ Three mitigation types: Wick Touch, 50% CE, Full Close
✓ Inverse FVG (iFVG) formation on violation
✓ Auto-extending zones until mitigated
✓ Visual fade effect on mitigation
🏛️ ORDER BLOCKS (OB)
────────────────────────
Order Blocks mark the last opposing candle before a strong impulsive move—the footprint of institutional accumulation or distribution.
Features:
✓ Configurable impulse strength (2-10 candles)
✓ Optional volume confirmation filter
✓ 50% level targeting line
✓ Automatic Breaker Block conversion when invalidated
✓ Border-only or filled display styles
◈ BREAKER BLOCKS (BB)
────────────────────────
When an Order Block fails, it transforms into a Breaker Block—a powerful concept for understanding failed auctions and potential reversal zones.
Features:
✓ Automatic generation from failed OBs
✓ Independent mitigation tracking
✓ Dashed border styling for easy identification
▤ REJECTION BLOCKS (RB)
────────────────────────
Rejection Blocks identify candles with significant wicks relative to body size, indicating institutional defense at specific price levels.
Features:
✓ Customizable wick-to-body ratio threshold
✓ Automatic bullish/bearish classification
✓ Mitigation state tracking
▣ VOLUME IMBALANCE (VIMB)
────────────────────────
Volume Imbalances are gaps between consecutive candle bodies (not wicks), signaling aggressive institutional activity.
Features:
✓ Gap detection between body close and open
✓ Directional classification
✓ Auto-extending with mitigation tracking
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 STRUCTURE & LIQUIDITY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 MARKET STRUCTURE SHIFTS (MSS)
────────────────────────
Market Structure Shifts occur when price breaks a significant swing point, potentially signaling a change in the prevailing trend.
Features:
✓ Real-time swing point tracking
✓ Configurable swing length
✓ Visual line and label confirmation
✓ Dashboard bias indicator
💧 EQUAL HIGHS / LOWS (EQH/EQL)
────────────────────────
Double or triple tops/bottoms represent liquidity pools where stop losses accumulate above highs or below lows.
Features:
✓ Smart matching with tolerance percentage
✓ Confirmed vs. unconfirmed visual distinction
✓ Sweep detection with alerts
✓ Automatic line extension
🌊 LIQUIDITY LEVELS (BSL/SSL)
────────────────────────
Buyside and Sellside Liquidity levels mark swing points where stop losses cluster, creating targets for institutional activity.
Features:
✓ Customizable swing length detection
✓ Sweep tracking with visual feedback
✓ Maximum level management
📏 PREMIUM / DISCOUNT ZONES
────────────────────────
Price trading above equilibrium (50%) is in Premium territory; below is Discount. These zones help identify optimal entry areas relative to the current range.
Features:
✓ Automatic structure-based calculation
✓ Visual background shading
✓ Age-based visibility to reduce stale zones
🎯 OPTIMAL TRADE ENTRY (OTE)
────────────────────────
The OTE zone (61.8%-79% retracement) represents the highest probability entry area within a retracement.
Features:
✓ Dynamic calculation based on structure
✓ Bias-adjusted positioning
✓ Clear visual box with boundary lines
⚡ CONFLUENCE DETECTION
────────────────────────
The confluence system scores areas where multiple ICT concepts align, highlighting high-probability zones.
Factors scored:
- Premium/Discount position
- OTE zone proximity
- Active FVG nearby
- Active OB nearby
- Macro time active
- Equilibrium proximity
Features:
✓ Configurable minimum threshold
✓ Background highlighting
✓ Dashboard score display
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⏰ TIME-BASED ELEMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌍 KILLZONE SESSIONS
────────────────────────
Institutional activity concentrates during specific time windows. This indicator tracks and visualizes these critical sessions.
Sessions:
- 🌏 Asia: 20:00-00:00 ET
- 🇬🇧 London: 02:00-05:00 ET
- 🇺🇸 NY AM: 08:30-11:00 ET
- 🌆 NY PM: 13:30-16:00 ET
Features:
✓ Customizable session times
✓ Session boxes with H/L tracking
✓ Extendable H/L reference lines
✓ Dashboard session indicator
⏱️ ICT MACRO TIMES
────────────────────────
ICT Macro Times are specific 30-minute windows where algorithms are known to trigger significant market moves.
Windows:
02:45-03:15 | 03:45-04:15 | 04:45-05:15
09:45-10:15 | 10:45-11:15 | 13:45-14:15
14:45-15:15 | 15:15-15:45 | 15:45-16:15
Features:
✓ Individual window toggles
✓ Three display styles: Brackets, Background, Both
✓ Session high/low tracking
✓ Real-time dashboard status
📏 DEALING RANGES
────────────────────────
Dealing Ranges define the high-low range for various periods, with equilibrium serving as a key decision point.
Ranges available:
- 21-Day
- 3-Day
- Daily
- Asia Session
- London Session
- NY Session
Features:
✓ Premium/Discount shading
✓ Equilibrium line
✓ Fib boundary levels
✓ Optional price labels
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🕯️ HTF ORDERFLOW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Higher Timeframe candles provide context for the dominant orderflow direction, helping align trades with larger market forces.
Features:
✓ Auto-timeframe selection or manual override
✓ Up to 6 historical candles
✓ Three visual styles: Modern, Classic, Hollow
✓ O/H/L reference lines
✓ Live countdown timer to next candle close
✓ Configurable positioning
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 SMART DASHBOARD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Real-time status panel providing instant market context:
- Market Structure Bias (Bullish/Bearish/Neutral)
- Premium/Discount Zone Status
- Active Killzone Session
- OTE Zone Proximity
- Confluence Score
- Macro Time Status
- Active Zone Counts
Three display modes: Minimal | Compact | Detailed
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 CUSTOMIZATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎭 THEME PRESETS
────────────────────────
Five built-in themes plus full custom color control:
- Dark Pro (default)
- Light Clean
- Neon
- Classic
- Custom
⚙️ DISPLAY OPTIONS
────────────────────────
- Label size: Tiny/Small/Normal/Large
- Zone opacity control
- Mitigation fade effects
- History bar limits
- Individual element toggles
- Price display options
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 35+ BUILT-IN ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ZONE FORMATION:
- Bullish/Bearish FVG Created
- Inverse FVG Formed
- Bullish/Bearish Order Block
- Bullish/Bearish Breaker Block
- Rejection Blocks
- Volume Imbalances
LIQUIDITY EVENTS:
- EQH/EQL Swept
- BSL/SSL Swept
STRUCTURE EVENTS:
- Bullish/Bearish MSS
- OTE Zone Entry
- High Confluence Zone
TIME-BASED:
- Macro Time Start/End
- Session Opens (Asia/London/NY)
COMBO ALERTS:
- Bullish/Bearish Setup (FVG + OB)
- Macro + Confluence
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1️⃣ IDENTIFY BIAS
Check dashboard for structure direction and zone position
2️⃣ WAIT FOR KILLZONE
Trade during active sessions for highest institutional activity
3️⃣ SEEK CONFLUENCE
Look for areas where multiple concepts align (score ≥ 3)
4️⃣ TIME YOUR ENTRY
Execute during ICT Macro windows when possible
5️⃣ TARGET LIQUIDITY
Use EQH/EQL and BSL/SSL levels for take-profit zones
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 BEST PRACTICES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Start with default settings before customizing
- Disable features you don't actively use to reduce visual clutter
- Use confluence scoring to filter for higher probability setups
- Combine with your existing strategy rather than relying solely on zones
- Pay attention to HTF orderflow for directional bias
- Practice on historical data before live trading
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is for educational and informational purposes only. Trading financial instruments involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results.
The concepts presented are based on publicly available trading methodologies and should not be construed as financial advice. Always conduct your own research and use proper risk management. Never trade with funds you cannot afford to lose.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📧 FEEDBACK & SUPPORT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Found a bug? Have a feature request? Leave a comment below!
If you find this indicator valuable, please consider:
✓ Leaving a like 👍
✓ Following for updates
✓ Sharing with fellow traders
Your support helps improve this tool for the entire community.
RSI Trendline Breakout BB Exit -by RiazMalikUse this strategy based on RSI and bolinger bands
When RSI trend line breaks take position when RSI touches bolinger bands exit
Volume-Weighted Price Z-Score [QuantAlgo]🟢 Overview
The Volume-Weighted Price Z-Score indicator quantifies price deviations from volume-weighted equilibrium using statistical standardization. It combines volume-weighted moving average analysis with logarithmic deviation measurement and volatility normalization to identify when prices have moved to statistically extreme levels relative to their volume-weighted baseline, helping traders and investors spot potential mean reversion opportunities across multiple timeframes and asset classes.
🟢 How It Works
The indicator's core methodology lies in its volume-weighted statistical approach, where price displacement is measured through normalized deviations from volume-weighted price levels:
volumeWeightedAverage = ta.vwma(priceSource, lookbackPeriod)
logDeviation = math.log(priceSource / volumeWeightedAverage)
volatilityMeasure = ta.stdev(logDeviation, lookbackPeriod)
The script uses logarithmic transformation to capture proportional price changes rather than absolute differences, ensuring equal treatment of percentage moves regardless of price level:
rawZScore = logDeviation / volatilityMeasure
zScore = ta.ema(rawZScore, smoothingPeriod)
First, it establishes the volume-weighted baseline which gives greater weight to price levels where significant trading occurred, creating a more representative equilibrium point than simple moving averages.
Then, the logarithmic deviation measurement converts the price-to-average ratio into a normalized scale:
logDeviation = math.log(priceSource / volumeWeightedAverage)
Next, statistical normalization is achieved by dividing the deviation by its own historical volatility, creating a standardized z-score that measures how many standard deviations the current price sits from the volume-weighted mean.
Finally, EMA smoothing filters noise while preserving the signal's responsiveness to genuine market extremes:
rawZScore = logDeviation / volatilityMeasure
zScore = ta.ema(rawZScore, smoothingPeriod)
This creates a volume-anchored statistical oscillator that combines price-volume relationship analysis with volatility-adjusted normalization, providing traders with probabilistic insights into market extremes and mean reversion potential based on standard deviation thresholds.
🟢 Signal Interpretation
▶ Positive Values (Above Zero): Price trading above volume-weighted average indicating potential overvaluation relative to volume-weighted equilibrium = Caution on longs, potential mean reversion downward = Short/sell opportunities
▶ Negative Values (Below Zero): Price trading below volume-weighted average indicating potential undervaluation relative to volume-weighted equilibrium = Caution on shorts, potential mean reversion upward = Long/buy opportunities
▶ Zero Line Crosses: Mean reversion transitions where price crosses back through volume-weighted equilibrium, indicating shift from overvalued to undervalued (or vice versa) territory
▶ Extreme Positive Zone (Above +2.5σ default): Statistically rare overvaluation representing 98.8%+ confidence level deviation, indicating extremely stretched bullish conditions with high mean reversion probability = Strong correction warning/short signal
▶ Extreme Negative Zone (Below -2.5σ default): Statistically rare undervaluation representing 98.8%+ confidence level deviation, indicating extremely stretched bearish conditions with high mean reversion probability = Strong buying opportunity signal
▶ ±1σ Reference Levels: Moderate deviation zones (±1 standard deviation) marking common price fluctuation boundaries where approximately 68% of price action occurs under normal distribution
▶ ±2σ Reference Levels: Significant deviation zones (±2 standard deviations) marking unusual price extremes where approximately 95% of price action should be contained under normal conditions
🟢 Features
▶ Preconfigured Presets: Three optimized parameter sets accommodate different analytical approaches, instruments and timeframes. "Default" provides balanced statistical measurement suitable for swing trading and daily/4-hour analysis, offering deviation detection with moderate responsiveness to price dislocations. "Fast Response" delivers heightened sensitivity optimized for intraday trading and scalping on 15-minute to 1-hour charts, using shorter statistical windows and minimal smoothing to capture rapid mean reversion opportunities as they develop. "Smooth Trend" offers conservative extreme identification ideal for position trading on daily to weekly charts, employing extended statistical periods and heavy noise filtering to isolate only the most significant market extremes.
▶ Built-in Alerts: Seven alert conditions enable comprehensive automated monitoring of statistical extremes and mean reversion events. Extreme Overbought triggers when z-score crosses above the extreme threshold (default +2.5σ) signaling rare overvaluation, Extreme Oversold activates when z-score crosses below the negative extreme threshold (default -2.5σ) signaling rare undervaluation. Exit Extreme Overbought and Exit Extreme Oversold alert when prices begin reverting from these statistical extremes back toward the mean. Bullish Mean Reversion notifies when z-score crosses above zero indicating shift to overvalued territory, while Bearish Mean Reversion triggers on crosses below zero indicating shift to undervalued territory. Any Extreme Level provides a combined alert for any extreme threshold breach regardless of direction. These notifications allow you to capitalize on statistically significant price dislocations without continuous chart monitoring.
▶ Color Customization: Six visual themes (Classic, Aqua, Cosmic, Ember, Neon, plus Custom) accommodate different chart backgrounds and visual preferences, ensuring optimal contrast for identifying positive versus negative deviations across trading environments. The adjustable fill transparency control (0-100%) allows fine-tuning of the gradient area prominence between the z-score line and zero baseline, with higher opacity values creating subtle background context while lower values produce bold deviation emphasis. Optional bar coloring extends the z-score gradient directly to the indicator pane bars, providing immediate visual reinforcement of current deviation magnitude and direction without requiring reference to the plotted line itself.
*Note: This indicator requires volume data to function correctly, as it calculates deviations from a volume-weighted price average. Tickers with no volume data or extremely limited volume will not produce meaningful results, i.e., the indicator may display flat lines, erratic values, or fail to calculate properly. Using this indicator on assets without volume data (certain forex pairs, synthetic indices, or instruments with unreported/unavailable volume) will produce unreliable or no results at all. Additionally, ensure your chart has sufficient historical data to cover the selected lookback period, e.g., using a 100-bar lookback on a chart with only 50 bars of history will yield incomplete or inaccurate calculations. Always verify your chosen ticker has consistent, accurate volume information and adequate price history before applying this indicator.
9:30 High / Low Start at Candleالعربية
اسم المؤشر: 9:30 هاي – فاصل 30 دقيقة فقط
الوصف:
هذا المؤشر يقوم برسم خط أفقي عند أعلى سعر (High) لشمعه افتتاح السوق الأمريكي الساعة 9:30 صباحًا بتوقيت نيويورك.
يعمل فقط على الفواصل الزمنية 30 دقيقة وأقل، ويمتد الخط حتى نهاية اليوم.
يمكنك اختيار عرض اليوم الحالي أو اليوم السابق فقط.
يعتبر أداة مفيدة لتحديد مستويات المقاومة والاختراقات المهمة خلال جلسة التداول الأمريكية.
المميزات:
رسم الخط مباشرة على شمعة 9:30.
تمديد الخط حتى نهاية اليوم تلقائيًا.
خيار عرض اليوم الحالي أو اليوم السابق فقط.
يعمل بدقة مع توقيت نيويورك والتوقيت الصيفي.
English
Indicator Name: 9:30 High – 30m Only
Description:
This indicator draws a horizontal line at the High of the US market opening candle at 9:30 AM New York time.
It works only on 30-minute charts or lower, and the line extends automatically until the end of the day.
You can choose to display the current day or the previous day only.
This tool is useful for identifying key resistance levels and potential breakouts during the US trading session.
Features:
Line plotted directly on the 9:30 candle.
Line extends automatically to the end of the day.
Option to show current day or previous day only.
Fully compatible with New York time and daylight saving.
CME Gap Tracker [captainua]CME Gap Tracker - Advanced Gap Detection & Tracking System
Overview
This indicator provides comprehensive gap detection and tracking capabilities for both consecutive bar gaps and weekly CME trading session gaps. It automatically detects gaps, tracks their fill progress in real-time, provides detailed statistics, and includes backtesting features to validate gap trading strategies. The script is optimized for CME futures trading but works with any instrument, automatically handling ticker conversion between CME futures and spot markets.
Gap Detection Types
Consecutive Bar Gaps:
Detects gaps between any two consecutive bars on the current timeframe. Two detection modes are available:
- High/Low Mode: Detects gaps when current bar's low > previous bar's high (gap up) or current bar's high < previous bar's low (gap down). This is more sensitive and detects more gaps.
- Close/Open Mode: Detects gaps when current bar's open > previous bar's close (gap up) or current bar's open < previous bar's close (gap down). This is more conservative.
Weekly CME Gaps:
Detects gaps between weekly trading sessions, specifically designed for CME futures markets. The script automatically detects the first bar of each new week and compares the current week's open with the previous week's close/high/low. This is particularly useful for tracking weekend gaps in CME futures markets where price can gap significantly between Friday close and Monday open.
Smart Ticker Detection
The script automatically converts between CME futures tickers (e.g., BTC1!, ETH1!) and spot tickers (e.g., BTCUSDT, ETHUSDT). When viewing a CME futures chart, it can automatically detect and use the corresponding spot ticker for gap analysis, and vice versa. This allows traders to:
- View CME futures but track spot market gaps
- View spot markets but track CME futures gaps
- Manually override with custom ticker specification
The ticker validation system uses caching to prevent race conditions during initial script load, ensuring reliable ticker resolution.
Gap Filtering & Tolerance
Static Tolerance:
Set minimum and maximum gap sizes as percentages (default: show only gaps > 0.333% and < 100%). This filters out noise and focuses on significant gaps.
Dynamic Tolerance:
When enabled, tolerance is calculated dynamically based on ATR (Average True Range). The formula: Dynamic Tolerance = (ATR × ATR Multiplier / Close Price) × 100%. This adapts to market volatility - in volatile markets, only larger gaps are shown; in calm markets, smaller gaps are displayed. This is particularly useful for instruments with varying volatility.
Absolute Size Filtering:
In addition to percentage filtering, gaps can be filtered by absolute price size (e.g., show only gaps > $100). This is useful for instruments where percentage alone doesn't capture significance (e.g., high-priced stocks).
Fill Confirmation System
To reduce false gap closure signals, the script requires multiple consecutive bars to confirm gap closure. The default is 2 bars, but can be adjusted from 1-10 bars. Lower values (1) confirm faster but may produce false signals from temporary wicks. Higher values (3-5) reduce false fill signals but delay confirmation. This prevents temporary price spikes from triggering false gap closure alerts.
Gap Fill Tracking
The script tracks gap fill progress in real-time:
- Fill Percentage: How much of the gap has been filled (0-100%)
- Fill Speed: Whether fill is accelerating, decelerating, or constant
- Time to Fill: For closed gaps, how many bars it took to fill
- Fill Status: Unfilled, partially filled, or fully filled
Visual Features
Heatmap Colors:
Gap colors can be adjusted based on gap size, with larger gaps appearing more intense and smaller gaps more faded.
Adaptive Line Width:
Line thickness automatically adjusts based on gap size, making larger gaps more prominent.
Age-Based Coloring:
Gaps can be color-coded by age, with newer gaps appearing brighter and older gaps more faded.
Confluence Zones:
Areas where multiple gaps overlap are highlighted with enhanced visuals, indicating stronger support/resistance zones.
Gap Statistics
A comprehensive statistics table provides:
- Total gaps created, open, and closed
- Fill rates by direction (up vs down) and size category (small, medium, large)
- Average fill time, fastest fill, slowest fill
- Oldest gap and oldest unfilled gap
- Backtesting results: success rate, reversal rate, average move after fill
- CME gap expiration statistics: Gaps expired unfilled (for Weekly CME gaps only)
Statistics can be filtered by period (All Time, Last 100/500/1000/5000 bars) and can be reset via toggle button.
Backtesting
When enabled, the script tracks price movement after gap fills:
- Price after fill: Captures price when gap closes
- Move after fill: Percentage price movement after closure
- Success/Reversal tracking: Determines if price continued in fill direction or reversed
- Success rate: Percentage of gaps where price continued in fill direction
This data helps validate gap trading strategies and understand gap fill behavior.
Gap Re-opening Detection
When enabled, the script detects when a previously filled gap reopens (price gaps back through the filled gap zone). This is useful for identifying when support/resistance levels break and can signal trend reversals.
CME-Specific Features
Monday Opening Volume Analysis:
For Weekly CME gaps detected on Monday openings, the script tracks Monday opening volume relative to average volume. Higher Monday volume ratios indicate stronger gap significance. This ratio is integrated into gap strength calculations and can be displayed in gap labels. Gaps with Monday volume > 1.5x average receive priority score boosts.
CME Gap Expiration Tracking:
Weekly CME gaps that remain unfilled beyond a configurable threshold (default 1000 bars) are automatically marked as "expired" and tracked separately in statistics. This helps identify gaps that act as strong support/resistance levels and never fill. Expired gaps are displayed with special labeling and counted in the "Gaps Expired (CME)" statistic.
CME Gap Priority Scoring Enhancement:
The priority scoring system includes special boosts for CME gaps:
- Monday gaps: +10 points (gaps detected on Monday openings)
- High Monday volume gaps: +15 points (Monday volume ratio > 1.5x average)
- Gaps at key weekly levels: +10 points (gaps aligning with previous week's high, low, or close within 0.5% tolerance)
These enhancements help prioritize the most significant CME gaps for trading decisions.
Custom Gap Zones
Traders can manually mark custom gap zones by specifying top and bottom levels. These zones are tracked like automatically detected gaps, allowing traders to:
- Mark historical gaps that weren't detected
- Create support/resistance zones based on other analysis
- Track specific price levels of interest
Multi-Timeframe Support
The script can detect gaps on higher timeframes simultaneously. For example, when viewing a 1-hour chart, it can also detect and display gaps from the weekly timeframe. This provides multi-timeframe context for gap analysis.
Alert System
Comprehensive alert system with multiple trigger types:
- Gap Creation: Alert when new gaps are detected
- Gap Closure: Alert when gaps are fully filled
- Partial Fill: Alert when gaps reach specific fill percentages (e.g., 25%, 50%, 75%, 90%)
- Approaching Closure: Alert when gaps reach high fill levels (e.g., 90%, 95%) before closing
- Gap Re-opening: Alert when previously filled gaps reopen
Alerts can be filtered to trigger only on Mondays (useful for CME weekly gaps) or any day.
Filtering Options
Gaps can be filtered by:
- Fill Status: Show all, unfilled only, partially filled only, or fully filled only
- Fill Percentage Range: Show gaps within specific fill percentage ranges
- Gap Age: Show only gaps within specific age ranges (bars)
- Gap Expiration: Automatically remove gaps older than specified number of bars (for Weekly CME gaps, uses separate CME expiration threshold)
Performance & Safety
The script includes several safety features:
- Safe array operations to prevent index out-of-bounds errors
- Memory leak prevention through proper visual object cleanup
- Ticker validation caching to prevent race conditions
- Week boundary detection for accurate CME gap identification
- Fill confirmation system to reduce false signals
- Monday opening volume analysis for CME gap strength assessment
- CME gap expiration tracking with configurable thresholds
- Priority scoring enhancement for Monday gaps, high Monday volume, and key weekly levels
Usage Recommendations
For CME Weekly Gaps:
1. Set "Gap Detection Type" to "Weekly CME"
2. View a CME futures chart (e.g., BTC1!) or enable auto-detect spot ticker
3. Set tolerance to filter gap size (default 0.333%)
4. Enable statistics to track fill rates
5. Configure alerts for gap creation/closure
For Consecutive Bar Gaps:
1. Set "Gap Detection Type" to "Consecutive Bars"
2. Choose "High/Low" for more gaps or "Close/Open" for fewer gaps
3. Adjust tolerance based on instrument volatility
4. Enable fill confirmation (2-3 bars) for more reliable signals
5. Use filtering to focus on specific gap types
For Gap Trading Strategies:
1. Enable backtesting to validate strategy performance
2. Review statistics to understand gap fill patterns
3. Use confluence zones to identify strong support/resistance
4. Configure alerts for gap events matching your strategy
5. Use custom zones to mark important levels
Technical Details:
• Pine Script v6 | Overlay indicator
• Safe array operations with index validation
• Memory leak prevention through proper object cleanup
• Ticker validation caching for reliable ticker resolution
• Works on all timeframes and instruments
• Comprehensive edge case handling
• Week boundary detection using ta.change(weekofyear)
• Fill confirmation system with configurable bars
For detailed documentation and usage instructions, see the script comments.
MTF Countdown TimerMTF Countdown Timer - Documentation
📊 Overview
The MTF Countdown Timer is a powerful TradingView indicator that displays real-time countdown timers for multiple timeframes simultaneously. It helps traders track exactly when new candles will open across different timeframes, enabling better timing for entries, exits, and analysis.
✨ Key Features
Multi-Timeframe Support: Monitor up to 10 different timeframes simultaneously
Real-Time Countdown: Live countdown showing time remaining until next candle
Smart Display: Only shows timeframes higher than your current chart timeframe
Customizable Alerts: Get notified when new candles open on specific timeframes
Clean Interface: Compact, professional table display with customizable appearance
Flexible Positioning: Place the timer anywhere on your chart
🎯 Use Cases
1. Multi-Timeframe Analysis
Track when higher timeframe candles are about to close to confirm your bias across multiple time horizons.
2. News Trading
Know exactly when key timeframes will print new candles around important news events.
3. Scalping
Monitor lower timeframe countdowns while keeping an eye on higher timeframe closures for optimal entry timing.
4. Swing Trading
Track daily, weekly, and monthly candle closures to time your position entries and exits.
5. Alert Management
Set alerts for specific timeframe candle openings to never miss important market structure changes.
⚙️ Settings Guide
Timeframes Section
Timeframe 1-10: Select from dropdown menus (1m, 5m, 15m, 30m, 1h, 4h, 1D, 1W, 1M)
Show TF: Toggle visibility for each timeframe
Alert: Enable alerts for new candle openings on each timeframe
Display Settings
Position: Choose from 9 positions on your chart
Size: Adjust text size (Tiny, Small, Normal, Large)
Color Settings
Background: Table background color
Timeframe Text: Color for timeframe labels (e.g., "5m", "1h")
Time Text: Color for countdown timers
Border: Table border color
📖 How to Use
Basic Setup
Add the indicator to your chart
Select the timeframes you want to monitor (up to 10)
Enable visibility for desired timeframes using the "Show TF" checkboxes
Position the table where it doesn't obstruct your analysis
Understanding the Display
Top Row: Shows the timeframe label (5m, 15m, 1h, etc.)
Bottom Row: Shows time remaining
Format changes based on duration:
Days & Hours: 2d 14h
Hours & Minutes: 3h 45m
Minutes & Seconds: 04m 32s
Setting Up Alerts
Enable alerts for specific timeframes using the "Alert" checkbox
Create an alert in TradingView's alert menu
Choose from:
Individual timeframe alerts (TF1-TF10 New Candle)
"Any New Candle" for all enabled timeframes
Customize your alert message and notification preferences
💡 Pro Tips
For Day Traders
Monitor 5m, 15m, 30m, and 1h timeframes
Position the timer in the top right corner
Enable alerts for the 1h timeframe to catch major structure changes
For Swing Traders
Focus on 4h, Daily, and Weekly timeframes
Use alerts for Daily candle closes to manage overnight positions
Track Weekly closes for major trend changes
For Scalpers
Use 1m, 3m, 5m, and 15m timeframes
Keep size "Small" or "Tiny" to minimize chart obstruction
Position at top or bottom center for quick glancing
🎨 Recommended Color Schemes
Dark Theme (Default)
Background: Dark blue with transparency
Timeframe Text: Light blue
Time Text: White
Border: Dark gray
Light Theme
Background: Light gray with transparency
Timeframe Text: Dark blue
Time Text: Black
Border: Medium gray
High Contrast
Background: Black
Timeframe Text: Cyan
Time Text: Yellow
Border: White
⚠️ Important Notes
Timeframe Filtering: The indicator automatically hides timeframes lower than or equal to your current chart timeframe to avoid clutter
Performance: Using many timeframes may slightly impact performance on slower systems
Alert Limitations: Each timeframe alert is independent; use "Any New Candle" for consolidated alerts
Time Accuracy: Countdown is based on exchange time and updates in real-time
🔧 Troubleshooting
Timer not showing?
Ensure selected timeframes are higher than your current chart timeframe
Check that "Show TF" is enabled for desired timeframes
Alerts not working?
Verify "Alert" checkbox is enabled in indicator settings
Create the alert through TradingView's alert menu
Ensure you have available alerts in your TradingView plan
Display issues?
Adjust table position if overlapping with price action
Modify size settings for better visibility
Change colors if hard to read on your chart theme
[Gio Screener] Bias + Inflect (v2)In crypto BTC is king: when it moves, the market moves (most of the time).
In this screener, correlation and volatility are used as an advantage — at least we try.
This script is a benchmark-relative screener designed to quickly identify which assets are most interesting to trade when the market is moving, especially during high-volatility sessions.
The core idea is simple:
most assets behave like a beta of a benchmark (usually BTC). When the benchmark accelerates, correlated assets tend to follow — but with different strength, timing, and structure. This screener helps you exploit those differences.
What this screener does
For each symbol in the list, the script compares its behavior to a benchmark across two evaluation windows (LTF and HTF) and displays the results in a sortable table. It focuses on three main aspects:
- relative strength vs the benchmark
- correlation quality
- timing / inflection readiness
The goal is to quickly answer:
Which assets should I long or short when the benchmark dips or tops?
Main columns
Bias
Bias measures directional edge relative to the benchmark.
It combines:
- relative performance vs benchmark (HTF and LTF)
- higher-timeframe price change (structural trend)
Interpretation
- Positive Bias → better long candidates
-Negative Bias → better short candidates
Bias answers “what side should I prefer?”
Inflect (Inflection index)
Inflect measures how ready an asset is for a reversal or mean-reversion entry in the direction suggested by Bias.
It combines:
- oscillator stretch (overbought / oversold)
- oscillator turning (delta sign-hold)
- short-term pullback (anti-chase logic)
- volatility amplification (reward movers)
- correlation quality (prefer benchmark-aligned assets)
Inflect is a single numeric score, used both for:
- table reading and sorting
- actionable alerts
Interpretation:
- High positive Inflect → long-side inflection candidates
- High negative Inflect → short-side inflection candidates
Inflect answers “is this a good moment?”
Actionable logic (alerts-grade)
A symbol becomes actionable only when all of the following conditions are met:
- correlation with the benchmark is strong enough
- benchmark itself confirms the same direction (turning)
- Bias magnitude is large enough
- Inflect magnitude is large enough
- oscillator reached an extreme
- oscillator delta confirms the turn
When this happens, the Inflect cell is highlighted for a few bars so recent signals remain visible even after sorting.
How to use
Typical workflow:
- choose a benchmark (BTC, TOTAL, TOTAL3, etc.)
- set LTF / HTF evaluation windows
- sort by Bias to rank strong vs weak assets
- sort by Inflect to rank best timing opportunities
- focus on correlated, volatile assets during market moves
This screener is especially useful in high-volatility environments, when reversals and pullbacks offer better risk/reward.
Implementation notes
- Uses one request per symbol (efficient and stable)
- Calculations are independent from the chart symbol
- Rolling-window logic in chart bars (good trade-off between precision and performance)
Final note
This is not a signal generator by itself.
It is a decision-compression tool: it reduces a large universe into a short list of where and when to focus your attention.






















