資源描述:
《【股票指標公式下載】-【通達信】齋主MACD通道(成本區(qū)、波段底、加倉.doc》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、【通達信】齋主MACD通道(成本區(qū)、波段底、加倉)-指標公式源碼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;成本區(qū):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