5-SMA Smart PivotDescription
This indicator is designed to identify short-term trend reversals by detecting pivot points in the 5-period Simple Moving Average (SMA).
How It Works
The script monitors the 5-day SMA for specific turning points:
Turn Down (Purple Arrow): Triggers when the SMA shifts from rising/flat to falling.
Turn Up (White Arrow): Triggers when the SMA shifts from falling/flat to rising.
Key Features
Smart Filter (Price Confirmation): Includes an optional "Weak Signal Filter" enabled by default. This ensures an arrow is only plotted if the price actually closes on the correct side of the SMA (e.g., Price must close below the SMA for a Down arrow). This helps reduce noise in choppy markets.
Clean Settings Menu: Unlike standard scripts that clutter your "Style" tab with dozens of checkboxes, this script uses dynamic labeling. This keeps your settings menu clean while still giving you full control.
Fully Customizable:
Arrow Size: Select from "Tiny" to "Huge" via a simple dropdown menu.
Colors: Fully adjustable colors for the SMA line, Up arrows, and Down arrows.
Settings
SMA Length: Default is 5, but can be adjusted to any length.
Filter Weak Signals: Toggle on/off to require price confirmation.
Visual Style: Change line width, colors, and arrow sizes instantly from the Inputs tab.
Usage
This tool is best used for short-term momentum trading to catch immediate shifts in trend direction. It works well when combined with a longer-term trend filter (like the 20/50 SMA) to take signals only in the direction of the major trend.
トレンド分析
ADX DMI SqueezeOverview
This indicator combines:
ADX / DMI → Measures trend strength and direction
ADX Squeeze Histogram → Shows when the trend is accelerating or “squeezing” for a breakout
Triangles → Highlight potential expansion points
Optional DI+ / DI− lines → Show bullish/bearish dominance
ADX Threshold Lines (15 / 20) → Help filter weak trends
Early ADX Acceleration Dots → Provide an early heads-up before a squeeze fires
It can be used standalone or alongside other trend tools like VWAP for better entry timing.
Entry Guidelines
Long Trades (Buy):
Histogram above 0
Green triangle appears
ADX rising or above threshold (15/20 recommended)
Optional: DI+ > DI− confirms bullish strength
Short Trades (Sell):
Histogram above 0
Red triangle appears
ADX rising or above threshold (15/20 recommended)
Optional: DI− > DI+ confirms bearish strength
Avoid trades if:
Histogram negative
Triangles appear but ADX below threshold or trend not confirmed by DI linesOptional Filters
Require ADX acceleration: Only shows signals when ADX is increasing → avoids late or false entries
VWAP Bias: Session-anchored institutional positioning (best for open & intraday scalps).
MA Bias: Time-based trend direction (best for continuation & trend days).
Tips
Best on 30-min or higher timeframes for swing/short-term trend trades
Can be combined with VWAP Moving averages , support/resistance, or Bollinger Bands
Use DI lines toggle if you want extra visual trend confirmation
Adjust DMI length (sensitivity) and ADX smoothing for your preferred timeframe
Interpretation
Histogram turning green above 0 + triangle → strong bullish move forming
Histogram turning red above 0 + triangle → strong bearish move forming
ADX above 20 → strong trend, more reliable
ADX below 15 → weak trend, signals less reliable
In short:
Long = Green bars above 0 + Green triangle
Short = Red bars above 0 + Red triangle
Confirm with ADX above threshold and optionally DI lines
yesterday
THMA ~ CharonQuantTHMA is a high-precision trend following indicator designed to detect market transitions early while filtering out low-quality, low-momentum conditions.
Built on the Hull Moving Average framework, THMA extends the concept into a triple-nested structure that significantly reduces lag without sacrificing smoothness. The result is a fast, stable trend line that adapts well to volatile markets such as crypto, forex, and intraday equities.
Signals are not generated in isolation. Every long or short condition is validated through three independent filters :
Trend alignment via a higher-timeframe EMA
Directional control using DI (+DI / −DI)
Trend strength confirmation through ADX
Only when all filters align does a final signal trigger, helping suppress noise and whipsaw during ranging markets.
Visual Design
Persistent THMA state coloring
Long, muted gold (#D4A017)
Short, deep burgundy (#6B2A3A)
Lighter confirmation states when conditions are partially met
Trend EMA and dynamic price reference
ADX with threshold displayed in a separate pane
Alerts
Two native alert conditions are included:
THMA Long
Fires when finalLong becomes true
Condition, price > THMA, price > Trend EMA, ADX > threshold, +DI > −DI
THMA Short
Fires when finalShort becomes true
Condition, price < THMA, price < Trend EMA, ADX > threshold, −DI > +DI
Alert messages include exchange and ticker placeholders for automation and webhook use.
Important
No indicator replaces discipline or context.
THMA exists to reduce uncertainty, not eliminate risk.
Use it to escort price through volatility, not to chase it.
THAI TRENDINGVolume is the total amount of assets traded in a specific period of time. The 24-hour Volume indicator is used to measure the total volume of a symbol traded in the last 24 hours, expressed as in currency. It can be used to measure the market's interest in a particular symbol.
FX-CLINIC /ICT PRO-STRUCTUREICT Indicator
Show:
1- External structure (MSS,BOS,ZIG ZAG)
2- Internal structure (IMSS,IBOS,ZIG ZAG)
3- Liquidity lines (BSL,SSL)
Automatic updated with price
Full control
1- colores
2- labels
3- long of the external and internal swings
done by Fx-clinic
free
RSL Buy Signal Alert the relative Strength Index from Levy is checked. If it is above a dynamic value, an alert is triggered
Setup Finder by cryptokazancevEnglish
The indicator helps find setups based on Smart Money instruments
What OB and FVG Are
Order Blocks (OB) are a bullish or bearish candle (or several candles) where the next candle (or a sequence of candles) impulsively engulfs the order block.
Imbalance (FVG) is a price inefficiency caused by an impulsive price move due to an abnormal dominance of supply or demand at a price level.
Indicator Settings (in Simple Terms)
Show OB — enable/disable displaying the detected order blocks on the chart.
Show FVG — enable/disable displaying the detected FVG zones.
Max OB (per side) — how many long and how many short order blocks to display at the same time.
Max FVG (per side) — how many long and how many short FVG zones to display at the same time.
Engulfing Window (candles) — how many subsequent candles are allowed to consider the order block “engulfed.”
Color Engulfing Candles — highlight candles where the engulfing occurred to make it easier to spot on history.
OB Invalidation Mode — when to consider an order block “broken” (invalid):
“50%” — the OB is considered invalid if price closes with the candle body below/above the midpoint (50%) of the order block.
“Entry Drill” — the OB becomes invalid on the first touch of the OB zone.
Size Limits via ATR
OB Size in ATR — here ATR is defined as the average candle size over the last 500 bars. It is used to determine the maximum allowed size of an order block.
FVG Size in ATR — the same, but for an FVG zone: a limit on what FVG size is considered acceptable.
Setup Search Mode
Enable Setup Search Mode — when enabled, the indicator will not display all OB and FVG, but only those that contain:
pivots, or
a Sunday Open level, or
both.
Require Pivots / Require Sunday Open — a requirement that the OB/FVG zone must contain pivots and/or Sunday Open levels (depending on the selected option).
Number of Sunday Open Levels — how many Sunday Open levels to draw on the chart.
How to use
Enable Setup Search Mode .
Turn on the requirements Require Pivots and Require Sunday Open so that only the most relevant OB/FVG zones are displayed.
Wait for price to return into the highlighted Order Block or FVG area.
On a lower timeframe, look for an entry model/confirmation, such as:
engulfing,
pin bar,
break of structure / Market Structure Shift (MSS).
Repainting
The indicator does not repaint.
Русский
Индикатор помогает находить сетапы по торговой стратегии Павла Казанцева.
Что такое OB и FVG
Ордерблоки (OB) — это бычья или медвежья свеча (или несколько свеч), при этом следующая свеча (или связка свеч) импульсно поглощает ордерблок.
Имбаланс (FVG) — это ценовая неэффективность, вызванная импульсным движением цены вследствие аномального превосходства спроса/предложения на ценовом уровне.
Настройки индикатора (простыми словами)
Показывать OB — включить/выключить отображение найденных ордерблоков на графике.
Показывать FVG — включить/выключить отображение найденных зон FVG.
Максимум OB (на сторону) — сколько лонговых и сколько шортовых ордерблоков показывать одновременно.
Максимум FVG (на сторону) — сколько лонговых и сколько шортовых зон FVG показывать одновременно.
Окно поглощения (свечей) — сколько следующих свечей допускается, чтобы считать, что ордерблок был “поглощён”.
Окрашивать поглощённые свечи — подсвечивать свечи, где произошло поглощение, чтобы проще было искать это на истории.
Режим инвалидации OB — когда считать ордерблок “сломавшимся” (недействительным):
“50%” — OB считается недействительным, если цена закрепилась телом свечи ниже/выше середины (50%) ордерблока.
“Entry Drill” — OB становится недействительным при первом касании зоны OB.
Ограничение размеров через ATR
Размер OB в ATR — ATR здесь понимается как средний размер свечей за последние 500 баров. От него считается, какой максимальный размер ордерблока допустим.
Размер FVG в ATR — то же самое, но для зоны FVG: ограничение, какой размер FVG считается допустимым.
Режим поиска сетапов
Включить режим поиска сетапов — если включить, индикатор будет показывать не все OB и FVG, а только те, внутри которых есть:
пивоты, или
уровень Sunday Open, или
и то, и другое.
Обязательно Пивоты / Обязательно Sunday Open — требование, чтобы в зоне OB/FVG обязательно были пивоты и/или уровни Sunday Open (в зависимости от выбранной опции).
Количество уровней Sunday Open — сколько уровней Sunday Open рисовать на графике.
Как пользоваться
Включите режим поиска сетапов .
Активируйте требования Обязательно Пивоты и Обязательно Sunday Open , чтобы отображались только наиболее релевантные зоны OB/FVG.
Дождитесь, когда цена вернётся в отмеченный диапазон ордерблока или FVG .
На младшем таймфрейме найдите модель входа/подтверждение, например:
поглощение,
пинбар,
слом структуры / Market Structure Shift (MSS).
Перерисовка
Индикатор ничего не перерисовывает.
ChunkbrAI-NN INDIChunkbrAI-NN INDI: The Neural Network Odyssey
A Native Pine Script Neural Network Research Engine
Welcome to ChunkbrAI-NN 5.3. This is not a standard technical indicator; it is a proof-of-concept Artificial Intelligence engine built entirely from scratch within Pine Script.
Neural Networks typically require iterating over massive datasets, a task that usually times out on TradingView. ChunkbrAI solves this by introducing a novel "Chunking Architecture"—a system that breaks history into digestible learning blocks and trains a Multilayer Perceptron (MLP) using a "Chunking" approach.
It features a living ecosystem where neurons have "genes," grow mature, and adapt to market regimes using a highly sophisticated Context-Aware normalization engine.
-----------------------------------------------------------
The Core Concept: "The Time Wheel"
To bypass Pine Script's execution limits, this script does not train linearly from the beginning of time. Instead, it operates like a spinning wheel of experience.
* The Chunk System: On every bar update, the engine reaches back into history (up to 5000 bars) and grabs random or sequential "Chunks" of data. It treats these chunks as isolated training samples.
* Experience Replay: By constantly revisiting past market scenarios (Chunks), the network slowly converges its weights, learning to recognize patterns across different eras of price action.
-----------------------------------------------------------
Architecture & Modules
A. The Neural Core (MLP)
At the heart is a raw neural network built with arrays:
* Topology: A dense network with a customizable Hidden Layer (Default: 60 Neurons).
* Timewarp (Stride): When enabled, the network uses "dilated" inputs (skipping bars, e.g., 1, 3, 5...). This increases the network's Field of View without increasing computational load.
* Forecasting: The network outputs a standardized prediction which is then de-normalized to project the future price path on your chart.
B. The Context System (The "Eyes")
Raw prices confuse neural networks. A $1000 move in Bitcoin is massive in 2016 but noise in 2024. ChunkbrAI uses a relativistic Context System:
* Regime Detection: It uses a Zero-Lag Moving Average (ZLMA) and Non-Linear Regression to measure the current market "Vibe" (Volatility & Trend).
* Dynamic Normalization: The inputs are scaled based on this context. If the market is volatile, the data is compressed; if calm, it is expanded. This ensures the brain receives consistent signal patterns regardless of the absolute price.
C. The Gene System (Neuro-Plasticity)
This is the experimental "biology" layer. Neurons are not just static math; they have life cycles.
* Maturity: Neurons start "Young" (highly plastic, high mutation rate). As they successfully reduce error, they become "Wise" (stable, low mutation).
* Mutation: If a "Wise" neuron begins failing (high error), it is demoted and forced to mutate. This allows the brain to "forget" obsolete behaviors and adapt to new market paradigms automatically.
* Profiles: You can initialize the brain with different personalities (e.g., Dreamer, Young Chaos, Zen Monk).
D. The Brain Scheduler (Adaptive Learning)
A static Learning Rate (LR) is inefficient. The Brain Scheduler acts as the heartbeat:
* Panic vs. Flow: It monitors the derivative of the error. If the error spikes (Panic), the Scheduler slows down learning to prevent the model from exploding. If the error smooths out (Flow), it accelerates learning (Infinite LR Mode).
-----------------------------------------------------------
Forecasting Modes
The script provides two distinct ways to visualize the future:
1. Direct Projection (Green Line):
The network takes the current window of price action and predicts the immediate next step. If Timewarp is active, it interpolates the result to draw a smooth curve.
2. Autoregression (Cyan Line):
Available in "Auto" mode. The network feeds its *own* predictions back into itself as inputs to generate multi-step forecasts.
* Wave Segmentation: The script intelligently guesses the current market cycle length and attempts to project that specific duration forward.
-----------------------------------------------------------
Operation Manual
The script has two distinct training loops: first, when you add it to a chart, Pine runs through the available historical bars once, and this initial history pass is the main training phase where the network iterates chunk-by-chunk using your configured chunk count/iterations (e.g., if chunk count is 3, it performs 3 chunk updates per step), but pushing chunk count, iterations, or model sizing too high can hit Pine’s execution limits; after that, once real-time candles start printing, the script can either keep training (weights continue updating) or freeze the weights and run inference only, producing predictions from the learned parameters, and if live training is enabled it can also simulate “bars-back” style training during live mode by iterating across prior bars as if doing another history pass—which again can run into limits if chunks/iterations/sizing are too heavy—so when changing parameters to evaluate behavior you change them carefully and individually, because multiple simultaneous increases make it hard to attribute effects and can more easily trigger those execution constraints.
Weight Persistence (Save/Load):
Pine Script can’t write files or persist weights directly, so ChunkbrAI uses a library-based workaround that’s honestly tricky and kind of a pain: you enable the weight-export alerts so the script emits the weights (W1/W2/biases etc.) as text, and those payloads are chunked as well; then, outside TradingView, I use a separate Python script to parse the alert emails, reconstruct and format the chunked weights properly, and generate the corresponding library code files; after that, the libraries have to be published/updated, and only then can the main script “restore” by reading the published lib constants on chart load, effectively starting with the pre-trained weights instead of relying purely on the fresh history-run training pass. I don’t recommend this process unless you really have to—it’s fragile and high-effort—but until TradingView implements some simple built-in data storage for scripts, it’s basically the only practical way to save and reload your models.
-----------------------------------------------------------
Limitations & Notes
* Calculation Limits: This script pushes Pine Script to its absolute edge. If you increase Chunk Size or Hidden Size too much, you WILL hit execution limits. Use the defaults as a baseline.
* Non-Deterministic: Because the "Wheel" picks random chunks for training, two instances of this script might evolve slightly different brains unless you use the Restore Weights feature.
* Experimental: This is a research tool designed to explore Neural Networks and Genetic Algorithms on the chart. Treat it as an educational engine, not financial advice.
Credits: Concept and Engineering by funkybrown.
MTF EMA Traffic Light System Trend Alignment for ScalpersMTF EMA Traffic Light – Trend Bias System
This indicator is designed to help traders quickly identify high-probability trend alignment using multiple timeframes and EMAs.
It analyzes price relative to the 13 EMA and 55 EMA on:
1 Minute
5 Minute
15 Minute
1 Hour
4 Hour
Then it converts that data into a simple Traffic Light system to guide trade decisions.
🚦 How It Works
Each timeframe is classified as:
🟢 BULL – Price above both EMAs
🔴 BEAR – Price below both EMAs
🟡 MIXED – No clear direction
The system focuses on lower-timeframe alignment:
When 1m + 5m + 15m are aligned → Strong setup
When mixed → Caution
When misaligned → Stand aside
🟢 GREEN State (Full Trade Mode)
Triggered when:
✔ 1m, 5m, and 15m are all BULL → Long Bias
✔ 1m, 5m, and 15m are all BEAR → Short Bias
Rules:
Full position size
Trade with trend
Look for EMA pullbacks
Let winners run
🟡 YELLOW State (Caution Mode)
Triggered when:
✔ Lower timeframes are mixed
Rules:
Reduce size
Take quick profits
No holding
Defensive trading
🔴 RED State (No Trade)
Triggered when:
✔ No clear alignment
Rules:
Stay out
Mark key levels
Protect capital
📋 Dashboard Panel
The indicator displays a real-time table showing:
Each timeframe’s bias
Overall market state
Trade rules
This allows you to read market structure in seconds without switching charts.
🎯 Best Use
This tool works best for:
✔ Scalping
✔ Intraday trading
✔ Trend continuation setups
✔ EMA pullback strategies
Recommended for:
Forex
Indices
Gold
Crypto
⚠️ Risk Disclaimer
This indicator is a decision-support tool, not a guarantee of profits.
Always use:
Proper risk management
Stop losses
Personal trade rules
Never risk more than you can afford to lose.
Emerging Shotgun StrategyThis strategy was made after watching a YouTube video on the trader named Bibiri. You need to watch the emerging markets fund (Russell, or other) and then have multiple different stocks open. If you see an arrow, take out a position with a high take profit but a really short stop loss. This will mean that a lot fail, but the ones that jump will make profits.
Kaste HARSH [Pure]How it works:
Trend component: Measures the percentage distance between fast (12) and slow (26) EMAs
Momentum component: RSI centered at 50 (range -50 to +50)
Result: A smoothed line oscillating around zero—positive values indicate bullish momentum, negative values bearish
Reading the indicator:
Above zero: Uptrend dominance; line above orange signal = strong momentum
Below zero: Downtrend dominance; line below signal = weakening momentum
±20 dotted lines: Overbought/oversold thresholds (adjustable via background colors)
Best used for: Confirming trend direction and spotting momentum divergences without chart clutter. Pure price action alignment—no buy/sell arrows, just raw trend energy.
QuCap Pure Liquidity: Untouched Liquidity PoolsOverview Most liquidity indicators on the Public Library suffer from "Chart Noise." They often leave levels on the chart long after they have been "wicked out," simply because the candle didn't manage to close past the level.
QuCap Pure Liquidity is designed for the precision trader who only cares about Intact Liquidity. This script identifies pivot-based liquidity pools and monitors them in real-time. If price wicks through a level by even a single tick, the level is immediately invalidated and removed from your chart.
Key Features
Instant Invalidation: Levels are deleted on wick touch (High/Low), not candle close.
Intact Levels Only: What you see on the chart is "Fresh" and has not been mitigated.
Memory Management: Includes customizable limits for Buy-Side and Sell-Side levels to keep your chart clean and your browser running fast.
Fully Customizable: Adjust pivot strength (Left/Right bars) and visual styles to match your personal template.
How to Use
Draw on Liquidity: Use the remaining lines as a magnet for price action.
Stop Runs: Observe how price reacts when it clears these levels.
Clean Charts: Perfect for traders who follow SMC or ICT concepts and need to see where the real "resting" orders are.
Settings
Pivot Strength: Increase these values (e.g., 5, 5) to find more significant historical levels, or keep them low (2, 2) for scalp targets.
Max Levels: Keeps the chart from showing lines from weeks ago that are no longer relevant to current intraday price action.
UTC-5 Time MarkersFor model 110 of DTT use flout with this as a bias and you will catch high wr high rr trades for this certain time window of continuation or reversal
Cruzamento MACD 15 min sauloCruzamento macd nos 15 min, quando acontece o cruzamento o indicador da o sinal de compra e venda.
ATR Deviation Sigmoid Oscillator# ATR Sigmoid Volatility Regime Oscillator
## What This Indicator Does
The **ATR Sigmoid Volatility Regime Oscillator** is a volatility-regime detection tool designed to answer a single, critical question:
> *Is the market currently in a low-volatility or high-volatility regime—relative to its own recent behavior?*
Instead of using raw volatility values, this indicator **contextualizes volatility** by comparing the current ATR (Average True Range) to its own historical baseline and then mapping that deviation into a bounded, interpretable scale.
---
## How It Works (Conceptual)
1. **ATR Calculation**
The indicator starts with the standard ATR, which measures market volatility without direction.
2. **Baseline via EMA**
An EMA of ATR is used as a dynamic volatility baseline. This adapts to changing market conditions instead of relying on static thresholds.
3. **Relative Deviation**
The difference between ATR and its EMA represents how "unusual" current volatility is relative to its recent history.
4. **Normalization**
This deviation is normalized using ATR’s own dispersion, ensuring comparability across assets and timeframes.
5. **Sigmoid Transformation (0–100)**
A sigmoid function maps the normalized value into a **bounded 0–100 oscillator**, producing:
* Stability at extremes
* Smooth regime transitions
* No unbounded spikes
---
## How to Read the Oscillator
* **Above 50 (Green)**
High-volatility regime. Momentum strategies, breakout logic, and wider risk parameters tend to perform better.
* **Below 50 (Red)**
Low-volatility regime. Mean-reversion, range trading, and tighter risk controls are generally more appropriate.
* **The 50 Level**
Acts as a *volatility regime boundary*, not a buy/sell signal.
This indicator is **not directional**. It is a *context filter*.
---
## What This Indicator Is Best Used For
* Enabling/disabling strategies based on volatility regime
* Filtering false signals in low-volatility environments
* Position sizing and stop-distance adaptation
* Multi-asset volatility comparison using a common scale
---
## What This Indicator Is NOT
* ❌ Not a buy or sell signal
* ❌ Not a trend indicator
* ❌ Not predictive on its own
It is designed to be used **in combination with price, trend, or momentum logic**.
---
## Disclaimer
This indicator is provided for **educational and informational purposes only**.
It does not constitute financial advice, investment recommendations, or an offer to buy or sell any financial instrument. Trading involves risk, and past performance does not guarantee future results.
You are solely responsible for any trading decisions you make using this tool.
---
## Like This Indicator?
If you find this volatility regime tool useful:
* ⭐ **Add it to your favorites**
* 💬 **Leave a comment or feedback** — suggestions are welcome
* 👤 **Follow for future updates and new quantitative tools**
Your support helps improve and refine this work.
---
*Designed with a quantitative, regime-based approach to market analysis.*
MACD Buy E Sell EditavelMacd personalizavel com sell para cruzamento de venda e buy para cruzamento de compra
MA ATR RangeExponencial Moving average with 3 ATR ranges. It shows trend and overbought and oversold levels.
Vietnam Asset Monitoring ToolVietNamese Asset Correlation Tracking Chart
This chart monitors the relationship between major asset classes which Vietnamese analyst should monitor:
Gold Price: Gold is currently in the spotlight as international trade tensions show no signs of easing.
U.S. Dollar Index (DXY): The strength of the U.S. dollar, a key indicator that has relative correlations with most asset classes.
VN30: Vietnam’s benchmark stock index, representing the top 30 leading listed companies.
VNREAL: The stock index tracking Vietnam’s real estate–related companies.
Hanoi Residential Property Prices: Apartment and landed house prices in Hanoi, compiled and aggregated by **VietRealty.Pro**
Development in progress..
FX-CLINIC/ ICT/ LIQUIDITY SWEEPICT Indicator
Show Liquidity sweep
Automatic updated
created by FX-CLINIC
LTF FVG + IFVG + HTF Liquidity + SessionsWhat this indicator does
This is a precision execution tool around Fair Value Gaps (FVG) and Inverted FVG (IFVG) with optional higher-timeframe confluence, HTF liquidity levels and session levels (Asia / London / Yesterday’s High–Low / Daily 50%).
By default it keeps things clean:
ON by default:
LTF FVG (nearest bullish & bearish)
LTF IFVG (inverted gaps that stay on the chart and freeze on second break)
OFF by default (you enable if you want):
HTF1 & HTF2 FVG layers
HTF liquidity levels (HTF swing highs/lows)
Asia & London session highs/lows
Yesterday’s high/low
Daily 50% line (D 50%)
Everything is time-anchored with xloc=bar_index, clamped to bar_index + 500, and trimmed by age / count so behaviour is stable in replay and on reload.
1. LTF FVG + IFVG (core engine)
Detection
Uses a 3-bar ICT-style pattern:
Bullish FVG: low > high and close > high
Bearish FVG: high < low and close < low
Runs on a Lower Timeframe (LTF):
Default: current chart timeframe
Optional: override via input.
Lifetime model
FVG lifetime is not hardcoded; it’s based on the timeframe:
Short TF → shorter lifetime in bars
Higher TF → proportionally longer lifetime
When lifetime is reached or price fully closes through the gap, the FVG is frozen:
Right edge stops where it should (expiry or break).
Zone is kept as historical structure, not deleted.
IFVG (Inverted FVG)
When an LTF FVG is broken back through:
It can spawn an Inverted FVG (IFVG) in the same price range.
Source must be younger than N LTF bars (configurable, default max age = 15).
Behaviour:
IFVGs are drawn with their own length (in bars) and color.
They stay on the chart even after being broken again.
On the next break in the opposite direction, the right side is cut:
The IFVG stops extending at that bar (second break = freeze).
Total number of IFVG boxes is capped for performance.
Visibility logic (LTF)
Indicator continuously tracks:
Nearest bearish FVG above price
Nearest bullish FVG below price
Only those two active LTF FVGs are visually highlighted (if enabled):
All other still-alive FVGs are tracked internally but muted.
Colours:
Bullish LTF zone color
Bearish LTF zone color
Separate color for IFVGs.
Result: You always see the closest upside and downside LTF imbalance + all IFVGs frozen where they were created and finally broken.
2. HTF1 & HTF2 FVG (optional)
Two higher-timeframe FVG layers for confluence:
HTF1
Timeframe:
Auto-mapped from the chart TF (e.g. 1m → 5m, 5m → 15m, 15m → 1h, 1h → 4h, 4h → Daily, etc.).
Manual override available.
Detection:
Same 3-bar FVG logic, but calculated on HTF and projected down.
Lifetime based on HTF bars, not LTF bars.
Visibility:
Only one bullish and one bearish HTF1 FVG is shown:
Nearest bearish above current price
Nearest bullish below current price
All others are tracked and culled by age/count.
HTF2
Second, higher layer (e.g. 1m → 1h, 5m → 1h, 1h → Daily, 4h → Weekly, etc.).
Same behaviour as HTF1:
FVG detection on HTF2
Lifetime in HTF2 bars
Only nearest bullish and bearish zones are drawn.
HTF visuals
HTF1
Bullish: yellow, ~20% opacity (subtle background)
Bearish: purple, ~20% opacity
HTF2
Bullish: yellow, ~40% opacity (stronger)
Bearish: purple, ~40% opacity
HTF HUD
Small two-column HUD at the bottom center:
Shows active TF for HTF1 and HTF2, e.g.
HTF1 FVG 15 | HTF2 FVG 60
If a layer is turned off, it shows HTF1 FVG: off / HTF2 FVG: off.
3. HTF Liquidity (pivot highs/lows) – optional
A separate module to track HTF liquidity levels:
HTF selection:
Auto-select HTF (mapping similar to FVG)
Or manual HTF via input.
Detection:
Uses pivot highs/lows with configurable left/right strength.
All pivots are pulled via request.security(..., lookahead_off) and anchored correctly on the LTF chart with xloc=bar_index.
Each liquidity level stores:
Price
Whether it’s a high or low
Creation bar index
Sweep status and sweep bar index.
Sweeps
A level is marked as swept when price wicks through it:
High level swept when high >= level price
Low level swept when low <= level price
Once swept:
The line is extended for a limited number of bars (configurable) and then frozen.
Sweep history:
High sweeps and low sweeps stored in arrays.
History is trimmed by bars back, not by random count – deterministic behaviour on reload.
You can turn the entire HTF Liquidity module on/off with LIQ: Show HTF Levels.
4. Sessions: Asia, London, Y-High/Y-Low, D 50% (optional)
All session features are OFF by default – you only enable what you actually want.
Asia & London highs/lows
Two time windows in Europe/Copenhagen time:
Asia session
London session
During each session:
Script tracks the session high and low plus their bar indices.
When a session ends and Show Asia/London High/Low is enabled:
A line is drawn from the session’s high/low with a label:
“Asia high”, “Asia low”, “London high”, “London low”.
Lines are anchored with xloc=bar_index, right side clamped.
Sweep behaviour
On the first sweep:
If price trades through a session high/low:
The line’s right edge is frozen at the sweep bar.
The label is also locked to that bar.
Line style switches to dashed, indicating the level has been taken.
Before sweep:
Lines & labels extend live with the chart (following the latest bar).
Yesterday’s High / Low
Tracks current day’s high & low, then rolls them into Y-high and Y-low at the new daily open.
When Show Y-high/Y-low is enabled:
Lines + labels for Y-high/Y-low are drawn from the rollover bar.
On sweep:
First touch through Y-high or Y-low:
Line is frozen at sweep bar and set to dashed.
Label is locked at that bar.
Before sweep, they extend live.
Daily Mid (D 50%)
Optional midpoint of the daily range ((dayHigh + dayLow) / 2).
Drawn as a dashed line with a “D 50%” label.
Always extends to the latest bar; not sweep-gated.
Session shading (debug)
Optional background shading when current bar is inside:
Asia session
London session
Purely visual; no effect on logic.
5. Design, performance & behaviour
All drawings are:
xloc = bar_index (sticky with scroll/zoom).
Right-clamped to bar_index + 500 to avoid runaway extensions.
Arrays and objects are trimmed:
FVG/IFVG, HTF FVG, HTF liquidity and session objects are all capped by bars back or max count.
This keeps the script stable even on long histories and in replay mode.
HTF data:
All HTF feeds use request.security(..., lookahead_off) for non-repainting behaviour.
Only preview/visual elements (HUD etc.) depend on last bar state.
TL;DR
You get:
A clean, non-spammy LTF FVG/IFVG engine that:
Shows only the nearest bullish and bearish LTF gaps,
Freezes IFVGs on second break instead of deleting them.
Optional HTF1 & HTF2 FVG context (nearest zones per direction).
Optional HTF liquidity from higher-timeframe pivot highs/lows.
Optional Asia/London session highs/lows, Yesterday’s High/Low, and D 50%, all with proper sweep freezing.
Turn on only the modules you actually trade with – the default setup is just FVG + IFVG, ready for intraday execution.
HY Smart VolumeHY Smart Volume is a custom volume analysis indicator that breaks total volume into three stacked layers to visualize market participation strength:
Retail volume (normal activity)
Medium volume (above-average activity)
Smart money volume (high-impact institutional activity)
The script splits each candle’s volume into layers:
1. Retail Volume
2. Medium Volume
3. Smart Money Volume
🟢 Retail Volume
Represents normal market activity
🟡 Medium Volume
Indicates increasing interest
🔴 Smart Money Volume
Red → Smart buying
Maroon → Smart selling
HY Smart RSIHY Smart RSI is an enhanced RSI indicator that uses EMA smoothing and a signal line to help:
Identify trend momentum
Generate cleaner Buy & Sell signals
Reduce noise compared to the standard RSI
This indicator is plotted in a separate pane (overlay = false), not on the price chart.
Condition Color Meaning
RSI Smooth > Signal 🟢 Green Bullish momentum
RSI Smooth < Signal 🔴 Red Bearish momentum
🟢 Buy Signal
RSI Smooth crosses above Signal line
Indicates strengthening bullish momentum
🔴 Sell Signal
RSI Smooth crosses below Signal line
Indicates weakening momentum
Signals are displayed as small circles:
Buy → bottom of the pane
Sell → top of the pane
Beta Coefficient & RSI Table (Midcaps vs Majors)Beta Coefficient & RSI Table (Midcaps vs Majors)
This script builds a comprehensive beta comparison framework between midcap assets and majors for benchmarks, enhanced with a simple RSI midline strategy for clean entry and exit signaling.
In addition to beta-based relative analysis, the script:
Computes raw RSI values on midcap assets for standalone trend qualification
Evaluates every midcap/major ratio combination using the same RSI-based regime logic
Produces binary (0 / 1) signals suitable for systematic filtering and automation
Designed with automation in mind, this script is perfect for daily alerts that can send webhooks externally, and is fully compatible to reliably daily close updates for:
Ratio beta comparisons (midcaps vs majors)
Binary RSI crossover signals on each ratio
Base midcap trend state (RSI > 45 indicating an active uptrend) - 45 made for a slightly faster entry signal if used as a preliminary filter
This makes the table ideal for automated system building, signal aggregates, and hands-off portfolio logic.
Full credits to @MarktQuant and @NianiaFrania🐸 for the original script source.






















