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 ...