1、MACD公式大全以下公式适合通信达和招商牛网等股票软件。选出股票后能否买入依然还要综合参考大趋势和其它指标.金叉并非万能,有时刚刚进入金叉或准金叉状态,也可能是上一波反弹的结束,下一波下跌的开始.只有当金叉周期的前后周期均为上涨趋势,金叉的威力才最大.业绩的持续增长才是技术指标的前提和保证。1、0轴上方第一次金叉选股公式:DIFF:=EMA(CLOSE,12) EMA(CLOSE,26);DEA:= EMA(DIFF,9);MACD := 2*(DIFFDEA);select:cross(diff,dea) and dea-1.0 and dea=ma(c,60);或:DIF:=EMA(CLO
2、SE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); XG:DIF0 AND DEA0 AND CROSS(DIF,DEA);2、0轴上方二次金叉的选股公式:JC:IF(SUM(IF(MACD0 AND CROSS(MACD。DIF,MACD.DEA),1,0),0)HHV(IF(IF(CROSS(MACD.DEA,0),1,0),SUM(IF(MACD0 AND CROSS(MACD。DIF,MACD.DEA),1,0),0),0),0)=2 AND SUM(IF(MACD0 AND CROSS(MACD.DIF,MACD.DEA),1,0),0)REF(SUM(IF
3、(MACD0 AND CROSS(MACD。DIF,MACD.DEA),1,0),0),1),10,0);3.0轴下方一次金叉的选股公式:DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9),COLORFFFF00;MACD:=(DIFFDEA)*2;低位金叉:CROSS(DIFF,DEA) AND DIFF-0.1;4、0轴下方二次金叉且第二次金叉高于第一次金叉:DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);AA:=BARSLAST(REF(CROSS(DIF,DEA),1);二次金叉:CRO
4、SS(DIF,DEA) AND DIFREF(DIF,AA+1) AND AA20 AND DIF0;5、0轴下方二次金叉选股公式:DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); 选股设JC=10即可DEA:=EMA(DIFF,9);MACD:=2*(DIFFDEA),COLORSTICK;A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFFREF(SSS,1),10,0);6、缩量横盘突破选股:WH01:=(HHV(C,10)LLV(C,10)/LLV(C,10)100=10;WH02:=SUM(VOL,10)/CAPITAL100REF(HHV(
5、H,10),1);WH05 AND REF(NOT(WH05),1);7、均线、KDJ、MACD金叉的预警选股公式完全符合以下条件:1、5日线上穿10日线2、MACD金叉3、KDJ金叉(KDJ数值由9、3、3调整为9、9、9)4、成交量指标金叉通达信预警选股公式A1:=CROSS(MA(C,5),MA(C,10);A2:=CROSS(”MACD。DIF,”MACD。DEA”);A3:=CROSS(”KDJ.K”(9,9,9),”KDJ.D”(9,9,9));A4:=CROSS(MA(V,5),MA(V,10));XG:A1 AND A2 AND A3 AND 4;三金叉选股完整源码,绝无未来函
6、数均线、成交量、MACD同时金叉MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);AA:=CROSS(MA1,MA2);AAA:=COUNT(AA,3)=1;T1:=MA(VOL,5);T2:=MA(VOL,10);BB:=CROSS(T1,T2);BBB:=COUNT(BB,3)=1;DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;CC:=CROSS(DIF,DEA);CCC:=COUNT(CC,3)=1;三金:=AAA AND BBB AND CCC;三金叉:FILTER(三金,3
7、),COLORFF00FF;使用说明:该选股公式适合超级短线,快进快出具有一定的风险因素,此时的股价往往处于拉高拔升阶段.要求使用者特别关注股价所处的位置,如果过于高位防止庄家诱多。低位可大胆搏杀,短期回档被套也有回旋余地。-6、四线粘合N1:=5;N2:=10;N3:=20;M:=1;MA1:=MA(C,N1);MA2:=MA(C,N2);MA3:=MA(C,N3);A3:=VREF(V,1)1.5 AND VMA(V,5);MAX(MA1,MAX(MA2,MA3))/MIN(MA1,MIN(MA2,MA3))1+0。01MAND CO AND V REF(V,1) AND FINANCE(
8、7)=300000000AND A3 AND CAPITAL=300000000;7、均线粘合M:=1;M5:=MA(CLOSE,5);M10:=MA(CLOSE,10);M20:=MA(CLOSE,20);K1:=MAX(MAX(M5,M10),MAX(M10,M20));K2:=MIN(MIN(M5,M10),MIN(M10,M20);A:=MAX(M5,MAX(M10,M20)/MIN(M5,MIN(M10,M20))1+0。01*M;A1:=(K1/K21)=975;M2:=1000*V2/V4=1020 AND 1000*V2/V4=980;M3:=1000V3/V4=1015 AN
9、D 1000*V3/V4=985;M4:=M1 AND M2 AND M3 AND CROSS(V0,V1);M5:=M1 AND M2 AND M3 AND CROSS(V0,V3);M4 OR M5;9、MACD天天挣钱选股指标公式DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);XG:CROSS(REF(DEA,1),REF(DIFF,1) AND CROSS(DIFF,DEA);10、短线之王VAR1:=(-100)*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3);CROSS(VAR1,-87)
10、 AND OPEN0。98REF(INDEXC,1) AND CLOSE=1.47*LLV(CLOSE,58);-以上公式经过验证有效!下面公式有待验证。-【通达信】超准MACD(低位金叉、顶背离、零下二次金叉)-指标公式源码SQX:=(C-MA(CLOSE,13)100;DIFF:EMA(MA(SQX,7),1),COLORWHITE;DEA:EMA(DIFF,7),COLORYELLOW;MACD:(DIFFDEA)*2,COLORSTICK;低位金叉:IF(CROSS(DIFF,DEA) AND DIFF-0.1,15,DRAWNULL),COLORYELLOW,LINETHICK4,C
11、ROSSDOT;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA=0));二次金叉:IF(CROSS(DIFF,DEA) AND DEAREF(DIFF,A1+1) AND CROSS(DIFF,DEA),40,DRAWNULL),COLORRED,LINETHICK4,CROSSDOT;势:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORGREEN;,COLORRED;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1);顶背离:=REF(CLOSE,A2+1)CLOSE AND REF(DIFF,A2+1)DIFF
12、 AND CROSS(DEA,DIFF),COLORWHITE;顶背离_:IF(REF(CLOSE,A2+1)CLOSE AND REF(DIFF,A2+1)DIFFAND CROSS(DEA,DIFF),66,DRAWNULL),COLORF08000,LINETHICK4,CROSSDOT;压:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORFFBB99;A3:=CROSS(DIFF,DEA) AND DEAMA10&MA10MA20&MA20MA60MA60MA120;WS2:=50100&200600&1200;WXSS:=COUNT(WS1,2)=2&COUNT(
13、WS2,2)=2;WSYY:=CMA5&CC1CO&WXSS&C1MIN(REF(MA5,1),REF(MA10,1));DRAWTEXT(WSYY,H*1.06,五上一阳),COLORLIGRAY;DRAWBAND(MA60,RGB(240,180,180),MA120,RGB(180,240,180));DRAWKLINE(HIGH,OPEN,LOW,CLOSE);STICKLINE(WSYY,CLOSE,OPEN,2,0),COLORYELLOW;M1:MA5;M2:MA10;M3:MA20;M4:MA60;M5:MA120;-kdj三金叉+macd二次金叉+均线多头排列的选股公式kdj
14、三金叉MA5:=EMA(C,5);MA10:=EMA(C,10);MV5:=EMA(V,5);MV10:=EMA(V,10);K:=”KDJ.K”(9,3,3);D:=KDJ.D”(9,3,3);V1:=MA5REF(MA5,1) AND MA10REF(MA10,1) AND CREF(C,1) AND C/O1.01;VV1:=MV5REF(MV5,1) AND MV10=REF(MV10,1) AND VREF(V,1)*1。2 ;KD1:=KREF(K,1) AND D=REF(D,1);VA:=COUNT(CROSS(K,D),4)=1 AND COUNT(CROSS(MA5,MA1
15、0),4)=1 ANDCOUNT(CROSS(MV5,MV10),4)=1;macd二次金叉DIF:=EMA(CLOSE,12)EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=2(DIFDEA);A1:=CROSS(DIF,DEA);A2:=REF(A1,1);A3:=COUNT(A2,21);今天之前3个星期以来曾经金叉A4:=MA(C,5)=MA(C,10) AND MA(C,10)=MA(C,30) AND MA(C,30)=MA(C,60)AND MA(C,60)=MA(C,120) AND MA(C,120)=MA(C,250) ;均线多头排列去S、T、停牌S
16、T:=STRFIND(stkname,ST,1)0;S:=STRFIND(stkname,S,1)0;停牌:=(DYNAINFO(4)=0);选股:IF(V1 AND VV1 AND KD1 AND VA,1,0) and A1 AND A3 AND A4 and not(ST) and not(停牌) and not(S);-macd在0轴上第一次金叉选股公式要看趋势后看金叉才行呀,只看金叉是很危险的.二级DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:= EMA(DIFF,9);MACD := 2(DIFFDEA);select:cross(diff,dea
17、) and dea1。0 and dea0.5 and CLOSEref(CLOSE,1) and CLOSE=ma(c,60);复制粘贴以上内容后就可选股一级选股不如选时,当做则做,该休息就得休息。再好的选股公式,都是在选过去,未来是要靠自己选的。祝您能早日悟出来三级DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIFDEA)*2,COLORSTICK; xg:MACD0 AND CROSS(DIF,DEA);-通达信选股公式因为有不少朋友一直在用通达信软件,对于本人使用的同花顺公式有用不了的情况,因此特针对通达信软件里面
18、的一些比较实用的主图副图公式进行了研究,并编写出选股公式,供大家参考。低位金叉选股DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9);MACD:=(DIFF-DEA)*2;低位金叉:CROSS(DIFF,DEA) AND DIFF0。1;二次金叉选股DIFF:=EMA(DCLOSE,12)EMA(DCLOSE,26);DEA:=EMA(DIFF,9);MACD:=(DIFFDEA)2;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA=0);二次金叉:CROSS(DIFF,DEA) AND DEA0 AN
19、D COUNT(JCCOUNT=2,21)=1;绝地反弹(1)VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOWVAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)100;VAR3:=EMA(IF(CLOSE*1.2,VAR213,VAR2/13),13);VAR4:=LLV(LOW,34);VAR5:=HHV(VAR3,34);VAR6:=IF(LLV(LOW,55),1,0);VAR7:=EMA(IF(LOW25;(2)BACKSET( (REF(CLOSE,1)REF(OPEN,1) ANDCLOSEOPEN AND ABS(CLOSEREF(CL
20、OSE,1)/CLOSE0。002),2);A2:=FILTER(A1=REF(V,1)HHV(V,3)=REF(V,1) AND HHV(V,5)=REF(V,1) AND HHV(V,21)=REF(V,1)AND V =REF(V,1)010 AND T020;1.三线粘合M:=1;M5:=MA(CLOSE,5);M10:=MA(CLOSE,10);M20:=MA(CLOSE,20);K1:=MAX(MAX(M5,M10),MAX(M10,M20));K2:=MIN(MIN(M5,M10),MIN(M10,M20);A:=MAX(M5,MAX(M10,M20)/MIN(M5,MIN(M1
21、0,M20))1+0.03*M;A1:=(K1/K2-1)0。005;A2:=(K1/K21)REF(V,1)*1.5 AND VMA(V,5);XG:A AND A1 AND A2 AND A3 AND CO AND V REF(V,1) AND CAPITAL=300000000;2.三条线粘合N1:=5;N2:=10;N3:=20;M:=1;MA1:=MA(C,N1);MA2:=MA(C,N2);MA3:=MA(C,N3);A3:=VREF(V,1)*1.5 AND VMA(V,5);MAX(MA1,MAX(MA2,MA3))/MIN(MA1,MIN(MA2,MA3)1+0.01*MAN
22、D CO AND V REF(V,1) AND FINANCE(7)=300000000AND A3 AND CAPITAL=300000000;3.均线粘合M:=1;M5:=MA(CLOSE,5);M10:=MA(CLOSE,10);M20:=MA(CLOSE,20);K1:=MAX(MAX(M5,M10),MAX(M10,M20));K2:=MIN(MIN(M5,M10),MIN(M10,M20));A:=MAX(M5,MAX(M10,M20)/MIN(M5,MIN(M10,M20))REF(V,1)1。5 AND VMA(V,5);XG:CROSS(快线,慢线) AND CO ANDV=
23、MA(V,21) AND V REF(V,1) AND CAPITAL=300000000 ;4.角度MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);V0:CROSS(MA5,MA10) AND CROSS(MA10,MA20) ANDCROSS(MA5,MA20) ;IF(角度MA345 AND 角度MA540 AND 角度MA1010AND 角度MA2020 AND MA(C,135)REF(MA(C,135),1),1,0),COLOR00FF001.聚宝盆DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIFF,M);MACD2:=2(DIFF-DEA);HHV(MACD2,4)REF(MACD2,1) AND REF(MACD2,1)REF(MACD2,2) AND REF(MACD2,2)REF(MACD2,3);2.强势股SJXXG四均线选股MA3:=MA(C,3);MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);V0:=MA(C,3)REF
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1