CTSA - Clear Trend and Swing Alert by Tony-TechCTSA – Clear Trend & Swing Alert
CTSA (Clear Trend & Swing Alert) is a precision market-structure indicator designed for traders who want high-quality swing, trend, and continuation signals across Forex, Crypto, Indices, and Commodities.
The indicator automatically analyzes swing points, trend direction, momentum, volatility, volume, and EMA structure to generate optimized BUY and SELL alerts. It adapts to different asset classes and trading styles through an intelligent Preset Engine, providing ideal settings for Intraday, Swing, or Position trading.
CTSA identifies:
Trend Continuation Signals
Trend Pullback Entries
Reversal Opportunities
HH/HL/LH/LL Swing Structures
Smart Exits using Opposite Signals or Trend Flip
The dashboard provides an at-a-glance view of market conditions including trend status, swing type, RSI, ADX, volume strength, EMA bias, and ADR levels.
CTSA is built for traders who want clean, actionable alerts, strong confluence, and a simplified decision-making workflow—whether scalping M15 or swing-trading H1/H4.
지표 및 전략
TFU Multi-Symbol Screener + VWAP + Table Size Option + Blank RowTFU Multi-Symbol Screener + VWAP + Table Size Option + Blank Row
YBL – Doble EMA 20/50 (Nube + Alertas)YBL – Doble EMA 20/50 (Cloud + Alerts)
This script plots a double EMA 20/50 setup with:
• A colored trend cloud between the EMAs
• Double-line styling (base + edge) for each EMA
• Crossover alerts when EMA 20 crosses EMA 50
It’s designed to be a clean trend filter and structure reference for swing and intraday traders.
⸻
🔧 Core logic
• EMA 20 (fast) → short-term direction.
• EMA 50 (slow) → higher timeframe / swing bias.
• Bullish trend when EMA 20 ≥ EMA 50.
• Bearish trend when EMA 20 < EMA 50.
The area between both EMAs is filled with a trend cloud:
• Bull cloud color when EMA 20 is above EMA 50.
• Bear cloud color when EMA 20 is below EMA 50.
Opacity of the cloud is fully configurable.
⸻
🎨 Visuals & customization
Inputs let you control:
• Lengths
• EMA rápida (20) – default 20
• EMA lenta (50) – default 50
• Line thickness (grpViz)
• Grosor base → thick, semi-transparent base line.
• Grosor borde → thinner edge line on top.
• Colors
• Color EMA 20 – fast EMA color
• Color EMA 50 – slow EMA color
• Color nube alcista – bullish cloud color
• Color nube bajista – bearish cloud color
• Opacidad nube – from opaque (0) to fully transparent (100)
Each EMA is drawn with two layers:
• A base line with higher transparency and greater width.
• A border line for sharp, precise visibility.
This makes the EMAs easy to read on any background and timeframe.
⸻
📈 How to use it
Typical use cases:
• Trend filter
• Only look for longs when EMA 20 is above EMA 50 and the cloud is bullish.
• Only look for shorts when EMA 20 is below EMA 50 and the cloud is bearish.
• Dynamic S/R
• EMA 20 can act as a short-term pullback level within the trend.
• EMA 50 can act as a deeper support/resistance zone.
• Context layer
• Works very well as a background bias combined with your main entry tool (order flow, volume, price action patterns, etc.).
⸻
🔔 Alerts
Two built-in, ready-to-use alert conditions:
• Bullish cross – EMA 20 > EMA 50
• Triggers when EMA 20 crosses above EMA 50.
• Marks the start of a potential bullish regime.
• Bearish cross – EMA 20 < EMA 50
• Triggers when EMA 20 crosses below EMA 50.
• Marks the start of a potential bearish regime.
Both alerts are confirmed at bar close and are ideal for:
• Getting notified of trend shifts on your watchlist.
• Automating scans across symbols/timeframes.
⸻
⚠️ Disclaimer
This script is for educational and analytical purposes only and does not constitute financial advice. Always do your own research and manage your risk.
YBL – EMA Pro (Rellena + Borde) + AlertasYBL – EMA Pro is a clean, high-visibility EMA tool designed to be your main bias line on any timeframe.
It uses a double-layer plot (filled core + sharp border) and includes non-repainting alerts when price crosses and flips the EMA color.
⸻
🔧 Core features
• Configurable EMA length
• Single input: EMA Length (default 50).
• Works on any symbol and timeframe.
• Double-layer EMA styling
• Base layer: thick, semi-transparent line to create a smooth “filled” band around the EMA.
• Border layer: thinner, solid line on top for precise reading.
• Both layers change color together:
• Green when price is above the EMA.
• Red when price is below the EMA.
This makes the EMA extremely easy to read even on busy charts or small devices.
⸻
🎯 Trend bias & context
• Above EMA (green) → bullish regime / support zone.
• Below EMA (red) → bearish regime / resistance zone.
You can use it as:
• A trend filter (only take longs when EMA is green, shorts when red).
• A dynamic trailing guide for swing or intraday trading.
• A clean visual anchor combined with other YBL tools (volume, order flow, S/R, etc.).
⸻
🔔 Alerts (color flip / cross)
The script includes two ready-to-use alert conditions:
• “EMA a VERDE (precio > EMA)”
• Triggers when price crosses from below to above the EMA, or when the logic detects a fresh flip to green.
• “EMA a ROJO (precio < EMA)”
• Triggers when price crosses from above to below the EMA, or when the logic detects a fresh flip to red.
The conditions are built with crossover / crossunder plus confirmation logic to avoid repainting issues and only fire on confirmed color change.
You can attach TradingView alerts to:
• Catch trend shifts early.
• Automate notifications when a symbol enters or exits your preferred regime.
⸻
⚠️ Disclaimer
This script is for educational and analytical purposes only and does not constitute financial advice. Always do your own research and manage your risk.
hell 1good for finding tops and bottoms in a trend .set to log scale and strech it like it looks in the chart
YBL – LITE HUD (Vol/Δ + Heatmap RVOL + Squeeze) YBL – LITE HUD (Volume Δ + RVOL Heatmap + Squeeze) + ADV
YBL – LITE HUD is a multi-module volume & momentum dashboard that packs into a single panel:
• A fast Vol/Δ (up vs down volume) HUD
• A Volume Heatmap / RVOL engine with session max tracking
• A full Squeeze Momentum implementation
• Optional ADV metrics: Power vs reference symbol, Trend/Momentum, and Correlation
• Candle painting logic with priority Squeeze > Heatmap
• A compact HUD table summarizing everything in one place
It’s designed as a lightweight all-in-one volume/momentum panel for intraday and swing trading.
⸻
1️⃣ LITE: Vol/Δ (up vs down volume)
• Uses a rolling window of lookback bars.
• Sums up volume (bull candles) vs down volume (bear candles).
• Computes:
• totVol – total volume in the window
• dAcc – net volume delta (upVol – dnVol)
• HUD row shows:
• Net Δ with direction symbol: ▲ / ▼ / ▬
• Total volume in the lookback window
• Color of the row reflects the dominant side (green for buyers, red for sellers).
⸻
2️⃣ Heatmap / RVOL engine
Two modes:
• Heatmap (Percentiles)
• Uses percentiles over len bars (p1, p2, p3) to classify volume as:
• Low, Medium, High, Ultra
• RVOL (x Average)
• Relative volume = vol / SMA(vol, len)
• Thresholds:
• t1, t2, t3 → multi-level RVOL bands.
Extra features:
• Session max tracking
• Option to reset max volume per day/session (resetDay).
• Tracks the current session maximum volume.
• Can plot a line at the session max (showLineM).
• Heatmap colors
• Neutral, medium, high, ultra and special color for new session max.
• Optional candle painting by Heatmap/RVOL (paintC).
⸻
3️⃣ Squeeze Momentum module
Classic BB vs KC Squeeze plus momentum:
• Bollinger Bands:
• lenBB, multBB
• Keltner Channels:
• lenKC, multKC
• Squeeze states:
• Squeeze ON → BB inside KC
• Squeeze OFF → BB outside KC
(both can show dots at panel bottom)
Momentum:
• Base: momBase = src – SMA(src, lenBB)
• Smoothed with linreg over 20 bars.
• Column color:
• Green/Lime for positive momentum
• Orange/Red for negative momentum, depending on slope rising/falling
You can choose which panel to show via panelMode:
• Volume
• Squeeze
• Both
⸻
4️⃣ Normalization (Both panels + z-coloring)
When panelMode = "Ambos" and normalizeAmbos = true:
• Volume is plotted as zVol (z-score of volume).
• Momentum is also normalized to z-score.
• A single z-window (lenNorm) is used for both.
The Heatmap coloring can switch to zVol-based color bands:
• z1, z2, z3 define low/medium/high/ultra bands.
• Special color for current session max.
Title mode logic (titleMode) lets you force:
• “Normalized” titles
• “Original” titles
• Or automatic behavior based on the normalize setting.
⸻
5️⃣ ADV (optional “heavy” metrics)
When useADV = true, the script adds:
• POWER vs reference symbol (cmpSymbol, e.g. DXY):
• Uses ROC and z-score to compute a relative performance score: pScore = zA – zB.
• Color and arrow (↑ / ↓ / ▬) in the table.
• Trend & Momentum
• EMA fast/slow (emaLenFast, emaLenSlow) to define a trend regime (bullish vs bearish).
• RSI-based momentum (momLen), shifted around 50 to give a momentum bias.
• HUD row: TEND/MOM with text like “Bullish/Bearish | Mom value”.
• Correlation vs reference symbol
• ta.correlation(close, cmpClose, corrLen).
• Color-coded row:
• Green for positive correlation (directional).
• Red for strong inverse correlation.
• Gray for neutral.
These ADV rows turn the panel into a macro/relative-strength HUD on top of volume/squeeze.
⸻
6️⃣ Candle painting (priority logic)
Two color sources:
• Squeeze paint (paintBarsSqz)
• Colors candles based on momentum direction.
• Heatmap paint (paintC)
• Colors candles based on Heatmap/RVOL intensity.
paintMode controls priority:
• Auto: Squeeze > Heatmap → if Squeeze has a color, it wins; otherwise use Heatmap.
• Solo Squeeze → only Squeeze logic.
• Solo Heatmap → only Heatmap logic.
⸻
7️⃣ HUD table (top-right)
When showTable = true, a compact table shows:
1. VOL/Δ (LB N) – window size, net Δ and total volume.
2. RVOL (mode) – current RVOL and color-matched heatmap.
3. MAX sesión/global – shows if there is a new session max or the current max value.
4–6. (Optional) ADV rows when useADV is ON:
• POWER vs symbol
• TEND/MOM
• CORREL vs symbol
Everything updates on the last bar only for performance and clarity.
⸻
8️⃣ Alerts
Built-in alert:
• “YBL – Nuevo máximo de volumen (sesión)”
• Triggers whenever a new session volume max is printed.
• Perfect to catch volume climaxes intraday.
⸻
⚠️ Disclaimer
This script is for educational and analytical purposes only and does not constitute financial advice. Always do your own research and manage your risk.
YBL – PAC Hybrid LITE [FINAL SR]🔹 Full description (pégalo en “Describe your script…”)
YBL – PAC Hybrid LITE
YBL – PAC Hybrid LITE is a minimal, high-performance trend tool that combines:
• A dual EMA trend cloud
• Automatic support/resistance pivots
• Optional candle coloring by trend
The idea is to give a very clean bias + SR map that works on any timeframe without overloading the chart.
⸻
🔧 Core components
1. EMA trend engine
• Two configurable EMAs:
• Fast EMA (lenFast)
• Slow EMA (lenSlow)
• Trend definition:
• Bullish when Fast EMA > Slow EMA
• Bearish when Fast EMA < Slow EMA
You can choose to show/hide the EMAs individually.
2. Trend cloud
• The area between the fast and slow EMA is filled as a trend cloud:
• Teal (greenish) when bullish
• Maroon (reddish) when bearish
• This creates a quick visual filter for:
• Trading in the direction of the main leg
• Avoiding entries against the dominant push
3. Candle coloring
• Optional colorCand switch to color all candles by trend:
• Lime candles in bullish trend
• Red candles in bearish trend
• Great for scalping or fast chart reading (especially on lower timeframes).
⸻
🧱 Support & Resistance (SR) module
• Uses pivot highs/lows over barsSR bars to detect local structure:
• Pivot highs → resistance levels (red lines)
• Pivot lows → support levels (lime lines)
• The script keeps up to maxSR most recent levels, updating them as new pivots are formed.
• Lines are extended to the right and automatically cleaned/hidden when not used, keeping the layout light.
This gives you a living map of the most relevant SR zones without having to draw them manually.
⸻
⚙️ Key inputs
• EMA rápida / lenta → adjust to your style (e.g. 20/50, 9/21, etc.).
• Mostrar EMAs / Nube / Velas coloreadas → independent toggles so you can use just:
• The EMAs
• Only the cloud
• Only colored candles
• Máx. SR a mostrar → how many SR lines you want visible.
• Sensibilidad pivote SR → higher value = fewer, stronger levels; lower value = more reactive levels.
⸻
📈 How I personally use it
• To define a clean directional bias:
• Only take longs above the cloud when it’s green.
• Only take shorts below the cloud when it’s red.
• As a structure map:
• Use the automatic SR lines as targets, pullback areas or invalidation zones.
• As a lightweight backbone:
• Combine the PAC Hybrid LITE with heavier tools (Smart Money Volume, CVD, order-flow bubbles) without overloading the chart.
⸻
⚠️ Disclaimer
This script is for educational and analytical purposes only and does not constitute financial advice. Always do your own research and manage your risk.
ZeeshanAsgharDetects Doji candles and marks them with a “D” above the bar. Adjustable body-to-range precision threshold to fit different symbols and timeframes.
Ansupublicly-usable Pine Script that implements the same concepts described on that page (Ichimoku, McGinley, multiple moving averages, RSI, MACD, Stochastic, Bollinger Bands, and composite buy/sell signals). Below is a solid Pine-Script v5 implementation you can add to TradingView and tweak
Stoch Cross OB/OS Signals CleanStoch Cross OB/OS Signals
Displays fast (%K) and slow (%D) Stochastic lines with visual signals for overbought and oversold conditions. Alerts when the fast line crosses the slow line in OB/OS zones using customizable symbols. Ideal for spotting short-term reversals and timing entries/exits. Features adjustable periods, OB/OS levels, and symbol sizes for clear chart visualization.
Adaptive Timeframe Confluencemade updates so the timeframes fields are all populated. also updated the VIX updates
YBL – Order Flow Bubbles + Alerts (Imbalance, Anchored)YBL – Order Flow Bubbles + Alerts (Imbalance, Anchored)
This tool plots order-flow aggression bubbles directly on the price chart, using a z-score of candle delta (body × volume) plus a volume filter. The idea is to highlight bars where buying or selling aggression is significantly stronger than normal and to anchor that information at meaningful price levels.
⸻
🔧 Core logic
• Delta per bar
• delta = (close – open) × volume
• Positive delta → buy aggression (buyers lifting offers).
• Negative delta → sell aggression (sellers hitting bids).
• Z-score imbalance
• Uses lenDelta as the lookback window for:
• Average delta
• Standard deviation of delta
• Average volume
• A bar is considered strongly imbalanced when:
• |deltaZ| ≥ zTrigger, and
• Volume is at least minVolMul × average volume.
• Volume scaling → bubble size
• Bubble size is derived from the ratio volume / average volume:
• Small → Huge, based on how large the spike is compared to normal volume.
⸻
🎯 Bubble placement & visuals
• Color
• Lime bubble = strong buy bar.
• Red bubble = strong sell bar.
• Label text (optional)
• You can display the delta value in “K” inside the bubble (e.g. +350.0K).
• Anchoring
• Two anchor modes:
• “Extremos (Hi/Lo)” → bubble anchored near high or low of the candle, offset by ATR.
• “Centro (Mid)” → bubble anchored at the midpoint between high and low.
• ATR offset
• Uses ATR × atrMul to push the bubble slightly away from the extreme, so it doesn’t overlap the wick or other drawings.
• Soft background shading
• When a strong buy bar is detected → light green background.
• When a strong sell bar is detected → light red background.
This makes high-pressure zones easy to see when scrolling quickly.
⸻
🔔 Alerts
Two built-in alert conditions:
• BUY Aggression Bubble
Triggered when a strong bullish imbalance appears (green bubble).
• SELL Aggression Bubble
Triggered when a strong bearish imbalance appears (red bubble).
The alert messages include ticker, timeframe and close price so they can be used for automated notifications or as part of a trading workflow.
⸻
📈 Typical use
• Spot aggressive entry points where institutional players are likely hitting bids/offers.
• Mark key reaction levels (high/low or mid of the bubble candle) to watch for future retests.
• Combine with CVD / Smart Money Volume / institutional levels as extra confluence for entries, scalps or reversals.
⸻
⚠️ Disclaimer
This script is for educational and analytical purposes only. It is not financial advice. Always do your own research and manage your risk.
XAUUSD Pro Setup Suite manuel_lnt.fx is an advanced Pine Script v6 indicator designed exclusively for XAUUSD, built to automatically detect the 5 highest-probability setups in gold day trading.
It combines institutional price action, volatility patterns, mean reversion logic, and momentum confirmation to generate clean, filtered, and actionable signals.
The indicator automatically detects:
⸻
1️⃣ Break & Retest Premium (BR)
Identifies valid breaks of key levels and signals the retest with rejection wick, EMA20 trend confirmation, and neutral RSI.
→ Excellent for trend continuation.
⸻
2️⃣ Fakeout Liquidity Trap (FO)
Detects liquidity grabs above highs or below lows with an opposite close + engulfing candle confirmation.
→ The strongest setup for fast and explosive reversals on gold.
⸻
3️⃣ MACD Zero-Line Shift (MACD)
Signals when the MACD crosses the zero line while price breaks micro-structure.
→ Perfect for spotting the start of a new trend.
⸻
4️⃣ Bollinger Squeeze → Breakout (BB)
Recognizes volatility compression and signals when a breakout is likely to explode.
→ Ideal for clean breakout trades.
⸻
5️⃣ Mean Reversion on EMA50 (MR)
Highlights price extensions far away from the EMA50 with ATR confirmation and a reversal candle.
→ Great for pullbacks back toward the mean value.
YBL – Smart Money Volume++ (Neón)🔹 Full description (pégalo en “Describe your script…”)
YBL – Smart Money Volume++ (Neon)
YBL – Smart Money Volume++ is an advanced volume spike detector that separates Smart Money vs Retail activity, plots neon bubbles and levels on price, and keeps a live profit/loss table for both classes.
The goal is to see who is winning right now – aggressive Smart Money or late Retail traders – and to use that information as a real-time bias filter and execution map.
⸻
🔧 Core logic
• Lower timeframe volume engine
• Uses request.security_lower_tf() to read lower TF volume (1–15m or Auto based on the chart).
• Builds a rolling buffer of volume and computes:
• Classic Z-score, and
• Robust MAD-Z (Median + MAD) for outlier detection.
• Adaptive Z/MAD thresholds
• Main window length: zLen (default 50 bars).
• Adaptive threshold: |Z| > thEff, where thEff scales automatically with volatility using thAutoK.
• Option to use robust MAD-Z (useMAD = true) or classic Z-score.
• Retail vs Smart Money classification
• Volume events are classified per tick as:
• Retail if they fire near the bar close, or
• Smart Money if they occur inside the candle body (aggressive participation).
• Optional ATR filter to ignore events too far from the current close.
• Volume levels & decay
• For each valid event the script draws a horizontal neon level at the event price:
• Color encodes direction (bull/bear) and class (Smart/Retail).
• Thickness and glow are proportional to spike intensity.
• Levels can:
• Extend over time,
• Be deleted when price body crosses them (cleanOnBody), and/or
• Expire after N bars (decayBars).
• Neon volume bubbles
• On each bar, the largest spike generates a bubble:
• Size = function of |Z| (Tiny → Huge).
• Color = Smart vs Retail + Bull vs Bear.
• Anti-overlap offset so bubbles don’t stack on top of price.
⸻
📊 Live P/L table (Retail vs Smart)
The script keeps track of whether each level is in profit or loss:
• For each stored level it checks if the current close is:
• In profit or loss for that direction.
• The P/L table shows:
• Retail: total profit volume, total loss volume, and Hit%.
• Smart Money: total profit volume, total loss volume, and Hit%.
• Background of the cells is shaded with a neon heatmap, emphasizing the dominant side.
• A Mini Mode is available:
• Automatically sets the table to Tiny, reduces stored levels and turns off glow for iPad / low-clutter layouts.
⸻
🎛 Main options
• Mini Mode – Light version for iPad or when you want less visual noise.
• Lower TF selection – Auto (based on chart TF) or fixed (1/3/5/15).
• Filters
• In-body vs at-close classification.
• ATR distance filter.
• Global “who to show”: Smart Money / Retail / Both.
• Visual
• Levels on/off, decay, clean on candle body, glow width.
• Bubbles on/off, anti-overlap.
• Colors
• Full YBL Neon theme:
• Smart bull / Smart bear.
• Retail bull / Retail bear.
⸻
🔔 Alerts
The script comes with four alert conditions per bar:
• Retail Bull – bullish Retail event.
• Retail Bear – bearish Retail event.
• Smart Money Bull – bullish Smart Money event.
• Smart Money Bear – bearish Smart Money event.
You can plug these directly into TradingView alerts to track activity for each class.
⸻
📈 How I use it
• As a heatmap of participation:
• I want to see whether Smart Money levels are being respected or broken.
• As a bias filter:
• If Smart Money bubbles and levels are in profit and stacking in one direction, I avoid fighting that side.
• As a confluence tool:
• I combine these levels with my other YBL tools (CVD, order-flow bubbles, institutional levels) to define execution zones.
⸻
⚠️ Disclaimer
This script is for educational/analytical purposes only and does not constitute financial advice. Always do your own research and manage your risk.
HoneG_SARBB_3min v12BBとSARとADXなどをベースにした3分取引用サインツールです。
1分チャートに適用してお使いください。
2割くらいの確率で思わぬ反発を食らう事が有るので、
ボリバン中央バンドで反発食らった時は、
2分以内であれば損切した方が得策かもです。
This is a 3-minute trading signal tool based on BB, SAR, and ADX.
Please apply it to a 1-minute chart for use.
Since there's about a 20% chance of encountering unexpected rebounds,
if you get hit by a rebound at the middle Bollinger Band,
it might be wise to cut your losses within 2 minutes.
YBL – Tick CVD PRO (CVD + Precio Normalizado + Divergencias)YBL – Tick CVD PRO (CVD + Normalized Price + Divergences)
YBL – Tick CVD PRO is a tick-based Cumulative Volume Delta engine that plots CVD and a normalized price curve in the same panel, making it easy to see when price and aggression are aligned or diverging.
The script is designed for intraday order-flow traders who want to see where real buying/selling pressure is coming in, where it is fading, and where price is moving without confirmation from CVD.
⸻
🔧 Core features
• Tick CVD calculation
• Cumulative Volume Delta per bar, with two modes:
• volume × price change (more sensitive to small rotations), or
• absolute volume by candle color (+vol/-vol depending on bullish/bearish candle).
• Option to accumulate CVD only inside a custom session (e.g. 09:30–16:00).
• Normalized price overlay
• Price is normalized into the same vertical range as CVD over a lookback window, so you can:
• Confirm trends when price and CVD make new highs/lows together.
• Spot traps/exhaustion when price prints extremes without CVD confirmation.
• Two visual styles
• Choose between line mode or candle mode for both CVD and normalized price.
• Aesthetic vs Efficient visual presets to control opacity and clarity depending on style/performance.
• Adaptive moving averages
• Independent MAs for CVD and normalized price:
• WMA, HMA, SMA, EMA or None.
• Optional:
• Color by MA type.
• Thicker MA when the slope is positive, to quickly see acceleration vs flattening.
• Key levels & dots
• Automatic pivot highs/lows on CVD and normalized price, extended to the right as dotted levels.
• Optional dots on both curves, with the ability to show the numerical values as labels.
• HH/LL divergences
• Bearish divergence: price makes a higher high while CVD fails to confirm → “🔻Bear Div”.
• Bullish divergence: price makes a lower low while CVD fails to confirm → “🔺Bull Div”.
• Pivot lengths are fully configurable, and you can hide/show the divergence labels.
• Session-aware logic
• Custom session input (09:30–16:00 by default).
• Option to accumulate CVD only inside that session, which helps to reset and focus on the active trading day.
• Alerts
• CVD crossing above/below its own MA (momentum shift in delta).
• Automatic bullish and bearish divergences.
You can use these alerts for notifications or to feed more complex strategy logic.
• Quick header
• On the last bar the script prints a compact header with:
• Current CVD value + direction arrow.
• Current last price (normalized) + direction arrow.
⸻
📈 How to use it
• Confirm breakouts and trend legs when both price and CVD push in the same direction and both make new extremes.
• Detect traps, absorption and fading moves when price pushes to new highs/lows but CVD is flat or diverging.
• Use the MA slope of CVD + price as a bias filter: I prefer to trade in the direction of both MAs when they agree.
⸻
⚠️ Disclaimer
This script is for educational and analytical purposes only and does not constitute financial advice. Always do your own research and manage your risk.
TPO (Almost)Plots the TPO levels based off of 5 mins candles of the previous day (historical as well) with great precision
YBL – Tick CVD PRO (CVD + Precio Normalizado + Divergencias)YBL – Tick CVD PRO (CVD + Normalized Price + Divergences)
YBL – Tick CVD PRO is a tick-based Cumulative Volume Delta engine that plots CVD and a normalized price curve in the same panel, making it easy to see when price and aggression are aligned or diverging.
The script focuses on intraday order-flow context, showing where real buying/selling pressure is coming in, where it is fading, and where price is moving without confirmation from CVD.
⸻
Main features
• Tick CVD engine
• Cumulative Volume Delta calculated either as:
• volume × price change (more sensitive), or
• absolute volume by candle color (classic +/– volume).
• Option to accumulate only during a chosen session window (e.g. 09:30–16:00).
• Normalized Price Overlay
• Price is normalized into the same range as CVD over a lookback window, so you can visually compare:
• when price makes new highs/lows with CVD confirmation, and
• when price prints extremes without CVD support (potential traps).
• Two visual modes
• Line mode or candle mode for both CVD and normalized price.
• Aesthetic / Efficient visual presets (different fill transparencies for clearer reading depending on style and performance).
• Adaptive Moving Averages
• Independent MAs for CVD and normalized price:
• WMA, HMA, SMA, EMA, or None.
• Optional:
• Color by MA type.
• Thicker line when the slope is positive, making trend shifts easier to spot at a glance.
• Key levels & dots
• Automatic key levels (pivot highs/lows) for CVD and normalized price, extended to the right.
• Optional dots on CVD and price curves, with the possibility to show numeric values as labels.
• Divergences (HH/LL)
• Automatic bearish divergence:
• Price makes a higher high, but CVD fails to confirm → “🔻Bear Div”.
• Automatic bullish divergence:
• Price makes a lower low, but CVD fails to confirm → “🔺Bull Div”.
• Pivot lengths are fully configurable.
• Session-aware CVD
• Choose an exchange session (e.g. 09:30–16:00) and optionally accumulate CVD only inside that range, resetting behavior for better intraday reading.
• Alerts
• CVD crossing above/below its MA (momentum shift).
• Bullish & bearish divergence signals.
These alerts can be used to build automated conditions in your strategy or to receive notifications.
• Quick header display
• On the last bar, a compact header shows:
• Current CVD value + direction arrow.
• Current normalized price / last close + direction arrow.
⸻
How I personally use it
• Confirm breakouts and trend legs:
• I want price and CVD moving together, with CVD making new extremes in the direction of the move.
• Spot traps and absorption:
• When price makes a new high/low but CVD diverges, I pay attention to potential reversals or exhaustion.
• Filter entries from my main YBL tools:
• I prefer to trade with CVD slope and MA direction, and I am cautious when entries appear against clear CVD pressure.
⸻
⚠️ Disclaimer:
This script is for educational and analytical purposes only and is not financial advice. Always do your own research and manage your risk.
chanlun缠论 - 笔与中枢Overview
The Chanlun (缠论) Strokes & Central Zones indicator is an advanced technical analysis tool based on Chinese Chan Theory (Chanlun Theory). It automatically identifies market structure through "strokes" (笔) and "central hubs" (中枢), providing traders with a systematic framework for understanding price movements, trend structure, and potential reversal zones.
Theoretical Foundation
Chan Theory is a sophisticated price action methodology that breaks down market movements into hierarchical structures:
Local Extremes: Swing highs and lows identified through lookback periods
Strokes (笔): Valid price movements between opposite extremes that meet specific criteria
Central Hubs (中枢): Consolidation zones formed by overlapping strokes, representing key support/resistance areas
Key Components
1. Local Extreme Detection
Identifies swing highs and lows using a configurable lookback period (default: 5 bars)
Only considers extremes within the specified calculation range
Forms the foundation for stroke construction
2. Stroke (笔) Identification
The indicator applies a multi-stage filtering process to identify valid strokes:
Stage 1 - Extreme Consolidation:
Merges consecutive extremes of the same type (high or low)
Keeps only the most extreme value (highest high or lowest low)
Stage 2 - Stroke Validation:
Ensures minimum bar gap between strokes (default: 4 bars)
Alternative validation: 2+ bars with >1% price change
Eliminates noise and insignificant price movements
Color Coding:
White Lines: Regular up/down strokes
Yellow Lines: Strokes that form part of a central hub
Customizable width and colors for different stroke types
3. Central Hub (中枢) Formation
A central hub forms when at least 3 consecutive strokes have overlapping price ranges:
Formation Rules:
Stroke 1:
Stroke 2:
Stroke 3:
Hub Upper = MIN(High1, High2, High3)
Hub Lower = MAX(Low1, Low2, Low3)
Valid if: Hub Upper > Hub Lower
Hub Extension:
Subsequent strokes that overlap with the hub extend it
Hub ends when a stroke no longer overlaps
Creates rectangular zones on the chart
Visual Representation:
Green rectangular boxes: Mark the time and price range of each central hub
Dashed extension lines: Show the latest hub boundaries extending to the right
Price labels on axis: Display exact hub upper and lower boundary values
4. Extreme Point Markers (Optional)
Red markers for tops (▼)
Green markers for bottoms (▲)
Marks every validated stroke extreme point
Useful for detailed structure analysis
5. Information Table (Optional)
Displays real-time statistics:
Symbol name
Current timeframe
Lookback period setting
Minimum gap setting
Total stroke count
Parameter Settings
Performance Settings
Max Bars to Calculate (3600): Limits historical calculation to improve performance
Local Extreme Lookback Period (5): Bars used to identify swing highs/lows
Min Gap Bars (4): Minimum bars required between valid strokes
Display Settings
Show Strokes: Toggle stroke line visibility
Show Central Hub: Toggle hub box visibility
Show Hub Extension Lines: Toggle dashed boundary lines
Show Extreme Point Marks: Toggle top/bottom markers
Show Info Table: Toggle statistics table
Color Settings
Full customization of:
Up/down stroke colors and widths
Hub stroke colors and widths
Hub border and background colors
Extension line colors
Trading Applications
Trend Structure Analysis
Uptrend: Series of higher highs and higher lows connected by strokes
Downtrend: Series of lower highs and lower lows connected by strokes
Consolidation: Formation of central hubs indicating range-bound movement
Support and Resistance Identification
Central Hub Zones: Act as strong support/resistance areas
Hub Upper Boundary: Resistance level in consolidation, support after breakout
Hub Lower Boundary: Support level in consolidation, resistance after breakdown
Price tends to react at these levels due to market structure memory
Breakout Trading
Bullish Breakout: Price closes above hub upper boundary
Previous resistance becomes support
Entry on retest of upper boundary
Stop loss below hub zone
Bearish Breakdown: Price closes below hub lower boundary
Previous support becomes resistance
Entry on retest of lower boundary
Stop loss above hub zone
Reversal Detection
Hub Formation After Trend: Signals potential trend exhaustion
Multiple Hub Levels: Create probability zones for reversals
Stroke Count: Excessive strokes within hub suggest weakening momentum
Position Management
Use hub boundaries for stop loss placement
Scale out positions at hub edges
Re-enter on retests of broken hub levels
Interpretation Guide
Strong Trending Market
Long, clear strokes with minimal overlap
Few or no central hubs forming
Strokes consistently in same direction
Wide spacing between extremes
Consolidating Market
Multiple central hubs forming
Short, overlapping strokes
Yellow hub strokes dominate the chart
Narrow price range
Trend Transition
Hub formation after extended trend
Stroke direction changes frequently
Hub boundaries being tested repeatedly
Potential reversal zone
Advanced Usage Techniques
Multi-Timeframe Analysis
Higher Timeframe: Identify major hub zones for overall market structure
Lower Timeframe: Find precise entry points within larger structure
Alignment: Trade when lower timeframe strokes align with higher timeframe hub breaks
Hub Quality Assessment
Wide Hubs: Strong consolidation, higher probability support/resistance
Narrow Hubs: Weak consolidation, may break easily
Extended Hubs: More strokes = stronger zone
Isolated Hubs: Single hub = potential pivot point
Stroke Analysis
Stroke Length: Longer strokes = stronger momentum
Stroke Speed: Fewer bars per stroke = explosive moves
Stroke Clustering: Many short strokes = indecision
Best Practices
Parameter Optimization
Adjust lookback period based on timeframe and volatility
Lower periods (3-4): More strokes, more noise, faster signals
Higher periods (7-10): Fewer strokes, cleaner structure, slower signals
Confirmation Strategy
Don't trade on strokes alone
Combine with volume analysis
Use candlestick patterns at hub boundaries
Wait for breakout confirmation
Risk Management
Always place stops outside hub zones
Use hub width to size positions (wider hub = smaller position)
Exit if price re-enters broken hub from wrong direction
Avoid Common Pitfalls
Don't trade within central hubs (range-bound, unpredictable)
Don't ignore higher timeframe hub structures
Don't chase strokes after they've extended far from hub
Don't trust single-stroke hubs (need 3+ strokes for validity)
Performance Considerations
Max Bars Limit: Set to 3600 to balance detail with performance
Safe Distance Calculation: Only draws objects within 2000 bars of current price
Object Cleanup: Automatically removes old drawing objects to prevent memory issues
Efficient Arrays: Uses indexed arrays for fast lookup and processing
Ideal Market Conditions
Best Performance:
Liquid markets with clear structure (major forex pairs, indices, large-cap stocks)
Trending markets with periodic consolidations
Medium to high volatility for clear stroke formation
Less Effective:
Extremely choppy, directionless markets
Very low timeframes (< 5 minutes) with excessive noise
Illiquid instruments with erratic price action
Integration with Other Indicators
Complementary Tools:
Volume Profile: Confirm hub significance with volume nodes
Moving Averages: Use for trend bias within stroke structure
RSI/MACD: Momentum confirmation at hub boundaries
Fibonacci Retracements: Hub levels often align with Fib levels
Advantages
✓ Objective Structure: Removes subjectivity from market structure analysis
✓ Visual Clarity: Color-coded strokes and clear hub zones
✓ Multi-Timeframe Applicable: Works on all timeframes from minutes to months
✓ Complete Framework: Provides entry, exit, and risk management levels
✓ Theoretical Foundation: Based on proven Chan Theory methodology
✓ Customizable: Extensive parameter and visual customization options
Limitations
⚠ Learning Curve: Requires understanding of Chan Theory principles
⚠ Lag Factor: Strokes confirm after price movements complete
⚠ Parameter Sensitivity: Different settings produce significantly different results
⚠ Choppy Market Struggles: Can generate excessive hubs in range-bound conditions
⚠ Computation Intensive: May slow down on lower-end systems with max bars setting
Optimization Tips
Timeframe Selection
Scalping: 5-15 minute charts, lookback period 3-4
Day Trading: 15-60 minute charts, lookback period 4-5
Swing Trading: 4-hour to daily charts, lookback period 5-7
Position Trading: Daily to weekly charts, lookback period 7-10
Volatility Adjustment
High volatility: Increase minimum gap bars to reduce noise
Low volatility: Decrease lookback period to capture smaller moves
Visual Optimization
Use contrasting colors for different market conditions
Adjust line widths based on chart resolution
Toggle markers off for cleaner appearance once familiar with structure
Quick Start Guide
For Beginners:
Start with default settings (5 lookback, 4 min gap)
Enable "Show Info Table" to track stroke count
Focus on identifying clear hub formations
Practice waiting for price to break hub boundaries before trading
For Advanced Users:
Optimize lookback and gap parameters for your instrument
Use hub strokes (yellow) to identify key consolidation zones
Combine with multiple timeframes for confirmation
Develop entry rules based on hub breakout/retest patterns
This indicator provides a complete structural framework for understanding market behavior through the lens of Chan Theory, offering traders a systematic approach to identifying high-probability trading opportunities.
Realtime Tick-CVD Pulse (Fading Spikes)“Realtime Tick-CVD Pulse” visualizes intrabar buying and selling aggression using synthetic tick-delta pressure, giving traders a live view of momentum, absorption, and exhaustion without requiring real tick data. Bright delta spikes represent strong directional aggression, while fading colors reveal weakening force or hidden absorption before price turns. The smooth CVD line tracks cumulative pressure and highlights shifts in control between buyers and sellers. Together, the pulse and CVD offer a clearer microstructure read than candles alone—showing when a move is likely to continue, slow down, or reverse. Ideal for scalpers and intraday traders who want early confirmation around VWAP, CPR, PDH/PDL, or key support/resistance zones.
📉 Example 1 — Trend Continuation
Price is consolidating under VWAP, and the indicator prints repeated bright red pulses with CVD sloping down. No fading appears.
👉 This signals active hitting of bids → strong seller aggression.
Price breaks the range to the downside and continues trending.
📈 Example 2 — Exhaustion + Delta Flip Reversal
Price makes a new push up, but the green pulses begin fading—showing buying exhaustion.
Shortly after, a red flip pulse appears, and CVD turns down.
👉 This signals absorption at the top → early short entry before the reversal candle.
🧠 Tips for Best Results
Use on 1m–5m charts
Combine with VWAP, CPR, Order Blocks, PDH/PDL
Fade → Flip at a key level = A-grade reversal signal
Strong pulses through consolidation = A-grade breakout signal
🧠 Extended “How to Use” Section
This indicator helps traders read the market the way professionals do—through orderflow-style pressure, not just candles. The fading delta spikes show how aggressively buyers or sellers are pushing inside each bar, while the CVD line reveals the underlying cumulative force building behind the move.
Bright pulses indicate strong momentum and often lead to continuation.
Fading pulses signal exhaustion or absorption—an early warning that the move is losing power.
A color flip after fading (green → red or red → green) often marks the earliest stage of a reversal or pullback.
Use the pulse in conjunction with CVD slope to confirm whether buyers or sellers are truly in control. When these signals appear near VWAP, CPR, PDH/PDL, breakout zones, or major supply/demand areas, they provide high-quality context for scalps, continuations, or early reversals. This makes it especially powerful for intraday futures traders looking for timing accuracy that price action alone cannot provide.
ENTRY CONFIRMATION V2// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © Zerocapitalmx
//@version=5
indicator(title="ENTRY CONFIRMATION V2", format=format.price, timeframe="", timeframe_gaps=true)
len = input.int(title="RSI Period", minval=1, defval=50)
src = input(title="RSI Source", defval=close)
lbR = input(title="Pivot Lookback Right", defval=5)
lbL = input(title="Pivot Lookback Left", defval=5)
rangeUpper = input(title="Max of Lookback Range", defval=60)
rangeLower = input(title="Min of Lookback Range", defval=5)
plotBull = input(title="Plot Bullish", defval=true)
plotHiddenBull = input(title="Plot Hidden Bullish", defval=false)
plotBear = input(title="Plot Bearish", defval=true)
plotHiddenBear = input(title="Plot Hidden Bearish", defval=false)
bearColor = color.red
bullColor = color.green
hiddenBullColor = color.new(color.green, 80)
hiddenBearColor = color.new(color.red, 80)
textColor = color.white
noneColor = color.new(color.white, 100)
osc = ta.rsi(src, len)
rsiPeriod = input.int(50, minval = 1, title = "RSI Period")
bandLength = input.int(1, minval = 1, title = "Band Length")
lengthrsipl = input.int(1, minval = 0, title = "Fast MA on RSI")
lengthtradesl = input.int(50, minval = 1, title = "Slow MA on RSI")
r = ta.rsi(src, rsiPeriod) // RSI of Close
ma = ta.sma(r, bandLength ) // Moving Average of RSI
offs = (1.6185 * ta.stdev(r, bandLength)) // Offset
fastMA = ta.sma(r, lengthrsipl) // Moving Average of RSI 2 bars back
slowMA = ta.sma(r, lengthtradesl) // Moving Average of RSI 7 bars back
plot(slowMA, "Slow MA", color=color.black, linewidth=1) // Plot Slow MA
plot(osc, title="RSI", linewidth=2, color=color.purple)
hline(50, title="Middle Line", color=#787B86, linestyle=hline.style_dotted)
obLevel = hline(70, title="Overbought", color=#787B86, linestyle=hline.style_dotted)
osLevel = hline(30, title="Oversold", color=#787B86, linestyle=hline.style_dotted)
plFound = na(ta.pivotlow(osc, lbL, lbR)) ? false : true
phFound = na(ta.pivothigh(osc, lbL, lbR)) ? false : true
_inRange(cond) =>
bars = ta.barssince(cond == true)
rangeLower <= bars and bars <= rangeUpper
//------------------------------------------------------------------------------
// Regular Bullish
// Osc: Higher Low
oscHL = osc > ta.valuewhen(plFound, osc , 1) and _inRange(plFound )
// Price: Lower Low
priceLL = low < ta.valuewhen(plFound, low , 1)
bullCond = plotBull and priceLL and oscHL and plFound
plot(
plFound ? osc : na,
offset=-lbR,
title="Regular Bullish",
linewidth=1,
color=(bullCond ? bullColor : noneColor)
)
plotshape(
bullCond ? osc : na,
offset=-lbR,
title="Regular Bullish Label",
text=" EDM ",
style=shape.labelup,
location=location.absolute,
color=bullColor,
textcolor=textColor
)
//------------------------------------------------------------------------------
// Hidden Bullish
// Osc: Lower Low
oscLL = osc < ta.valuewhen(plFound, osc , 1) and _inRange(plFound )
// Price: Higher Low
priceHL = low > ta.valuewhen(plFound, low , 1)
hiddenBullCond = plotHiddenBull and priceHL and oscLL and plFound
plot(
plFound ? osc : na,
offset=-lbR,
title="Hidden Bullish",
linewidth=1,
color=(hiddenBullCond ? hiddenBullColor : noneColor)
)
plotshape(
hiddenBullCond ? osc : na,
offset=-lbR,
title="Hidden Bullish Label",
text=" EDM ",
style=shape.labelup,
location=location.absolute,
color=bullColor,
textcolor=textColor
)
//------------------------------------------------------------------------------
// Regular Bearish
// Osc: Lower High
oscLH = osc < ta.valuewhen(phFound, osc , 1) and _inRange(phFound )
// Price: Higher High
priceHH = high > ta.valuewhen(phFound, high , 1)
bearCond = plotBear and priceHH and oscLH and phFound
plot(
phFound ? osc : na,
offset=-lbR,
title="Regular Bearish",
linewidth=1,
color=(bearCond ? bearColor : noneColor)
)
plotshape(
bearCond ? osc : na,
offset=-lbR,
title="Regular Bearish Label",
text=" EDM ",
style=shape.labeldown,
location=location.absolute,
color=bearColor,
textcolor=textColor
)
//------------------------------------------------------------------------------
// Hidden Bearish
// Osc: Higher High
oscHH = osc > ta.valuewhen(phFound, osc , 1) and _inRange(phFound )
// Price: Lower High
priceLH = high < ta.valuewhen(phFound, high , 1)
hiddenBearCond = plotHiddenBear and priceLH and oscHH and phFound
plot(
phFound ? osc : na,
offset=-lbR,
title="Hidden Bearish",
linewidth=1,
color=(hiddenBearCond ? hiddenBearColor : noneColor)
)
plotshape(
hiddenBearCond ? osc : na,
offset=-lbR,
title="Hidden Bearish Label",
text=" EDM ",
style=shape.labeldown,
location=location.absolute,
color=bearColor,
textcolor=textColor
)






















