ATR Trailing Stop Strategy by ceyhun
Sep 11, 2020

The ATR Trailing Stop Strategy by ceyhun indicator provides a comprehensive trend-following framework that utilizes dual Average True Range (ATR) calculations to identify dynamic support and resistance levels for trade entries and exits.
Usage
The Usage section focuses on interpreting the relationship between the Fast and Slow ATR trailing stops to determine market bias and potential execution points.
- Trend Identification: A bullish trend is identified when the Fast Trail is above the Slow Trail, typically resulting in green or blue bar coloring. Conversely, a bearish trend is identified when the Slow Trail is above the Fast Trail, resulting in red or yellow bar coloring.
- Bar Coloring:
- Green: Fast Trail > Slow Trail, Price > Slow Trail, and Low > Slow Trail. This indicates a strong bullish trend.
- Blue: Fast Trail > Slow Trail, Price > Slow Trail, but Low < Slow Trail. This indicates a bullish trend with a potential temporary pullback or test of support.
- Red: Slow Trail > Fast Trail, Price < Slow Trail, and High < Slow Trail. This indicates a strong bearish trend.
- Yellow: Slow Trail > Fast Trail, Price < Slow Trail, but High > Slow Trail. This indicates a bearish trend with a potential temporary bounce or test of resistance.
- Strategy Execution: In its strategy form, the script enters a "Buy" position when the Fast Trail crosses above the Slow Trail and enters a "Sell" (short) position when the Fast Trail crosses below the Slow Trail.
Details
The script is based on the CDC ATR Trailing Stop concept. It calculates two distinct trailing stop lines using the Average True Range. The calculation logic ensures that the stop level only moves in the direction of the trend unless a crossover occurs.
The Fast Trail uses a shorter period and smaller multiplier to remain sensitive to immediate price action, while the Slow Trail uses a longer period and larger multiplier to serve as the primary trend filter and baseline for the strategy signals. The intersection of these two lines acts as the trigger for trend reversals.
Settings
- Source: Determines the price data used for the ATR trailing stop calculations (default is Close).
- Fast ATR period: The lookback period used for the calculation of the Fast ATR component.
- Fast ATR multiplier: The factor by which the Fast ATR is multiplied to set the distance of the trailing stop from price.
- Slow ATR period: The lookback period used for the calculation of the Slow ATR component.
- Slow ATR multiplier: The factor by which the Slow ATR is multiplied to set the distance of the trailing stop from price.
- Paint color on chart: Toggles the custom bar coloring logic on the price chart.
FAQ
How do I use the ATR Trailing Stop Strategy by ceyhun?
You can use it to identify trend reversals by watching for crossovers between the fast and slow trailing stop lines, while using the bar colors to gauge the strength of the current trend.
What do the different bar colors mean?
Green and Red represent strong bullish and bearish trends respectively, while Blue and Yellow represent trends where price is testing the trailing stop levels.
How can I access this tool?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
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.

