通达信指标公式源码概况:

指标类别: 通达信指标公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

买卖点指标公式提示副图

VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;  

VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;  

VAR4:=EMA(VAR3,5);  

VAR5:=3*VAR3-2*VAR4;  

AA:=CROSS(VAR5,VAR3)ANDVAR3<2.1ANDC>O;  

VAR6:=(2*CLOSE+HIGH+LOW)/4;  

VAR7:=LLV(LOW,13);  

VAR8:=HHV(HIGH,13);  

VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);  

VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);  

多:VAR9,COLORRED,POINTDOT;  

空:EMA(0.382*REF(VAR9,2)+0.618*VAR9,12),COLORGREEN;  

STICKLINE(VAR9>VARA,VAR9,VARA,6,0),COLORRED;  

STICKLINE(VAR9<=VARA,VAR9,VARA,6,0),COLORFFCC66;  

STICKLINE(AA,0,30,40,1),COLORYELLOW;  

STICKLINE(AA,16,29,38,0),COLORRED;  

STICKLINE(AA,1,14,38,0),COLORRED;  

STICKLINE(AA,15,15,40,1),COLORYELLOW;  

STICKLINE(AA,30,50,10,0),COLORYELLOW;  

STICKLINE(AA,53,55,10,1),COLORRED;  

STICKLINE(AA,57,59,10,1),COLORRED;  

STICKLINE(AA,61,63,10,1),COLORRED;  

STICKLINE(AA,65,67,10,1),COLORRED;  

STICKLINE(AA,69,75,12,0),COLORFFCCCC;  

DRAWTEXT(AA,85,'底'),COLORYELLOW  

DIF12:=(EMA(CLOSE,12)-EMA(CLOSE,26))/((EMA(CLOSE,12)+EMA(CLOSE,26))/2  

)*1000;  

DEA12:=EMA(DIF12,9);  

KDIF12:=3*(DIF12-DEA12);{KDIF12:=2*(DIF12-DEA12)};  

KDEA12:=SMA(KDIF12,5,2);  

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

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

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

BIAS1:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;  

A1:=CROSS(K,D)ANDCROSS(K,D)<16ANDBIAS1<-6;  

M1:=WINNER(MA(CLOSE,1))*200;  

M2:=WINNER(MA(CLOSE,20))*200;  

VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;  

VAR2:=SMA(VAR1,3,1);  

VAR3:=SMA(VAR2,3,1);  

VAR4:=3*VAR2-2*VAR3;  

VAR5:=LLV(LOW,5);  

VAR6:=HHV(HIGH,5);  

VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;  

VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);  

VAR9:=3*VAR7-2*VAR8;  

VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);  

VARB:=POW(MA(LOW,5),2)+MA(LOW,5);  

VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);  

VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;  

VARE:=SMA(VARD,3,1)*1.5-100;  

VARF:=SMA(VARE,3,1);  

VAR10:=3*VARE-2*VARF;  

VAR11:=(HIGH+LOW+CLOSE*2)/4;  

VAR12:=EMA(VAR11,13);  

VAR13:=STD(VAR11,13);  

VAR14:=(VAR11-VAR12)*100/VAR13;  

VAR15:=EMA(VAR14,5);  

VAR17:=EMA(VAR15,13)+200-100;  

VAR18:=EMA(VAR17,10);  

VAR19:=3*VAR17-2*VAR18;  

VAR1A:=VAR2+VAR7+VARE+VAR17;  

VAR1B:=VAR3+VAR8+VARF+VAR18;  

VAR1C:=VAR4+VAR9+VAR10+VAR19;  

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

VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));  

VAR21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);  

VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;  

VAR23:=EMA(VAR22,24);  

VAR24:=STD(VAR22,24);  

VAR25:=(VAR22-VAR23)/VAR24*100;  

VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));  

VAR27:=EMA(VAR25,5);  

VAR2A:=((VAR27+VAR26+VAR20)/3+165)/4;  

VAR2B:=(EMA(EMA(EMA(VAR2A,15),10),5)-25)*2+VAR21;  

VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;  

VAR2D:=EMA(VAR2C,13);  

VAR2E:=(VAR2A+VAR2C)/2/1.1;  

VAR28:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;  

VAR29:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;  

VAR30:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;  

VAR31:=REF(CLOSE,1);  

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

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

VAR34:=(VAR33-MA(VAR33,14))/(0.015*AVEDEV(VAR33,14));  

VAR35:=(VAR28>=-15.8ANDVAR28<=-12.2ANDVAR29<=-20.8ANDVAR30<=-27.5  

ANDVAR32<=11.7ANDVAR34<=-145)*100;  

超短:=EMA(VAR2E,3);  

短线:=EMA(超短,5);  

RSV2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;  

K1:=SMA(RSV2,9,1);  

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

J:=3*K-2*D;  

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

