以下是通达信神奇DDE指标公式源码和使用说明

通达信神奇DDE指标公式源码:

   资金线:=AMOUNT/CAPITAL,LINETHICK2;

   E10:EMA(资金线,10);

   ZX1:MAX(H,MAX(C,MAX(O,L))),COLORRED,LINETHICK2;

   STICKLINE(ZX1<E10,ZX1,E10,1,1);

   VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;

   A1:(EMA(VAR1,3)+EMA(VAR1,6)+EMA(VAR1,12)+EMA(VAR1,24))/4;

   A2:EMA(A1,2);

   A3:EMA(A2,2);

   A4:EMA(A3,2);

   A5:EMA(A4,2);

   A6:EMA(A5,2);

   A7:EMA(A6,2);

   A8:EMA(VAR1,2.78)*1.028;

   A9:MA(OPEN,3.2)*1.028;

   安全线:EMA(CLOSE,55),COLORGREEN,POINTDOT,LINETHICK4;

   mcst:DMA((AMOUNT/(vol*100)),VOL/CAPITAL),COLORRED,POINTDOT,LINETHICK4;

   {

   V1:=Abs((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);

   V2:=(1-7/100)*(DMA(CLOSE,V1));

   V3:=(1+7/100)*(DMA(CLOSE,V1));

   撑价:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCDCDCD;

   阻价:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORYELLOW;}

   {箱体}{P,3,30,10}

   阻力:PEAK(CLOSE,10,1)*0.98,COLORWHITE;

   支撑:TROUGH(CLOSE,10,1)*1.02,COLORYELLOW;

   WW1:=FILTER(O<REF(L,1)ANDC>OANDVOL>REF(V,1),13);

   JH:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;

   SZ:=FILTER(crOSS(JH,35),13);

   SX:=FILTER(CROSS(JH,30),7);

   SQ:=FILTER(CROSS(71,JH),74);

   SD:=FILTER(CROSS(80,JH),74);

   AA:=IF(CAPITAL<1,SZ,SX);

   BB:=IF(CAPITAL<1,SQ,SD);

   CC:=REF(HHV(CLOSE,120),1);DD:=REF(LLV(CLOSE,120),1);

   WW:=((100*(CLOSE-DD))/(CC-DD));EE:=AMOUNT;

   FF:=(EMA(EE,5)/REF(EMA(EE,5),5));

   霸占:=FILTER(((((((FF>=2))AND(WW<35)))AND(BARSCOUNT(CLOSE)>30))OR(((((FF>=2))AND(WW<100)))AND(BARSCOUNT(CLOSE)<50))),90);

   STICKLINE(C>REF(C,1),C,O,3.2,0),COLOR0000AA;

   STICKLINE(C>REF(C,1),C,O,2.7,0),COLOR0000DD;

   STICKLINE(C>REF(C,1),C,O,2.1,0),COLOR0022FF;

   STICKLINE(C>REF(C,1),C,O,1.5,0),COLOR0066FF;

   STICKLINE(C>REF(C,1),C,O,0.9,0),COLOR0099FF;

   {STICKLINE(C>REF(C,1),C,O,0.3,0),COLOR00ddfF;}

   STICKLINE(C<REF(C,1),C,O,3.2,0),COLOR990000;

   STICKLINE(C<REF(C,1),C,O,2.7,0),COLORCC0000;

   STICKLINE(C<REF(C,1),C,O,2.1,0),COLORFF4400;

   STICKLINE(C<REF(C,1),C,O,1.5,0),COLORFF8800;

   STICKLINE(C<REF(C,1),C,O,0.9,0),COLORFFCC00;

   {STICKLINE(C<REF(C,1),C,O,0.3,0),COLORFFDD00;}

   STICKLINE(C=REF(C,1),C,O,3.2,0),COLOR555555;

   STICKLINE(C=REF(C,1),C,O,2.7,0),COLOR777777;

   STICKLINE(C=REF(C,1),C,O,2.1,0),COLOR999999;

   STICKLINE(C=REF(C,1),C,O,1.5,0),COLORBBBBBB;

   STICKLINE(C=REF(C,1),C,O,0.9,0),COLORDDDDDD;

   {STICKLINE(C=REF(C,1),C,O,0.3,0),COLORFFFFFF;}

   STICKLINE(霸占,C,O,3,2),COLOR000055;

   STICKLINE(霸占,C,O,2.7,0),COLOR000077;

   STICKLINE(霸占,C,O,2.1,0),COLOR000099;

   STICKLINE(霸占,C,O,1.5,0),COLOR0000BB;

   STICKLINE(霸占,C,O,0.9,0),COLOR0000DD;

   {STICKLINE(霸占,C,O,0.3,0),COLOR0000FF;}

   STICKLINE(WW1,CLOSE,OPEN,3.2,0),COLORBB00FF;

   STICKLINE(WW1,CLOSE,OPEN,2.7,0),COLORFF33FF;

   STICKLINE(WW1,CLOSE,OPEN,2.1,0),COLORFF66FF;

   STICKLINE(WW1,CLOSE,OPEN,1.5,0),COLORFF99FF;

   STICKLINE(WW1,CLOSE,OPEN,0.9,0),COLORFFBBFF;

   {STICKLINE(WW1,CLOSE,OPEN,0.3,0),COLORFFDDFF;}

   STICKLINE(AA,CLOSE,OPEN,3.2,0),COLOR0088FF;

   STICKLINE(AA,CLOSE,OPEN,2.7,0),COLOR00AAFF;

   STICKLINE(AA,CLOSE,OPEN,2.1,0),COLOR00CCFF;

   STICKLINE(AA,CLOSE,OPEN,1.5,0),COLOR22FFFF;

   STICKLINE(AA,CLOSE,OPEN,0.9,0),COLOR66FFFF;

   {STICKLINE(AA,CLOSE,OPEN,0.3,0),COLOR99FFFF;}

   STICKLINE(BB,CLOSE,OPEN,3.2,0),COLOR005500;

   STICKLINE(BB,CLOSE,OPEN,2.7,0),COLOR007700;

   STICKLINE(BB,CLOSE,OPEN,2.1,0),COLOR009900;

   STICKLINE(BB,CLOSE,OPEN,1.5,0),COLOR00BB00;

   STICKLINE(BB,CLOSE,OPEN,0.9,0),COLOR00DD00;

   {STICKLINE(BB,CLOSE,OPEN,0.3,0),COLOR00FF00;};

   {涨跌提示}

   涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);

   STICKLINE(涨停,OPEN,CLOSE,1.5,0),COLORYELLOW;

   跌停:=IF((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);

   STICKLINE(跌停,OPEN,CLOSE,1.5,0),COLORWHITE;

   DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);

   DEA:=EMA(DIFF,5);

   A1:=DIFF>DEA;

   RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;

   K:=SMA(RSV1,3,1);

   D:=SMA(K,3,1);

   A2:=K>D;

   LC:=REF(CLOSE,1);

   RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;

   RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;

   A3:=RSI1>RSI2;

   RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;

   LWR1:=SMA(RSV,3,1);

   LWR2:=SMA(LWR1,3,1);

   A4:=LWR1>LWR2;

   BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;

   A5:=CLOSE>BBI;

   MTM:=CLOSE-REF(CLOSE,1);

   MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);

   MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);

   A6:=MMS>MMM;

   涨买入:=(A1ANDA2ANDA3ANDA4ANDA5ANDA6)ANDREF(A1ANDA2ANDA3ANDA4ANDA5ANDA6,1)=0;

   上涨:=A1ANDA2ANDA3ANDA4ANDA5ANDA6;

   HM:=MA(HIGH,30)*(1+15/100);

   M1:=MA(C,5);

   M2:=MA(C,10);

   M3:=MA(C,20);

   M4:=MA(C,60);

   AAA:=(C>M1)AND(M1>M2)AND(M2>M3);

   DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);

   DEA1:=EMA(DIFF1,9);

   MACD1:=2*(DIFF1-DEA1);

   MACDH:=CROSS(MACD1,0);

   DIFF22:=EMA(CLOSE,12)-EMA(CLOSE,26);

   DEA22:=EMA(DIFF22,9);

   JJ:=(C*3+H+L+O)/6;SK:=EMA(JJ,13)-EMA(JJ,21);

   SD:=EMA(SK,3);

   SP:=EMA(SK,10);

   AAA1:=EMA(C,7)-EMA(C,21);

   B1:=EMA((0.668*REF(AAA1,1)+0.333*AAA1),1);

   X1:=V/SUM(V,13);

   X2:=DMA(C,X1);

   X3:=(C-X2)/X2*40;

   L2:=MA(AMOUNT/(100*V),13);

   CYS13:=(C-L2)/L2*100;

   XDFHTH:=REF(AAA1,1)<=REF(B1,1);

   点火:=CYS13>4.5ANDDIFF22>DEA22ANDC>=EMA(C,5)ANDAAA1-B1>0;

   MA5:=MA(C,5);

   压力:=HHV(MA5,60);

   小牛涨大:=O>REF(C,1)*1.02ANDC>OANDC>=压力AND压力>=REF(C,1)ANDMA5>REF(MA5,1);

   VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);

   VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05)AND((HIGH)/(CLOSE)<1.01)AND(VAR3AA>0),91,0);

   大胆搏:=FILTER((VAR4AA>90),45);

   最强火:=CROSS(MACD1,0)ANDAAAAND涨买入ANDC>=HM;

   VAR1:=EMA(EMA(CLOSE,13),13);

   控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;

   JJJ:=DYNAINFO(11);

   P:=55;S:=8;MM1:=3;

   公式:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10;

   神:=EMA(公式,MM1);

   BTJ1:=(C-JJJ)/JJJ<-0.03;

   BTJ11:=(C-JJJ)/JJJ<-0.03;

   BTJ2:=控盘>REF(控盘,1)AND控盘<-0.2;

   BTJ3:=CROSS(公式,神)AND公式<-0.3;

   BTJ811:=FILTER(BTJ11ANDBTJ2ANDBTJ3,13);

   庄:=BTJ11ANDBTJ2ANDBTJ3;

   有庄:FILTER(庄,55),COLORWHITE;

   DRAWTEXT(BTJ811,有庄,’有庄’),COLORWHITE;

   VAR92:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);

   VAR102:=SMA(VAR92,3,1);

   VAR112:=SMA(VAR102,3,1);

   VAR122:=SMA(VAR112,3,1);

   主力出现:DRAWICON(CROSS(VAR112,VAR122)AND(VAR112<40),0,1);

   R4:=(2*C+H+L)/4;

   R5:=LLV(L,94);

   R6:=HHV(H,89);

   快线:EMA((C-R5)/(R6-R5)*100,8);

   慢:=EMA(0.667*REF(快线,1)+0.333*快线,10),COLORCYAN;

   RSVO:=(CLOSE-LLV(LOW,40))/(HHV(HIGH,40)-LLV(LOW,40))*100;

   快:=SMA(RSVO,MO1,1);

   慢线:=SMA(快,MO2,1);

   资金:=快,COLORBLUE,LINETHICK2;

   资升:IF(资金>REF(资金,1),资金,DRAWNULL),COLORRED,LINETHICK2;

   资降:IF(资金<REF(资金,1),资金,DRAWNULL),COLORGREEN,LINETHICK2;

   DRAWICON(CROSS(快,慢线),快,1);

   DRAWICON(CROSS(慢线,快),快,2);

   MID:=MA(C,20);

   VART1:=POW((C-MID),2);

   VART2:=MA(VART1,20);

   VART3:=SQRT(VART2);

   UPPER:=MID+2*VART3;

   LOWER:=MID-2*VART3;

   BOLL:=MID,COLORYELLOW;

   UB:=REF(UPPER,1),COLORFF00FF;

   LB:=REF(LOWER,1),COLORWHITE;

   破轨:IF(C>UB,15,0),COLORRED,LINETHICK1;

   JJJP:=(HIGH+LOW+CLOSE)/3;

   QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);

   QJ1:=QJ0*(MIN(OPEN,CLOSE)-LOW);

   QJ2:=QJ0*(JJJP-MIN(CLOSE,OPEN));

   QJ3:=QJ0*(HIGH-MAX(OPEN,CLOSE));

   QJ4:=QJ0*(MAX(CLOSE,OPEN)-JJ);

   DDX:=IF(HIGH=LOW,4*QJ0,((QJ1+QJ2)-(QJ3+QJ4)))/SUM(VOL,10)*100;

   DDY:=((QJ2+QJ4)-(QJ1+QJ3))/SUM(VOL,10)*100;

   DDZ:=((QJ1+QJ2)-(QJ3+QJ4))/((QJ1+QJ2)+(QJ3+QJ4))*100*17;

   DDE:=DDX>2ANDDDZ>100ANDDDY>3ANDVOL/CAPITAL*100>3;

   DDE预警:DDE*13COLORGREEN,LINETHICK1;

通达信神奇DDE指标公式截图

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。