OPEN-SOURCE SCRIPT

ATR % Line from Day Low

521
How can you make sure that you're not buying a stock that is too extended?

By limiting your buys to within a certain percentage of either the low-of-the-day (LoD) if you're going long, or to the high-of-the-day (HoD) if you're shorting a stock. This script will help you do just that.

Limiting stock purchases to within a certain percentage of the Average True Range (ATR) from the day's low or high is a risk management technique that offers several key benefits:

Risk Control and Position Sizing
By using ATR as a boundary, you're essentially creating a volatility-adjusted buffer. Since ATR measures recent price volatility, this approach prevents you from buying into stocks that have already moved significantly beyond their normal trading range. This helps avoid entering positions when the stock might be overextended and due for a pullback.

Improved Entry Timing
This strategy encourages patience and discipline. Rather than chasing a stock that's already run up substantially from its low, you wait for better entry points. For example, if you set a limit of 50% of ATR from the day's low, you're only buying when the stock hasn't moved more than half its typical daily range from the bottom.

Volatility Awareness
ATR naturally adjusts for each stock's individual volatility characteristics. A high-volatility stock might have an ATR of $2, while a low-volatility stock might have an ATR of $0.50. This approach scales your entry criteria appropriately for each security rather than using arbitrary dollar amounts.

Reduced Emotional Trading
Having a systematic rule removes the temptation to chase momentum or buy at poor technical levels. It forces you to wait for the stock to come back to more reasonable levels relative to its recent trading behavior.

Better Risk-Reward Ratios
By entering closer to the day's low (within your ATR percentage), you're typically getting a better risk-reward setup. Your stop loss (often placed below the day's low) will be tighter, while your potential upside remains intact.
This approach works particularly well for swing traders and those looking to enter positions on pullbacks or during consolidation periods rather than breakout scenarios.

To save valuable real estate on your chart, there's also an option that can give you a compact version of this indicator which will show only the "Current Day's Low/High" and "Target Price". "Target Price" being the price at which your max buy limit is based on the % ATR you choose in settings.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.