oldfat 发表于 2022-8-14 17:44

求macd水上金叉选股公式

求macd水上金叉选股公式

szwzs 发表于 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;
~~~~~~~~~~~~~~~~~~~~~
这样的票,每天都有很多的吧

gooloo 发表于 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;

mzdd 发表于 2023-1-27 12:02

好好学习,天天向上

gooloo 发表于 2023-2-16 07:04

感谢您的分享,好好学习,天天上涨!2023/2/16
页: [1]
查看完整版本: 求macd水上金叉选股公式