资源描述:
《【股票指标公式下载】-【通达信】斋主MACD通道(成本区、波段底、加仓.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、【通达信】斋主MACD通道(成本区、波段底、加仓)-指标公式源码DIF:=EMA(CLOSE,60)-EMA(CLOSE,130);DEA:=EMA(DIF,45);MACD:=(DIF-DEA)*2,COLORSTICK;{MACD}RC:=DYNAINFO(3)*1.1;DK:=MACD*2;STICKLINE(DK<0ANDDK[REF
(DK,1),DK+RC,RC,0.05,1),COLORWHITE;STICKLINE(DK>REF(DK,1)AND]
2、
DK>0,DK+RC,RC,0.05,1),COLORRED;STICKLINE(DK[0,DK+RC,RC,0.05,1),COLOR00FF00;VAR4S:=(2*CLOSE+HIGH+LOW)/4;成本区:EMA(VAR4S,90)*0.995,,COLORYELLOW,POINTDOT
{CIRCLEDOT};GJZ:=(C+H+L+O)/4;阻Z:=L+(GJZ-L)+(C-L);支Z:=L+(C-GJZ);NN:=100;高点:=CONST(HHV(H,NN));低点:=CONST(LLV(L,NN));明日阻力:=L+(GJZ-L]
3、)+(C-L);明日支撑:=L+(C-GJZ);明日阻力2:=L+2*(GJZ-L)+(C-L);明日支撑2:=L+(C-GJZ)-(GJZ-L);今日阻力:=CONST(REF(明日阻力,1)),NODRAW;今日支撑:=CONST(REF(明日支撑,1)),NODRAW;今日阻力2:=CONST(REF(明日阻力2,1)),NODRAW;今日支撑2:=CONST(REF(明日支撑2,1)),NODRAW;STICKLINE(ISLASTBAR,今日阻力,今日阻力
2,20,0),COLORGRAY;STICKLINE(ISLASTBAR,今日支撑,今日支撑
2,20,0),C
4、OLORGRAY;MA60:=MA(CLOSE,60),COLORCYAN,LINETHICK2;MA120:=MA(CLOSE,120),COLORCYAN,LINETHICK2;LC:=REF(CLOSE,1);VAR28Z:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-
LC),6,1)*100;VARA00:=((AMOUNT)/(VOL))/(100);VARAB00:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);VARAC00:=((SUM(AMOUNT,7))/(VARA00))/(100);VA
5、RD0:=DMA(VARAB00,(VOL)/(VARAC00));VARDE0:=((CLOSE-VARD0)/(VARD0))*(100);VARDE0F:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV
(LOW,34)))*(100);VARDE0JF:=MA(VARDE0,20)+STD(VARDE0,20);BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*
(100);AA:=SMA(VARDE0F,3,1);SS:=(REF(BIAS18,1)>=5)ANDCROSS(VARDE0JF,VAR
6、DE0)
AND(AA>79);中轨:=MA(CLOSE,34)NODRAW;上轨:=中轨*1.0618,CIRCLEDOT,COLORFF6600;下轨:=中轨*0.89,CIRCLEDOT,COLOR6C6CFF;顶轨:=中轨*1.191,COLORGREEN;底轨:=中轨*0.809,COLORYELLOW;DRAWBAND(中轨,RGB(250,150,0),REF(中轨,2),RGB
(00,50,200));DRAWBAND(顶轨,RGB(200,50,51),REF(顶轨*1.005,1),RGB
(0,160,100));DRAWBAND(底轨,RGB(200,5
7、0,51),REF(底轨*0.995,1),RGB
(0,160,100));DRAWBAND(上轨,RGB(60,60,0),上轨*1.005,RGB
(50,100,60));DRAWBAND(下轨,RGB(50,100,60),下轨*0.995,RGB
(60,60,0));VA1:=CLOSE>REF(CLOSE,1)ANDCLOSE>REF(CLOSE,2);VA2:=REF(VA1,1)ANDCLOSE<=REF(CLOSE,1)AND
CLOSE>=REF(CLOS