找回密码
 立即注册

QQ登录

只需一步,快速开始

广告载入中...
查看: 288|回复: 6

求macd水上金叉选股公式

[复制链接]
发表于 2022-8-14 17:44 | 显示全部楼层 |阅读模式
悬赏100威望未解决
求macd水上金叉选股公式

发表于 2022-8-16 09:07 | 显示全部楼层
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
XG:CROSS(DIF,DEA) AND DIF>=0;
~~~~~~~~~~~~~~~~~~~~~
这样的票,每天都有很多的吧
回复

使用道具 举报

发表于 2022-8-24 19:57 | 显示全部楼层
迟熙辜学量学,,捉牛线子板,王柱股擒涨量量8552
回复

使用道具 举报

发表于 2023-1-26 13:30 | 显示全部楼层
本帖最后由 大盘密钥 于 2023-1-26 13:36 编辑

DIF:=EMA(CLOSE,12)-EMA(CLOSE,25)  ;
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
B1:=REF(MACD,1)<0 AND MACD>0;{金叉}
A2:={(MACD>0 AND MACD>REF(MACD,1)*1.9)  AND }COUNT(B1,2) AND DEA<0;{翻倍}
B3:=REF(MACD,2)>REF(MACD,1) AND MACD>REF(MACD,1) AND MACD>0 AND DEA>0;
A3:=COUNT(B3,3);   
A4:=CROSS(DIF,0);{出水}
A1:=B1 AND DEA>=0;{轴上金叉:}
MA10:=MA(CLOSE,10);
MA54:=MA(CLOSE,54);
HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;{三天跌幅}
HJ_9:=FILTER(HJ_8,10);
HJ_10:=BARSLAST(HJ_9);{三天跌幅大于10天周期}
HJ_11:=REF(HIGH,HJ_10+2);
HJ_12:=REF(HIGH,HJ_10+1);
HJ_13:=REF(HIGH,HJ_10);
HJ_14:=MAX(HJ_11,HJ_12);
HJ_15:=MAX(HJ_14,HJ_13);{三天跌幅成立三天最高点}
HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;{涨幅}
HJ_17:=HJ_10<150;{周期小于150一般都成立}
HJ_18:=(OPEN-HJ_15)/HJ_15*100<30;{控制和三天高点连续涨幅高}
HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100<50;{控制涨幅}
HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;{控制5天涨幅}
HJ_21:=VOL/MA(VOL,5)<3.5;{控制连续一字开板成交量}
HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;{89天涨幅控制意义不大}
HJ_25:=HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 {AND HJ_22};
暴利:=FILTER(HJ_25,9);
PL1:=(((CLOSE-MA54)/MA54)<0.1);{控制收盘价与54线距离}
PL2:=(((CLOSE-MA10)/MA10)<0.3);{控制收盘价与10线距离涨速控制}
偏离率:=(((PL1=1) AND (PL2=1))*0.2);
平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);
妖股突破:=平台突破=-0.1;
XDF:=(暴利 OR 妖股突破);

VARA:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VARAA:=C/(REF(CLOSE,1))>1.05 AND (C/O>1.05);
FLIGA:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);
妖股:=XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA;
水上金:妖股 AND A1;
回复

使用道具 举报

发表于 2023-1-26 13:32 | 显示全部楼层
本帖最后由 大盘密钥 于 2023-1-26 13:37 编辑

DIF:=EMA(CLOSE,12)-EMA(CLOSE,25)  ;
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
B1:=REF(MACD,1)<0 AND MACD>0;{金叉}
A2:={(MACD>0 AND MACD>REF(MACD,1)*1.9)  AND }COUNT(B1,2) AND DEA<0;{翻倍}
B3:=REF(MACD,2)>REF(MACD,1) AND MACD>REF(MACD,1) AND MACD>0 AND DEA>0;
A3:=COUNT(B3,3);   
A4:=CROSS(DIF,0);{出水}
A1:=B1 AND DEA>=0;{轴上金叉:}
MA10:=MA(CLOSE,10);
MA54:=MA(CLOSE,54);
HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;{三天跌幅}
HJ_9:=FILTER(HJ_8,10);
HJ_10:=BARSLAST(HJ_9);{三天跌幅大于10天周期}
HJ_11:=REF(HIGH,HJ_10+2);
HJ_12:=REF(HIGH,HJ_10+1);
HJ_13:=REF(HIGH,HJ_10);
HJ_14:=MAX(HJ_11,HJ_12);
HJ_15:=MAX(HJ_14,HJ_13);{三天跌幅成立三天最高点}
HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;{涨幅}
HJ_17:=HJ_10<150;{周期小于150一般都成立}
HJ_18:=(OPEN-HJ_15)/HJ_15*100<30;{控制和三天高点连续涨幅高}
HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100<50;{控制涨幅}
HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;{控制5天涨幅}
HJ_21:=VOL/MA(VOL,5)<3.5;{控制连续一字开板成交量}
HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;{89天涨幅控制意义不大}
HJ_25:=HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 {AND HJ_22};
暴利:=FILTER(HJ_25,9);
PL1:=(((CLOSE-MA54)/MA54)<0.1);{控制收盘价与54线距离}
PL2:=(((CLOSE-MA10)/MA10)<0.3);{控制收盘价与10线距离涨速控制}
偏离率:=(((PL1=1) AND (PL2=1))*0.2);
平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);
妖股突破:=平台突破=-0.1;
XDF:=(暴利 OR 妖股突破);

VARA:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VARAA:=C/(REF(CLOSE,1))>1.05 AND (C/O>1.05);
FLIGA:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);
妖股:=XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA;
水上金:妖股 AND A1;
回复

使用道具 举报

发表于 2023-1-27 12:02 | 显示全部楼层
好好学习,天天向上
回复

使用道具 举报

发表于 2023-2-16 07:04 | 显示全部楼层
感谢您的分享,好好学习,天天上涨!2023/2/16
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|股海明灯官网 ( 京ICP备18020431号 )

GMT+8, 2024-11-22 09:26 , Processed in 0.112098 second(s), Total 10, Slave 9 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

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