C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- N:=18;M:=14;I:=26;
- Var1:=VOL*CLOSE;
- Var2:=EMA(Var1,5)/EMA(VOL,5);
- Var3:=(CLOSE-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,'逃顶');