OPEN-SOURCE SCRIPT

Proximity indicator

**What This Script Does**
This script is a unified, multi-dimensional tool designed for traders to analyze critical price dynamics and trends. It calculates and displays the following key metrics:
1. **Proximity to 52-Week Price**: Highlights the percentage distance of the current price from long-term support and resistance levels.
2. **Deviation from Key Moving Averages**: Measures how far the current price is from significant moving averages to provide insight into short-, medium-, and long-term trends.
3. **Average Daily Range Percentage (ADR%)**: Tracks price volatility over a 14-day period, helping traders gauge market activity and risk.
4. **3-Month Low Rebound Percentage**: Calculates the percentage rebound from the lowest price of the past three months, giving mid-term trend perspective.

This combination provides a holistic view of a stock’s position in the market and its current trend strength, making it easier to assess momentum, reversals, and volatility at a glance.

#### **How It Works**
1. **52-Week Proximity**:
- The script calculates the highest and lowest daily prices over the past 252 trading days (approx. 1 year) and compares them to the current closing price.
- It expresses the distance as a percentage, with proximity to the high indicating strength and proximity to the low suggesting weakness or oversold conditions.

2. **Moving Average Deviation**:
- You can select between **Simple Moving Average (SMA)** or **Exponential Moving Average (EMA)** for the calculations.

3. **ADR% (Volatility)**:
- It calculates the average daily price range (high - low) over the last 14 trading days and expresses it as a percentage of the current closing price.
- This metric helps traders understand current market volatility.

4. **3-Month Low Rebound**:
- It identifies the lowest price over the last 66 trading days (approx. 3 months) and calculates how much the price has rebounded from this level, expressed as a percentage.

.####**Interpretation**:
- Combine metrics for richer insights:
- A small deviation from the 10-day MA with high ADR% might indicate short-term momentum.
- A price near the 52-week high with a wide gap from the 200-day MA may signal a strong bullish trend but could also be overextended.

####**Purpose-Driven Consolidation**:
- Unlike individual indicators, this script integrates **trend**, **momentum**, and **volatility** measures in a single, cohesive framework. It’s specifically designed to complement how these elements interact in real-world trading scenarios.


Trend Analysis

오픈 소스 스크립트

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

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


또한 다음에서도:

면책사항