EMA + Supertrend + OBV [StrixEDGE]Trend Engine EMA + Supertrend + OBV is a multi-timeframe trend scoring system that combines EMA structure, Supertrend direction, and OBV volume flow into a single overlay with a detailed heatmap dashboard. It evaluates four timeframes simultaneously and presents the results in a color-coded, section-organized table directly on the chart.
The indicator answers three questions per timeframe: Is the structure bullish or bearish? Is the directional signal confirmed? Is volume supporting the move? It then aggregates these into a confluence score and cross-timeframe alignment reading.
Components
EMA Stack (21 / 50 / 200)
Three exponential moving averages forming a structural hierarchy. The scoring logic evaluates both the EMA order and price position:
| Condition | Score | Label |
|---|---|---|
| 21 > 50 > 200, price above all | +2 | FULL BULL ▲▲ |
| 21 > 50 > 200 | +1 | BULLISH ▲ |
| Price above 200 but EMAs not ordered | +1 | BULLISH ▲ |
| No clear alignment | 0 | MIXED ◆ |
| Price below 200 but EMAs not ordered | −1 | BEARISH ▼ |
| 21 < 50 < 200 | −1 | BEARISH ▼ |
| 21 < 50 < 200, price below all | −2 | FULL BEAR ▼▼ |
The 200 EMA is separately tracked as "Price/200" in the heatmap, since institutional participants widely use this level as the dividing line between bull and bear regimes.
On the chart, all three EMAs turn green when bull-stacked and red when bear-stacked. A ribbon fill between the fast and mid EMA visualizes alignment strength. Golden Cross (50 above 200) and Death Cross events are marked with "GC" and "DC" labels.
Supertrend (10, 3)
An ATR-based trailing stop that produces a binary directional signal. When the Supertrend line is below price, it scores +1 (BULLISH). When above, it scores −1 (BEARISH). The line also serves as a dynamic stop-loss level. Triangle markers appear at each flip point.
OBV with 20-period SMA
On Balance Volume is calculated cumulatively — adding volume on up-closes, subtracting on down-closes. The heatmap evaluates two dimensions independently: OBV position relative to its SMA (above or below) and the SMA slope direction (rising, falling, or flat). This produces six distinct flow states:
| OBV vs MA | Slope | Label | Meaning |
|---|---|---|---|
| Above | Rising | ACCUM ▲ | Active accumulation — institutional buying |
| Above | Flat | ABOVE MA | Holding above average — neutral positive |
| Above | Falling | WEAKENING | Position eroding despite being above MA |
| Below | Rising | BUILDING | Recovery underway — improving flow |
| Below | Flat | BELOW MA | Holding below average — neutral negative |
| Below | Falling | DISTRIB ▼ | Active distribution — institutional selling |
OBV scores +1 when above MA and rising, −1 when below MA and falling, and 0 for all intermediate states.
The MTF Heatmap
The heatmap table is organized into four color-coded sections:
STRUCTURE (blue header) — EMA Stack alignment and Price vs EMA 200 for each timeframe. Shows whether the market's structural foundation is bullish, bearish, or mixed.
DIRECTION (purple header) — Supertrend signal per timeframe. A clean binary reading of whether the trailing stop is bullish or bearish.
VOLUME FLOW (teal header) — OBV flow state per timeframe. Shows whether volume is confirming the price trend, diverging from it, or transitioning.
CONFLUENCE (gold header) — The aggregated output:
- Score: total from −4 to +4 per timeframe
- Strength: visual dot bar (● ● ● ● ○) representing signal intensity
- Regime: classification label (STRONG BULL BULLISH NEUTRAL BEARISH STRONG BEAR )
At the bottom, an MTF Alignment summary shows how many timeframes agree (e.g., "▲ 3/4 BULLISH — Strong alignment www.tradingview.com or "◆ SPLIT 2/2 — No clear bias www.tradingview.com).
Every cell uses heatmap coloring — bright green for strong bullish, through gray for neutral, to deep red for strong bearish — providing an instant visual scan of market conditions.
| Component | Max bullish | Neutral | Max bearish |
|---|---|---|---|
| EMA Stack | +2 | 0 | −2 |
| Supertrend | +1 | — | −1 |
| OBV Flow | +1 | 0 | −1 |
| **Total** | +4 | 0 | −4 |
Classification per timeframe:
- +3 to +4 → STRONG BULL
- +1 to +2 → BULLISH
- 0 → NEUTRAL
- −1 to −2 → BEARISH
- −3 to −4 → STRONG BEAR
Reading the heatmap
The heatmap's primary value is showing cross-timeframe agreement at a glance:
All columns green — Full alignment across timeframes. This is the highest-probability environment for trend-following trades.
Higher TFs green, lower TFs red — A pullback within a larger uptrend. The structural trend is intact; the short-term weakness may represent an entry opportunity.
Lower TFs green, higher TFs red — A rally within a larger downtrend. Unless the higher timeframes are shifting, this is likely a counter-trend bounce.
Mixed colors — No clear directional edge. Reduce position size or wait for alignment to develop.
Section-level reading — If STRUCTURE and DIRECTION are green but VOLUME FLOW is red, the trend lacks volume confirmation and may be fragile. If VOLUME shows ACCUM but DIRECTION is bearish, smart money may be accumulating before a reversal.
Alerts
Seven alert conditions are available:
- Strong bullish trend detected (current TF)
- Strong bearish trend detected (current TF)
- Golden Cross — EMA 50 crosses above EMA 200
- Death Cross — EMA 50 crosses below EMA 200
- Supertrend flip bullish
- Supertrend flip bearish
- Any trend classification change
Disclaimer: This indicator is a technical analysis tool for educational and informational purposes. It does not constitute financial advice or a recommendation to buy or sell any security. No trading indicator can predict future price movements. Past performance is not indicative of future results. Always conduct your own analysis and consider your risk tolerance before making trading decisions.
Chỉ báo






















