backtrader结合大语言模型chatGPT

点此获取扫地僧backtrader技术教程

========

现在大语言模型chatGPT非常热,很多人用它来辅助编写程序。那么,能不能利用大语言模型来辅助编写backtrader策略程序呢?

github上还真有人做了一个项目backtrader_copilot,可以通过LangChain使用Chatgpt来辅助backtrader编程。

特性如下:

Features

  • Loading backtrader code
  • Generating natural language descriptions of implemented strategy rules
  • Generating a graph visualisation of the implemented backtest (required graphviz installed)
  • Generating feedback for implemented trading strategy
  • Generating backtrader backtest code based on natural language description for
    • data
    • strategies
    • analysers
    • (...) more to come

  • Autopilot that guides user through the process of setting up a backtest in backtrader by asking a series of questions.
  • Save generated code

Quick start guide

  • see main_example.py

Limitations

  • A lot of limitations, this is v0.1 with the aim of providing functioning basic infrastructure.
  • This version can only provide very limited and simple but functioning examples, this version is not production ready.
  • Simple prompt templates are implemented, these have a lot of potential for improvement.
  • No web-based UI yest (planned).
  • No custom indicators yet (planned).
  • Only a single shot implementation of the coding agent. More complex code implementation and testing strategies will be required (planned).
  • Autopilot is static and does not ask dynamic questions yet (planned)
  • No logging implemented (planned).
  • 21
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

扫地僧量化

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

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

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

打赏作者

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

抵扣说明:

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

余额充值