收藏 分销(赏)

macd选股公式实例.doc

上传人:丰**** 文档编号:3560772 上传时间:2024-07-09 格式:DOC 页数:10 大小:41.50KB
下载 相关 举报
macd选股公式实例.doc_第1页
第1页 / 共10页
macd选股公式实例.doc_第2页
第2页 / 共10页
macd选股公式实例.doc_第3页
第3页 / 共10页
macd选股公式实例.doc_第4页
第4页 / 共10页
macd选股公式实例.doc_第5页
第5页 / 共10页
点击查看更多>>
资源描述

1、以下公式适合通达信股票软件。选出股票后能否买入依然还要综合参考大趋势和其它指标。金叉并非万能,有时刚刚进入金叉或准金叉状态,也可能是上一波反弹的结束,下一波下跌的开始。只有当金叉周期的前后周期均为上涨趋势,金叉的威力才最大。业绩的持续增长才是技术指标的前提和保证。1、0轴上方第一次金叉选股公式:DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);MACD:= 2*(DIFF-DEA);xg:cross(diff,dea) and dea-1.0 and dearef(CLOSE,1) and CLOSE=ma(c,60);或:DIF:=

2、EMA(CLOSE,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(

3、SUM(IF(MACD0 AND CROSS(MACD.DIF,MACD.DEA),1,0),0),1),10,0);选股设JC=10即可3.0轴下方一次金叉的选股公式:DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=(DIFF-DEA)*2;低位金叉:CROSS(DIFF,DEA) AND DIFFREF(DIF,AA+1) AND AA20 AND DIF0;5、0轴下方二次金叉选股公式:DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); 选股设JC=10即可DEA:=EMA(DIFF,9);MACD:

4、=2*(DIFF-DEA);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)/CAPITAL*10020 OR C=HHV(H,55);WH05:=WH02 AND WH03 AND WH04 AND CREF(HHV(H,10),1);WH05 AND REF(NOT(WH05),1);7、均线、KDJ、MACD金叉的预警选股公式完全符合以下条件:1、5日线上穿10日线2、MACD金叉3、KDJ

5、金叉(KDJ数值由9、3、3调整为8、2、2)4、成交量指标金叉通达信预警选股公式A1:=CROSS(MA(C,5),MA(C,10);A2:=CROSS(MACD.DIF,MACD.DEA);A3:=CROSS(KDJ.K(8,2,2),KDJ.D(8,2,2);A4:=CROSS(MA(V,5),MA(V,10);XG:A1 AND A2 AND A3 AND 4;三金叉选股完整源码,绝无未来函数均线、成交量、MACD同时金叉MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);AA:=CROSS(MA1,MA2);AAA:=COUNT(AA,3)=1;T1:=MA(VOL

6、,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),COLORFF00FF;使用说明:该选股公式适合超级短线,快进快出具有一定的风险因素,此时的股价往往处于拉高拔升阶段。要求使用者特别关注股价所处的位置,如果过于高位防止庄家诱多。低位可大胆搏杀,

7、短期回档被套也有回旋余地。8、四线粘合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)O AND V REF(V,1) AND FINANCE(7)=300000000AND A3 AND CAPITAL=300000000;9、均线粘合M:=1;M5:=MA(CLOSE,5);M10:=MA(CLOSE,10);M20:=MA(CLOSE,20);K1:=MAX(M

8、AX(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/K2-1)0.005;A2:=(K1/K2-1)REF(V,1)*1.5 AND VMA(V,5);XG:A AND A1 AND A2 AND A3 ;10、多线粘合V0:=EMA(C,5);V1:=EMA(C,10);V2:=EMA(C,15);V3:=EMA(C,30);V4:=EMA(C,60);M1:=1000*V1/V4=975;M2:=1000*V2/

9、V4=980;M3:=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;11、MACD天天挣钱选股指标公式DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);XG:CROSS(REF(DEA,1),REF(DIFF,1) AND CROSS(DIFF,DEA);12、短线之王VAR1:=(-100)*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3);CROSS

10、(VAR1,-87) AND OPEN=1.099*REF(CLOSE,1) AND INDEXC0.98*REF(INDEXC,1) AND CLOSEDEA,DIF,DRAWNULL),COLORRED,LINETHICK2;IF(DEAREF(DEA,1),DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;DRAWICON(CROSS(DIF,DEA),DEA,25);DRAWICON(CROSS(DEA,DIF),DEA,24);14 、MACD底位反转点DIF:EMA(CLOSE,12)-EMA(CLOSE,135);DEA:=EMA(DIF,9);MACD

11、:=(DIF-DEA)*2;反转:MACDREF(MACD ,1) AND REF(MACD ,1)REF(MACD ,2)AND REF(MACD ,2)REF(MACD ,3)AND REF(MACD ,3)REF(MACD ,4);15.冠军MACD资金流向DIFF:=EMA(CLOSE,3)-EMA(CLOSE,7);DEA:=EMA(DIFF,3);MACD2:=2*(DIFF-DEA);(CLOSE0 AND CROSS(DIFF,0),H*1.3),COLOR000080,NODRAW;(CLOSE0 AND CROSS(MACD2,0),H*1.3),COLOR000080,N

12、ODRAW;(CLOSE0 AND CROSS(0,DIFF),H*1.3),COLOR808080,NODRAW;(CLOSE0 AND CROSS(0,MACD2),H*1.3),COLOR808080,NODRAW;DU0:=CROSS(DIFF,0);UD0:=CROSS(0,DIFF);TDU0:=BARSLAST(DU0);TUD0:=BARSLAST(UD0);DU3:=REF(DU0,1);UD3:=REF(UD0,1);TDU3:=BARSLAST(DU3);TUD3:=BARSLAST(UD3);UDGLINE:=IF(TDU3TUD3,REF(HHV(HIGH,2),TD

13、U3),REF(LLV(LOW,2),TUD3);JDU0:=REF(CLOSE,1)UDGLINE AND TDU0=REF(UDGLINE,1) AND CLOSEUDGLINE AND TUD0TDU0;JDU1:=JDU0 AND COUNT(JDU0,TDU0)=1;JUD1:=JUD0 AND COUNT(JUD0,TUD0)=1;JDU2:=JDU1 AND REF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);JDU3:=JDU1 AND REF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);JUD3:=JUD1

