Type/to search

Triple Exponential Moving Average Convergence Divergence and Relative Strength Index Combined 1-Minute Chart Cryptocurrency Quantitative Trading Strategy

Cryptocurrency
Created: 2024-03-29 11:16:10
Last modified: 2 years ago
1
Follow
1782
Followers

img

Overview

This strategy combines the Triple Exponential Moving Average Convergence Divergence (Triple MACD) and Relative Strength Index (RSI) methods, specifically designed for quantitative trading in the cryptocurrency market on a 1-minute time frame. The main idea behind the strategy is to capture changes in bullish and bearish momentum using MACD indicators with different period parameters, while employing the RSI indicator to confirm trend strength. By averaging the three MACD signals, noise can be effectively smoothed out, improving the reliability of trading signals. Additionally, the strategy utilizes linear regression techniques to identify consolidation phases in the market, avoiding frequent trades during choppy price action. The entire strategy is suitable for grid trading bots, capable of generating steady returns amidst the rapid fluctuations of the cryptocurrency market.

Strategy Principles

The strategy employs three MACD indicators with different parameters: fast line periods of 5/13/34 and slow line periods of 8/21/144. It calculates the difference between them to obtain the MACD values. These three MACD values are then averaged, and the final MACD histogram is derived by subtracting the Signal value (N-period EMA of MACD) from the averaged MACD. Simultaneously, a 14-period RSI indicator is calculated to assist in determining trend strength. A long signal is generated when the average MACD histogram shifts from negative to positive, RSI is below 55, and there is a bullish alignment. Conversely, a close signal is triggered when the average MACD histogram changes from positive to negative, RSI is above 45, and there is a bearish alignment. Furthermore, the strategy applies an 11-period linear regression to fit the candlesticks, identifying ranging markets by analyzing the ratio between the length of the candlestick bodies and shadows.

Advantage Analysis

  1. The combination of multiple-period MACD indicators objectively reflects trend changes in the market at different time scales, enhancing the accuracy of trend identification.
  2. Integrating MACD with the RSI indicator forms strict entry and exit conditions, contributing to improved strategy profitability and drawdown control.
  3. Averaging MACD signals effectively eliminates false signals caused by frequent indicator oscillations, making trading signals more reliable.
  4. Utilizing linear regression to determine ranging markets helps avoid entering trades during oscillating markets when the trend is unclear, reducing losing trades.
  5. In the rapidly changing cryptocurrency market, a 1-minute level quantitative trading strategy is better positioned to capture trading opportunities arising from market fluctuations in a timely manner.

Risk Analysis

  1. The strategy performs better in unidirectional trend markets. If the market remains in a wide-ranging oscillation state for an extended period, trading signals may frequently become invalid.
  2. Due to the high volatility of the cryptocurrency market, extreme abnormal fluctuations in the short term may lead to significant drawdowns.
  3. The selection of strategy parameters has a clear impact on overall profitability. Improper parameter settings may cause the strategy to fail. Therefore, sufficient parameter optimization and backtesting verification for different trading instruments are necessary before live trading.

Optimization Directions

  1. Consider introducing indicators related to price volatility, such as ATR, to filter entry signals and reduce potential losses caused by abnormal market fluctuations.
  2. In addition to linear regression, other methods such as support and resistance levels, Bollinger Bands channels, etc., can be explored to further improve the accuracy of identifying ranging markets.
  3. In trend markets, introduce trailing stop-loss to optimize exit points, maximizing the profit of each trade.
  4. Considering the characteristic differences among various trading instruments, set different strategy parameters for different instruments to enhance the adaptability and stability of the overall strategy.

Summary

This strategy cleverly combines the Triple MACD with the RSI indicator and utilizes linear regression techniques to identify ranging markets, forming a complete set of high-frequency quantitative trading strategies. The strict entry and exit conditions and the application of averaged MACD signals contribute to improved trading accuracy and drawdown control. Although the strategy performs better in unidirectional trend markets, measures such as introducing volatility filters, optimizing ranging market identification methods, setting trailing stop-losses, and establishing independent parameters for different instruments can further enhance the strategy's adaptability and robustness. Overall, this is a very promising cryptocurrency quantitative trading strategy that merits further optimization and live trading application.

Source
Pine
/*backtest
start: 2023-03-23 00:00:00
end: 2024-03-28 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
strategy(title="TrippleMACD", shorttitle="TrippleMACD + RSI strategy", format=format.price, precision=4, overlay=true)

// RSI 
Strategy parameters
Strategy parameters
stopLuse
Fast Length
Slow Length
Fast Length2
Slow Length2
Fast Length3
Slow Length3
Fast Length3
Slow Length3
Source
Signal Smoothing
Signal Smoothing
Oscillator MA Type
Signal Line MA Type
Simple MA (Signal Line)
Lin Reg
Linear Regression Length
RSI Settings
RSI Length
Source
Show Divergence
MA Settings
MA Type
MA Length
BB StdDev
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)