掘金社区
(1)有没有设置全部A股的地方, 比如想找最近一个星期哪些股票跌幅居前
(2) 每次运行结果都多一行, 我要反复重启.... 这个类怎么初始为空白类
class MyStrategy(StrategyBase):
def init(self, *args, **kwargs):
super(MyStrategy, self).init(*args, **kwargs)
self.oc = True
def on_bar(self, bar):
if self.oc:
self.open_long(bar.exchange, bar.sec_id, 0, 100)
else:
self.close_long(bar.exchange, bar.sec_id, 0, 100)
self.oc = not self.oc
print('%s %s %s' % ( bar.sec_id,
round( bar.amount ),
bar.strtime ) ) ### 这里我加的
用md也是一样,
(3) talib下载了, 不会装... (Winpython Spyder3.4)
http://ta-lib.org/hdr_dw.html
(4) 1分钟数据可以再增加些吗? 网速慢也比没有强啊, 或者只非交易时段提供
(5) 至少自带个MACD吧?
(6) 面向对象搞的好晕, 求放过
(7) 至少显示个K线吧, 或者放个画图包的指导贴吧
----足够白的小白
评论: 2
相关阅读
策略研究请问下,掘金中history取出的行情,如何确定中间是否有一段停牌的区间
策略研究2018:数据科学20个最好的Python库
策略研究《投资中最简单的事》读书笔记
策略研究教你如何用Python预测股票价格