Alma Standard Deviation Super Trend
- Indicadores
- Versão: 2.0
- Ativações: 5
ALMA SD SuperTrend is an advanced, high-precision trend-following indicator ported from a state-of-the-art Pine Script v6 strategy. By blending the exceptional smoothness of the Arnaud Legoux Moving Average (ALMA) with volatility-based Standard Deviation (SD) bands, this indicator filters out market noise while reacting swiftly to genuine trend shifts.
Whether you are a discretionary trader looking for clean visual cues or an algorithmic developer building automated Expert Advisors (EAs), ALMA SD SuperTrend provides robust, reliable trend signals.
Key Features
-
Advanced Baseline (ALMA): Utilizes the Arnaud Legoux Moving Average as the central calculation base, offering superior smoothness and significantly less lag compared to traditional Simple (SMA) or Exponential (EMA) moving averages.
-
Dynamic Volatility Bands: Incorporates sample Standard Deviation (ta.stdev -equivalent) scaled by a custom factor to construct adaptive upper and lower boundaries.
-
Clear Color-Coded Visuals: Instantly identifies market bias with distinct color plots (Green for Bullish / ST Up, Purple for Bearish / ST Down).
-
EA & Robot Friendly: Fully accessible internal buffers (BufSignal and directional data) allow you to easily integrate the indicator into your custom Expert Advisors or MQL5 Cloud Network scripts.
-
Optimized Performance: Clean, multi-pass MQL5 implementation with proper warmup handling and buffer mapping for seamless chart rendering.
Input Parameters
-
Factor (InpFactor = 1.8) — Multiplier applied to the Standard Deviation to determine the distance of the SuperTrend bands from the ALMA baseline.
-
SD Length (InpSDLen = 33) — Period length used for calculating the sample Standard Deviation.
-
Alma Length (InpAlmaLen = 35) — Period length for the Arnaud Legoux Moving Average baseline.
-
Alma Sigma (InpAlmaSigma = 4.0) — Sigma parameter controlling the curve distribution and smoothness of the ALMA.
-
Alma Offset (InpAlmaOffset = 0.85) — Offset parameter determining the weighting center of the ALMA window (closer to 1 gives more weight to recent prices).
Buffer Architecture & EA Integration
For advanced users and MQL5 developers, the indicator exposes 7 buffers, making it exceptionally powerful for automated trading systems:
-
Buffer 0 & 1: ST Up data and color index (Bullish trend line)
-
Buffer 2 & 3: ST Down data and color index (Bearish trend line)
-
Buffer 4 ( BufALMA ): Internal ALMA calculation values
-
Buffer 5 ( BufDir ): Trend direction indicator (-1 for Bullish, +1 for Bearish)
-
Buffer 6 ( BufSignal ): Latched signal state matching transition triggers (ideal for custom alerts and EA trade entries via buffer index 6 ).
