MACD, RSI, DMI ComboMACD RSI DMI All In One indicator
To save slot
Default setting, custom settings available
Macd-v
gold scaling_V2.2 (Zone-Driven Entries + BB Entries) — Dual-Set
Short Description (for the “Description” box)
gold scaling_V2.2 (Zone-Driven Entries + BB Entries) — Dual-Set
Two coordinated entry engines. Set A (Zone-Driven): dynamic buy/sell zones with anti-chase (first-touch, flip-guard, hysteresis), TP1–TP5 ladder, and smart SL (BE/Follow/Chandelier). Set B (BB mini): fast Bollinger-based entries with HTF/BBW filters. Compact HUD, Heads-Up ETA, and full Text/JSON alerts (ENTRY/TP/SL). Built for disciplined entries, not FOMO.
Full Description
Overview
This indicator enforces disciplined entries by combining two complementary systems:
Set A — Zone-Driven Entries: builds adaptive buy/sell zones (ATR-aware), confirms entries in two steps (touch → confirm), and manages exits with a TP ladder and intelligent SL logic (move to Break-Even at TP1, follow by TP levels, or optional Chandelier trail). Includes zone lock/re-arm after real breakouts.
Set B — BB Entries (mini): lightweight Bollinger-based “mini” entries (Revert Cross or Cross Threshold) that respect HTF EMA slope and BB Width filters.
Timeframes:
Set A (Zone) works best on M15–H1; Set B (mini) is great for M5–M30 to catch tactical moves inside the bigger structure.
Quick Start
Add to chart → Entry Sets: enable Set A (Zone) and/or Set B (BB mini).
Alerts: turn on Enable Auto Alerts and create one alert with Any alert() function call → Once per bar close.
Webhook/automation: toggle Use JSON to emit machine-readable alerts.
Filters: enable HTF Trend Filter and/or BB Width filter to improve signal quality.
Stops: choose SL mode (ATR ×, Percent, Points). Configure SL→BE on TP1, Follow by TP, or Chandelier Trail.
Signal Architecture
Set A — Zone-Driven (primary entries)
Trigger: price touches/crosses zone edge → pending → confirm with hysteresis and minimum real body (ATR-scaled) aligned with side.
Anti-Chase: firstTouchOnly, max entries per zone, flipGuardBars, optional body-displacement (ATR×), and global lock after any entry.
Breakout Handling: lock zones after a meaningful break (close beyond edge ≥ ATR×). Re-arm by Retest / Time / Retest OR Time.
TP Ladder: TP1–TP5 lines with labels and fills.
Smart SL: move to BE at TP1, follow TP levels (rate-limited and ATR-buffered), or Chandelier.
Set B — BB Entries (mini)
Modes: Revert Cross (default) or Cross Threshold.
Honors HTF EMA slope and BB Width if enabled.
Separate per-side cooldown to reduce spam.
Heads-Up & HUD
Heads-Up ETA: estimates minutes to nearest band/basis or compression-to-expansion spike.
HUD: shows symbol/TF/side, Entry/SL, TP1–TP5 RR snapshot, W/L from Zone set, and HU/Vol lines.
Alerts
Auto alerts (recommended, via alert())
Create one alert: Any alert() function call → Once per bar close. It covers everything.
ENTRY (Zone):
Key Settings (what matters most)
Strategy Settings: tradeDirection (gate signals by side), entryStrategy for BB.
Entry Sets: toggle Set A (Zone) and Set B (BB mini) independently.
Bollinger Bands Settings: bbLength, bbMult; if BB Width filter is on, define min/max width (% of price).
Alert Settings: Enable Auto Alerts, Use JSON, cooldownSeconds, maxOneTPPerBar.
Anti-Chase / Zone State: firstTouchOnly, maxEntriesPerZonePerSide, flipGuardBars, requireRetest, hysteresisAtrMult, confirmBodyAtrMult, globalLockBars, lockZonesOnBreakout, rearmMode.
Stop Loss: SL mode + SL→BE on TP1, Follow by TP (slMoveFraction, confirm/hold bars, ATR buffer), Chandelier.
TP Zones: mult_dist for step size, zoneExpireBars for auto-cleanup.
HUD/Labels: mini label colors, HUD theme/size.
Tuning Guide
Too few entries: reduce flipGuardBars, confirmBodyAtrMult, or hysteresisAtrMult; relax BB width bounds; increase maxEntriesPerZonePerSide.
Noisy/fake entries: raise flipGuardBars, enable requireFlipDisplacement (increase flipDispATRmult), tighten BB width bounds, enable alertsFollowTradeDirection.
SL moves too fast/slow: adjust slMinBarsBetweenMoves, slFollowConfirmBars, slMoveFraction, and slFollowAtrBufferMult.
Prefer retests after breaks: lockZonesOnBreakout = true + rearmMode = "Retest only".
Repaint & Transparency
Entries fire on bar close when alertsOnClose=true (default), with multi-layer confirmation to reduce hindsight changes.
Heads-Up/Spike are predictive helpers, not entry rules; they may update as new data comes in.
Visual overlays (divergence/oscillators) are supportive, not mandatory to the entry logic.
KK🚦LightKK Light is for 5min ~ 15min ETH/BTC only
The red triangles indicate selling, and the green ones indicate buying.
When the colored lights appear, you should be more careful.
The colored squares mean that you should stop what you're doing right now.
You can contact me for more details
Adaptive MACD Suite (MAMA / FAMA / KAMA) By Tehreem 2.0Adaptive MACD built without simple moving averages.
Choose your engine: MAMA–FAMA (Ehlers), MAMAx2, FAMAx2, or KAMAx2 (Kaufman Adaptive). The histogram is the classic MACD histogram (MACD − Signal), plotted with rising/falling tint just like the standard indicator—only smarter and fully adaptive.
Why this indicator?
Traditional MACD relies on simple or exponential MAs that lag in fast markets. This tool replaces them with adaptive baselines so your MACD reacts to real-time market dynamics:
MAMA–FAMA (John Ehlers) adapts with instantaneous phase/alpha.
KAMA (Perry Kaufman) adapts using Efficiency Ratio (ER).
MAMAx2 / FAMAx2 let you compare two adaptive lines of the same family (fast vs slow).
Result: faster trend detection, cleaner momentum shifts, and fewer whipsaws across forex, crypto, stocks, indices, gold (XAUUSD), and more.
What it does (at a glance)
MACD Line: difference between selected adaptive fast & slow lines (per mode).
Signal Line: EMA of MACD (length adjustable).
Histogram: MACD − Signal with positive/negative & rising/falling colors for instant read.
Source Option: Use Heiken Ashi close or regular close to fit HA-based systems.
Alerts: Bull/Bear crosses and zero-line shifts (ready to hook into your trade rules).
Modes (pick one)
MAMA_FAMA: Classic Ehlers pair. MACD = MAMA − FAMA. Great all-rounder for momentum + trend confirmation.
MAMAx2: MACD = MAMA(fast) − MAMA(slow). Keeps the Ehlers feel while separating pace.
FAMAx2: MACD = FAMA(fast) − FAMA(slow). A smoother, slightly slower flavor of the Ehlers family.
KAMAx2: MACD = KAMA(fast ER) − KAMA(slow ER). Excellent in choppy assets; adapts to noise.
All engines are coded from scratch (no built-ins), Pine v6, and calibrated to behave like a “real” MACD—just without SMA/EMA as the core trend inputs.
How to use it (practical playbook)
Trend confirmation: Trade in the direction of MACD above/below zero.
Entry timing: Look for MACD crossing Signal in trend direction.
Momentum strength: Expanding histogram indicates acceleration; contracting suggests a pause or pullback.
Divergence spotting: Price vs. MACD divergences remain valid—adaptive baselines can reveal them earlier.
Heiken Ashi workflows: Flip “Use Heiken Ashi Close as Source” on to align with HA entries (e.g., HA green above baseline + MACD > 0).
Suggested starting settings
MAMA_FAMA: fastLimit = 0.50, slowLimit = 0.05, Signal = 9
MAMAx2: M1: 0.60/0.04, M2: 0.30/0.02
FAMAx2: M1: 0.50/0.05, M2: 0.25/0.03
KAMAx2: Fast ER = 10, Slow ER = 30, FastLen = 2, SlowLen = 30, Signal = 9
Tweak signal length a bit higher for very noisy symbols (e.g., some crypto pairs) and a bit lower for smoother indices.
Included alerts (ready to use)
MACD Bull/Bear Cross (MACD ↔ Signal)
MACD > 0 / < 0 (regime shifts)
Optional Histogram Rising/Falling momentum alerts
Who is it for?
Traders who prefer adaptive indicators over fixed-period SMAs/EMAs.
Trend-followers and swing traders needing cleaner momentum confirmation.
Scalpers and intraday traders on volatile instruments (crypto, gold, NASDAQ) who want faster reaction without overfitting.
Tips & best practices
Pair with a baseline (e.g., EMA/MAMA on price) for structure; use Adaptive MACD for timing.
On higher timeframes, MAMA_FAMA often gives very clean signals.
In range markets, KAMAx2 typically filters noise better.
For 1:3 RR systems, use MACD for confirmation, not as the sole trigger.
Notes & disclaimer
Built for Pine v6.
This is a tool, not financial advice. Always validate on your market/timeframe and use proper risk management.
Aljane's 1348ema strategy13/48ema crossover powerful setup
EMAs (13, 48, 200)
VWAP
buy/sell labels
Candles turn white on bullish , red on bearish
Ideal for traders who want a simplified but powerful chart setup without clutter.
Aljane's 13/48 strategyThis indicator combines key moving averages (EMA 13, EMA 48, and EMA 200) with VWAP and SuperTrend to help identify market trends, reversals, and potential entry/exit points. EMA crosses provide momentum signals, VWAP tracks volume-weighted price, and SuperTrend highlights trend direction with buy/sell labels.
Adaptive Convergence Divergence### Adaptive Convergence Divergence (ACD)
By Gurjit Singh
The Adaptive Convergence Divergence (ACD) reimagines the classic MACD by replacing fixed moving averages with adaptive moving averages. Instead of a static smoothing factor, it dynamically adjusts sensitivity based on price momentum, relative strength, volatility, fractal roughness, or volume pressure. This makes the oscillator more responsive in trending markets while filtering noise in choppy ranges.
#### 📌 Key Features
1. Dual Adaptive Structure: The oscillator uses two adaptive moving averages to form its convergence-divergence line, with EMA/RMA as signal line:
* Primary Adaptive (MA): Fast line, reacts quickly to changes.
* Following Adaptive (FAMA): Slow line, with half-alpha smoothing for confirmation.
2. Adaptive MA Types
* ACMO: Adaptive CMO (momentum)
* ARSI: Adaptive RSI (relative strength)
* FRMA: Fractal Roughness (volatility + fractal dimension)
* VOLA: Volume adaptive (volume pressure)
3. PPO Option: Switch between classic MACD or Percentage Price Oscillator (PPO) style calculation.
4. Signal Smoothing: Choose between EMA or Wilder’s RMA.
5. Visuals: Colored oscillator, signal line, histogram with adaptive transparency.
6. Alerts: Bullish/Bearish crossovers built-in.
#### 🔑 How to Use
1. Add to chart: Works on any timeframe and asset.
2. Choose MA Type: Experiment with ACMO, ARSI, FRMA, or VOLA depending on market regime.
3. Crossovers:
* Bullish (🐂): Oscillator crosses above signal → potential long entry.
* Bearish (🐻): Oscillator crosses below signal → potential short entry.
4. Histogram: expansion = strengthening trend; contraction = weakening trend.
5. Divergences:
* Bullish (hidden strength): Price pushes lower, but ACD turns higher = potential upward reversal.
* Bearish (hidden weakness): Price pushes higher, but ACD turns lower = potential downward reversal.
6. Customize: Adjust lengths, smoothing type, and PPO/MACD mode to match your style.
7. Set Alerts:
* Enable Bullish or Bearish crossover alerts to catch momentum shifts in real time.
#### 💡 Tips
* PPO mode normalizes values across assets, useful for cross-asset analysis.
* Wilder’s smoothing is gentler than EMA, reducing whipsaws in sideways conditions.
* Adaptive smoothing helps reduce false divergence signals by filtering noise in choppy ranges.
MACD Aspray Hybrid Bars (teal/red) = raw momentum (Aspray Histogram).
Teal line = smooth curve of the histogram (Aspray Line).
Orange line = 9-EMA of that line (new signal).
Zero line for reference.
MACD X Cross with PlotThe default MACD indicator with the crossover added at the top of the MACD plot pane. Arrow up for MACD crossover signal line. Arrow down for MACD crossunder signal line.
MacAdx [GSira]📌 Indicator: ADX with Polarity + MACD Halo
🔎 Description
This indicator combines trend strength (ADX) with a dynamic MACD-based halo, providing a powerful visual confirmation tool for market direction.
The ADX with polarity colors the curve according to the dominant directional index (+DI / −DI) and the trend intensity.
The MACD Halo projects a glowing band around the ADX line, changing side, thickness, and color depending on MACD’s direction and strength.
👉 It is highly recommended to use this indicator together with Profit Long Plus for stronger confirmation of entries and exits.
⚙️ How it works
ADX with polarity
🟢 Green → Bullish polarity (+DI > −DI).
🔴 Red → Bearish polarity (−DI > +DI).
⚪ Gray → Neutral zone (weak or uncertain trend).
Optional: background shading when ADX is below threshold.
MACD Halo
📈 If MACD is bullish → halo above ADX.
🟢 Green if also above 0.
🟠 Orange if below 0 (weaker signal).
📉 If MACD is bearish → halo below ADX.
🔴 Red if also below 0.
🟠 Orange if above 0 (weaker signal).
Halo thickness dynamically increases with MACD strength (distance from signal line).
📖 Interpretation
Strong trend confirmation
Rising ADX + Green polarity + Green wide halo above → strong bullish continuation.
Rising ADX + Red polarity + Red wide halo below → strong bearish continuation.
Weak or mixed signals
Orange halo → contradiction between ADX and MACD → weak or unreliable trend.
Thin halo → low MACD strength, wait for confirmation.
👉 The best signals come when ADX polarity and MACD Halo align in direction and intensity.
✅ Advantages
Combines two of the most widely used indicators (ADX + MACD) into one clear visualization.
Helps filter out false signals.
Optimized for trend confirmation and works even better when paired with Profit Long Plus.
📌 In summary:
This indicator shows trend strength with ADX and validates it using MACD direction and momentum through a dynamic halo.
🟢 Halo above = bullish support.
🔴 Halo below = bearish support.
🟠 Orange halo = weak or conflicting trend.
For best results, use it together with Profit Long Plus to confirm high-probability entries and exits.
MIT MACD • Filled/Hollow Momentum HistogramThe MIT MACD • Filled/Hollow Momentum Histogram is an enhanced version of the classic MACD.
- Dual-style histogram (filled for acceleration, hollow for deceleration).
- Customizable colors for bars, MACD/Signal lines, and background.
- Background highlight when the slow line crosses the zero-line.
- Fully adjustable parameters, keeping TradingView defaults.
此脚本是经典 MACD 的进阶版,支持实心/空心动能柱体,零轴背景高亮,参数与配色可自由调整,更直观捕捉趋势与动能变化。
MACD, RSI & Stoch + Divergences
Best results with combination My_EMA_clouds and Market Mood Maker
This script is a comprehensive technical analysis tool that combines several popular indicators and divergence detection features.
The main components of the script include:
* **MACD indicator** with histogram displaying moving averages and their divergence
* **RSI (Relative Strength Index)** for momentum analysis
* **Stochastic Oscillator** for overbought/oversold levels
* **Divergence detection** system identifying both regular and hidden bullish/bearish divergences between price action and oscillators
Key features:
* Customizable settings for each indicator (periods, smoothing parameters)
* Flexible visualization options (lines, arrows, labels)
* Multiple oscillator display modes (RSI, Stochastic, MACD, or Histogram)
* Pivot point detection for accurate divergence identification
* Configurable lookback period for analysis
* Color-coded signals for easy interpretation
* Horizontal levels for overbought/oversold zones
* Interactive settings panel for customization
The script provides traders with a comprehensive toolkit for identifying potential reversal points and confirming trend directions through divergence analysis across multiple timeframes and indicators.
анный скрипт представляет собой комплексный инструмент технического анализа, который объединяет несколько популярных индикаторов и систему обнаружения дивергенций.
Основные компоненты скрипта включают:
Индикатор MACD с гистограммой, отображающей скользящие средние и их расхождения
Индекс относительной силы (RSI) для анализа импульса
Стохастический осциллятор для определения уровней перекупленности/перепроданности
Система обнаружения дивергенций, выявляющая как обычные, так и скрытые бычьи/медвежьи дивергенции между ценовым движением и осцилляторами
REMS Snap Shot OverlayThe REMS Snap Shot indicator is a multi-factor, confluence-based system that combines momentum (RSI, Stochastic RSI), trend (EMA, MACD), and optional filters (volume, MACD histogram, session time) to identify high-probability trade setups. Signals are only triggered when all enabled conditions align, giving the trader a filtered, visually clear entry signal.
This indicator uses an optional 'look-back' feature where in it will signal an entry based on the recency of specified cross events.
To use the indicator, select which technical indicators you wish to filter, the session you wish to apply (default is 9:30am - 4pm EST, based on your chart time settings), and if which cross events you wish to trigger a reset on the cooldown.
The default settings filter the 4 major technical indicators (RSI, EMAs, MACD, Stochastic RSI) but optional filters exist to further fine tune Stochastic Range, MACD momentum and strength, and volume, with optional visual cues for MACD position, Stochastic RSI position, and volume.
EMAs can be drawn on the chart from this indicator with optional shaded background.
This indicator is an alternative to REMS First Strike, which uses a recency filter instead of a cool down.
REMS First Strike OverlayThe REMS First Strike indicator is a multi-factor, confluence-based system that combines momentum (RSI, Stochastic RSI), trend (EMA, MACD), and optional filters (volume, MACD histogram, session time) to identify high-probability trade setups. Signals are only triggered when all enabled conditions align, giving the trader a filtered, visually clear entry signal.
This indicator uses an optional 'cool down' feature where in it will signal an entry only after any of the specified cross events occur.
To use the indicator, select which technical indicators you wish to filter, the session you wish to apply (default is 9:30am - 4pm EST, based on your chart time settings), and if which cross events you wish to trigger a reset on the cooldown.
The default settings filter the 4 major technical indicators (RSI, EMAs, MACD, Stochastic RSI) but optional filters exist to further fine tune Stochastic Range, MACD momentum and strength, and volume, with optional visual cues for MACD position, Stochastic RSI position, and volume.
EMAs can be drawn on the chart from this indicator with optional shaded background.
This indicator is an alternative to REMS Snap Shot, which uses a recency filter instead of a cool down.
VWMA MACD Trend Grinder Buy/Sell SignalsDescription:
This indicator combines a VWMA-based MACD with volume and trend filters to reduce false buy and sell signals.
It is designed to give more reliable entry and exit points in trending markets while avoiding low-volume noise.
Features:
1. VWMA MACD:
- MACD is calculated using Volume-Weighted Moving Averages (VWMA) instead of standard EMAs.
- Histogram shows the difference between MACD and its signal line.
2. Volume Filter:
- Signals are only triggered when current volume exceeds a multiple of its moving average.
- Reduces false signals in low-volume periods.
3. Trend Filter:
- Only triggers buy signals when price is above a long-term VWMA (uptrend).
- Only triggers sell signals when price is below the long-term VWMA (downtrend).
- Helps avoid counter-trend trades.
4. Plots:
- MACD (blue), Signal (orange), Histogram (green/red)
- Trend VWMA (purple)
- Buy and Sell arrows in the indicator pane (green/red)
5. Alerts:
- Configurable alerts for buy and sell signals filtered by volume and trend.
Inputs:
- Fast Length: VWMA period for the fast MACD line (default 12)
- Slow Length: VWMA period for the slow MACD line (default 26)
- Signal Length: EMA period for the MACD signal line (default 9)
- Volume MA Length: Length for volume moving average filter (default 20)
- Volume Threshold Multiplier: Multiplier for volume filter (default 1.2)
- Trend VWMA Length: Period for long-term trend VWMA (default 50)
- Price Source: Close, HL2, HLC3, OHLC4
Usage:
- Use as a confirmation tool along with other analysis techniques.
- Buy when the green triangle appears (MACD crossover, above trend VWMA, sufficient volume).
- Sell when the red triangle appears (MACD crossunder, below trend VWMA, sufficient volume).
- Trend VWMA helps visually confirm the market trend.
VWMA MACD Amanita Buy/Sell Signals VWMA MACD Amanita Buy/Sell Signals – Volume-Weighted Momentum Indicator
A twist on the classic MACD: this indicator uses Volume Weighted Moving Averages (VWMA) instead of EMAs, giving more weight to price moves backed by higher volume.
Features:
VWMA-based MACD line & signal line
Histogram highlights bullish/bearish momentum
Color-coded for easy visualization
Quick Guide:
MACD above Signal → bullish
MACD below Signal → bearish
Rising histogram → strengthening trend
Falling histogram → weakening trend
Perfect for traders who want momentum confirmed by volume.
VWMA MACD AmanitaVWMA MACD (Volume-Weighted MACD)
This indicator modifies the standard MACD by replacing EMAs with VWMAs
(Volume-Weighted Moving Averages).
- Fast VWMA (default 12 bars)
- Slow VWMA (default 26 bars)
- MACD Line = Fast VWMA - Slow VWMA
- Signal Line = EMA of MACD (default 9 bars)
- Histogram = MACD - Signal
Compared to the standard MACD, this version emphasizes price moves that
are backed by higher trading volume, helping to filter out weak signals.
The script also lets you choose the price source (Close, HL2, HLC3, OHLC4).
MACD Lissé Smoothed MACD – Custom Indicator
This indicator is an enhanced version of the classic MACD, designed to balance responsiveness and noise reduction. It uses a short HMA (Hull Moving Average) smoothing to track price movements faster while keeping the signal smooth.
Key Features:
HMA-Smoothed MACD: Tracks trends with less lag than a standard MACD.
Signal Line: A simple EMA applied to the smoothed MACD to identify crossovers and generate buy/sell signals.
Filtered Histogram: Shows the difference between the smoothed MACD and its signal line, with an optional threshold to focus on meaningful movements and reduce visual noise.
Customizable Parameters:
Fast EMA Length and Slow EMA Length to adjust the classic MACD
HMA MACD Smoothing for faster or smoother MACD response
Signal Smoothing to fine-tune the signal line
Histogram Threshold to filter small movements and reduce noise
This indicator is ideal for traders who want a MACD that is responsive but not ultra-smoothed, perfect for spotting trend changes quickly without being overwhelmed by minor price fluctuations.
Colors and Display:
Smoothed MACD: Blue
Signal Line: Orange
Histogram: Green (positive) / Red (negative)
MACD/ATR with Histogram(MACD-VH)MACD cannot be used directly as it is non-stationary and needs to be divided by ATR.
The values such as color, style, and ATR can all be modified.
MACD Bullish Divergence + Multi-TF RSI Buy SignalsNew script to overlap MACD Bullish Divergence and RSI signals to give confluence.
Penguin Trend with RSI on DiffVisualizes volatility regime via the percent spread between the upper Bollinger Band and the upper Keltner Channel, with bar colors from a lightweight trend engine and an RSI computed on the Diff signal. Supports SMA/EMA/WMA/RMA/HMA/VWMA/VWAP and an optional calculation timeframe. Defaults preserve the original look and behavior.
Penguin Trend with RSI on Diff shows expansion vs. compression in price action by comparing two classic volatility envelopes. It computes:
Diff% = (UpperBB − UpperKC) / UpperKC × 100
• Diff > 0: Bollinger Bands are wider than Keltner Channels → expansion / momentum regime
• Diff < 0: BB narrower than KC → compression / squeeze regime
A white “Average Diff” line smooths Diff% (default: SMA(5)) to highlight regime shifts. Bars are colored only when Diff > 0 to focus on expansion phases. A lightweight trend engine defines four states from a fast/slow MA bias and a short “thrust” MA on ohlc4:
• Green: Bullish bias and thrust > fast MA (healthy upside thrust)
• Red: Bearish bias and thrust < fast MA (healthy downside thrust)
• Yellow: Bullish bias but thrust ≤ fast MA (pullback/weakness)
• Blue: Bearish bias but thrust ≥ fast MA (bear rally/short squeeze)
RSI on Diff:
The indicator adds an RSI applied to Diff% to gauge momentum of the expansion/compression signal itself. Choose between Built-in RSI or a manual RMA-based computation, and optionally smooth it. Default OB/OS lines are 70/30.
How it works:
• Bollinger Bands (BB): Basis = selected MA of src (default SMA(20)); Width = StdDev × Mult (default 2.0)
• Keltner Channels (KC): Basis = selected MA of src (default SMA(20)); Width = ATR(kcATR) × Mult (defaults 20 and 2.0)
• Diff%: Safe division guards against division-by-zero
• MA engine: Select SMA / EMA / WMA / RMA / HMA / VWMA / VWAP for BB/KC bases, Average Diff, and trend components (VWAP is session-anchored)
• Calculation timeframe: Compute internals on a chosen TF via request.security() while viewing any chart TF
Inputs (key):
• Calculation timeframe: Empty = chart TF; set e.g., 60/240 to compute on that TF
• BB: Length, StdDev Mult, MA Type
• KC: Basis Length, ATR Length, Multiplier, MA Type
• Average Diff: Length and MA Type
• RSI on Diff: RSI Length, Method (Built-in or Manual RMA), Smoothing Length, OB/OS levels, show/hide
• Trend Engine: Fast/Slow lengths & MA type, Signal (kept for completeness), Thrust MA length & type
• Display/Visibility: Paint bars only when Diff > 0; show zero line; “true Blue” color toggle; show/hide Diff columns and Average Diff
How to use:
1. Regime changes: Watch Diff% or Average Diff crossing 0. Above zero favors momentum/continuation setups; below zero suggests compression and potential breakout conditions.
2. State confirmation: During expansion (Diff > 0), prioritize Green/Red for aligned thrust; treat Yellow/Blue as cautionary/contrarian.
3. RSI on Diff: Use OB/OS and crossovers for timing entries/exits or for confirming/negating expansion strength.
Alerts:
• Diff crosses above/below 0
• Average Diff crosses above/below 0
• RSI(Diff) crosses above OB / below OS
• State changes: GREEN / RED / YELLOW / BLUE
Notes & limitations:
• VWAP is session-anchored and best on intraday data. If not applicable on the selected calculation TF, the script automatically falls back to EMA.
• Defaults (SMA(20) for BB/KC, multipliers 2.0, SMA(5) Average Diff, original trend coloring and bar painting) preserve the original appearance.
• RSI on Diff is plotted in the same pane for a compact workflow; you can hide it or split into a separate indicator if desired.
Release notes:
v6.0 — Upgraded to Pine v6. Added multi-MA options (SMA/EMA/WMA/RMA/HMA/VWMA/VWAP), calculation timeframe, RSI on Diff (Built-in or Manual RMA) with smoothing, safe division guard, optional zero line, and optional true Blue color. Defaults retain the original behavior.
License / disclaimer:
© waranyu.trkm — MIT License. Educational use only; not financial advice.
Penguin TrendMeasures the volatility regime by comparing the upper Bollinger Band to the upper Keltner Channel and colors bars with a lightweight trend state. Supports SMA/EMA/WMA/RMA/HMA/VWMA/VWAP and a selectable calculation timeframe. Default settings preserve the original look and behavior.
Penguin Trend visualizes expansion vs. compression in price action by comparing two classic volatility envelopes. It computes:
Diff% = (UpperBB − UpperKC) / UpperKC × 100
* Diff > 0: Bollinger Bands are wider than Keltner Channels -> expansion / momentum regime.
* Diff < 0: BB narrower than KC -> compression / squeeze regime.
A white “Average Difference” line smooths Diff% (default: SMA(5)) to help spot regime shifts.
Trend coloring (kept from original):
Bars are colored only when Diff > 0 to emphasize expansion phases. A lightweight trend engine defines four states using a fast/slow MA bias and a short “thrust” MA applied to ohlc4:
* Green: Bullish bias and thrust > fast MA (healthy upside thrust).
* Red: Bearish bias and thrust < fast MA (healthy downside thrust).
* Yellow: Bullish bias but thrust ≤ fast MA (pullback/weakness).
* Blue: Bearish bias but thrust ≥ fast MA (bear rally/short squeeze).
Note: By default, Blue renders as Yellow to preserve the original visual style. Enable “Use true BLUE color” if you prefer Aqua for Blue.
How it works (under the hood):
* Bollinger Bands (BB): Basis = selected MA of src (default SMA(20)). Width = StdDev × Mult (default 2.0).
* Keltner Channels (KC): Basis = selected MA of src (default SMA(20)). Width = ATR(kcATR) × Mult (defaults 20 and 2.0).
* Diff%: Safe division guards against division-by-zero.
* MA engine: You can choose SMA / EMA / WMA / RMA / HMA / VWMA / VWAP for BB/KC bases, Diff smoothing, and the trend components (VWAP is session-anchored).
* Calculation timeframe: Set “Calculation timeframe” to compute all internals on a chosen TF via request.security() while viewing any chart TF.
Inputs (key ones):
* Calculation timeframe: Empty = use chart TF; if set (e.g., 60), all internals compute on that TF.
* BB: Length, StdDev Mult, MA Type.
* KC: Basis Length, ATR Length, Multiplier, MA Type.
* Smoothing: Average Length & MA Type for the “Average Difference” line.
* Trend Engine: Fast/Slow lengths & MA type; Signal (kept for completeness); Thrust length & MA type (defaults replicate original behavior).
* Display: Paint bars only when Diff > 0; optional Zero line; optional true Blue color.
How to use:
1. Regime changes: Watch Diff% or Average Diff crossing 0. Above zero favors momentum/continuation setups; below zero suggests compression and potential breakout conditions.
2. State confirmation: Use bar colors to qualify expansion: Green/Red indicate expansion aligned with trend thrust; Yellow/Blue flag weaker/contrarian thrust during expansion.
3. Multi-timeframe analysis: Run calculations on a higher TF (e.g., H1/H4) while trading a lower TF chart to smooth noise.
Alerts:
* Diff crosses above/below 0.
* Average Diff crosses above/below 0.
* State changes: GREEN / RED / YELLOW / BLUE.
Notes & limitations:
* VWAP is session-anchored and best on intraday data. If not applicable on the selected calculation TF, the script automatically falls back to EMA.
* Default parameters (SMA(20) for BB/KC, multipliers 2.0, SMA(5) smoothing, trend logic and bar painting) preserve the original appearance.
Release notes:
v6.0 — Rewritten in Pine v6 with structured inputs and guards. Multi-MA support (SMA/EMA/WMA/RMA/HMA/VWMA/VWAP). Calculation timeframe via request.security() for multi-TF workflows. Safe division; optional zero line; optional true Blue color. Original visuals and behavior preserved by default.
License / disclaimer:
© waranyu.trkm — MIT License. Educational use only; not financial advice.