金字塔决策交易系统

 找回密码
 

微信登录

微信扫一扫,快速登录

搜索
查看: 293|回复: 5

求写一个股票的语句

[复制链接]

7

主题

27

帖子

27

积分

Rank: 1

等级: 新手上路

注册:
2021-9-15
曾用名:
发表于 2025-6-24 22:05 | 显示全部楼层 |阅读模式
各位老师:有一个股票的选股思路,却不知道如何写:
1、自2025年1月1日以来,最高股价赋值于A,最低股价赋值于B,在时间上A要先出现,B后出现,且(A-B)/A>30%;
2、在B出现后,选出所有日线M5上穿M20的股票。
回复

使用道具 举报

44

主题

1万

帖子

1万

积分

Rank: 8Rank: 8

等级: 超级版主

注册:
2021-5-18
曾用名:
发表于 2025-6-25 09:45 | 显示全部楼层
cond:date+19000000 = 20250101;
cond1:hhvbars(high,bars(cond))>llvbars(low,bars(cond));
cond2:(hhv(high,bars(cond))-llv(low,bars(cond)))/hhv(high,bars(cond))>0.3;
cc:cond1 and cond2 and ma(c,5)>ma(c,20);
金字塔提供一对一VIP专业技术指导服务,技术团队实时响应您的日常使用问题与策略编写。联系电话:021-20339086
回复

使用道具 举报

7

主题

27

帖子

27

积分

Rank: 1

等级: 新手上路

注册:
2021-9-15
曾用名:
 楼主| 发表于 2025-6-25 10:42 | 显示全部楼层
多谢!
回复

使用道具 举报

7

主题

27

帖子

27

积分

Rank: 1

等级: 新手上路

注册:
2021-9-15
曾用名:
 楼主| 发表于 2025-6-26 09:36 | 显示全部楼层
技术008 发表于 2025-6-25 09:45
cond:date+19000000 = 20250101;
cond1:hhvbars(high,bars(cond))>llvbars(low,bars(cond));
cond2:(hhv( ...

老师:提示“函数”BARS"未定义,
回复

使用道具 举报

44

主题

1万

帖子

1万

积分

Rank: 8Rank: 8

等级: 超级版主

注册:
2021-5-18
曾用名:
发表于 2025-6-26 09:37 | 显示全部楼层

cond:date+19000000 = 20250101;
cond1:hhvbars(high,barslast(cond))>llvbars(low,barslast(cond));
cond2:(hhv(high,barslast(cond))-llv(low,barslast(cond)))/hhv(high,barslast(cond))>0.3;
cc:cond1 and cond2 and ma(c,5)>ma(c,20);
金字塔提供一对一VIP专业技术指导服务,技术团队实时响应您的日常使用问题与策略编写。联系电话:021-20339086
回复

使用道具 举报

7

主题

27

帖子

27

积分

Rank: 1

等级: 新手上路

注册:
2021-9-15
曾用名:
 楼主| 发表于 2025-6-26 11:29 | 显示全部楼层
技术008 发表于 2025-6-26 09:37
cond:date+19000000 = 20250101;
cond1:hhvbars(high,barslast(cond))>llvbars(low,barslast(cond));
c ...

谢谢大佬!
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-7-9 06:09 , Processed in 0.170449 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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