飞狐操盘指令副图指标
源码
Var1:=1;
Var2:=1;
Var3:=EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16);
Var4:=1/WINNER(CLOSE)*Var1;
Var5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
Var6:=100-ABS(Var5);
Var7:=(CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100;
Var8:=SMA(Var7,20,1)*Var1;
Var9:=SMA(Var8,15,1);
VarA:=100-3*Var8+2*Var9;
VarB:=((EMA(IF(VarA>REF(VarA,1),VarA,VarA-3),3)-50)*(-1)*2/2+50)/10;
VarC:=EMA(AMOUNT,13)/EMA(VOL,13);
VarD:=(VarC/REF(VarC,1)-1)*100;
VarE:=VOL/CAPITAL*100;
VarF:=(HIGH-LOW)/((HIGH+LOW)/2)*100;
Var10:=(VarB+VarE)*VarF*VarD*Var1;
Var11:=REF(CLOSE,1);
Var12:=SUM(IF(CLOSE>Var11,VOL,0),26)/SUM(IF(CLOSE<=Var11,VOL,0),26)*100;
Var13:=IF(Var12<70,70,Var12);
Var14:=(CLOSE-LLV(LOW,9))/(HHV(HIGH*Var2,9)-LLV(LOW,9))*Var1*100;
Var15:=SMA(Var14,3,1);
Var16:=SMA(Var15,3,1);
Var17:=3*Var15-2*Var16*Var1;
Var18:=(CLOSE-LLV(LOW,26))/(HHV(HIGH*Var2,26)-LLV(LOW,26))*100;
Var19:=SMA(Var18,6,1);
Var1A:=SMA(Var19,3,1)*Var1;
Var1B:=3*Var19-2*Var1A;
Var1C:=IF(CROSS(Var17,Var1B*Var2) AND Var1B*Var2<20,-1,0)+IF(CROSS(Var1B,Var17) AND Var1B>80,1,0);
Var1D:=(HIGH+LOW+CLOSE)/3;
Var1E:=(Var1D-MA(Var1D,14))/(0.015*AVEDEV(Var1D*Var2,14))/2;
Var1F:=SMA(MAX(CLOSE-Var11,0),6,1)/SMA(ABS(CLOSE*Var1-Var11),6,1)*100;
Var20:=LLV(LOW,36);
Var21:=HHV(HIGH,36);
Var22:=EMA((CLOSE-Var20)/(Var21-Var20)*100,9)*Var1;
Var23:=IF(Var1E>100 AND Var22>50 AND CLOSE>OPEN,0.5,0)+IF(Var1F>80 AND Var22>50 AND CLOSE>OPEN,0.5,0);
Var24:=(CLOSE-LLV(LOW,100))/(HHV(HIGH*Var2,100)-LLV(LOW*Var2,100))*100;
Var25:=SMA(Var24,21,1)*Var1;
Var26:=SMA(Var15,3,1);
Var27:=3*Var25-2*Var26;
Var28:=IF(Var27>80 AND Var1F>88,0.5,0);
减四分一: IF(Var10>50 AND Var10<100 OR Var1C+Var23+Var28>0,25,0);
减三分一: IF(Var10>100 AND Var10<200,33,0);
减二分一: IF(Var10>200,50,0);
减三分二: IF(Var3>1.1 AND Var3<1.15 AND Var31.15 AND Var3
警示录: MAX(MAX(减四分一,减三分一),MAX(减二分一,减三分二));