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

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항