arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.10808cs.CE
收藏

优化MACD交易策略:金融、小波与遗传算法的共舞

Optimizing MACD Trading Strategies A Dance of Finance, Wavelets, and Genetics

Wangyu Chen, Zhenpeng Zhu

AI总结:

本文针对MACD在高波动市场中信号失真的问题,结合小波降噪、背离原理和遗传算法优化MACD交易策略,并利用MindSpore并行计算提升效率,最终在回测中实现了更高收益和更低风险。

摘要:

在当今金融市场中,量化交易已成为一种重要的交易方法,其中MACD指标被广泛应用于量化交易策略。本文首先对数据集进行筛选和清洗,建立遵循MACD基本买卖规则的模型,并计算每只股票的关键指标,如胜率、收益率、夏普比率和最大回撤。然而,MACD在高波动市场中经常产生错误信号。为解决这一问题,本文应用小波变换进行降噪,平滑DIF图像,并在此基础上建立模型,以优化买卖点的识别。结果表明,年化收益率提高了5%,验证了该方法的可行性。随后,利用背离原理进一步优化交易策略,提升模型性能。此外,采用遗传算法优化MACD参数,使策略适应不同股票的特征。为提高计算效率,使用MindSpore框架进行资源管理和并行计算。优化后的策略在回测中表现出更高的胜率、收益率、夏普比率,以及更低的最大回撤。

英文摘要:

In today's financial markets, quantitative trading has become an essential trading method, with the MACD indicator widely employed in quantitative trading strategies. This paper begins by screening and cleaning the dataset, establishing a model that adheres to the basic buy and sell rules of the MACD, and calculating key metrics such as the win rate, return, Sharpe ratio, and maximum drawdown for each stock. However, the MACD often generates erroneous signals in highly volatile markets. To address this, wavelet transform is applied to reduce noise, smoothing the DIF image, and a model is developed based on this to optimize the identification of buy and sell points. The results show that the annualized return has increased by 5%, verifying the feasibility of the method. Subsequently, the divergence principle is used to further optimize the trading strategy, enhancing the model's performance. Additionally, a genetic algorithm is employed to optimize the MACD parameters, tailoring the strategy to the characteristics of different stocks. To improve computational efficiency, the MindSpore framework is used for resource management and parallel computing. The optimized strategy demonstrates improved win rates, returns, Sharpe ratios, and a reduction in maximum drawdown in backtesting.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