DEA1:=EMA(DIF1,9);  

KDJ_K:="KDJ.K"(9,3,3);KDJ_D:="KDJ.D"(9,3,3);KDJ_J:="KDJ.J"(9,3,3);  

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

C1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));  

C2:=(TYP-MA(TYP,84))/(0.015*AVEDEV(TYP,84));  

VARA1:=REF(LOW,1);  

VARB1:=SMA(ABS(LOW-VARA1),3,1)/SMA(MAX(LOW-VARA1,0),3,1)*100;  

VARC1:=EMA(IF(CLOSE*1.3,VARB1*10,VARB1/10),3);  

VARD1:=LLV(LOW,30);  

VARE1:=HHV(VARC1,30);  

VARF1:=IF(MA(CLOSE,58),1,0);  

VARG1:=EMA(IF(LOW<=VARD1,(VARC1+VARE1*2)/2,0),3)/618*VARF1;  

VARH1:=IF(VARG1>50,50,VARG1);  

RSV3:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100);  

TR:=EMA(EMA(EMA(CLOSE,13),13),3);  

TRIX:=(TR-REF(TR,1))/REF(TR,1)*100;  

MATRIX:=MA(TRIX,2.618);  

VAR101:=(2*CLOSE+HIGH+LOW)/4;  

VAR202:=EXPMA(EXPMA(EXPMA(VAR101,4),4),4);  

JJ:=(VAR202-REF(VAR202,1))/REF(VAR202,1)*100*0.4;  

DD:=MA(JJ,3);  

KK:=MA(JJ,1);  

DIFF88:=EMA(CLOSE,5)-EMA(CLOSE,34);  

DEA88:=EMA(DIFF88,6);  

ABB:=DRAWLINE(V>=HHV(V,10),V,V<=LLV(V,3),HHV(V,3),1);  

LL:=REF(CLOSE,1);  

MM:=SMA(MAX(CLOSE-LL,0),6,1)/SMA(ABS(CLOSE-LL),6,1)*100;  

买:CROSS(KDJ_J,0)OR(CROSS(KDJ_J,KDJ_K)ANDKDJ_D<26)OR  

CROSS("RSI.RSI1"(6,2,2),20)OR  

CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24))OR  

CROSS("MACD.DIF","MACD.DEA")ORCROSS(DIF1,DEA1)ORCROSS(K1,D1)OR  

CROSS("MACD.MACD",0)ORCROSS(DIF12,DEA12)ORCROSS(KDIF12,KDEA12)OR  

CROSS(K,D)ORCROSS(超短,短线)ORCROSS(C1,-150)ORCROSS(C2,-150)OR  

CROSS(KK,DD)ANDCROSS(TRIX,MATRIX)ORCROSS(DIFF88,DEA88)OR  

CROSS(C,ABB),COLORRED;  

卖:CROSS(80,MM)ORCROSS(DEA1,DIF1)ORCROSS(D1,K1)ORCROSS(DEA12,DIF12)  

ORCROSS(KDEA12,KDIF12)ORCROSS(D,K)ORCROSS(短线,超短)ORCROSS(DD,KK)  

ANDCROSS(MATRIX,TRIX)ORCROSS(DEA88,DIFF88)ORCROSS(250,C1)OR  

CROSS(250,C2),COLORGREEN;

image.png

买卖点主图指标公式

  

VAR1:=1;  

趋势线:((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)-  

50)*1.032+50),COLORRED;  

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

VAR3:=LLV(LOW,34);  

VAR4:=HHV(HIGH,34);  

SK:  

VAR3)*100,13)*VAR1,COLORWHITE;  

SD:EMA(SK,2)*VAR1,COLORYELLOW;  

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

VAR6:=EMA(VAR5,9);  

VAR7:=VAR1*CLOSE*1.236<MA(CLOSE,60);  

VAR8:=CLOSE/REF(CLOSE,1)>1.021;  

VAR9:=(HIGH-CLOSE)*1.36<=CLOSE-OPEN;  

VARA:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;  

VARB:=ABS(VAR5-VAR6);  

VARC:=STD(CLOSE,90)*10;  

VARD:=COUNT((REF(CLOSE,15)-CLOSE)/CLOSE*100>45,5);  

买:VAR1*VAR7ANDVAR8ANDVAR9ANDVARC<25AND  

CLOSE<8ANDVARA<114ANDVARB<=0.23*40,COLORRED;  

VARE:=SLOPE(CLOSE,40);  

