【股票指标公式下载】-【通达信】斋主MACD通道(成本区、波段底、加仓

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

【通达信】斋主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(DK0ANDDKREF(DK,1),DK+RC,RC,0.05,1),COLORLIBLUE;STICKLINE(DK0ANDDKREF(DK,1),DK+RC,RC,0.05,1),COLORWHITE;STICKLINE(DKREF(DK,1)ANDDK0,DK+RC,RC,0.05,1),COLORRED;STICKLINE(DKREF(DK,1)ANDDK0,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)+(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),COLORGRAY;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);VARD0:=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,VARDE0)AND(AA79);中轨:=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,50,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:=CLOSEREF(CLOSE,1)ANDCLOSEREF(CLOSE,2);VA2:=REF(VA1,1)ANDCLOSE=REF(CLOSE,1)ANDCLOSE=REF(CLOSE,2);VA3:=REF(VA2,1)ANDCLOSE=REF(CLOSE,1)ANDCLOSE=REF(CLOSE,2);VA4:=REF(VA3,1)ANDCLOSE=REF(CLOSE,1)ANDCLOSE=REF(CLOSE,2);VA5:=REF(VA4,1)ANDCLOSE=REF(CLOSE,1)ANDCLOSE=REF(CLOSE,2);VA6:=REF(VA5,1)ANDCLOSE=REF(CLOSE,1)ANDCLOSE=REF(CLOSE,2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SE,1)ANDCLOSE=REF(CLOSE,2);STICKLINE(VADORVAEORVAFORVA10ORVA11ORVA12ORVA13ORVA14ORVA15ORVA16ORVA17ORVA18,CLOSE,REF(CLOSE,1),3,0),COLORLIBLUE;VA19:=REF(VADORVAEORVAFORVA10ORVA11ORVA12ORVA13ORVA14ORVA15ORVA16ORVA17ORVA18,1)ANDVA1;STICKLINE(VA19,REF(CLOSE,1),REF(CLOSE,2),3.4,0),COLORYELLOW;VA1A:=REF(VA1ORVA2ORVA3ORVA4ORVA5ORVA6ORVA7ORVA8ORVA9ORVAAORVABORVAC,1)ANDVAD;STICKLINE(VA1A,REF(CLOSE,1),REF(CLOSE,2),3.4,0),COLORBLUE;AA1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1);加仓:=IF(CROSS(AA1,REF(AA1+0.01,1))ANDLLV(AA1,2)=LLV(AA1,8)ANDBETWEEN(AA1,20,60),1,0);波段底:=(3)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(2)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1));A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);CB:=EMA(X,13);买:=IF(LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX0,2)ANDCROSS(DX,MA(DX,2)),1,0);江恩线144:EMA(CLOSE,144),COLORRED,LINETHICK2,POINTDOT;日:=50;昨前:=3;高1:=REF(HHV(H,10),昨前);高2:=REF(HHV(H,日),昨前);低:=REF(LLV(L,10),昨前);低1:=REF(LLV(L,日),昨前);十日压:REFDATE(高1,DATE),COLORGREEN,LINETHICK1,POINTDOT;DRAWTEXT(ISLASTBAR,十日压,'10K线内压力点位'),COLORGREEN;五十日压:REFDATE(高2,DATE),COLORCYAN,LINETHICK1,POINTDOT;DRAWTEXT(ISLASTBAR,五十日压,'50K线内压力点位'),COLORCYAN;十日支撑:REFDATE(低,DATE),LINETHICK1,COLORYELLOW,POINTDOT;DRAWTEXT(ISLASTBAR,十日支撑,'10K线内支撑点位'),CO

1 / 14
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功