INVITE-ONLY SCRIPT

ATR Gerchik

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:

syot kilat
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.

syot kilat
Panel of available settings

Graphic styles:

syot kilat
Line ATR graph style

syot kilat
Cross line ATR graph style

syot kilat
Step line ATR graph style

syot kilat
Step line diamond ATR graph style

syot kilat
Cross ATR graph style

syot kilat
Columns ATR graph style

syot kilat
Circles ATR graph style

syot kilat
Area ATR graph style

syot kilat
Cross area ATR graph style

Key Features:
syot kilat

- 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

Skrip jemputan sahaja

Akses ke skrip ini adalah terhad kepada pengguna yang diberikan akses oleh penulis dan kebiasaannya memerlukan pembayaran. Anda boleh menambahkannya kepada senarai kegemaran anda, tetapi anda hanya dapat menggunakannya setelah meminta izin dan mendapatkannya dari penulis. Sila hubungi lotophagi108 untuk lebih maklumat atau rujuk arahan penulis seperti di bawah.

Sila ambil maklum bahawa ini adalah skrip peribadi, jemputan sahaja yang tidak dianalisa oleh moderator skrip. Pematuhannya kepada Peraturan Dalaman adalah tidak dapat ditentukan. TradingView tidak mencadangkan anda membayar untuk skrip dan menggunakannya kecuali anda percaya 100% kepada penulisnya dan memahami bagaimana skrip itu berfungsi. Dalam banyak kes, anda boleh mencari alternatif sumber terbuka secara percuma dalam Skrip Komuniti kami.

Arahan penulis

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

Ingin menggunakan skrip ini pada carta?

Amaran: sila baca sebelum memohon akses.

Penafian