VARF:=COUNT((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<-  

0.098,90);  

VAR10:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;  

VAR11:=VAR1*STD(CLOSE,63)*10;  

VAR12:=VAR1*(MA(CLOSE,76)-MA(CLOSE,13)/3);  

EMA((VAR2-VAR3)/(VAR4-  

VAR13:=VAR1*MA((CLOSE-VAR12)/VAR12,1);  

买1:=VAR1*IF(CROSS(VAR13,-0.008)ANDVARE>-0.618AND  

VAR10<114ANDVAR11<23.6  

AND  

AND  

ANDVARF<8AND  

AND  

AND  

LOW/REF(HIGH,1)<1.145ORREF(VAR13,2)=LLV(VAR13,20)AND  

REF(VAR13,2)<0.042  

ANDLOW>REF(HIGH,1))  

VARF<8  

VAR13>-0.368  

REF(VAR13,2)<REF(VAR13,1)ANDNOT(REF(LOW,1)>REF(HIGH,2)  

CLOSE>REF(CLOSE,1),68,0);  

VAR14:=MA(CLOSE,5);  

VAR15:=MA(CLOSE,10);  

VAR16:=MA(CLOSE,20);  

VAR17:=MA(CLOSE,30);  

VAR18:=MA(CLOSE,60);  

VAR19:=MA(CLOSE,150);  

VAR1A:=MA(CLOSE,250);  

VAR1B:=VAR1*VOL/CAPITAL*100;  

VAR1C:=(CLOSE-VAR1A)/VAR1A*100;  

VAR1D:=(CLOSE/REF(CLOSE,1)-1)*100;  

VAR1E:=PWINNER(1,CLOSE);  

VAR1F:=IF(VAR1>0.75ANDVAR1<0.901,0.618,1);  

牛:IF(VAR14>VAR15ANDVAR15>VAR16AND  

VAR16>VAR17ANDVAR16>VAR18ANDVAR19>VAR1AAND  

(VAR1E>=0.9ORVAR1E>0.76ANDVAR1E<0.901ANDVAR1D>5  

ANDVAR1B>5)ANDVAR1D>1.8ANDVAR1C<40ANDCLOSE>3  

AND(CLOSE-VAR18)/VAR18<0.25ANDVAR1B<=6AND  

VAR4*VAR1B>=1ANDCLOSE<18.5,76,0),COLORMAGENTA;  

VAR20:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(C  

LOSE,24))/4;  

VAR21:=(MA(CLOSE,48)+MA(CLOSE,6)+MA(CLOSE,12)+MA(  

CLOSE,24))/4;  

VAR22:=VAR1*(MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,4  

8)+MA(CLOSE,96))/4;  

VAR23:=VAR1*MA(CLOSE,250);  

VAR24:=MA(CLOSE,125);  

牛1:=IF(SD>18ANDSK<75ANDCROSS(VAR20,VAR21)AND  

(VAR22-VAR23)/VAR23<0.161  

REF(VAR22,1)<VAR22,95,0);  

VAR25:=CLOSE/MA(CLOSE,3)>=1.05AND  

CLOSE=HHV(CLOSE,3)ANDMA(VOL,2)/MA(VOL,40)>=3AND  

MA(VOL,2)=HHV(MA(VOL,2),3)ANDVOL>REF(VOL,1)AND  

CLOSE>REF(CLOSE,1);  

VAR26:=REF(CLOSE,1);  

VAR27:=SMA(MAX(CLOSE-VAR26,0),5,1)/SMA(ABS(CLOSE￾VAR26),5,1)*100;  

VAR28:=VAR1*COUNT(VAR27<25,20)>=1;  

VAR29:=(HIGH-LOW)/HIGH*100+(CLOSE￾VAR26)/VAR26*100;  

VAR2A:=EMA(MA(VAR29,41),6);  

VAR2B:=VAR2A>LLV(VAR2A,6)*1.02  

REF(VAR2A,1)<REF(LLV(VAR2A,6),1)*1.02  

LLV(VAR2A,29)=LLV(VAR2A,6);  

VAR2C:=VAR1*LLV(LOW,6)=LLV(LOW,41)  

LLV(LOW,6)<HHV(LOW,41)*71/100;  

VAR2D:=HIGH>LOW*1.033;  

涨势确立:VAR1*(VAR2C>0AND  

VAR2D*16+81.5)*VAR1,COLOR80FFFF;  

买入:IF(CROSS(趋势线,21),50,18.5);  

卖出:IF(CROSS(87,趋势线),50,81.5),COLORFFAA00;  

DRAWTEXT(VAR2C>0ANDVAR2D,88,'↑');  

VAR2E:=IF(CROSS(SK,SD),25,18.5);  

AND  

AND  

AND  

ANDREF(SK,3)<SKAND  

VAR2F:=IF(CROSS(SD,SK),75,81.5);  

卖线:VAR2F,COLORWHITE;  

买线:VAR2E,COLORRED;  

VAR13<0.06*(-10)+81.5,COLORWHITE;  

VAR30:0-  

SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))  

))*5;  

STICKLINE(VAR30<-2,0,VAR30,1.5,1),COLORYELLOW;

image.png

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