|
{n=18;m=14;i=26}
Var1:=INDEXV*INDEXC;
Var2:=EMA(Var1,5)/EMA(INDEXV,5);
Var3:=(INDEXC-Var2)/Var2*100;
Var4:=Var3<=-1.5 AND Var3>-100;
Var5:=SUM(Var4>0,N)/SUM(Var4=0,N);
Var6:=Var5<5 AND Var5>=0.25;
Var7:=(LOW+HIGH+CLOSE)/3;
Var8:=(Var7-MA(Var7,M))/(0.015*AVEDEV(Var7,M));
Var9:=EMA(Var8,3);
VarA:=(HIGH+LOW+CLOSE)/3;
VarB:=SUM(MAX(0,HIGH-REF(VarA,1)),I)/SUM(MAX(0,REF(VarA,1)-LOW),I)*100;
VarC:=REF(MA(VarB,3),2.2);
VarD:=REF(MA(VarB,13),6.2);
VarE:=REF(MA(VarB,89),36.6);
VarF:=CROSS(VarC,VarB) AND VarB>150;
DRAWTEXT(Var6 AND CROSS(Var8,Var9),LOW,'抄底');
DRAWTEXT(VarF,HIGH,'逃顶');
|
|