INVITE-ONLY SCRIPT

ATR Gerchik

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:

스냅샷
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.

스냅샷
Panel of available settings

Graphic styles:

스냅샷
Line ATR graph style

스냅샷
Cross line ATR graph style

스냅샷
Step line ATR graph style

스냅샷
Step line diamond ATR graph style

스냅샷
Cross ATR graph style

스냅샷
Columns ATR graph style

스냅샷
Circles ATR graph style

스냅샷
Area ATR graph style

스냅샷
Cross area ATR graph style

Key Features:
스냅샷

- 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

초대 전용 스크립트

이 스크립트에 대한 접근은 작성자가 승인한 사용자로 제한되며, 일반적으로 지불이 필요합니다. 즐겨찾기에 추가할 수 있지만 권한을 요청하고 작성자에게 권한을 받은 후에만 사용할 수 있습니다. 자세한 내용은 lotophagi108에게 문의하거나 아래의 작성자의 지시사항을 따르십시오.

이것은 비공개 초대 전용 스크립트이며 스크립트 관리자에 의해 분석되지 않았음을 유의해 주세요. 이 스크립트가 하우스 룰을 준수하는지는 확인되지 않았습니다. TradingView는 스크립트를 100% 신뢰하고 스크립트의 작동 방식을 완전히 이해하지 않는 한, 스크립트에 비용을 지불하고 사용하는 것을 권장하지 않습니다. 많은 경우, 커뮤니티 스크립트에서 무료로 좋은 오픈 소스 대안을 찾을 수 있습니다.

작성자 지시 사항

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

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

경고: 액세스를 요청하기 전에 읽어 보시기 바랍니다.

면책사항