原文:Backtrader 学习笔记(1)

第一次接触Python,朋友带着玩,发现官方文档写得好棒 https: www.backtrader.com docu ,以下内容来自于官方文档,以及我自己的学习心得。 数据结构: 数据格式:必须有 列 日期时间,开盘,收盘,最高,最低,持仓量 用lines存储:很多line组成的list 数组类型 。 dataFeed:本地读入csv或者txt文件用 bt.feeds.GenericCSVDat ...

2020-04-24 21:53 0 924 推荐指数:

查看详情

Backtrader中文笔记之Sizers

Sizers Smart Staking A Strategy offers methods to trade, namely: buy, sell and close. Let’s s ...

Tue Sep 22 07:17:00 CST 2020 0 754
Backtrader中文笔记之Orders

Orders 订单 Cerebro is the key control system in backtrader and Strategy (a subclass) is the key control point of the end user. The latter needs ...

Tue Sep 15 07:33:00 CST 2020 0 588
Backtrader中文笔记之 Strategy

Strategy A Cerebro instance is the pumping heart and controlling brain of backtrader. A Strategy is the same for the platform user. Cerebro实例 ...

Wed Aug 19 19:03:00 CST 2020 0 685
Backtrader中文笔记之Observers and Statistics

官方链接:https://www.backtrader.com/blog/posts/2015-08-12-observers-and-statistics/observers-and-statistics/ Strateties running inside the backtrader do ...

Mon Sep 14 07:36:00 CST 2020 0 782
Backtrader中文笔记之Analyzers Reference

AnnualReturn 年利润 class backtrader.analyzers.AnnualReturn() This analyzer calculates the AnnualReturns by looking at the beginning and end ...

Sun Sep 13 23:21:00 CST 2020 0 482
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM