Type/to search

Combination Strategy of Dual Moving Average Reversal and ATR Trailing Stop

Common strategy
Created: 2024-01-26 11:26:40
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

The combination strategy of dual moving average reversal and ATR trailing stop is a very practical quantitative trading strategy. The strategy first uses the death cross and golden cross formed by the dual moving averages to determine market trends and reversal points. At the same time, the strategy also combines the average true range to set trail stops to ensure profit while controlling risks.

Strategy Principle

Dual Moving Average Reversal Strategy

The dual moving average reversal strategy uses the crossover of fast and slow lines to determine market trends. When the fast line crosses below the slow line from top to bottom, it forms a death cross, indicating the market trend is changing from rising to falling. When the fast line crosses above the slow line from bottom to top, it forms a golden cross, indicating the market trend is changing from falling to rising. The strategy goes short on death cross and goes long on golden cross.

Specifically, the strategy uses the 9-day STOCH fast line as the fast line and 3-day EMA as the slow line. When close is lower than previous close and fast line crosses above 50 to cross above slow line, it clears position to go short. When close is higher than previous close and fast line crosses below 50 to cross below slow line, it clears position to go long.

ATR Trailing Stop Strategy

The ATR trailing stop strategy uses the average true range to set stop loss points. The ATR indicator can effectively reflect the short-term volatility of the market. The strategy sets trail stop based on the value of ATR to exit when price trend reverses.

Specifically, the strategy uses 5-day ATR and sets stop loss point at close minus 3.5 times ATR. When price hits the stop loss point, it closes position for stop loss.

Advantage Analysis

The combination strategy of dual moving average reversal and ATR trailing stop combines the advantage of moving average strategy in determining trends and reversals and the advantage of ATR trail stop strategy in controlling risks, making it a very practical strategy.

Specifically, the strategy has the following advantages:

  1. Use the death cross and golden cross formed by dual moving averages to determine market trend reversal points and accurately identify reversal signals.

  2. Combine STOCH indicator to confirm reversal signals and avoid false signals.

  3. ATR trailing stop flexibly sets stop loss points based on market volatility to maximize profit locking.

  4. The strategy integrates multiple indicators and technical analysis methods to make the strategy more robust.

  5. The strategy idea is clear and easy to understand, parameters are flexible for adjustment, and it is easy to operate in live trading.

Risk Analysis

Although the strategy has many advantages, there are still some risks to note:

  1. The signals generated by dual moving averages may lag and unable to accurately buy and sell at reversal points. Periods can be moderately shortened or combined with other indicators for optimization.

  2. ATR indicator is not sensitive to large market fluctuations and cannot update stop loss in time. Consider combining momentum indicators or volatility indicators for adjustment.

  3. The combination of multiple parameters and conditions increases the complexity of the strategy. Improper parameters may cause overly aggressive trading and increase risks. Parameters need to be carefully evaluated and adjusted gradually.

Optimization Directions

According to the above risk analysis, the strategy can be optimized in the following aspects:

  1. Adjust moving average period parameters to shorten periods for early capturing reversal opportunities.

  2. Add other indicators to determine reversal signals, such as MACD, KD, etc. to form multiple confirmations.

  3. Dynamically adjust ATR periods or introduce market volatility to update stop loss in real time.

  4. Evaluate the differences between stock and futures markets, and adjust parameters respectively to make them more suited to both markets.

  5. Add trading costs and slippage in backtesting to make the strategy closer to the live trading environment.

  6. Consider adding machine learning models to dynamically optimize multiple parameters.

Summary

The combination strategy of dual moving average reversal and ATR trailing stop is an efficient and practical quantitative strategy. It combines the dual advantages of determining market reversal with moving averages and controlling risks by setting ATR trail stops. It ensures profit while reducing unnecessary losses. The strategy has flexible parameter adjustment and is easy to operate in live trading. At the same time, it can also be extended and optimized in multiple aspects to adapt to more extensive market environments. Overall, the strategy provides an excellent strategic framework for quantitative trading.

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

//@version=3
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 17/05/2019
// This is combo strategies for get 
Strategy parameters
Strategy parameters
Length
KSmoothing
DLength
Level
nATRPeriod
nATRMultip
Trade reverse
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)