OPEN-SOURCE SCRIPT

Dual EMA with Distance Indication

Dual EMA with Distance

This indicator plots two Exponential Moving Averages (EMAs) of your choice directly on the chart and calculates the absolute distance between them. Whether you’re tracking trends or identifying crossover opportunities, this tool gives you added insight into the relationship between the selected EMAs.

Features:
  • Customizable EMAs: Adjust the length and line width for both EMAs to fit your strategy.
  • Color & Style Options: Personalize the colors and transparency of each EMA line to match your chart theme.
  • Distance Display: Enable an optional distance box that dynamically shows the absolute difference between the two EMAs. You can position this box in any corner of the chart and choose your preferred text size, color, and precision (decimal places).
  • Clean Visualization: The indicator ensures clarity with adjustable transparency and a sleek box design for the distance.

Use this to quickly gauge the strength of a trend or identify potential consolidation when the EMAs are close together. It’s versatile, easy to customize, and a handy addition to any trader’s toolkit.

Have ideas for improving this indicator or creating new ones?
Feel free to DM me DerLucas432 with suggestions or custom indicator requests!
educationalExponential Moving Average (EMA)statistics

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