stelaraX - MA Trend StrengthstelaraX โ MA Trend Strength
stelaraX โ MA Trend Strength is a multiโmoving average trend scoring indicator that quantifies directional bias and structural alignment across short-, mid-, and long-term averages. It converts classic MA stacking logic into a normalized strength score from โ6 to +6.
Part of the stelaraX ecosystem, focused on structured, AI-ready technical analysis.
stelarax.com
Core Logic
This indicator evaluates trend strength using six moving averages:
โข EMA 10
โข EMA 20
โข EMA 50
โข SMA 100
โข SMA 150
โข SMA 200
Two independent components are calculated:
1. Trend Score (Position-Based Strength)
For each MA, the script checks whether price is above or below it.
Each condition contributes +1 (above) or โ1 (below).
Score range:
+6 โ price above all MAs (strong bullish dominance)
0 โ mixed structure
โ6 โ price below all MAs (strong bearish dominance)
This transforms MA positioning into a clear numeric strength scale.
2. Perfect Alignment Detection
The script checks if the MAs are stacked in correct structural order:
Bullish alignment:
EMA10 > EMA20 > EMA50 > SMA100 > SMA150 > SMA200
Bearish alignment:
EMA10 < EMA20 < EMA50 < SMA100 < SMA150 < SMA200
When full alignment occurs, background highlighting is triggered and alerts fire.
Visualization
โข Histogram column showing trend score (โ6 to +6)
โข Dynamic color gradient from strong red (โ6) to strong green (+6)
โข Reference lines at +6, โ6, and 0
โข Background highlight when perfect MA alignment occurs
โข Alert triggers for first occurrence of full bullish or bearish alignment
Interpretation Guide
+6 โ Maximum bullish dominance (trend continuation environment)
+4 to +5 โ Strong bullish bias
+2 to +3 โ Moderate bullish bias
0 โ Transition / compression
โ2 to โ3 โ Moderate bearish bias
โ4 to โ5 โ Strong bearish bias
โ6 โ Maximum bearish dominance
Perfect alignment indicates structural trend maturity and often appears during sustained directional moves.
Best Use Cases
โข Higher timeframe trend filter for scalping systems
โข Confirmation layer for breakout strategies
โข Bias filter for liquidity sweep entries
โข EA integration as numeric trend strength variable
โข Portfolio-level directional filter
Especially powerful when combined with:
โข Supertrend
โข VWAP Confluence
โข Market Structure
โข Liquidity Zones
Practical Insight
The score reacts faster than full alignment.
Alignment confirms structure; score measures dominance.
Use score expansion (+2 โ +4 โ +6) as trend acceleration signal.
Use score contraction (+6 โ +2 โ 0) as early warning of weakening trend.
Disclaimer
This indicator is provided for educational and analytical purposes only. It does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
Pine Scriptยฎ Indikator






















