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

Skrypt open-source

W prawdziwym duchu TradingView autor tego skryptu opublikował go jako open source, aby inwestorzy mogli go zrozumieć i zweryfikować. Pozdrowienia dla autora! Możesz go używać bezpłatnie, ale ponowne użycie tego kodu w publikacji podlega Zasadom Regulaminu. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Chcesz użyć tego skryptu na wykresie?


Również na:

Wyłączenie odpowiedzialności