-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码示例教学贴:(选股篇) #674
Comments
##[升级] 在一年的周期内, 选出前100天威廉指标WR1连续两天为0的股票?
|
x.tail(100))['WR1'],中间停牌了的就不是100天以内的数据了? |
@pchaos 有道理 |
应该是select_time_with_gap |
我也是测试这个公式的时候发现这个时间问题的: |
不对 你这个需求当时不是无视停牌我才这么说的吗/... |
创新高以后的最低点能一条语句找出来吗? |
30天内创半年新高
|
day_data=QA.QA_fetch_stock_day_adv(code,'2017-01-03','2018-07-04') |
创新高以后的最低点 算法和 最大回撤的算法一致 @pchaos |
@pchaos 要加的 |
ind = data.add_func(lambda x: x.tail(30).high.max() == x.high.max()) |
标示出具体是哪一天新高: |
def cmpfunc(df): ind = data.add_func(cmpfunc)
|
试了一下这个代码,发现在day_data获取不到数据的时候,会出现错误。刚开始测试自己写的指标的时候,跑着跑着就会出现问题,以为是自己的指标的问题,百思不得其解。后来单个add_func才发现是没有获取到数据(由于股票未上市、或者退市) |
选出全市场近100天威廉指标WR1连续两天为0的股票?
The text was updated successfully, but these errors were encountered: