您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:彩色macd副图

彩色macd副图


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2013-03-25 09:02:00
公式简介:

DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);MACD:(DIF1-DEA1)*2,COLORSTICK;
MACD1:=2*(DIF1-DEA1);
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.5,0),COLORRED;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0.5,0),COLORMAGENTA;
STICKLINE(MACD1<MACD2 AND MACD1>0,0,MACD1,0.5,0),COLORFFCC00;
STICKLINE(MACD1<MACD2 AND MACD1<0,MACD1,0,0.5,0),COLORGREEN;
DIF:DIF1,COLOR33FF33;
DEA:DEA1,COLORYELLOW;


买:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)<=REF(ZIG(3,5),3));
卖:=(ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)>=REF(ZIG(3,5),3));
STICKLINE((买=1),(0.01),0,0.1,0),COLOR0000FF;
DRAWTEXT((买=1),(0.01),'买'),COLOR0000FF;
STICKLINE((卖=1),0.01,0,0.1,0),COLOR00FF00;
DRAWTEXT((卖=1),0.01,'卖'),COLOR00FF00;A1:=REF(CLOSE,2);
A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100;
A3:=DATE <= 1070615;
A4:=REF(LOW,1);
A5:=SMA(ABS(LOW-A4),3,1)/SMA(MAX(LOW-A4,0),3,1)*100;
A6:=EMA(IF(CLOSE*1.3,A5*10,A5/10),3);
A7:=LLV(LOW,29);
A8:=HHV(A6,37);
A9:=IF(MA(CLOSE,90),1,0);

底部介入:IF(A2<12,0.03,0),LINETHICK1,COLORWHITE;

F1:=ZIG(3,15);
牛势启动15:IF((F1> REF(F1,1)),0.05,0),COLORRED,LINETHICK1;


建仓:IF(DIF<0,DIF,0),COLORYELLOW,LINETHICK1;
加仓:IF(DIF<0,0,DIF),COLORRED,LINETHICK1;
白线破仓:IF(DIF<DEA,DIF,DEA),COLORWHITE,LINETHICK1;
趋势强弱:IF(DIF>DEA,DEA,DEA),COLORFF937F,LINETHICK1;

KSD:=IF(O>C,O,C);
全仓进:IF(TROUGHBARS(KSD,10,1)=1,0.1,0),,COLOR007FFF,LINETHICK2;
VA1:=HHVBARS(MACD,BARSLAST(MACD<0)+0);
VA2:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(VA1,1)+3),0.5);
前高:=DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1),COLORWHITE;
VA3:=LLVBARS(MACD,BARSLAST(MACD>0)+1);
VA4:=CROSS(BACKSET(CROSS(MACD,0) OR (ISLASTBAR AND MACD<0),REF(VA3,1)+1),0.5);
前低:=DRAWLINE(VA4,MACD,REF(VA4,1),REF(MACD,1),1),COLORYELLOW;
风险高点:IF(COUNT(MACD>0,BARSLAST(VA2))=BARSLAST(VA2),DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1),
DRAWNULL),COLORGREEN,LINETHICK2;
安全低点:IF(COUNT(MACD<0,BARSLAST(VA4))=BARSLAST(VA4),DRAWLINE(VA4,MACD,REF(VA4,1),REF(MACD,1),1),
DRAWNULL),COLORWHITE,LINETHICK2;

风险界:风险高点/2,POINTDOT,COLORWHITE;
安全界:安全低点/2,POINTDOT,COLORGREEN;
STICKLINE(MACD>0 AND MACD>前高,0,MACD,0,0),COLORRED;
STICKLINE(REFX(VA2,1) OR REFX(VA4,1),0,MACD,1,0),COLOR32CD99;

参;SHORT/2/200/12;LONG/2/200/26;MID/2/200/9;


 




[url=http://www.goodgupiao.com/gupiaogongshi/27046.html][B]彩色macd副图[/B][/url]