14、AND REF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);BSLINE:=IF(BARSLAST(JDU2)=0,0,MACD2,2,1),COLOR0000FF;STICKLINE(MACD2=0 AND MACD2REF(MACD2,1),0,MACD2,2,0),COLOR0000FF;STICKLINE(MACD20,0,MACD2,2,0),COLORFFFF00;STICKLINE(MACD2REF(MACD2,1),0,MACD2,2,1),COLORFFFF00;DIFIFF,LINETHICK2,COLOR0000FF;MACDEA,COL

15、ORFF0000;DEF:MACD2,LINETHICK0,COLORFFFF00;STICKLINE(CLOSE0,0,0,2,0),COLOR808080;DEFUT:=BARSLAST(CROSS(MACD2,0);DEFDT:=BARSLAST(CROSS(0,MACD2);DEFUL:=IF(MACD2=0,HHV(MACD2,DEFUT+1),REF(HHV(MACD2,DEFUT+1),DEFDT+1);DEFDL:=IF(MACD20 AND MACD2REF(MACD2,2) AND REF(MACD2,2)REF(MACD2,3),MACD2,2);DRAWICON(HHV

16、(MACD2,4)REF(MACD2,1) AND REF(MACD2,1)REF(MACD2,2) AND REF(MACD2,2)BARSLAST(JUD1) AND MACD2=0 AND REF(MACD2,1)DEFU2L,MACD2,5);DRAWICON(JDU1 OR BARSLAST(JDU1)BARSLAST(JUD1) AND MACD2REF(DEFD2L,1) AND MACD2DEFD2L,MACD2,3);VAR111:=JDU1 OR BARSLAST(JDU1)BARSLAST(JUD1);VAR112:=HHV(MACD2,4)REF(MACD2,1) AN

17、D REF(MACD2,1)REF(MACD2,2) AND REF(MACD2,2)MACD2 AND MACD10,0,MACD1,1,0),COLORRED;STICKLINE(MACD1MACD2 AND MACD10,0,MACD1,1,0),COLORGREEN;STICKLINE(MACD1=0 OR MACD1=DEAEA1,DIFIF1,DRAWNULL),COLORRED,LINETHICK2;弱:IF(DEAEA1=DIFIF1,DEAEA1,DRAWNULL),COLORFF9900,LINETHICK2;DRAWICON(CROSS(DIFIF1,DEAEA1),DI

18、FIF1+0.1,1);DRAWICON(CROSS(DEAEA1,DIFIF1),-0.5,2);DRAWTEXT(CROSS(DIFIF1,DEAEA1),DIFIF1,),LINETHICK2, COLORYELLOW;17、至尊MACD注意用到了未来函数DCLOSE本指标只作趋势参考DIFF:EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:EMA(DIFF,9),COLORFFFF00;MACD:(DIFF-DEA)*2;STICKLINE(MACD=0 AND MACD=REF(MACD,1),0,MACD,1,0),COLORRED;STICKLINE(MACD

19、=0 AND MACD=REF(MACD,1),0,MACD,1,0),COLORGREEN;STICKLINE(MACD=REF(MACD,1),0,MACD,1,0),COLORFF00FF;STICKLINE(MACD=0 AND MACD0) AND (MACDREF(MACD,2) AND (REF(MACD,2)REF(MACD,3);空转多:=(HHV(MACD,4)REF(MACD,1) AND (REF(MACD,1)REF(MACD,2) AND (REF(MACD,2)REF(MACD,3);DRAWICON(多转空,MACD,2);DRAWICON(空转多,MACD,1

20、);低位金叉:=CROSS(DIFF,DEA) AND DIFF=0);二次金叉:=CROSS(DIFF,DEA) AND DEACLOSE AND DIFFREF(DIFF,A1+1) AND CROSS(DIFF,DEA);DRAWTEXT(底背离,-0.2-MACD,底背离),COLORWHITE;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1);顶背离:=REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF);DRAWTEXT(顶背离,0.2+MACD,顶背离),COLORWHITE;18、条件选股公式:(双佛手向上) 缺省周期:日线=DI

21、FF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,27);MACD := 2*(DIFF-DEA);CLOSEOPEN AND MA(CLOSE,5)MA(CLOSE,10) and MA(CLOSE,10)MA(CLOSE,30)and DIFFDEA AND MACDREF(MACD,1) and DIFF0 AND DEA0 and MA(VOL,5)MA(VOL,34)and MA(CLOSE,30)=REF(MA(CLOSE,30),1)=根据南征北战之二中的双佛手向上思路编写,指标用法:1.DIFF线回调DEA线附近时不死叉,又

22、调头向上。2.30日均线走平或向上,同时5日线和10日线在30日线上方金叉,且当日收阳线。3.5日均量线回调到34日均量线附近时不死叉,又调头向上。以上三个条件要同时成立时将有一波上升浪,应果断买入。将MACD指标的m参数调为2719、条件选股公式:(漫步青云) 缺省周期:日线=DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,27);dje:=DIFF=0 and DEA=0 and CROSS(DIFF,DEA);a5:=MA(CLOSE,5)MA(CLOSE,10);v5:=VOLMA(VOL,5) and MA(VOL,5)MA

23、(VOL,10);dje and a5 AND V5 AND MA(CLOSE,30)=REF(MA(CLOSE,30),1) =将macd指标的参数调为12,26,27主要用法:当30日均线走平或上扬,5日均量大于10日均量,当日成交量大于5日均量,5日均线金叉或已金叉10日均线,macd指标中diff线在0轴上死叉dea线,DIFF线下穿0轴后,又再次上穿并在0轴或0轴上金叉dea线,应果断介入。但若此时K线离30日,30周,30小时均线较远,不能介入20、=条件选股公式:(空中缆绳) 缺省周期:日线=DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=

24、 EMA(DIFF,27);MACD := 2*(DIFF-DEA);b:=MIN(DIFF,DEA)/MAX(diff,dea)0.95;MA(CLOSE,30)REF(MA(CLOSE,30),1) and diff0 and dea0 AND MACDREF(MACD,1) and b=将MACD指标的参数调为sh:12;long:26;M:27用法:30日均线上扬或走平,主力开始洗盘。这时macd指标中的DIFF线随股价的回调而与DEA线在0轴上粘合数值几乎相等,只要5日均线在30日均线上方金叉或已金叉10日均线,macd指标红柱加长,DIFF线脱离DEA线上扬,就是买点。-以上公式经过验证有效!- . . . .

展开阅读全文
部分上传会员的收益排行 01、路***(¥15400+),02、曲****(¥15300+),
03、wei****016(¥13200+),04、大***流(¥12600+),
05、Fis****915(¥4200+),06、h****i(¥4100+),
07、Q**(¥3400+),08、自******点(¥2400+),
09、h*****x(¥1400+),10、c****e(¥1100+),
11、be*****ha(¥800+),12、13********8(¥800+)。
相似文档                                   自信AI助手自信AI助手
百度文库年卡

猜你喜欢                                   自信AI导航自信AI导航
搜索标签

当前位置:首页 > 包罗万象 > 大杂烩

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        获赠5币

©2010-2024 宁波自信网络信息技术有限公司  版权所有

客服电话:4008-655-100  投诉/维权电话:4009-655-100

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :gzh.png    weibo.png    LOFTER.png 

客服