以下是通达信钻石底选股指标公式源码和使用说明

通达信钻石底选股指标公式源码:

   VAR1:=Ema(CLOSE,12)-EMA(CLOSE,26);

   VAR2:=EMA(VAR1,9);

   VAR3:=VAR1>VAR2;

   VAR4:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;

   VAR5:=SMA(VAR4,3,1);

   VAR6:=SMA(VAR5,3,1);

   VAR7:=VAR5>VAR6;

   VAR8:=REF(CLOSE,1);

   VAR9:=SMA(MAX(CLOSE-VAR8,0),9,1)/SMA(Abs(CLOSE-VAR8),9,1)*100;

   VAR10:=SMA(MAX(CLOSE-VAR8,0),26,1)/SMA(ABS(CLOSE-VAR8),26,1)*100;

   VAR11:=VAR9>VAR10;

   VAR12:=SMA(VAR4,3,1);

   VAR13:=SMA(VAR12,3,1);

   VAR14:=VAR12>VAR13;

   VAR15:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4;

   VAR16:=CLOSE>VAR15;

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

   VAR18:=100*EMA(EMA(VAR17,9),9)/EMA(EMA(ABS(VAR17),9),3);

   VAR19:=100*EMA(EMA(VAR17,26),12)/EMA(EMA(ABS(VAR17),26),12);

   VAR20:=VAR18>VAR19;

   VAR21:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);

   VAR22:=REF(EMA(VAR21,3),1);

   VAR23:=vol/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

   VAR24:=IF(CLOSE>OPEN,VAR23*(HIGH-LOW),IF(CLOSE<OPEN,VAR23*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-VAR23*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR23*(HIGH-LOW),0-VOL/2));

   VAR25:=VAR24/20/1.15;

   VAR26:=VAR25*0.55+REF(VAR25,1)*0.33+REF(VAR25,2)*0.22;

   VAR27:=EMA(VAR26,8);

   VAR28:=EMA(VAR26,3);

   VAR29:=VAR28;

   VAR30:=VOL;

   VAR31:=MA(VAR30,5);

   VAR32:=MA(VAR30,10);

   VAR33:=VAR31>=VAR32;

   VAR34:=VAR29>=0;

   VAR35:=VAR34ANDVAR33;

   DRAWICON(VAR35,1,25);

   VAR36:=MA(kdj.K#WEEK(9,3,3),5);

   VAR37:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);

   VAR38:=EMA(VAR37,9/2);

   VAR39:=VAR36>=REF(VAR36,1)ANDVAR37>=VAR38;

   DRAWICON(VAR39,0.9,7);

   VAR40:=VAR39ORVAR35;

   VAR41:=VAR3ANDVAR7ANDVAR11ANDVAR14ANDVAR16ANDVAR20;

   VAR42:=COst(50)*COST(50)/COST(80);

   VAR43:=COST(40)*COST(40)/COST(60);

   VAR44:=VAR43-VAR42;

   VAR45:=VAR44>0ANDCLOSE>VAR43;

   VAR46:=VAR44<0ANDCLOSE>VAR42;

   VAR47:=VAR45ORVAR46OR(VAR45ANDVAR46);

   VAR48:=VAR47=0OR(VAR44>0ANDCLOSE>VAR43ANDCLOSE<MA(CLOSE,10))OR(VAR44<0ANDCLOSE>VAR42ANDCLOSE<MA(CLOSE,5));

   VAR49:=VAR47ANDREF(VAR48,1);

   VAR50:=VAR48ANDREF(VAR47,1);

   STICKLINE(VAR48,0.5,0.8,3,0),COLORGREEN;

   STICKLINE(VAR48,0.5,0.8,2.5,0),COLOR006000;

   STICKLINE(VAR48,0.5,0.8,2,0),COLOR007500;

   STICKLINE(VAR48,0.5,0.8,1.5,0),COLOR009100;

   STICKLINE(VAR48,0.5,0.8,1,0),COLOR00A600;

   STICKLINE(VAR48,0.5,0.8,0.5,0),COLOR00BB00;

   STICKLINE(VAR48,0.5,0.8,0,0),COLOR00CC00;

   STICKLINE(VAR47,0.5,0.8,3,0),COLORYELLOW;

   STICKLINE(VAR47,0.5,0.8,2.5,0),COLOR0035FF;

   STICKLINE(VAR47,0.5,0.8,2,0),COLOR0064FF;

   STICKLINE(VAR47,0.5,0.8,1.3,0),COLOR0093FF;

   STICKLINE(VAR47,0.5,0.8,0.8,0),COLOR00C2FF;

   STICKLINE(VAR47,0.5,0.8,0.3,0),COLOR00FFFF;

   STICKLINE(VAR41,0.5,0.8,3,0),COLORRED;

   STICKLINE(VAR41,0.5,0.8,2.5,0),COLOR000055;

   STICKLINE(VAR41,0.5,0.8,2,0),COLOR000077;

   STICKLINE(VAR41,0.5,0.8,1.5,0),COLOR000099;

   STICKLINE(VAR41,0.5,0.8,1,0),COLOR0000BB;

   STICKLINE(VAR41,0.5,0.8,0.5,0),COLOR0000DD;

   STICKLINE(VAR41,0.5,0.8,0,0),COLOR0000FF;

   DRAWICON(VAR47ORVAR41ANDREF(VAR47ORVAR41,1)=0ANDVAR40,0.5,25);

   AA:=MA(“999999$CLOSE”,1)-MA(“999999$CLOSE”,6);

   DD:=MA(CLOSE,1)-MA(CLOSE,6);A1:=DD>0;B:=AA>0;

   B1:=COUNT(A1,8)-COUNT(B,8);BN:=5;

   A2:=DD<0;C1:=B1>=4;D1:=COUNT(A2,10)=0;

   D2:=4*SMA((CLOSE-LLV(LOW,BN))/(HHV(HIGH,BN)-LLV(LOW,BN))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,BN))/(HHV(HIGH,BN)-LLV(LOW,BN))*100,5,1),3.2,1),COLORYELLOW,LINETHICK0;

   D3:=8;E:=crOSS(D2,D3);A:=”macd.MacD”;

   D4:=((SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1))/(SMA(Abs(CLOSE-REF(CLOSE,1)),6,1)))*(100);

   G:=(D4<25);G5:=A>REF(A,1),2ANDREF(A,2)<REF(A,3);

   GG1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;

   G1:=GG1<-9ANDGG1>REF(GG1,1);F:=GORG1;

   G2:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);

   G6:=CAPITAL<4000000ANDC>O;

   G3:=SMA(G2,3,1);G4:=3*G2-2*G3;

   E1:=CROSS(CLOSE,REF(EMA(DMA((((HIGH+LOW)+(CLOSE*2))/4.15),0.9),3),1))ANDG4<55;

   钻石抄底:FILTER(C/REF(C,1)>=1.03ANDCOUNT(E1,3)>=1ANDCOUNT(F,6)>=1

   ANDCOUNT(E,10)>=1ANDCOUNT(REF(C1,10),25)>=4ANDCOUNT(REF(D1,10),25)>=4,6)ANDG6ANDG5;

   量比:=V/REF(V,1);

   涨幅:=REF(C,1)/REF(C,8);

   振幅:=HHV(REF(C,1),12)/LLV(REF(C,1),12);

   BUYPOINT:量比>=2.70ANDC>REF(C,1)ANDCOUNT(REF(C/O>=1.095,1),8)<1

   AND振幅<=1.10ANDC/O>=1AND涨幅>=0.9ANDCOUNT(REF(C/O>=1.04,1),8)<1

   ANDCOUNT(REF(C/O<=0.95,1),8)<1,LINETHICK2;

通达信钻石底选股指标公式截图

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