Unsupported const if expression reassignment qualifier
Category: trend
Calculates an Exponential Moving Average (EMA) using a length that is dynamically reassigned based on the bar index within an if-expression.
Formula
EMA(price, bar\_index) \text{ (due to reassignment)}
Inputs
- length (default: 2)
See signal primitives, usage in published strategies and more on WOBR StrategyVerse.