金字塔决策交易系统

 找回密码
 

微信登录

微信扫一扫,快速登录

搜索
查看: 144|回复: 1

麻烦帮一下忙

[复制链接]

44

主题

116

帖子

126

积分

Rank: 4

等级: 专业版

注册:
2021-5-20
曾用名:
发表于 2025-1-13 16:34 | 显示全部楼层 |阅读模式
PEL中的:  count(close>open,4)=4  用PYTHON怎么写?麻烦帮帮忙,我弄了半天都和PEL的结果对不上,谢谢!
回复

使用道具 举报

35

主题

9409

帖子

5万

积分

Rank: 8Rank: 8

等级: 超级版主

注册:
2021-5-18
曾用名:
wenarm
发表于 2025-1-13 16:46 | 显示全部楼层
    xclose = history_bars('RB00',300, '3m', 'close', True, True,True)
    xopen = history_bars('RB00',300, '3m', 'open', True, True,True)
   
    cond=xclose[-1]>xopen[-1] and xclose[-2]>xopen[-2] and xclose[-3]>xopen[-3] and xclose[-4]>xopen[-4]
   

    print(cond)
金字塔提供一对一VIP专业技术指导服务,技术团队实时响应您的日常使用问题与策略编写。联系电话:021-20339086
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 微信登录

本版积分规则

手机版|小黑屋|上海金之塔信息技术有限公司 ( 沪ICP备13035422号 )

GMT+8, 2025-2-5 16:38 , Processed in 0.225826 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表