股票论坛

 找回密码
 免费注册
搜索
热搜: 活动 交友 discuz
查看: 2925|回复: 1
打印 上一主题 下一主题

求一个红色持股预警,感谢!!

[复制链接]

巡抚

Rank: 5Rank: 5

听众
9
跳转到指定楼层
楼主
发表于 2016-10-16 20:22 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
30爱心果
请老师根据下列公式,编个选股预警公式。要求在变成红色时(持股)预警!

H1:=REF(HIGH,1);
L1:=REF(LOW,1);
D1:=HIGH>H1 AND LOW>=L1
AND CLOSE>REF(CLOSE,1);
D11:=HIGH>H1 AND LOW>=L1
AND CLOSE<=REF(CLOSE,1);
D2:=LOW<L1 AND HIGH<H1;
D3:=HIGH>H1 AND LOW<L1
AND CLOSE>REF(CLOSE,1);
D31:=HIGH>H1 AND LOW<L1
AND CLOSE<=REF(CLOSE,1);
D4:=HIGH<=H1 AND LOW>=L1;
FR1:SUM(IF(D1,HIGH,IF(D11,LOW,IF(D2,-HIGH,IF(D3,
HIGH,IF(D31,-HIGH,IF(D4,0,0)))))),0)/100,LINETHICK3,COLORGREEN;

持股:IF(FR1>=REF(FR1,1),FR1,DRAWNULL),LINETHICK3,COLORRED;
持币:IF(FR1<REF(FR1,1),FR1,DRAWNULL),LINETHICK3,COLORGREEN;

最佳答案

查看完整内容

H1:=REF(HIGH,1); L1:=REF(LOW,1); D1:=HIGH>H1 AND LOW>=L1 AND CLOSE>REF(CLOSE,1); D11:=HIGH>H1 AND LOW>=L1 AND CLOSE

爵★★★

Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21

听众
5
沙发
发表于 2016-10-16 20:22 | 只看该作者
H1:=REF(HIGH,1);
L1:=REF(LOW,1);
D1:=HIGH>H1 AND LOW>=L1
AND CLOSE>REF(CLOSE,1);
D11:=HIGH>H1 AND LOW>=L1
AND CLOSE<=REF(CLOSE,1);
D2:=LOW<L1 AND HIGH<H1;
D3:=HIGH>H1 AND LOW<L1
AND CLOSE>REF(CLOSE,1);
D31:=HIGH>H1 AND LOW<L1
AND CLOSE<=REF(CLOSE,1);
D4:=HIGH<=H1 AND LOW>=L1;
FR1:=SUM(IF(D1,HIGH,IF(D11,LOW,IF(D2,-HIGH,IF(D3,
HIGH,IF(D31,-HIGH,IF(D4,0,0)))))),0)/100,;
持股:=IF(FR1>=REF(FR1,1),FR1,DRAWNULL);
持币:=IF(FR1<REF(FR1,1),FR1,DRAWNULL);
XG:CROSS(持股,REF(FR1,1));
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|站点首页|手机版|小黑屋|帮助中心|桂ICP备14001964号

GMT+8, 2024-11-27 21:10 , Processed in 0.142301 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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