t9_Creating a Backtester in Python_hdf_h5py_tables_dataframe_PostgreSQL_thread_no attribute ‘cursor‘

本章介绍了如何创建回测系统,探讨了内样本与外样本数据、纸面交易、原始数据存储以及使用HDF5和数据库存储时间序列的重要性。回测对于交易策略的验证和优化至关重要,它使用历史数据评估策略的盈利能力,并避免实际资金损失。文章还讨论了事件驱动和基于循环的回测系统的优缺点,并提供了动量交易策略的回测示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

     By now, we know how to implement a trading strategy idea. We learned how to write the code to make it run in a trading system. The final step before going live with a trading strategy is backtesting. Whether you want to be more confident in the performance of your strategy or you want to show your managers how well your trading idea performs, you will have to use a backtester using a large amount of historical data.

     In this chapter, you will learn how to create a backtester. You will improve your trading algorithm by running different scenarios with large amounts of data to validate the performance

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

LIQING LIN

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值