飞狐短线精灵副图指标
源码
P1:=21;P2:=5;
Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
Var2:=LLV(LOW,0);
Var3:=HHV(HIGH,0);
SK: EMA((Var1-Var2)/(Var3-Var2)*100,1);
SD: EMA(0.667*REF(SK,1)+0.333*SK,4);
Var4:=IF(CROSS(SD,SK) AND SK>=60,60,76);
Var5:=IF(CROSS(SK,20) OR CROSS(SK,SD) AND SK>20,20,5);
买进: Var5;
卖出: Var4;
高抛: 80, POINTDOT;
低吸: 20, POINTDOT;
强弱: 50, POINTDOT;
Var6:=LLV(LOW,55);
Var7:=HHV(HIGH,34);
Var8:=EMA((Var1-Var6)/(Var7-Var6)*100,3);
Var9:=(SK+Var8)/2;
VarA:=EMA(0.667*REF(Var8,1)+0.333*SK,2);
VarB:=EMA(Var9,5);
VarC:=EMA(0.667*REF(VarB,1)+0.333*VarB,2);
IF(VarB>=40,20,0);