大智慧中期趋势指标公式股票软件源码如下: Var2:=1/WINNER(CLOSE); Var3:=MA(CLOSE,13); Var4:=100-ABS((CLOSE-Var3)/Var3*100); Var5:=LLV(LOW,75); Var6:=HHV(HIGH,75); Var7:=(Var6-Var5)/100; Var8:=SMA((CLOSE-Var5)/Var7,20,1); Var9:=SMA((OPEN-Var5)/Var7,20,1); VarA:=3*Var8-2*SMA(Var8,15,1); VarB:=3*Var9-2*SMA(Var9,15,1); VarC:=100-VarB; VarD:=REF(LOW,1)*0.9; VarE:=LOW*0.9; VarF:=(VarE*VOL+VarD*(CAPITAL-VOL))/CAPITAL; Var10:=EMA(VarF,30); Var11:=CLOSE-REF(CLOSE,1); Var12:=MAX(Var11,0); Var13:=ABS(Var11); Var14:=SMA(Var12,7,1)/SMA(Var13,7,1)*100; Var15:=SMA(Var12,13,1)/SMA(Var13,13,1)*100; Var16:=BARSCOUNT(CLOSE); {www.gpxiazai.com 股票软件下载网_大智慧股票指标公式} Var17:=SMA(MAX(Var11,0),6,1)/SMA(ABS(Var11),6,1)*100; Var18:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; Var19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; Var1A:=SMA((SMA(Var19,4,1)-50)*2,3,1); Var1B:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; Var1C:=SMA(Var1B,4,1); Var1D:=SMA(Var1C,3,1); Var1E:=(HHV(HIGH,30)-CLOSE)/CLOSE*100; Var1F:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100; Var20:=REVERSE(Var1F); Var21:=SMA(Var1F,3,1); 移动平均: SMA(Var21,3,1){*Var1}, COLORRED; 参考线: SMA(移动平均,3,1){*Var1},colorcyan ; 买入: IF(CROSS(移动平均,参考线) AND 移动平均<30,33,10), COLORFF00FF; 清仓: IF(CROSS(参考线,移动平均) AND 参考线>75,68,90), COLORGREEN; DRAWTEXT(CROSS(移动平均,参考线) AND 移动平均<30,40,'买入'), COLORFF00FF; DRAWTEXT(CROSS(参考线,移动平均) AND 参考线>75,65,'清仓'), COLORGREEN; |