通达信预测涨跌指标公式
2020/6/12 19:11:06
N:=60;N2:=80;N3:=10;N4:=10;
Var1:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
Var2:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
Var3:=MA(CLOSE,20);
Var4:=MA(CLOSE,5);
Var5:=LLV(LOW,N);
涨1: Var5*1.236,colorred;
涨2: Var5*1.382,colorff00ff;
涨3: Var5*1.618,coloryellow;
涨4: Var5*1.764,color0099ff;
Var6:=Var5*1.855;
Var7:=Var5*2;
Var8:=Var5*2.382;
Var9:=HHV(HIGH,N);
跌1: Var9*0.855,color00FF00;
跌2: Var9*0.764,colorffcc66;
跌3: Var9*0.618,colorblue;
跌4: Var9*0.5,colorgreen;
跌5: Var9*0.382,colorwhite;
VarA:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VarB:=SMA(VarA,5,1);
VarC:=SMA(VarB,3,1);
VarD:=3*VarB-2*VarC;
头部: IF(CROSS(VarC,VarB) AND VarC>N2 AND Var1>N3,Var8*1.5,Var8),colorred;
DRAWTEXT(CROSS(VarC,VarB) AND VarC>N2 AND Var1>N3,Var8*1.4,'头部'),colorred;
底部: REVERSE(IF(CROSS(VarB,VarC) AND VarC<N4 AND Var1<-30,跌5*2,-5)),color00ff00;
DRAWTEXT(REVERSE(CROSS(VarB,VarC)) AND VarC<N4 AND Var1<-30,跌5-5,'底部'),color00ff00;
VarE:=MA(CLOSE,5);
VarF:=MA(CLOSE,10);
Var10:=MA(CLOSE,20);
Var11:=MA(CLOSE,30);
Var12:=MA(VOL,5);
Var13:=MA(VOL,34);
Var14:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
Var15:=EMA(CLOSE,3);
Var16:=(Var15-Var14)*20;
Var17:=MA(Var16,3);
Var18:=(Var17-REF(Var17,10))/REF(Var17,10)*0.5;
Var19:=0+(CROSS(Var16,Var17) AND Var17<-15 AND Var1<-24)*10;
Var1A:=(CROSS(Var16,Var17) AND Var2>4.5 AND Var1<-26 AND Var12>Var13)*20;
DRAWTEXT(Var1A,LOW,'<成功率84.07%.'),coloryellow;
DRAWTEXT(CROSS(Var17,Var16) AND Var17>10 AND Var1>5,Var8*1.3,'<---头部 '),colorred;
投股票 网 w ww.tou18.cn
股市公式下载推荐