INVITE-ONLY SCRIPT

ATR Gerchik

Di lotophagi108
Average True Range (ATR) is a technical analysis indicator that measures market volatility. It is a moving average of the true range over a period of time. Originally developed by a market technician J. Welles Wilder Jr. in the 1970s, ATR was utilized to measure the average volatility of an asset over a given time period. Wilder realized that measuring volatility using only closing prices would not yield accurate results, necessitating a more complex system. To calculate the Average True Range, one must first determine the True Range (TR).

ATR calculation procedure:

1. Determine the true maximum - this is the highest of the current maximum and yesterday's closing price of the day.
2. Determine the true minimum - this is the smallest of the current minimum and yesterday's closing price.
3. Determine the true range - this is the distance between the true maximum and minimum.
4. Exclude extremely large candles and extremely small ones from the obtained true ranges.
5. Calculate the average for the selected period based on the remaining range.
6. Calculate the percentage of the current True Range relative to the average ATR value for the previous period.

Description:

If you analyze market movements, you will find that 75-80% of the time, an instrument moves only 1 ATR per day. Understanding this is crucial; for example, if an instrument has already moved 80% of its daily range, it is not advisable to enter a new position. This concept is similar to a car's fuel tank; if the tank is nearly empty, the car won’t go far. Many indicators include anomalous candles in their ATR calculations, which can yield unreliable results and lead to incorrect decisions. This is why many traders prefer to calculate ATR manually.

However, the Gerchik ATR indicator accounts for anomalous candles by filtering out extremely large and small candles. Users can set the coefficient for the upper and lower filtering thresholds. Experiment with these settings to find your criteria for filtering out abnormal candles. Personally, I filter out candles larger than 2x ATR and smaller than 0.5x ATR. Additionally, this indicator displays the consumed “fuel” of the instrument for the entire day and the current percentages, so you don’t have to calculate the distance traveled manually. The indicator also visually displays the boundaries of the average true range on the chart, enabling quick and informed decisions. When building any strategy, relying on the average true range movement is essential.

This extended version of the indicator includes a NATP indicator (Normalized ATR), a variation of the ATR that measures volatility as a percentage of the current price. It helps gauge market volatility levels and assists traders in making informed decisions.

Procedure for calculating NATR (Normalized ATR):

1. Determine the true maximum - the higher of the current high and the previous close.
2. Determine the true minimum - the lower of the current low and the previous close.
3. Determine the true range - the distance between the true maximum and minimum.
4. Filter out extremely large and small values from the obtained true ranges.
5. Calculate the average for n candles based on the remaining ranges.

Additionally in this version:

- Change table position
- Added NATP indicator
- Option to turn off the table description
- Option to turn off some indicators in the table
- Indication of the selected period in the table
- Changing coefficients for filtering abnormal candles
- Display of the number of invalid candles in the selected period
- Inclusion of labels with full ATR, NATR, candle range, and validity information
- Color-coding labels based on validity
- Selection of colors for valid and invalid candles
- Adjustable label size
- ATR graph display on the chart
- Customizable graph style, line thickness, and fill color

Detailed description:

istantanea
Displays colored labels with detailed information. Labels can be color-coded based on validity and selected color. The text color will automatically adjust if a lighter color is chosen.

istantanea
Panel of available settings

Graphic styles:

istantanea
Line ATR graph style

istantanea
Cross line ATR graph style

istantanea
Step line ATR graph style

istantanea
Step line diamond ATR graph style

istantanea
Cross ATR graph style

istantanea
Columns ATR graph style

istantanea
Circles ATR graph style

istantanea
Area ATR graph style

istantanea
Cross area ATR graph style

Key Features:
istantanea

- Anomalous Candle Filtering: Excludes extremely large and small candles for more reliable ATR values. Set filtering thresholds independently as coefficients.
- Consumed Fuel Indicator: Shows the percentage of the ATR consumed, aiding quick assessment of remaining movement potential.
- Daily Timeframe Focus: Designed for daily charts for accurate long-term analysis. The indicator is displayed on the daily timeframe if enabled, hiding it on lower timeframes.
- Visual Indicator Boundaries: Displays indicator boundaries on the chart with customizable styles and settings.

Practical Applications:

ATR helps traders predict potential future price movements, aiding in setting Stop Loss and Take Profit targets. Using ATR for SL/TP placement helps avoid market noise. ATR can also form an exit strategy by placing Trailing Stop Losses.

- Entry and Exit Points: Determine optimal entry and exit points by assessing market volatility and potential price movement.
- Stop-Loss Placement: Calculate stop-loss levels based on ATR to ensure appropriate placement, accounting for current market volatility.
- Trend Confirmation: Use ATR percentage consumption to confirm trend strength and decide on trade entries or exits.

Examples of Use:

- Trend Following: During strong trends, ATR identifies increased volatility periods, signaling potential breakouts or reversals.
- Range Trading: In ranging markets, ATR highlights low volatility periods, indicating consolidation and potential breakout zones.
ATRAverage True Range (ATR)Candlestick analysismarketvolatilityNATRTechnical AnalysistruerangevolatilityindicatorVolatility Stop

Script su invito

L'accesso a questo script è riservato agli utenti autorizzati dall'autore, solitamente dietro pagamento di una commissione. Puoi aggiungerlo ai preferiti, ma sarai in grado di utilizzarlo solo una volta ricevuto il via libera da parte dell'autore. Per ulteriori informazioni, contatta lotophagi108 o segui le istruzioni dell'autore riportate di seguito.

Si prega di notare che questo è uno script privato, ad invito, che non è stato analizzato dai moderatori degli script. La sua conformità al Regolamento non è stata ancora accertata. TradingView non consiglia di pagare uno script e di utilizzarlo a meno che non ci si fidi al 100% del suo autore e non si comprenda il suo funzionamento. In molti casi, è possibile trovare gratuitamente una buona alternativa open-source nei nostri Community Script.

Istruzioni dell'autore

If you want access then please send me message with your request. Thank you!

Vuoi usare questo script sui tuoi grafici?

Attenzione: leggi prima di richiedere l'accesso.

Declinazione di responsabilità