软件名称:[B]MACD优化指标[/B]
软件类型:国产软件
运行环境:Win9X/2000/XP/2003/
软件语言:简体中文
授权方式:解密版
软件大小:9.00 KB
官方主页:Home Page
更新时间:2009-01-05 08:46:18
软件简介:
{MACD优化指标}
{这是MACD的优化指标,与传统的MACD有很大的差异,原码如下:}
A1:=MA(((C-MA(C,6))/MA(C,6)*100+2*(C-MA(C,12))/MA(C,12)*100+3*(C-MA(C,24))/MA(C,24)*100)/6,3);
A2:=SMA(SMA((C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100,2,1)+3,2,1);
STICKLINE(A2<20,70,80,10,1),COLORFFFF00;
A3:=SMA((C-LLV(L,80))/(HHV(H,80)-LLV(L,80))*200,3,1);
A4:=EMA((C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,4)*2;
A5:=EMA(0.667*REF(A4,1)+0.333*A4,2);
A6:=(POW(MA(C,5),2)+MA(C,5)-LLV(POW(MA(L,5),2)+MA(L,5),64))/(HHV(POW(MA(H,5),2)+MA(H,5),64)-LLV(POW(MA(L,5),2)+MA(L,5),64))*150+65-10;
A8:=3*(SMA(A6,3,1)*1.5-100)-2*SMA((SMA(A6,3,1)*1.5-100),3,1);
A9:=EMA(((H+L+C*2)/4-EMA((H+L+C*2)/4,13))*100/STD((H+L+C*2)/4,13),5);
A10:=(3*EMA(A9,13)+100)-2*EMA(EMA(A9,13)+100,10);
A11:=A3+A4+(SMA(A6,3,1)*1.5-100)+(EMA(A9,13)+100);
A12:=SMA(A3,3,1)+A5+SMA((SMA(A6,3,1)*1.5-100),3,1)+EMA(EMA(A9,13)+100,10);
A13:=(3*A3-2*SMA(A3,3,1))+(3*A4-2*A5)+A8+A10;
A14:=((H+L+C)/3-MA((H+L+C)/3,34))/(0.015*AVEDEV((H+L+C)/3,34));
A15:=((H+L+C)/3-MA((H+L+C)/3,24))/(0.015*AVEDEV((H+L+C)/3,24));
A16:=EMA(((H+L+C+(H+L+C)/3)/4-EMA((H+L+C+(H+L+C)/3)/4,24))/STD((H+L+C+(H+L+C)/3)/4,24)*100,5);
A17:(((A16+A15+A14)/3+165)/4+((A11+A12+A13*30)/32/5-15))/2/1.1;
A18:EMA(((EMA(EMA(EMA(((A16+A15+A14)/3+165)/4,15),10),5)-25)*2+EMA(((A11+A12+A13*30)/32/5-15),13))/2,2);
A19:EMA(A18,34);
STICKLINE(A17>A18,A17,A18,2,1),COLORYELLOW;
STICKLINE(A17>A19,A17,A19,2,0),COLORRED;
STICKLINE(A17<A19,A17,A19,2,1),COLORBLUE;
STICKLINE(A17<A18 AND A17>A19,A17,A18,3,1),COLORGREEN;
STICKLINE(A17<A19,120,125,6,1),COLORGREEN;
STICKLINE(A17>A19,120,125,3,0),COLORRED;
A20:=CROSS(A17,0) AND COUNT(A1<-12,2)>=1 OR CROSS(A17,A18) AND COUNT(A1<-12,2)>=1;
STICKLINE(A20,50,0,2,0),coloryellow;
A21:=EMA(EMA((EMA((((H+L+C*2)/4-EMA((H+L+C*2)/4,21))/STD((H+L+C*2)/4,21)*100+200)/4,5)-25)*1.56,2)*1.22,2);
A22:=3*EMA((EMA((((H+L+C*2)/4-EMA((H+L+C*2)/4,21))/STD((H+L+C*2)/4,21)*100+200)/4,5)-25)*1.56,2)*1.22-2*A21;
STICKLINE(A22>100,120,125,8,0),colorwhite;
A23:=EMA(EMA(((H+L+C*2)/4-EMA((H+L+C*2)/4,10))*100/STD((H+L+C*2)/4,10),5),10)+100/2-5;
A24:=IF(CROSS(A23,EMA(A23,4)) AND EMA(A23,4)<-10,20,0);
DRAWICON(A24 AND IF(EMA((C+H+L)/3,10)>REF(EMA((C+H+L)/3,10),1),EMA((C+H+L)/3,10),0),100,1);
DRAWICON(CROSS(EMA(A23,4),80),100,2);
DRAWTEXTREL(800,960,STKLABEL+' '+STKNAME+''),Color03A8FF;
[url=http://www.70822.com/soft/sort013/sort03/down-5387.html]MACD优化指标[/url]