[TL5] ALMA 12-20 Trend with HA barcolorThis tool is designed for traders who prefer minimal clutter, strong visual trend confirmation, and structure awareness.
🔹 Core Concept
This indicator blends:
ALMA 12 (Fast) → Early momentum detection
ALMA 20 (Slow) → Trend bias confirmation
Heikin Ashi structure analysis → Strength/weakness visualization
Dynamic background bias → Immediate directional context
The result is a smooth, low-lag trend framework that works especially well for:
Intraday trading
Scalping
Trend continuation setups
Pullback entries
🔸 How It Works
1️⃣ Dual ALMA Trend Engine
The script uses the Arnaud Legoux Moving Average (ALMA), known for:
Reduced lag
Better smoothness than traditional EMA/SMA
Strong trend filtering
Trend Logic:
Fast ALMA rising → Short-term bullish pressure
Fast ALMA falling → Short-term bearish pressure
Fast ALMA above Slow ALMA → Bullish bias
Fast ALMA below Slow ALMA → Bearish bias
Both lines are plotted with layered dotted/dashed styling for enhanced clarity.
2️⃣ Background Trend Bias
🟢 Light Green Background → Fast ALMA trending up
🔴 Light Red Background → Fast ALMA trending down
This provides instant directional awareness without adding noise.
3️⃣ Heikin Ashi Structure Bar Coloring
Heikin Ashi data is internally calculated and used strictly for structure interpretation.
Bar colors:
🔵 Blue → Strong bullish candle (no lower wick)
🔴 Red → Strong bearish candle (no upper wick)
🟢 Lime → Bullish HA candle
🟠 Orange → Bearish HA candle
⚪ White → Neutral
This helps identify:
Strong momentum candles
Trend continuation
Early exhaustion signals
⚙️ Inputs
ALMA Fast Length (default: 12)
ALMA Slow Length (default: 20)
ALMA Offset (default: 0.85)
ALMA Sigma (default: 8)
These parameters allow fine-tuning between responsiveness and smoothness.
🎯 Ideal Use Cases
Trend continuation scalping
Pullback entries within a dominant bias
Structure confirmation on lower timeframes
Multi-timeframe alignment systems
Works well across:
Indices
Forex
Crypto
Commodities
💡 Trading Tips
Trade in the direction of background bias.
Look for strong HA candles (blue/red) during alignment of Fast and Slow ALMA.
Use higher timeframe confirmation for stronger probability setups.
Avoid ranging conditions when ALMAs are flat and overlapping.
⚠️ Disclaimer
This script is for educational purposes only.
It does not constitute financial advice. Always manage risk properly.
Indicador Pine Script®






















