北極熊指標-子圖組件APolarLabs Indicator - Subchart Component A
A-Momentum + AI-RSI + IceFire Meter
PolarLabs presents the core analytical module of our quantitative toolkit: the Polar Bear Indicator Subchart Component A. This advanced technical analysis component integrates three sophisticated analytical dimensions into a single, intelligent interface.
Key Features:
A-Momentum (Volatility Intelligence)
* Proprietary volatility algorithm measuring market momentum intensity
* Advanced price range analysis with adaptive period configuration
* Real-time market strength assessment through dynamic range calculation
* Configurable sensitivity settings for diverse trading strategies
AI-RSI (Machine Learning Enhanced RSI)
* Next-generation RSI powered by machine learning principles
* Self-adjusting threshold system that learns from market patterns
* Dynamic overbought/oversold levels adapting to current volatility
* Intelligent signal smoothing with multiple algorithm options
* Pattern recognition capabilities for enhanced trend identification
* Adaptive color-coding system for instant market condition assessment
IceFire Volume Meter
* Real-time buy/sell volume flow visualization in elegant table display
* Color-coded volume analysis with intelligent percentage breakdowns
* Customizable display settings for optimal chart integration
* Advanced volume distribution tracking with machine learning insights
Professional Advantages:
* Machine learning enhanced indicators for superior market analysis
* Modular design allowing focused analytical depth
* Advanced algorithmic processing for precise signal generation
* Seamless integration with PolarLabs quantitative ecosystem
* Designed for algorithmic traders and quantitative analysts
For access inquiries, please contact us privately
X: X.com
TG: t.me
Follow PolarLabs for cutting-edge AI-powered trading tools and automated strategy solutions!
———————————————————————————————————————
北极熊指标-子图组件A
A动能 + AI-RSI + 冰火仪
北极熊实验室隆重推出量化工具包核心分析模块:北极熊指标子图组件A。这款先进技术分析组件将三大智能分析维度集成于单一智慧界面。
核心功能:
A动能(波动智能)
* 专有波动算法,精准测量市场动能强度
* 先进价格区间分析,具备自适应周期配置
* 通过动态范围计算实时评估市场强度
* 可配置敏感度设置,适应多种交易策略
AI-RSI(机器学习增强RSI)
* 基于机器学习原理的新一代RSI指标
* 自调整阈值系统,从市场模式中持续学习
* 动态超买超卖水平,自适应当前波动环境
* 智能信号平滑处理,多种算法选项
* 模式识别能力,增强趋势判断精度
* 自适应颜色编码系统,即时评估市场状态
冰火成交量仪
* 实时买卖成交量流向可视化,优雅表格显示
* 颜色编码成交量分析,智能百分比细分
* 可自定义显示设置,优化图表集成效果
* 先进成交量分布追踪,融入机器学习洞察
专业优势:
* 机器学习增强指标,提供卓越市场分析能力
* 模块化设计,实现深度分析聚焦
* 先进算法处理,生成精准交易信号
* 与北极熊实验室量化生态系统无缝集成
* 专为算法交易员与量化分析师设计
【仅限受邀使用 - 需私人访问权限】
有兴趣请私信我查询
X: X.com
TG: t.me
关注北极熊实验室,获取前沿AI驱动交易工具与自动化策略解决方案!
Volume
smc-vol ••• ahihiif bullish_pattern and showBreak
label_y = low - (high - low) * label_distance / 100
label.new(bar_index, label_y, "BULLISH↑", color=color.new(color.green, 20), textcolor=color.white, style=label.style_label_up, size=size.normal)
if bearish_pattern and showBreak
label_y = high + (high - low) * label_distance / 100
label.new(bar_index, label_y, "BEARISH↓", color=color.new(color.red, 20), textcolor=color.white, style=label.style_label_down, size=size.normal)
// Background highlight
bgcolor(bullish_pattern ? color.new(color.green, 95) : na)
bgcolor(bearish_pattern ? color.new(color.red, 95) : na)
EMAs + Zonas de Interés con ProbabilidadesExponential Moving Averages (EMAs)
Includes four configurable EMAs: Fast, Mid, Slow, and Macro (default periods: 10, 25, 50, 200).
Help identify trend direction and key crossover points.
Crossovers of the fast EMA with the slow EMA generate BUY and SELL signals on the chart.
Smoothed Z-Score Histogram
Measures the relative distance between the fast and slow EMAs.
Displayed as positive or negative bars, helping spot overextended bullish or bearish conditions.
Dynamic Zones of Interest (Support/Resistance)
Calculated based on the highest and lowest values of a configurable bar range (e.g., 50 bars).
Two boxes are drawn:
High Zone (Resistance) in red.
Low Zone (Support) in green.
Zones dynamically adjust as price evolves.
Volume-Based Probabilities
Within each analyzed range, volume is classified as:
Buy Volume (green candles)
Sell Volume (red candles)
The proportion is calculated and displayed as % probability of buying or selling in each zone.
Chart Signals
Green triangles (BUY) below the candle on bullish EMA crossover.
Orange triangles (SELL) above the candle on bearish EMA crossover.
Zones highlighted with transparency to indicate the most probable support/resistance levels.
🎯 Indicator Benefits
Combines trend (EMAs), momentum (Z-Score), key levels (zones of interest), and market flow (volume).
Helps identify strategic points for entries and exits with higher probability of success.
Adaptable for scalping on lower timeframes or swing trading on higher timeframes.
Rocket Scan – Midday Movers (No Pullback)This indicator is designed to spot intraday breakout movers that often appear after the market open — the ones that rip out of nowhere and cause FOMO if you’re late.
🔑 Core Logic
• Momentum Burst: Detects sudden price pops (ROC) with confirming relative volume.
• Squeeze → Breakout: Finds low-volatility compressions (tight Bollinger bandwidth) and flags the first breakout move.
• VWAP Reclaims: Highlights strong reversals when price reclaims VWAP on volume.
• Relative Volume (RVOL): Filters for unusual activity vs. recent averages.
• Gap Filter: Skips large overnight gappers, focuses on fresh intraday movers.
• Relative Strength: Optional filter requiring the symbol to outperform SPY (and sector ETF if chosen).
• Session Window: Default 10:30–15:30 ET to ignore noisy open action and catch true midday moves.
🎯 Use Case
• Built for traders who want early alerts on midday runners without waiting for pullbacks.
• Helps identify potential entry points before FOMO kicks in.
• Works best on liquid tickers (stocks, ETFs, crypto) with reliable intraday volume.
📊 Visuals
• Plots fast EMA, slow EMA, and VWAP for trend context.
• Paints green ▲ for long signals and red ▼ for short signals on the chart.
• Info label shows RVOL, ROC, RS filter status, and gap conditions.
🚨 Alerts
Two alert conditions included:
• Rocket: Midday LONG → Fires when bullish conditions align.
• Rocket: Midday SHORT → Fires when bearish conditions align.
⸻
⚠️ Disclaimer:
This tool is for educational and research purposes only. It is not financial advice. Trading involves risk; always do your own research or consult a licensed professional.
VRVP Visible Range Volume ProfileVRVP Visible Range Volume Profile
A VRVP visible range volume distribution chart indicator. Key features include:
Core Functionality
Volume Distribution Histogram: Displays the volume distribution of price levels within the visible range of the chart
Buy Volume Separation: Displays buy volume (green) and sell volume (red) in different colors
POC Line: Displays the price level with the highest volume (Point of Control)
Key Settings
Width Adjustment: Controls the width of the histogram (10-100%)
Grid Density: Sets the number of price intervals (20-100 lines)
Color Customization: Adjusts the fill color and buy and sell volume color
POC Line Configuration: Enables or disables the POC line, and adjusts its color, width, style, and label
Technical Features
Uses the traditional VRVP algorithm to ensure consistency with standard indicators
Supports logarithmic and linear scale modes
Automatically adapts to the visible range of the chart
Optimized drawing performance to avoid object number limitations
This indicator helps traders identify key support and resistance levels and areas of concentrated volume, making it a valuable tool in technical analysis.
Effort vs Result TRFxThe Effort vs Result (EVR) indicator is designed to identify high-probability reversal signals based on volume and price action dynamics. It highlights points where the market “effort” (high volume) does not correspond to an immediate “result” (price continuation), providing actionable trade setups for both bullish and bearish scenarios.
Features:
Detects bullish EVR signals when a previous high-volume sell candle is followed by a strong bullish candle that sweeps the previous low.
Detects bearish EVR signals when a previous high-volume buy candle is followed by a strong bearish candle that sweeps the previous high.
Sticky arrows plot automatically above or below the candle, ensuring the signal moves with the price bar.
Considers inside bars, wick size, and relative volume to filter low-quality setups.
Fully compatible with multiple timeframes.
Inputs:
Volume Multiplier: Sets how much higher the current candle’s volume should be compared to the previous candle to count as high volume.
Min Wick % of Candle: Minimum wick size relative to the candle body to filter insignificant bars.
Max Inside Bars to Ignore: Number of inside bars between the previous candle and the EVR candle to ignore minor consolidations.
Usage:
(Green Arrow): Enter long when a green arrow appears below the candle. Place stop-loss slightly below the previous swing low.
(Red Arrow): Enter short when a red arrow appears above the candle. Place stop-loss slightly above the previous swing high.
Can be combined with support/resistance levels, trendlines, or other technical indicators for higher accuracy.
Benefits:
Simple and clean visual signals with tiny arrows that move with candles.
Helps traders identify high-probability reversal points based on volume and price action.
Ideal for intraday and swing trading strategies.
Apex Squeeze Breakout Strategy [by SKC]This is the official strategy version of the Apex Squeeze Breakout Trading System (v2.5 by SKC) indicator.
🔍 This script replicates the exact logic and trade behavior of the indicator, including:
Multi-factor scoring system (volume spike, squeeze, RSI recovery, momentum breakout, gap)
Supertrend-based trend bias and override logic
ATR-based dynamic SL/TP
Breakeven stop-loss shift after T1 hit
Trade logic works for both swing and day trading styles via a toggle
📈 Settings:
Use isDayTrading = true for 5m/15m charts
Use isDayTrading = false for 1H–Daily swing setups
⚠️ This strategy does not use repainting or offset entries. Backtest results are directly aligned with real-time signals from the original indicator.
✅ Use this strategy to backtest ticker performance, identify high-confidence symbols, and create forward trade plans based on proven edge.
OBV Cloud v1.0 [PriceBlance]🌐 English
OBV Cloud v1.0 – Free & Open-Source
OBV Cloud v1.0 integrates On-Balance Volume (OBV) with a Cloud model and enhanced trend filters.
It helps traders quickly identify:
Money Flow Trend: OBV Cloud acts as a dynamic support/resistance zone.
Trend Filters: EMA9 (short-term) and WMA45 (medium-term) directly applied on OBV.
OBV–Price Divergence: Detects both regular and hidden bullish/bearish divergences.
Trend Strength: Measured with ADX calculated on OBV.
OBV Cloud is suitable for both swing and day trading, allowing traders to spot breakouts, reversals, or sustained trends through volume-based analysis.
QuantumFlowEN
What it is
QuantumFlow - blends liquidity-sweep reversals with ATR-normalized momentum continuation, gated by a light regime filter. is a non-repainting, on-close indicator that fuses two complementary engines:
Sweep-Reversal (SR): seeks liquidity sweeps (wick > ATR×X) around prior swing extremes, then waits for a micro BOS (break of short-term structure) and alignment with a VWAP±σ channel and Donchian midline.
Momentum-Continuation (MC): normalizes rate-of-change by ATR to detect momentum bursts with hysteresis, so continuation entries don’t flip/flop in chop.
A light Regime layer (Kaufman Efficiency Ratio) controls when signals are allowed at all.
On top of that, you can optionally require HTF EMA filter, volume expansion, session gating, and volatility guards. All signals are computed on bar close; there is no lookahead.
Why it’s different
Rather than a single trigger, QuantumFlow combines context (regime/trend), location (sweep → BOS near VWAP band), and impulse (ATR-normalized momentum with hysteresis). The exact thresholds and sequencing are tuned and encapsulated in presets, so the UI stays minimal while keeping behavior consistent.
How to use
Choose a Preset (Very Conservative → Very Aggressive).
Conservative/Balanced for choppier FX/indices; Aggressive for crypto scalps.
(Optional) Keep Use HTF EMA ON for additional trend bias on intraday charts.
Leave Use Sweep-Reversal and Use Momentum-Continuation both ON at first; later you can test them separately.
Enable Volume filter and, if needed, Session window to match your market.
Use signals as contextual prompts (BUY/SELL markers). Entries, risk and exits are up to your plan; a typical approach is structure-based invalidation (beyond the sweep/BOS anchor) and partials vs VWAP/Donchian.
Presets (quick guide)
Very Conservative / Conservative — fewer signals, stronger context; good for higher TFs or sideways regimes.
Balanced — default mix.
Aggressive / Very Aggressive — more permissive; suitable for liquid, trendy sessions (e.g., crypto London/US overlaps).
Notes & limitations
Signals are generated on close only, but any execution still depends on your brokerage/venue fills.
Hidden internal thresholds (regime/momentum/structure) are intentionally not exposed to keep behavior stable and to protect the method’s edge.
Risk disclosure
This script is for educational purposes only and does not constitute financial advice. Markets involve risk; past performance does not guarantee future results. Always validate on your instruments/timeframes and use an independent risk plan (position sizing, max daily loss, invalidators).
RU
Что это
QuantumFlow — сочетает развороты после снятия ликвидности и импульсные продолжения, нормированные ATR, под контролем режима. Индикатор без перерисовки (сигналы на закрытии бара), который объединяет два блока:
Sweep-Reversal (SR): поиск снятия ликвидности (длинные хвосты относительно ATR) у предыдущих экстремумов → короткий BOS по микроструктуре → проверка расположения относительно VWAP±σ и середины канала Дончиана.
Momentum-Continuation (MC): импульс через ROC, нормированный ATR, с гистерезисом — чтобы продолжения не «дребезжали» во флэте.
Лёгкий слой Regime (коэффициент эффективности Кауфмана) решает, когда вообще разрешать сигналы.
Дополнительно доступны фильтры HTF EMA, объёма, сессий и волатильности. Все проверки выполняются на закрытии бара, без заглядывания вперёд.
Чем отличается
QuantumFlow не опирается на один триггер: он совмещает контекст (режим/тренд), локацию (sweep → BOS рядом с VWAP-полосой) и импульс (моментум с нормировкой и гистерезисом). Точные пороги и порядок проверок инкапсулированы в пресеты, поэтому интерфейс остаётся минимальным, а поведение — стабильным.
Как пользоваться
Выберите Preset (от Very Conservative до Very Aggressive).
Conservative/Balanced — для более «рваных» режимов, старших ТФ;
Aggressive — для скальпа на ликвидных сессиях (крипто: Лондон/США).
(Опционально) Оставьте Use HTF EMA включённым для доп. тренд-фильтра на интрадей.
Сначала держите Sweep-Reversal и Momentum-Continuation включёнными; позже можно тестировать по отдельности.
Включите фильтр объёма и при необходимости сессии.
Относитесь к меткам BUY/SELL как к контекстным подсказкам. Точка входа, риск и выход — по вашему плану: популярный вариант — инвалидатор за уровнем sweep/BOS, частичная фиксация к VWAP/Donchian.
Пресеты (кратко)
Very Conservative / Conservative — меньше сигналов, строже контекст; удобно для старших ТФ и боковиков.
Balanced — профиль «по умолчанию».
Aggressive / Very Aggressive — более частые сигналы; под трендовые и ликвидные часы.
Важно
Сигналы формируются на закрытии, но исполнение зависит от вашей площадки/ликвидности.
Внутренние пороги Regime/Momentum/Structure намеренно не вынесены в UI для стабильности поведения и сохранения уникальности методики.
Дисклеймер по рискам
Скрипт носит образовательный характер и не является инвестиционной рекомендацией. Торговля связана с риском; прошлые результаты не гарантируют будущие. Проверяйте работу на своих инструментах/ТФ и используйте независимый риск-план (сайзинг, дневной лимит, инвалидаторы).
北極熊指標ProPolarLabs Indicator Pro — Introduction
PolarLabs is a research collective dedicated to the advancement of quantitative trading and automation. We focus on all-weather portfolio strategies, diverse grid trading systems, and perpetual futures, aiming to empower traders and investors with streamlined, efficient, and innovative tools for the modern financial markets.
The PolarLabs Indicator now features enhanced capabilities including:
• Automatic detection of recent resistance ("Arctic Line") and support ("Antarctic Line") levels
• Advanced V-Average pricing with dynamic trend analysis
• Dual Momentum indicators (A-Momentum & T-Momentum) for market strength assessment
• IceFire Meter for real-time volume flow visualization
• Trend Follow Mode with Fibonacci-based entry bands for proactive position management
• Linear Regression Volume Distribution for smart accumulation zone identification
All key metrics are displayed in a clear, accessible dashboard on your chart, making it easy for quant enthusiasts and algorithmic traders to analyze market structures, identify key zones, and execute strategies with enhanced confidence.
Our tools are designed to complement your trading intuition - providing data-driven insights while respecting the art of market interpretation. Whether you're building automated grid systems, monitoring breakouts, or constructing all-weather portfolios, PolarLabs provides practical solutions to help you trade and analyze more effectively.
If you are interested, please send me a private message
X: X.com
TG: t.me
Follow us for more quant tools and automated trading strategies!
———————————————————————————————————————
北极熊指标Pro — 简介
北极熊研究所(PolarLabs)专注于量化交易和自动化策略的研究与创新。我们致力于开发全天候资产配置策略、各种网格交易系统以及永续合约解决方案,帮助更多热爱量化与自动化的交易员轻松高效地进行市场分析与策略执行。
北极熊指标现已升级增强功能:
• 自动侦测近期「北极线」(压力线)与「南极线」(支撑线)
• V均價动态趋势分析系统
• 双动能指标(A动能 & T动能)评估市场强度
• 冰火仪实时成交量流向可视化
• 趋势追踪模式配合斐波那契入场带,主动管理仓位
• 线性回归加量分布,智能识别筹码积累区域
所有关键数据均在图表右上角以面板形式直观展示,为您的交易分析提供有力支持。我们的工具旨在增强您的交易直觉——在提供数据驱动洞察的同时,尊重市场解读的艺术。
无论是箱体震荡、网格套利、趋势跟踪还是全自动量化策略,北极熊指标都能为您的交易决策提供深度市场结构分析。
【仅限受邀使用 - 需私人访问权限】
有兴趣请私信我查询
X: X.com
TG: t.me
欢迎关注 PolarLabs,获取更多量化与自动化工具和策略!
Breakout Volume
指标名称:Breakout Volume (BrkVol)
功能:本指标用于识别成交量异常放大,同时结合价格新高,帮助交易者发现潜在突破机会。
主要特性:
可调成交量均线周期(MA Length)
可调放量倍数(Volume Multiplier)
可调价格新高周期(Lookback High Length)
成交量柱颜色区分:绿色=阳线放量,红色=阴线放量,灰色=无信号
蓝色均量阈值线,可直观比较放量情况
出现成交量突破 + 新高时,图表上显示绿色三角形标记
支持提醒功能,可在条件触发时收到通知
使用建议:
调整参数以适应不同品种和时间周期
可结合趋势、支撑阻力位使用,避免假信号
适合快速发现短线或中长线突破机会
English Description
Name: Breakout Volume (BrkVol)
Function: This indicator detects unusual volume spikes combined with new highs in price, helping traders identify potential breakout opportunities.
Key Features:
Adjustable moving average period (MA Length) for volume
Adjustable volume multiplier (Volume Multiplier)
Adjustable lookback period for price highs (Lookback High Length)
Color-coded volume bars: Green = bullish candle with volume breakout, Red = bearish candle with volume breakout, Gray = normal volume
Blue threshold line (volume MA × multiplier) for easy comparison
Green triangle marker appears when both volume breakout and new high conditions are met
Supports alerts for real-time notifications
Usage Tips:
Adjust parameters to suit different symbols and timeframes
Combine with trend or support/resistance levels to reduce false signals
Useful for spotting short-term or medium/long-term breakout opportunities
CVD Divergences (cdikici71 x tncylyv)CVD Divergence
Summary
This indicator brings the powerful and creative divergence detection logic from @cdikici71's popular "cd_RSI_Divergence_Cx" script to the world of volume analysis.
While RSI is a fantastic momentum tool, I personally choose to rely on volume as a primary source of truth. This script was born from the desire to see how true buying and selling pressure—measured by Cumulative Volume Delta (CVD)—diverges from price action. It takes the brilliant engine built by @cdikici71 and applies it to CVD, offering a unique look into market conviction.
What is Cumulative Volume Delta (CVD)?
CVD is a running total of volume that transacted at the ask price (buying) minus volume that transacted at the bid price (selling). In simple terms, it shows whether buyers or sellers have been more aggressive over a period. A rising CVD suggests net buying pressure, while a falling CVD suggests net selling pressure.
Core Features
• Divergence Engine by @cdikici71: The script uses the exact same two powerful methods for finding divergences as the original RSI version:
o Alignment with HTF Sweep: The default, cleaner method for finding high-probability divergences.
o All: A more sensitive method that finds all possible divergences.
• Anchored CVD Periods: You can choose to reset the CVD calculation on a Daily, Weekly, or Monthly basis to analyze buying and selling pressure within specific periods. Or, you can leave it on Continuous to see the all-time flow.
• Automatic Higher Timeframe (HTF) Alignment: To remove the guesswork, the "Auto-Align HTF" option will automatically select a logical higher timeframe for divergence analysis based on your current chart (e.g., 15m chart uses 4H for divergence, 1H chart uses 1D, etc.). You can also turn this off for full manual control.
• Fully Customizable Information Table: An on-screen table keeps you updated on the divergence status. You can easily adjust its Position and Size in the settings to fit your chart layout.
• Built-in Alerts: Alerts are configured for both Bullish and Bearish divergences to notify you as soon as they occur.
How to Use This Indicator
The principle is the same as any divergence strategy, but with the conviction of volume behind it.
• 🔴 Bearish Divergence: Price makes a Higher High, but the CVD makes a Lower High or an equal high. This suggests that the buying pressure is weakening and may not be strong enough to support the new price high.
• 🟢 Bullish Divergence: Price makes a Lower Low, but the CVD makes a Higher Low or an equal low. This suggests that selling pressure is exhausting and the market may be ready for a reversal.
Always use divergence signals as a confluence with your own analysis, support/resistance levels, and market structure.
Huge Thanks and Credit
This script would not exist without the brilliant and creative work of @cdikici71. The entire divergence detection engine, the visualization style, and the core logic are based on his original masterpiece, "cd_RSI_Divergence_Cx". I have simply adapted his framework to a different data source.
If you find this indicator useful, please go and show your support for his original work!
________________________________________
Disclaimer: This is a tool for analysis, not a financial advice signal service. Please use it responsibly as part of a complete trading strategy.
BAB VWAP V2 Daily, Weekly & Monthly (Optimized)Overview
BAB VWAP V2 displays 3 automatically anchored VWAPs (Daily, Weekly, Monthly) plus 2 customizable intraday VWAPs (anchored at user-defined HH:MM). Optional ±σ bands (volume-weighted) for D/W/M. Includes dynamic labels and an optional summary table.
Main Features
Daily/Weekly/Monthly VWAPs with automatic reset per period.
2 Intraday anchored VWAPs (default 09:00 & 15:30, configurable).
Volume-weighted standard deviation bands (σ) for D/W/M with optional fill.
Alerts on VWAP D/W/M crossovers.
Labels dynamically updated (no stacking) + optional table (2×4) with key values.
Parameters
Display: toggle D/W/M VWAPs, labels, table.
Colors & Style: line colors, thickness, style.
Bands (σ): enable per period, set multiplier, toggle fill.
Intraday (Anchored): enable VWAP 1 & 2, choose hour/minute, set colors & thickness.
How to Use
Add the indicator to a clean chart.
Enable desired VWAPs (D/W/M and/or intraday).
Optionally enable σ bands to contextualize price deviation from VWAP.
Configure intraday VWAP anchors to match your market session (e.g., RTH, EU open, etc.).
Alerts
Price crossing over/under Daily, Weekly, Monthly VWAPs.
Configure alerts from the Alerts panel.
Best Practices
Publish chart screenshots without other indicators for clarity.
Adjust intraday anchor times according to your instrument’s trading session (pre-/post-market handling may vary).
Limitations
Intraday VWAPs are calculated in 1-minute resolution via request.security to remain consistent across all timeframes.
Intraday σ bands are not included by default (can be added in a later version).
Changelog
V2: Performance refactor, non-mutable labels, fixed fill() usage, added 2 intraday VWAPs with time selectors, stabilized table.
V1: Basic D/W/M VWAPs + alerts.
Disclaimer
This script is for educational and informational purposes only. It does not constitute financial advice. You are solely responsible for your trading decisions.
Credits & License
© BAB Trading. Pine Script® — TradingView.
Open-source under the Mozilla Public License (MPL 2.0) by default (or specify your own license in the script header if different).
Liquidity Grab Strategy SuvorovLiquidity grab strategy
Description:
This indicator is built around the Liquidity Grab Strategy, which identifies and reacts to stop hunts and false breakouts at key swing highs and lows. It detects where liquidity is likely to be resting (e.g., above highs or below lows) and provides trade signals when that liquidity is taken and price begins to reverse.
Core Features:
Liquidity Detection: Automatically identifies and marks key swing highs and lows where stop-losses are likely to accumulate.
Entry Signals: Generates BUY/SELL signals after a liquidity sweep and a confirmed reversal — based on price action, volume, or structure shifts.
Stop Loss & Take Profit Zones: Visualizes stop-loss just beyond the liquidity wick and take-profit near the next major structure point, with configurable Risk/Reward ratios.
False Signal Filters: Optional filters based on volume spikes, RSI divergence, or market structure confirmation.
Multi-Timeframe Logic: Supports separate timeframes for structure detection and signal confirmation (e.g., structure on 1H, entry on 5m).
Swing Failure Pattern SuvorovIndicator: Logic-based Swing Failure Pattern (SFP)
What is the logic of my indicator based on and what makes it unique:
1. The indicator can calculate extreme candles that close with huge shadows and a small body and it works on any timeframe.
2. The indicator analyzes the volumes on which the desired bar was closed. This function is customizable. That is, you can build a search for signals according to your trading strategy, based on the number of volumes. What does this mean - you select the number of previous bars where the indicator calculates the average value and based on these numbers, you can set up: how many times the desired candle should be larger than the previous average volume.
3. Since SFP is based on the removal of important liquidity, the search for such situations occurs from swing structures (swing high/low). When these parameters are found on the chart (on history), the indicator draws the situation and shows where important liquidity was removed and why the trading situation appeared right now.
4. The indicator gives recommendations on possible takes and stops.
The structure of takes has a built-in logic for searching for previous swings to remove liquidity, as well as searching for imbalances to cover them (50 and 100%).
5. For TP (Take Profit): there are 3 TPthat can be adjusted to your trading strategy (Risk/Profit). For example: you always trade from 2 to 1 on the 1st Take, 3 to 1 on the second, 5 to 1 on the third: you can set all this in the indicator and all your targets will be detected by the indicator, taking into account the logic of searching for important ranges. If, for example, in your 3 to 1 range there are no important zones for TP, then the indicator writes that NaN (not found).
6. The indicator works on any timeframe.
7. The indicator has a built-in RSI logic, which comes as an additional function to the indicator. If this function is enabled, then trading situations are detected only when there is a divergence (from the swing point to the extreme bar that has formed).
Apex Squeeze Breakout Strategy (v1.0 by SKC)The Apex Squeeze Breakout Strategy is a powerful momentum-based system designed to capture explosive price moves following periods of low volatility compression (squeeze). It combines five key conditions to validate high-probability breakouts:
🔵 TTM Squeeze Detection using Bollinger Bands and Keltner Channels
🔊 Volume Spike Confirmation relative to a moving average
📈 Breakout Trigger above/below a recent high/low range
💪 Momentum Acceleration using percentage change over time
♻️ RSI Recovery / Overbought Logic to confirm shift in strength
The strategy includes:
Configurable swing/day trading modes
Dynamic ATR-based Stop Loss and TP1/TP2 system
Modular input structure for easy customization
Clear entry/exit visual markers and trade zones
It’s designed for disciplined traders who want to catch high-energy moves after consolidation, suitable for both intraday and swing setups.
KSM CVDThis Indicator displays Divergences between Price chart candles and delta strength candles. Visually changes the candle colour to show the Exhaustion & Absorption that occurs.
VMS Momentum Trend Matrix Indicator [09.15 to 15.30]VMS Momentum Trend Matrix Indicator - Detailed Explanation
🎯 Overview & Core Philosophy
This is a multi-dimensional trading and a multi-confirmation system that combines 4 independent analytical approaches into one unified framework. The indicator operates on the principle of "consensus trading" - where signals are only considered reliable when multiple systems confirm each other. The system is designed for 9:15 AM to 3:30 PM trading sessions (Indian Market) with dynamic support/resistance levels.
Five Pillars of Analysis:
1. Trend Matrix – Multiple indicator voting system
2. Momentum Suite – Multiple Hybrid oscillator
3. Volume Analysis - Buy/sell pressure quantification
4. Key Level Identification - Dynamic support/resistance
5. EMA Trend: Indicates the overall long-term direction.
📊 DASHBOARD INTERPRETATION - ROW BY ROW
ROW 1: Indicator Name and Cell background colour changes with Trend Matrix
ROW 2: EMA ANALYSIS (It analyses independently and does not combine this analysis with the Combined Analysis and Trading View. Background Colour on price chart is based on this)
Purpose: Long-term trend identification using Exponential Moving Averages
What to Watch:
• Major Trend: Overall market direction (Bullish/Bearish/Neutral)
• Bullish Condition: All EMAs aligned upward
• Bearish Condition: All EMAs aligned downward
• Neutral: Mixed alignment
Trading Significance:
• Trading Condition: Current bias based on EMA alignment
• Bullish Market: Focus on LONG positions only
• Bearish Market: Focus on SHORT positions only
• Neutral Market: Wait for clearer direction
ROW 3-4: KEY LEVELS
Purpose: Dynamic support and resistance identification
Levels to Monitor:
• VMS Line-1 (Support): Dynamic Support for long positions
• VMS Line-2 (Resistance): Dynamic Resistance for short positions
• Up/Down: Daily base levels from opening price calculations
• Up: Daily support level based on opening price
• Down: Daily resistance level based on opening price
How Levels Work:
• Wait for Line-1 and 2 Crossing
• In the Upward movement, Line-1 will move with the price, and Line-2 will be moved as a straight line
• In the Downward movement, Line-2 will move with the price, and Line-2 will be moved as a straight line
• Provide clear entry/exit points
• If the price is between these levels, it is mostly a sideways market. After the Upward movement, if the price crosses Line-1 and other bearish conditions are supported, a short position can be taken. And in the Downward movement, it is the reverse condition.
• If the price is above the up level, it can be considered as bullish and below as bearish
ROW 5-6: VOLUME ANALYSIS
Purpose: Measure buying vs selling pressure
Key Metrics:
• Total Buy Volume: Cumulative buying pressure
• Total Sell Volume: Cumulative selling pressure
• Bullish Candles: Number of up-candles in session
• Bearish Candles: Number of down-candles in session
Interpretation:
• Buy Volume > Sell Volume: Bullish sentiment
• Sell Volume > Buy Volume: Bearish sentiment
• Bullish Candles Dominating: Upward momentum
• Bearish Candles Dominating: Downward momentum
ROW 7-8: MOMENTUM SUITE (Background colour of Oscillator is based on this)
Purpose: Short-term momentum strength and direction
Critical Components:
• Direction: Current momentum (BULLISH/BEARISH)
• Strength: 0-100% strength measurement
• Bullish Height: Positive momentum magnitude
• Bearish Height: Negative momentum magnitude
Strength Classification:
• 80-100%: Very Strong - High conviction trades
• 60-80%: Strong - Good trading opportunities
• 40-60%: Moderate - Caution advised
• 20-40%: Weak - Avoid trading
• 0-20%: Very Weak - No trade zone
ROW 9-11: TREND MATRIX
Purpose: Consensus from Multiple technical indicators
Matrix Scoring:
• Bullish Signals: Number voting UP
• Bearish Signals: Number voting DOWN
• Neutral Signals: Non-committed indicators
• Net Score: Bullish - Bearish signals
Trend Classification:
• Strong Uptrend: Net Score ≥ +5
• Uptrend: Net Score +1 to +4
• Neutral: Net Score = 0
• Downtrend: Net Score -1 to -4
• Strong Downtrend: Net Score ≤ -5
ROW 12: COMBINED ANALYSIS
Purpose: Final integrated signal from all systems
Bias Levels:
• STRONG BULLISH: All systems aligned upward
• BULLISH: Majority systems upward
• NEUTRAL: Mixed or weak signals
• BEARISH: Majority systems downward
• STRONG BEARISH: All systems aligned downward
Confidence Score: 0-100% reliability measurement
ROW 13: TRADING VIEW
Purpose: Clear action recommendations
Possible Actions:
• STRONG LONG: High conviction buy signal
• MODERATE LONG: Medium conviction buy signal
• WAIT FOR CONFIRMATION: No clear signal
• MODERATE SHORT: Medium conviction sell signal
• STRONG SHORT: High conviction sell signal
🎯 COMPLETE TRADING RULES
BUY ENTRY CONDITIONS (All Must Be True)
Primary Conditions:
1. Combined Bias: BULLISH or STRONG BULLISH
2. Trading Action: MODERATE LONG or STRONG LONG
3. Momentum Strength: ≥ 40% (≥60% for STRONG LONG)
4. Trend Matrix: Net Score ≥ +3
5. 6-EMA Trend: Bullish or Neutral
Confirmation Conditions:
6. Price Position: Above VMS Line-1 AND Base Up
7. Volume Confirmation: Buy Volume > Sell Volume
8. Bullish Candles: More bullish than bearish candles
Risk Management:
9. Stop Loss: Below VMS Line-1 OR Base Down (whichever is lower)
10. Position Size: Based on confidence score (higher score = larger position)
11. Take Profit: When Combined Bias turns "NEUTRAL" or momentum strength drops below 20%
12. Exit Signal: Trading Action shows "WAIT FOR CONFIRMATION"
SELL/SHORT ENTRY CONDITIONS (All Must Be True)
Primary Conditions:
1. Combined Bias: BEARISH or STRONG BEARISH
2. Trading Action: MODERATE SHORT or STRONG SHORT
3. Momentum Strength: ≥ 40% (≥60% for STRONG SHORT)
4. Bearish Signals: ≥ 12 in Trend Matrix
5. Trend Matrix: Net Score ≤ -3
6. EMA Trend: Bearish or Neutral
Confirmation Conditions:
6. Price Position: Below VMS Line-2 AND Base Down
7. Volume Confirmation: Sell Volume > Buy Volume
8. Bearish Candles: More bearish than bullish candles
Risk Management:
9. Stop Loss: Above VMS Line-2 OR Base Up (whichever is higher)
10. Position Size: Based on confidence score
11. Take Profit: When Combined Bias turns "NEUTRAL" or momentum strength drops below 20%
12. Exit Signal: Trading Action shows "WAIT FOR CONFIRMATION"
⏰ ENTRY/EXIT TIMING
Best Entry Times:
• 9:30-10:00 AM: Early session momentum established
• 11:00-11:30 AM: Mid-session confirmation
• 1:30-2:00 PM: Afternoon momentum shifts
Avoid Trading:
• First 15 minutes: Excessive volatility
• 12:00-1:00 PM: Low liquidity period
• After 3:00 PM: Session closing volatility
Exit Triggers:
Profit Taking:
• Target 1: 1:1 Risk-Reward (exit 50% position)
• Target 2: 1.5:1 Risk-Reward (exit remaining 50%)
• Trailing Stop: Move stop to breakeven after Target 1
Stop Loss Triggers:
• Price crosses opposite VMS line
• Combined Bias changes to NEUTRAL
• Momentum Strength drops below 20%
• Volume confirmation reverses
•
Emergency Exit:
• Trend Matrix Net Score reverses direction
• 6-EMA trend changes direction
• Key support/resistance breaks against position
📈 TRADING SCENARIOS
Scenario 1: STRONG BULLISH SETUP
- Combined Bias: STRONG BULLISH
- Trading Action: STRONG LONG
- Momentum Strength: 75%
- Trend Matrix: Net Score +8
- Price: Above VMS Line-1 and Base Up
- Volume: Strong buy volume dominance
ACTION: Enter LONG with full position size
STOP LOSS: Below VMS Line-1
TARGET: 1.5:1 Risk-Reward ratio
Scenario 2: MODERATE BEARISH SETUP
- Combined Bias: BEARISH
- Trading Action: MODERATE SHORT
- Momentum Strength: 55%
- Trend Matrix: Net Score -4
- Price: Below VMS Line-2 but above Base Down
- Volume: Moderate sell volume dominance
ACTION: Enter SHORT with half position size
STOP LOSS: Above VMS Line-2
TARGET: 1:1 Risk-Reward ratio
Scenario 3: NEUTRAL/WAIT SETUP
- Combined Bias: NEUTRAL
- Trading Action: WAIT FOR CONFIRMATION
- Momentum Strength: 35%
- Trend Matrix: Net Score 0
- Mixed volume signals
ACTION: NO TRADE - Wait for clearer signals
________________________________________
⚠️ RISK MANAGEMENT RULES
Position Sizing:
• STRONG Signals (80-100% confidence): 100% normal position
• MODERATE Signals (60-79% confidence): 50-75% position
• WEAK Signals (40-59% confidence): 25% position or avoid
• VERY WEAK (<40% confidence): NO TRADE
Daily Loss Limits:
• Maximum 2% capital loss per day
• Maximum 3 consecutive losing trades
• Stop trading after the daily limit is reached
Trade Management:
• Never move the stop loss against a position
• Take partial profits at predetermined levels
• Never average down losing positions
• Respect all exit signals immediately
________________________________________
🔄 SIGNAL CONFIRMATION PROCESS
Step 1: Trend Direction
Check EMA alignment and Combined Bias
Step 2: Momentum Strength
Verify Momentum Strength ≥ 40% and direction matches trend
Step 3: Volume Confirmation
Confirm volume supports the direction
Step 4: Matrix Consensus
Ensure Trend Matrix agrees (Net Score ≥ |3|)
Step 5: Price Position
Verify price is on the correct side of key levels
Step 6: Entry Execution
Enter on a pullback to support/resistance with a stop loss
________________________________________
This system works best when you wait for all conditions to align. Patience is key - only trade when all systems confirm the same direction with adequate strength. The multiple confirmation layers significantly increase the probability of success but reduce trading frequency.
RSI Momentum ScalperOverview
The "RSI Momentum Scalper" is a Pine Script v5 strategy crafted for trading highly volatile markets, with a special focus on newly listed cryptocurrencies. This strategy harnesses the Relative Strength Index (RSI) alongside volume analysis and momentum thresholds to pinpoint short-term trading opportunities. It supports both long and short trades, managed with customizable take profit, stop loss, and trailing stop levels, which are visually plotted on the chart for easy tracking.
Why I Created This Strategy
I developed the "RSI Momentum Scalper" because I was seeking a reliable trading strategy tailored to newly listed, highly volatile cryptocurrencies. These assets often experience rapid price fluctuations, rendering traditional strategies less effective. I aimed to create a tool that could exploit momentum and volume spikes while managing risk through adaptable exit parameters. This strategy is designed to address that need, offering a flexible approach for traders in dynamic crypto markets.
How It Works
The strategy utilizes RSI to identify momentum shifts, combined with volume confirmation, to trigger long or short entries. Trades are controlled with take profit, stop loss, and trailing stop levels, which adjust dynamically as the price moves in your favor. The trailing stop helps lock in profits, while the plotted exit levels provide clear visual cues for trade management.
Customizable Settings
The script is highly customizable, allowing you to adjust it to various market conditions and trading styles. Here’s a brief overview of the key settings:
Trade Mode: Select "Both," "Long Only," or "Short Only" to determine the trade direction.
(Default: Both)
RSI Length: Sets the lookback period for the RSI calculation (2 to 30).
(Default: 8)
A shorter length increases RSI sensitivity, suitable for volatile assets.
RSI Overbought: Defines the upper RSI threshold (60 to 99) for short entries.
(Default: 90)
Higher values signal stronger overbought conditions.
RSI Oversold: Defines the lower RSI threshold (1 to 40) for long entries.
(Default: 10)
Lower values indicate stronger oversold conditions.
RSI Momentum Threshold: Sets the minimum RSI momentum change (1 to 15) to trigger entries.
(Default: 14)
Adjusts the sensitivity to price momentum.
Volume Multiplier: Multiplies the volume moving average to filter high-volume bars (1.0 to 3.0).
(Default: 1)
Higher values require stronger volume confirmation.
Volume MA Length: Sets the lookback period for the volume moving average (5 to 50).
(Default: 13)
Influences the volume trend sensitivity.
Take Profit %: Sets the profit target as a percentage of the entry price (0.1 to 10.0).
(Default: 4.15)
Determines when to close a winning trade.
Stop Loss %: Sets the loss limit as a percentage of the entry price (0.1 to 6.0).
(Default: 1.85)
Protects against significant losses.
Trailing Stop %: Sets the trailing stop distance as a percentage (0.1 to 4.0).
(Default: 2.55)
Locks in profits as the price moves favorably.
Visual Features
Exit Levels: Take profit (green), fixed stop loss (red), and trailing stop (orange) levels are plotted when in a position.
Performance Table: Displays win rate, total trades, and net profit in the top-right corner.
How to Use
Add the strategy to your chart in TradingView.
Adjust the input settings based on the cryptocurrency and timeframe you’re trading.
Monitor the plotted exit levels for trade management.
Use the performance table to assess the strategy’s performance over time.
Notes
Test the strategy on a demo account or with historical data before live trading.
The strategy is optimized for short-term scalping; adjust settings for longer timeframes if needed.
Dark Pool Estimate Signal TrackerDark Pool Estimate Signal — Detect Potential Institutional Activity
Overview
The Dark Pool Signal v1.6 indicator is designed to detect unusual trading activity near VWAP zones, which can be associated with institutional dark pool transactions. By combining volume spikes, VWAP proximity, and optional trend filters, it provides clear visual cues of potential hidden accumulation or distribution zones.
Disclaimer: This script is for informational and educational purposes only. It does not constitute financial advice. All trading involves risk. Past performance is not indicative of future results.
🔍 Core Logic
This indicator identifies potential off-exchange activity by analyzing three key factors:
Unusual Volume Spikes: Highlights bars where the current volume significantly exceeds its moving average by a user-defined multiplier.
VWAP Proximity: Triggers when the price stays within a volatility-adjusted range (ATR-based) of the VWAP, a common characteristic of algorithmic execution.
Trend Confirmation: An optional EMA filter helps align signals with the broader market direction.
Accumulation Detection: Counts repeated signals within a lookback period to identify persistent institutional buying or selling pressure.
The result is a set of visual and alert signals indicating possible institutional footprints.
🧩 Features
Dynamic VWAP Range (ATR-based): Automatically adjusts VWAP proximity sensitivity based on current market volatility.
Multi-tiered Signal Strength: Differentiates between Normal, Strong, and Accumulated signals to visualize the intensity of activity.
Non-Repainting Confirmation: Signals are confirmed only on bar close to ensure they do not repaint.
Language Support: Dual-language display (English / Korean).
Customizable Visualization: Easily adjust label size, color transparency, offset, and the duration of highlighted zones.
Smart Alert System (v1.6): Provides comprehensive alert() and alertcondition() calls for real-time push notifications.
Recommended Timeframe Notice (v1.6): Displays a small on-chart note suggesting optimal timeframes for analysis.
🕒 Recommended Timeframes
Type Recommended Use Description
1-Hour (default) Primary Analysis Offers a good balance between signal clarity and noise reduction. Ideal for most equities and ETFs.
30-Minute Short-term Confirmation Useful for intraday analysis and refining entry/exit points.
Daily Macro View Helps identify long-term institutional positioning and potential trend reversal zones.
< 15-Minute Experimental May generate excessive noise due to market micro-volatility. Not recommended for primary analysis.
💡 Tip: Combine 1H detection with Daily chart confirmation for a more robust, dual-layer view of institutional flow.
📊 Visualization
Purple Diamonds: Strong or Normal Buy signals
Red Diamonds: Strong or Normal Sell signals
Translucent Boxes: Highlight the estimated duration of dark pool activity.
Optional Labels: Display volume, VWAP delta, and signal strength for detailed analysis.
All visual components can be toggled on or off in the settings.
⚙️ Alert System
Create alerts for each specific signal type directly from the chart's alert menu or your script settings.
⚡ Strong Buy/Sell
📡 Accumulated Buy/Sell
⬆️ Normal Buy/Sell
➖ Neutral Activity (Volume spike near VWAP without clear direction)
Set alert frequency to Once Per Bar Close for confirmed, non-repainting signals.
🧭 How to Use
Add the indicator to your chart.
Select your preferred language and timeframe.
Customize visualization and alert settings to your preference.
Observe how the combination of volume + VWAP + trend reveals potential accumulation or distribution zones.
Use alerts to monitor for significant institutional activity in real-time.
🧠 Important Notes
This indicator is non-repainting. Signals are confirmed at the close of each bar.
It is intended for analytical and educational use, not as a direct trading system.
It works across equities, ETFs, and crypto, but volume data reliability can vary by exchange. Always confirm signals with your own strategy and risk management.
Delta Volume Signals by Claudio [hapharmonic]Modifications:
Percentages without decimals.
I replaced the 'Current Volume' row with two boxes: "Δ Vol" and its value, which changes color depending on the direction of the bearish/bullish candle.
Signals can change color in the settings.
Box spacing so the table doesn't constantly change size.
To be modified:
The Net Volume sign shouldn't change to negative when the candle is red.
If anyone does this, let me know...
claudio.ventola@hotmail.com
Best regards!
Volume Delta Volume Signals by Claudio [hapharmonic]// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © hapharmonic
//@version=6
FV = format.volume
FP = format.percent
indicator('Volume Delta Volume Signals by Claudio ', format = FV, max_bars_back = 4999, max_labels_count = 500)
//------------------------------------------
// Settings |
//------------------------------------------
bool usecandle = input.bool(true, title = 'Volume on Candles',display=display.none)
color C_Up = input.color(#12cef8, title = 'Volume Buy', inline = ' ', group = 'Style')
color C_Down = input.color(#fe3f00, title = 'Volume Sell', inline = ' ', group = 'Style')
// ✅ Nueva entrada para colores de señales
color buySignalColor = input.color(color.new(color.green, 0), "Buy Signal Color", group = "Signals")
color sellSignalColor = input.color(color.new(color.red, 0), "Sell Signal Color", group = "Signals")
string P_ = input.string(position.top_right,"Position",options = ,
group = "Style",display=display.none)
string sL = input.string(size.small , 'Size Label', options = , group = 'Style',display=display.none)
string sT = input.string(size.normal, 'Size Table', options = , group = 'Style',display=display.none)
bool Label = input.bool(false, inline = 'l')
History = input.bool(true, inline = 'l')
// Inputs for EMA lengths and volume confirmation
bool MAV = input.bool(true, title = 'EMA', group = 'EMA')
string volumeOption = input.string('Use Volume Confirmation', title = 'Volume Option', options = , group = 'EMA',display=display.none)
bool useVolumeConfirmation = volumeOption == 'none' ? false : true
int emaFastLength = input(12, title = 'Fast EMA Length', group = 'EMA',display=display.none)
int emaSlowLength = input(26, title = 'Slow EMA Length', group = 'EMA',display=display.none)
int volumeConfirmationLength = input(6, title = 'Volume Confirmation Length', group = 'EMA',display=display.none)
string alert_freq = input.string(alert.freq_once_per_bar_close, title="Alert Frequency",
options= ,group = "EMA",
tooltip="If you choose once_per_bar, you will receive immediate notifications (but this may cause interference or indicator repainting).
However, if you choose once_per_bar_close, it will wait for the candle to confirm the signal before notifying.",display=display.none)
//------------------------------------------
// UDT_identifier |
//------------------------------------------
type OHLCV
float O = open
float H = high
float L = low
float C = close
float V = volume
type VolumeData
float buyVol
float sellVol
float pcBuy
float pcSell
bool isBuyGreater
float higherVol
float lowerVol
color higherCol
color lowerCol
//------------------------------------------
// Calculate volumes and percentages |
//------------------------------------------
calcVolumes(OHLCV ohlcv) =>
var VolumeData data = VolumeData.new()
data.buyVol := ohlcv.V * (ohlcv.C - ohlcv.L) / (ohlcv.H - ohlcv.L)
data.sellVol := ohlcv.V - data.buyVol
data.pcBuy := data.buyVol / ohlcv.V * 100
data.pcSell := 100 - data.pcBuy
data.isBuyGreater := data.buyVol > data.sellVol
data.higherVol := data.isBuyGreater ? data.buyVol : data.sellVol
data.lowerVol := data.isBuyGreater ? data.sellVol : data.buyVol
data.higherCol := data.isBuyGreater ? C_Up : C_Down
data.lowerCol := data.isBuyGreater ? C_Down : C_Up
data
//------------------------------------------
// Get volume data |
//------------------------------------------
ohlcv = OHLCV.new()
volData = calcVolumes(ohlcv)
// Plot volumes and create labels
plot(ohlcv.V, color=color.new(volData.higherCol, 90), style=plot.style_columns, title='Total',display = display.all - display.status_line)
plot(ohlcv.V, color=volData.higherCol, style=plot.style_stepline_diamond, title='Total2', linewidth = 2,display = display.pane)
plot(volData.higherVol, color=volData.higherCol, style=plot.style_columns, title='Higher Volume', display = display.all - display.status_line)
plot(volData.lowerVol , color=volData.lowerCol , style=plot.style_columns, title='Lower Volume',display = display.all - display.status_line)
S(D,F)=>str.tostring(D,F)
volStr = S(math.sign(ta.change(ohlcv.C)) * ohlcv.V, FV)
buyVolStr = S(volData.buyVol , FV )
sellVolStr = S(volData.sellVol , FV )
// ✅ MODIFICACIÓN: Porcentaje sin decimales
buyPercentStr = str.tostring(math.round(volData.pcBuy)) + " %"
sellPercentStr = str.tostring(math.round(volData.pcSell)) + " %"
totalbuyPercentC_ = volData.buyVol / (volData.buyVol + volData.sellVol) * 100
sup = not na(ohlcv.V)
if sup
TC = text.align_center
CW = color.white
var table tb = table.new(P_, 6, 6, bgcolor = na, frame_width = 2, frame_color = chart.fg_color, border_width = 1, border_color = CW)
tb.cell(0, 0, text = 'Volume Candles', text_color = #FFBF00, bgcolor = #0E2841, text_halign = TC, text_valign = TC, text_size = sT)
tb.merge_cells(0, 0, 5, 0)
tb.cell(0, 1, text = 'Current Volume', text_color = CW, bgcolor = #0B3040, text_halign = TC, text_valign = TC, text_size = sT)
tb.merge_cells(0, 1, 1, 1)
tb.cell(0, 2, text = 'Buy', text_color = #000000, bgcolor = #92D050, text_halign = TC, text_valign = TC, text_size = sT)
tb.cell(1, 2, text = 'Sell', text_color = #000000, bgcolor = #FF0000, text_halign = TC, text_valign = TC, text_size = sT)
tb.cell(0, 3, text = buyVolStr, text_color = CW, bgcolor = #074F69, text_halign = TC, text_valign = TC, text_size = sT)
tb.cell(1, 3, text = sellVolStr, text_color = CW, bgcolor = #074F69, text_halign = TC, text_valign = TC, text_size = sT)
tb.cell(0, 5, text = 'Net: ' + volStr, text_color = CW, bgcolor = #074F69, text_halign = TC, text_valign = TC, text_size = sT)
tb.merge_cells(0, 5, 1, 5)
tb.cell(0, 4, text = buyPercentStr, text_color = CW, bgcolor = #074F69, text_halign = TC, text_valign = TC, text_size = sT)
tb.cell(1, 4, text = sellPercentStr, text_color = CW, bgcolor = #074F69, text_halign = TC, text_valign = TC, text_size = sT)
cellCount = 20
filledCells = 0
for r = 5 to 1 by 1
for c = 2 to 5 by 1
if filledCells < cellCount * (totalbuyPercentC_ / 100)
tb.cell(c, r, text = '', bgcolor = C_Up)
else
tb.cell(c, r, text = '', bgcolor = C_Down)
filledCells := filledCells + 1
filledCells
if Label
sp = ' '
l = label.new(bar_index, ohlcv.V,
text=str.format('Net: {0} Buy: {1} ({2}) Sell: {3} ({4}) {5}/\ {5}l {5}l',
volStr, buyVolStr, buyPercentStr, sellVolStr, sellPercentStr, sp),
style=label.style_none, textcolor=volData.higherCol, size=sL, textalign=text.align_left)
if not History
(l ).delete()
//------------------------------------------
// Draw volume levels on the candlesticks |
//------------------------------------------
float base = na,float value = na
bool uc = usecandle and sup
if volData.isBuyGreater
base := math.min(ohlcv.O, ohlcv.C)
value := base + math.abs(ohlcv.O - ohlcv.C) * (volData.pcBuy / 100)
else
base := math.max(ohlcv.O, ohlcv.C)
value := base - math.abs(ohlcv.O - ohlcv.C) * (volData.pcSell / 100)
barcolor(sup ? color.new(na, na) : ohlcv.C < ohlcv.O ? color.red : color.green,display = usecandle? display.all:display.none)
UseC = uc ? volData.higherCol:color.new(na, na)
plotcandle(uc?base:na, uc?base:na, uc?value:na, uc?value:na,
title='Body', color=UseC, bordercolor=na, wickcolor=UseC,
display = usecandle ? display.all - display.status_line : display.none, force_overlay=true,editable=false)
plotcandle(uc?ohlcv.O:na, uc?ohlcv.H:na, uc?ohlcv.L:na, uc?ohlcv.C:na,
title='Fill', color=color.new(UseC,80), bordercolor=UseC, wickcolor=UseC,
display = usecandle ? display.all - display.status_line : display.none, force_overlay=true,editable=false)
//------------------------------------------------------------
// Plot the EMA and filter out the noise with volume control. |
//------------------------------------------------------------
float emaFast = ta.ema(ohlcv.C, emaFastLength)
float emaSlow = ta.ema(ohlcv.C, emaSlowLength)
bool signal = emaFast > emaSlow
color c_signal = signal ? C_Up : C_Down
float volumeMA = ta.sma(ohlcv.V, volumeConfirmationLength)
bool crossover = ta.crossover(emaFast, emaSlow)
bool crossunder = ta.crossunder(emaFast, emaSlow)
isVolumeConfirmed(source, length, ma) =>
math.sum(source > ma ? source : 0, length) >= math.sum(source < ma ? source : 0, length)
bool ISV = isVolumeConfirmed(ohlcv.V, volumeConfirmationLength, volumeMA)
bool crossoverConfirmed = crossover and (not useVolumeConfirmation or ISV)
bool crossunderConfirmed = crossunder and (not useVolumeConfirmation or ISV)
PF = MAV ? emaFast : na
PS = MAV ? emaSlow : na
p1 = plot(PF, color = c_signal, editable = false, force_overlay = true, display = display.pane)
plot(PF, color = color.new(c_signal, 80), linewidth = 10, editable = false, force_overlay = true, display = display.pane)
plot(PF, color = color.new(c_signal, 90), linewidth = 20, editable = false, force_overlay = true, display = display.pane)
plot(PF, color = color.new(c_signal, 95), linewidth = 30, editable = false, force_overlay = true, display = display.pane)
plot(PF, color = color.new(c_signal, 98), linewidth = 45, editable = false, force_overlay = true, display = display.pane)
p2 = plot(PS, color = c_signal, editable = false, force_overlay = true, display = display.pane)
plot(PS, color = color.new(c_signal, 80), linewidth = 10, editable = false, force_overlay = true, display = display.pane)
plot(PS, color = color.new(c_signal, 90), linewidth = 20, editable = false, force_overlay = true, display = display.pane)
plot(PS, color = color.new(c_signal, 95), linewidth = 30, editable = false, force_overlay = true, display = display.pane)
plot(PS, color = color.new(c_signal, 98), linewidth = 45, editable = false, force_overlay = true, display = display.pane)
fill(p1, p2, top_value=crossover ? emaFast : emaSlow,
bottom_value =crossover ? emaSlow : emaFast,
top_color =color.new(c_signal, 80),
bottom_color =color.new(c_signal, 95)
)
// ✅ Usar colores configurables para señales
plotshape(crossoverConfirmed and MAV, style=shape.triangleup , location=location.belowbar, color=buySignalColor , size=size.small, force_overlay=true,display =display.pane)
plotshape(crossunderConfirmed and MAV, style=shape.triangledown, location=location.abovebar, color=sellSignalColor, size=size.small, force_overlay=true,display =display.pane)
string msg = '--------- '+"Buy volume ="+buyVolStr+" Buy Percent = "+buyPercentStr+" Sell volume = "+sellVolStr+" Sell Percent = "+sellPercentStr+" Net = "+volStr+' ---------'
if crossoverConfirmed
alert("Price (" + str.tostring(close) + ") Crossed over MA " + msg, alert_freq)
if crossunderConfirmed
alert("Price (" + str.tostring(close) + ") Crossed under MA " + msg, alert_freq)