以下是通达信九五至尊指标公式源码和截图
通达信九五至尊指标公式源码:
100;
0;
Var1:=IF(YEAR 2094,0,1)ORIF(YEAR 2093ANDMONTH =1,0,1);
Var2:=DMA(EMA(CLOSE,12),SUM(,5)/3/CAPITAL);
Var3:=(CLOSE-Var2)/Var2*100;
Var4:=REF(Var3,1) -40ANDVar3 REF(Var3,1)ANDREF(Var3,1) REF(Var3,2)ANDVar3-REF(Var3,1)
Var5:=(CLOSE-OPEN)/OPEN*100;
Var6:=REF(CLOSE,1);
Var7:=SMA(MAX(CLOSE-Var6,0),6,1)/SMA(ABS(CLOSE-Var6),6,1)*100;
Var8:=COUNT(Var7 20,20)
Var9:=Var5 9ANDVar8;
VarA:=100*WINNER(OPEN);
VarB:=100*WINNER(CLOSE);
VarC:=VarB-VarA;
VarD:=VarC
VarE:=CLOSE/MA(CLOSE,3) =1.07ANDCLOSE=HHV(CLOSE,3)ANDMA(VOL,2)/MA(VOL,40) =3ANDMA(VOL,2)=HHV(MA(VOL,2),3)ANDVOL REF(VOL,1)ANDCLOSE REF(CLOSE,1);
VarF:=REF(CLOSE,1);
Var10:=SMA(MAX(CLOSE-VarF,0),5,1)/SMA(ABS(CLOSE-VarF),5,1)*100;
Var11:=COUNT(Var10 20,20)
Var12:=VarEANDVar11;
Var13:=MA(CLOSE,4);
Var14:=MA(CLOSE,10);
Var15:=MA(CLOSE,20);
Var16:=MA(CLOSE,25);
Var17:=COUNT(CROSS(Var14,Var15),2)=1;
Var18:=COUNT(CROSS(Var13,Var16),2)=1;
Var19:=Var17ANDVar18;
Var1A:=Var12ANDVarDANDVar19;
Var1B:=MA(CLOSE,80)-MA(CLOSE,10)/3;
Var1C:=CLOSE Var1BANDVOL/240 MA(VOL,5)/240ANDCLOSE REF(CLOSE,1)*1.08ANDCLOSE MA(CLOSE,13)*1.3;
天胜至尊:if(Var4ORVar9ORVar1AORVar1C*Var1,80,0),stick,linethick2,colorred;
drawtext(Var4ORVar9ORVar1AORVar1C*Var1,70,'天胜至尊'),coloryellow;
XA_1:=AMOUNT/100000000;
XA_2:=REF(AMOUNT,1)/100000000;
比值:XA_1/XA_2;
DRAWTEXT(CURRBARSCOUNT=2ORCURRBARSCOUNT=1,vol*1.4,VARCAT(VAR2stR(XA_1,2),3777)),COLORWHITE;
量:VOL,VOLSTICK,COLORLIGRAY;
几倍:VOL/REF(VOL,1),NODRAW,COLORRED;
换手:VOL*10000/FINANCE(7),NODRAW,COLORGREEN;
:VOL/REF(ma(VOL,5),1),NODRAW,COLORBROWN;
全换手周期:SUMBARS(VOL,CAPITAL),NODRAW,COLORLIGREEN;
XA_3:=EMA(VOL,5);
XA_4:=EMA(VOL,60);
XA_5:=AMOUNT/VOL/100;
XA_6:=XA_5 REF(CLOSE,1)ANDREF(OPEN,1) REF(CLOSE,1)ANDOPEN REF(MAX(OPEN,CLOSE),1)ANDVOL =REF(VOL,1)ANDCLOSE OPEN;
XA_7:=VOL=HHV(VOL,21);
STICKLINE(CLOSE OPENANDXA_7,VOL*4/5,VOL,2,0),COLORWHITE;
STICKLINE(CLOSE OPENANDXA_7,VOL*4/5,VOL,0.6,0),COLORGREEN;
XA_8:=20;
XA_9:=60;
XA_10:=100;
低量20:VOL=LLV(VOL,XA_8)ANDBARSCOUNT(VOL) =XA_8,NODRAW,COLORGREEN;
低量60:VOL=LLV(VOL,XA_9)ANDBARSCOUNT(VOL) =XA_9,NODRAW,COLORBLUE;
地量:VOL=LLV(VOL,XA_10)ANDBARSCOUNT(VOL) =XA_10,NODRAW,COLORGRAY;
STICKLINE(低量20,VOL*2/3,VOL,3,0),COLORGRAY;
STICKLINE(低量20,VOL*1/3,VOL*2/3,3,0),COLORYELLOW;
STICKLINE(低量20,0,VOL*1/3,3,0),COLORFF0088;
STICKLINE(低量60,VOL*1/2,VOL,3,0),COLORGRAY;
STICKLINE(低量60,0,VOL*1/2,3,0),COLORYELLOW;
STICKLINE(地量,0,VOL,3,0),COLORGRAY;
VOLUME:VOL,VOLSTICK;
|:COUNT(CLOSE REF(CLOSE,1),2)=2ANDCOUNT(VOL REF(VOL,1),2)=2;
XA_11:=DYNAINFO(8)
VO:VOL=LLV(VOL,100)ANDXA_11;
百日地量柱:XA_11ANDVO,COLORCYAN;
STICKLINE(百日地量柱,0,VOL,2,0),COLORCYAN;
DRAWTEXT(百日地量柱,VOL+3000,54),COLORCYAN;
XA_12:=VOL REF(VOL,1)*1.8;
XA_13:=VOL REF(LLV(VOL,13),1);
XA_14:=VOL REF(LLV(VOL,55),1);
STICKLINE(XA_12,0,VOL,2,0),COLORYELLOW;
XA_15:=XA_12;
XA_16:=(3*CLOSE+HIGH+LOW+OPEN)/6;
XA_17:=(8*XA_16+7*REF(XA_16,1)+6*REF(XA_16,2)+5*REF(XA_16,3)+4*REF(XA_16,4)+3*REF(XA_16,5)+2*REF(XA_16,6)+REF(XA_16,8))/36;
XA_18:=VOL=HHV(VOL,10)ANDVOL 2*REF(VOL,1)ANDCLOSE XA_17ANDCLOSE OPEN;
XA_19:=VOL REF(VOL,1)*0.98ANDVOL REF(VOL,1)*1.02;
STICKLINE(XA_19,0,VOL,2,0),COLORWHITE;
XA_20:=XA_19;
XA_21:=VOL =REF(VOL,1)*0.505;
STICKLINE(XA_21,0,VOL,2,0),COLORMAGENTA;
XA_22:=VOL/REF(VOL,1) 0.505ANDVOL/REF(VOL,1) 0.66;
STICKLINE(XA_22,0,VOL*1/3,2,0),COLORGREEN;
STICKLINE(XA_22,VOL*1/3,VOL*2/3,2,0),COLORBLacK;
STICKLINE(XA_22,VOL*2/3,VOL,2,0),COLORRED;
STICKLINE(XA_21,0,VOL*1/2,2,0),COLORGREEN;
STICKLINE(XA_21,VOL*1/2,VOL,2,0),COLORMAGENTA;
XA_23:=CLOSE/REF(CLOSE,1) =0.96ANDVOL HHV(VOL,30)/1.9;
STICKLINE(XA_23,0,VOL,0.8,0),COLORWHITE;
STICKLINE(XA_23,0,VOL,0.3,0),COLORFF0088;
XA_24:=(VOL+OPEN)/2;
STICKLINE(CLOSE OPEN,XA_24,XA_24,(-1),0),COLORBLACK;
STICKLINE(CLOSE OPEN,XA_24,XA_24,(-1),0),COLORWHITE;
低量柱:IF(CURRBARSCOUNT =CONST(REF(LLVBARS(VOL,30),1)+1)+1,CONST(REF(VOL,REF(LLVBARS(VOL,30),1)+1)),DRAWNULL),COLORWHITE,LINETHICK7;
低量柱1:IF(CURRBARSCOUNT =CONST(REF(LLVBARS(VOL,30),1)+1)+1,CONST(REF(VOL,REF(LLVBARS(VOL,30),1)+1)),DRAWNULL),COLORRED,LINETHICK2;
标志线21:IF(CURRBARSCOUNT =CONST(REF(HHVBARS(VOL,21),1)+1)+1,CONST(REF(VOL,REF(HHVBARS(VOL,21),1)+1)),DRAWNULL),COLORMAGENTA,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=CONST(REF(HHVBARS(VOL,21),1))+2,VOL*1.01,STRCAT(CON2STR(CONST(CONST(REF(HHVBARS(VOL,21),1))+1),0),3780)),COLORYELLOW;
XA_25:=IF(CURRBARSCOUNT =CONST(REF(HHVBARS(VOL,21),1)+1)+1,CONST(REF(MAX(OPEN,CLOSE),REF(HHVBARS(VOL,21),1)+1)),DRAWNULL);
DRAWTEXT(ISLASTBAR,标志线21,CON2STR(XA_25,2)),COLORYELLOW;
X_1:=1230601;
X_2:=IF(DATE X_1,1,1);
X_3:=0.01*EMA(AMOUNT,13)/EMA(vol,13)*X_2;
JWZZ:(CLOSE-X_3)/X_3*1000*X_2;
极弱:(-150);
强势:95;
DRAWTEXT(ISLASTBAR=1,90,'极强'),COLORYELLOW;
DRAWTEXT(ISLASTBAR=1,(-145),'极弱'),COLORGREEN;
DRAWTEXT(crOSS(DATE,X_1)ORDATE=X_1,REF(JWZZ,1),54),COLORRED;
通达信九五至尊指标公式截图