OPEN-SOURCE SCRIPT

Distance between EMA 50-100/100-150

This script calculates and plots the percentage difference between the 50-period, 100-period, and 150-period Exponential Moving Averages (EMA) on a TradingView chart. The aim is to provide a clear visual representation of the market's momentum by analyzing the distance between key EMAs over time.

Key features of this script:


1. EMA Calculation: The script computes the EMA values for 50, 100, and 150 periods and calculates the percentage difference between EMA 50 and 100, and between EMA 100 and 150.
2. Custom Threshold: Users can adjust a threshold percentage to highlight significant divergences between the EMAs. A default threshold is set to 0.1%.
3. Visual Alerts: When the percentage difference exceeds the threshold, a visual marker appears on the chart:
  • Green Circles for bullish momentum (positive divergence),
  • Red Circles for bearish momentum (negative divergence),
  • Diamonds to indicate the first occurrence of new bullish or bearish signals, allowing users to catch fresh market trends.

4. Dynamic Plotting: The script plots two lines representing the percentage difference for each EMA pair, offering a quick and intuitive way to monitor trends.

Ideal for traders looking to gauge market direction using the relationship between multiple EMAs, this script simplifies analysis by focusing on key moving average interactions.
distancedistance_between_moving_averageEMASOscillatorsTrend AnalysisVolatility

Skrip open-source

Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menerbitkannya sebagai sumber terbuka, sehingga para trader dapat memahami dan memverifikasinya. Hormat untuk penulisnya! Anda dapat menggunakannya secara gratis, namun penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk digunakan pada chart

Inggin menggunakan skrip ini pada chart?

Pernyataan Penyangkalan