Type/to search

Dual ATR Trailing Stop Strategy

Common strategy
Created: 2024-01-31 17:10:32
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

The Dual ATR Trailing Stop strategy is a short-term trading strategy based on the Average True Range (ATR) indicator. The strategy sets two stop loss lines, fast ATR line and slow ATR line, at the same time, and determines entry and exit based on the crossover of the two lines. The strategy is simple, responsive, and suitable for high volatility markets.

Strategy Principle

The core of this strategy is using two ATR stop loss lines. One is the fast ATR line with short period and small multiplier for fast reaction. The other is the slow ATR line with longer period and bigger multiplier for filtration. When fast ATR line crosses above slow ATR line, it generates buy signal. When fast ATR line crosses below slow ATR line, it generates sell signal. So the strategy uses the crossover of two ATR lines to determine entry and exit, which can effectively control the stop loss.

The specific logic is: calculate fast ATR line and slow ATR line. When price is above slow line, use fast line to trail stop loss. Otherwise, use slow line to trail stop loss. The color of Kline represents current stop loss line. Green and blue means using fast line. Red and yellow means using slow line. Exit when market price touches the stop loss lines.

Advantage Analysis

The advantages of this strategy are:

  1. Simple and clear logic, easy to understand and implement.
  2. Fast response to market change, suitable for high volatility market.
  3. Dual ATR stop loss controls risk effectively.
  4. ATR indicator is parametric for adjusting stop loss range.
  5. Visual Kline color indicates stop loss situation clearly.

Risk Analysis

There are also some risks:

  1. Prone to over-trading.
  2. ATR has poor curve fitting, may amplify losses.
  3. Cannot effectively filter sideways and trending markets.

We can reduce risks by optimizing ATR period, adjusting ATR multiplier, combining other indicators for filtration etc.

Optimization Direction

The optimization directions are:

  1. Optimize ATR parameters for better stop loss range.
  2. Add filter indicators to avoid invalid trades, like MA.
  3. Add open conditions to avoid mistrades. For example, add volume indicators.
  4. Add exits for holding period to avoid over-trading.

Conclusion

The Dual ATR Trailing Stop Strategy is easy to understand and implement, especially suitable for high volatility scenarios, and can effectively control risks. There is also large room for optimization. It is a recommended short-term strategy worth trying.

Source
Pine
/*backtest
start: 2023-12-01 00:00:00
end: 2023-12-31 23:59:59
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © ceyhun

//@version=4
Strategy parameters
Strategy parameters
Source
Fast ATR period
Fast ATR multiplier
Slow ATR perod
Slow ATR multiplier
Paint color on chart
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)