ATR Stop Loss Finder
Jun 27, 2021

The ATR Stop Loss Finder indicator calculates volatility-based exit levels using the Average True Range (ATR) to help traders position stop losses outside of normal market noise. It provides dynamic price levels that adjust to market volatility, reducing the likelihood of being prematurely stopped out during periods of high fluctuation.
Usage
The Usage section describes how the script can be used, examples should be provided in this section. The indicator plots two primary lines on the chart: a High line (typically red) for short positions and a Low line (typically teal/green) for long positions. Traders use these levels to define their maximum risk per trade based on current volatility.
- Long Positions: When entering a long trade, the "Low" line serves as a suggested stop-loss level. This level is calculated by subtracting a multiple of the ATR from the chosen low source.
- Short Positions: When entering a short trade, the "High" line serves as a suggested stop-loss level. This level is calculated by adding a multiple of the ATR to the chosen high source.
- Volatility Adjustments: If the market becomes more volatile, the ATR expands, moving the stop-loss levels further from the current price. Conversely, in low-volatility environments, the stops tighten automatically.
The indicator also features a dashboard table at the bottom of the screen, displaying the current ATR value and the specific price levels for both the High and Low stop losses for quick reference.
Details
The script functions by first calculating the True Range (TR) of the asset, which considers the current high/low range and any gaps from the previous close. This value is then smoothed using a user-defined moving average (RMA, SMA, EMA, or WMA) over a specific lookback period (default is 14).
The final stop-loss levels are determined by the following logic:
- ATR Multiplier: The smoothed ATR value is multiplied by a user-defined coefficient (default is 1.5).
- Short Stop (High):
High Source + (ATR * Multiplier) - Long Stop (Low):
Low Source - (ATR * Multiplier)
By using the High/Low price sources as the anchor points rather than the Close price, the indicator ensures that the stop loss accounts for the extreme reaches of recent price action.
Settings
- Length: Sets the lookback period used to calculate the Average True Range.
- Smoothing: Determines the moving average type used to smooth the ATR values (RMA, SMA, EMA, or WMA).
- Multiplier: Adjusts the distance of the stop loss from the price source. A higher multiplier (e.g., 2.0) creates a more conservative stop, while a lower multiplier (e.g., 1.0) creates a tighter stop.
- High Source: Defines the price point used to calculate the short stop loss (default is "High").
- Low Source: Defines the price point used to calculate the long stop loss (default is "Low").
- Show Price Lines: Toggles the horizontal price tracking lines on the right axis.
- Style Settings: Various color inputs allow customization of the ATR text, High/Low table text, and the plotted lines on the chart.
FAQ
How do I adjust the sensitivity of the stop loss levels? You can adjust the "Multiplier" setting. Increasing the multiplier will move the stop loss further away from the price to accommodate higher volatility, while decreasing it will bring the stop loss closer for tighter risk management.
What smoothing method should I use? The default RMA (Running Moving Average) is standard for ATR calculations and provides a balanced response to price changes. EMA or WMA can be used if you want the indicator to react more quickly to recent changes in volatility.
How can I access the ATR Stop Loss Finder? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Unlock Unlimited Access to the LuxAlgo Library
Upgrade your plan to get all indicators, strategies, charts, and full access to Quant, our AI agent.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

