09 2020 档案

摘要:官方链接:https://pypi.org/project/pytz/ Introduction pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezo 阅读全文
posted @ 2020-09-30 21:03 就是想学习 阅读(986) 评论(0) 推荐(0) 编辑
摘要:原文地址:https://www.backtrader.com/docu/timemgmt/ DateTime Management 日期时间管理 Up until release 1.5.0, backtrader used a direct approach to time management 阅读全文
posted @ 2020-09-30 15:43 就是想学习 阅读(959) 评论(0) 推荐(0) 编辑
摘要:# 描述符 + 元类 爽爆天 from collections import OrderedDict # 描述符的基类,通过类属性来指定参数 class Typed: # 赋值类型给子类继承用 _expected_type = type(None) def __init__(self, name=N 阅读全文
posted @ 2020-09-25 10:53 就是想学习 阅读(259) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://backtrader.com/blog/posts/2016-06-21-livedata-feed/live-data-feed/ Starting with release 1.5.0, backtrader supports Live Data Feeds and L 阅读全文
posted @ 2020-09-24 17:08 就是想学习 阅读(1476) 评论(0) 推荐(0) 编辑
摘要:In [6]: super? Init signature: super(self, /, *args, **kwargs) Docstring: super() -> same as super(__class__, <first argument>) super(type) -> unbound 阅读全文
posted @ 2020-09-23 15:38 就是想学习 阅读(171) 评论(0) 推荐(0) 编辑
摘要:子类在创建的时候,就会像父类的__init_subclass__就像一个回调函数, 会收到子类的的值,以及所传递的参数。 注意是子类在创建的时候,与实例化无关。 class A: def __init_subclass__(cls, **kwargs): print('init_subclass:' 阅读全文
posted @ 2020-09-23 11:28 就是想学习 阅读(699) 评论(0) 推荐(0) 编辑
摘要:自己一般在写类的时候,很少用__的私有变量,很多进阶书籍也提示,少用__下划线的私有变量,避免引起不必要的麻烦,可以用_单下划线代替。 首先说明一个核心思想,Python在处理__的变量名的时候,会通过_类名__属性名的方式进行属性的保存。 最重要的是,当你在读取变量的时候,当用__变量名去读取的时 阅读全文
posted @ 2020-09-23 10:47 就是想学习 阅读(206) 评论(0) 推荐(0) 编辑
摘要:Sizers Reference FixedSize class backtrader.sizers.FixedSize() This sizer simply returns a fixed size for any operation. Size can be controlled by num 阅读全文
posted @ 2020-09-21 23:50 就是想学习 阅读(1170) 评论(0) 推荐(0) 编辑
摘要:Sizers Smart Staking A Strategy offers methods to trade, namely: buy, sell and close. Let’s see the signature of buy: 策略提供了交易的方法,即:买入、卖出和成交。让我们看看buy的签 阅读全文
posted @ 2020-09-21 23:17 就是想学习 阅读(2747) 评论(0) 推荐(0) 编辑
摘要:Fillers 填充 The backtrader broker simulation has a default strategy when it comes to using volume for order execution: 当使用成交量来执行订单时,backtrader-broker模拟 阅读全文
posted @ 2020-09-21 15:23 就是想学习 阅读(457) 评论(0) 推荐(0) 编辑
摘要:这个感觉就是只能用来,在当前的开盘前下单,用的当天的开盘价可以参考买入股份,信号的处理,买入的时间,买入的价格,与正常的没有任何区别 Release 1.9.44.116 adds support for Cheat-On-Open. This seems to be a demanded feat 阅读全文
posted @ 2020-09-21 14:27 就是想学习 阅读(875) 评论(0) 推荐(0) 编辑
摘要:backtesting cannot guarantee real market conditions. No matter how good the market simulation is, under real market conditions slippage can happen. Th 阅读全文
posted @ 2020-09-21 10:37 就是想学习 阅读(1110) 评论(0) 推荐(0) 编辑
摘要:Trade Definition of a trade: A Trade is open when the a position in a instrument goes from 0 to a size X which may positive/negative for long/short po 阅读全文
posted @ 2020-09-21 10:00 就是想学习 阅读(2176) 评论(0) 推荐(1) 编辑
摘要:Position on an asset is usually checked from within a Strategy with: 资产情况通常通过以下方式从策略内部进行检查: position (a property) or getposition(data=None, broker=Non 阅读全文
posted @ 2020-09-18 11:47 就是想学习 阅读(4125) 评论(0) 推荐(0) 编辑
摘要:Reference class backtrader.brokers.BackBroker() class backtrader.BackBroker() 上面两个一个对象 Broker Simulator 经纪人【券商】 模拟器 The simulation supports different 阅读全文
posted @ 2020-09-18 11:23 就是想学习 阅读(2573) 评论(0) 推荐(1) 编辑
摘要: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 a chain 阅读全文
posted @ 2020-09-14 23:33 就是想学习 阅读(1465) 评论(0) 推荐(0) 编辑
摘要:Order Management and Execution 订单管理与执行 Backtesting, and hence backtrader, would not be complete if orders could not be simulated. To do so, the follow 阅读全文
posted @ 2020-09-14 21:31 就是想学习 阅读(1702) 评论(0) 推荐(0) 编辑
摘要:官方链接:https://www.backtrader.com/blog/posts/2015-08-12-observers-and-statistics/observers-and-statistics/ Strateties running inside the backtrader do m 阅读全文
posted @ 2020-09-13 23:36 就是想学习 阅读(1461) 评论(0) 推荐(0) 编辑
摘要:AnnualReturn 年利润 class backtrader.analyzers.AnnualReturn() This analyzer calculates the AnnualReturns by looking at the beginning and end of the year 阅读全文
posted @ 2020-09-13 15:21 就是想学习 阅读(1249) 评论(0) 推荐(0) 编辑
摘要:The integration of a portfolio tool, namely pyfolio, came up with in Ticket #108. A first look at the tutorial deemed it as difficult, given the tight 阅读全文
posted @ 2020-09-10 16:51 就是想学习 阅读(376) 评论(0) 推荐(0) 编辑
摘要:Note As of (at least) 2017-07-25 the pyfolio APIs have changed and create_full_tear_sheet no longer has a gross_lev as a named argument. Consequently 阅读全文
posted @ 2020-09-10 16:47 就是想学习 阅读(2710) 评论(0) 推荐(0) 编辑
摘要:Analyzers 分析仪 Be it backtesting or trading, being able to analyze the performance of the trading system is key to understanding if not only profit has 阅读全文
posted @ 2020-09-10 16:03 就是想学习 阅读(1143) 评论(0) 推荐(0) 编辑
摘要:参考链接:https://www.backtrader.com/blog/posts/2015-09-25-tickdata-resample/resample-tickdata/ backtrader could already do resampling up from minute data. 阅读全文
posted @ 2020-09-09 16:09 就是想学习 阅读(1632) 评论(0) 推荐(0) 编辑
摘要:参考资料来源:https://www.numpy.org.cn/user/quickstart.html#%E5%85%88%E5%86%B3%E6%9D%A1%E4%BB%B6 NumPy的主要对象是同构多维数组。它是一个元素表(通常是数字),所有类型都相同,由非负整数元组索引。在NumPy维度中 阅读全文
posted @ 2020-09-06 15:30 就是想学习 阅读(631) 评论(0) 推荐(0) 编辑
摘要:本地有一个Onedrive的文件夹,想通过ln -s给桌面添加一个快捷方式。 通过了几次使用相对路径添加失败后,百度后得知 ln -s 源文件[目录] 目标文件[目录] 源的地址需要是绝对路径,绝对路径,abspath 2021年4月9日更新 经过linux服务器测试,软链接是可以用相对路径的 ln 阅读全文
posted @ 2020-09-05 23:16 就是想学习 阅读(7934) 评论(0) 推荐(0) 编辑
摘要:参考学习:https://www.cnblogs.com/wongbingming/p/10597686.html,pycharm的小技巧。中间一个Bookmarks的设置发现不能操作。原来是因为mac的设置有所区别。 简单笔记用于记录,Bookmarks还是非常好用的一个功能 从截屏的选项里面可以 阅读全文
posted @ 2020-09-05 17:52 就是想学习 阅读(483) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示