Sizers Smart Staking A Strategy offers methods to trade, namely: buy, sell and close. Let’s s ...
第一次接触Python,朋友带着玩,发现官方文档写得好棒 https: www.backtrader.com docu ,以下内容来自于官方文档,以及我自己的学习心得。 数据结构: 数据格式:必须有 列 日期时间,开盘,收盘,最高,最低,持仓量 用lines存储:很多line组成的list 数组类型 。 dataFeed:本地读入csv或者txt文件用 bt.feeds.GenericCSVDat ...
2020-04-24 21:53 0 924 推荐指数:
Sizers Smart Staking A Strategy offers methods to trade, namely: buy, sell and close. Let’s s ...
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 ...
Strategy A Cerebro instance is the pumping heart and controlling brain of backtrader. A Strategy is the same for the platform user. Cerebro实例 ...
Note As of (at least) 2017-07-25 the pyfolio APIs have changed and create_full_tear_sheet no lo ...
官方链接:https://www.backtrader.com/blog/posts/2015-08-12-observers-and-statistics/observers-and-statistics/ Strateties running inside the backtrader do ...
AnnualReturn 年利润 class backtrader.analyzers.AnnualReturn() This analyzer calculates the AnnualReturns by looking at the beginning and end ...
Trade Definition of a trade: A Trade is open when the a position in a instrument goes from 0 t ...
参考链接:https://www.backtrader.com/blog/posts/2015-09-25-tickdata-resample/resample-tickdata/ backtrader could already do resampling up from minute ...