OPEN-SOURCE SCRIPT

ka66: Alpha-Configurable EMA

Atualizado
Allows directly modifying the Alpha/Smoothing Factor parameter of an EMA. This can allow for very close fits to price movement, instead of the more standard coarse-grained approach of adjusting smoothing via the look-back period.

Furthermore, we allow smoothing this EMA further by passing the original EMA through the EMA function again, and the output of this, yet again, to as many smoothing iterations are desired. For efficiency and practicality, limited to 10 iterations. This is inspired by indicators such as the DEMA.

Finally, we allow producing bands, with a configurable multiplier, around the final EMA. Useful for dynamic S/R levels, e.g. to use as trailing stop zones.
Notas de Lançamento
Bug fix: was always smoothing at least once, even though iterations was set to zero. Now using much more explicit code.
Notas de Lançamento
Okay, this time for sure, fixed incorrect smoothing count!
Notas de Lançamento
Better step input in UI (smaller increments). And move over calculation logic to reusable library.
Bands and ChannelsTrend AnalysisVolatility Stop

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal