同花顺高速路指标公式股票软件源码如下: N:=3;N2:=10;N3:=83;N4:=1; Var1:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100; Var2:=(CLOSE-REF(OPEN, 29))/REF(OPEN, 29)*100; Var3:=VOL/MA(VOL, 5); Var4:=VOL/CAPITAL*100; Var5:=1; Var6:=MA(CLOSE, 5); Var7:=Var6/10+Var6; Var8:=(HIGH-MA(CLOSE, 5))/MA(CLOSE, 5)*100; Var9:=(HIGH-MA(CLOSE, 60))/MA(CLOSE, 60)*100; Var10:=(LOW-MA(CLOSE, 60))/MA(CLOSE, 60)*100; Var11:=(RANGE(CLOSE, MA(CLOSE, 5), MA(CLOSE, 10)) AND Var1>5 AND Var2<(-30))*30*Var5; Var12:=0-(Var8>10 AND Var2>5)*20; Var13:=(CLOSE-REF(OPEN, 29))/REF(OPEN, 29)*100; Var14:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100; 售价两千走势线:MA(HIGH, 1)*Var5, COLORWHITE; 界标:MA(CLOSE, 10), COLORYELLOW; 上限:界标/N2+界标, COLORRED; 上2:MA(上限, N), COLORWHITE; 上3:MA(上2, N), COLORYELLOW; 上4:MA(上3, N), COLORFFAA00; 上5:MA(上4, N), COLOREE00EE; 下限:上限*N3/100, COLORGREEN; 下2:MA(下限, N), COLORRED; 下3:MA(下2, N), COLORYELLOW; 下4:MA(下3, N), COLORFFAA00; 下5:MA(下4, N), COLOREE00EE; //{www.gpxiazai.com 股票软件下载网_同花顺股票指标公式} DRAWTEXT(CROSS(售价两千走势线, 下限) AND Var13<(-25) AND Var14>N4, 下限, '买 卖 '), COLORYELLOW; DRAWTEXT(CROSS(上限, 售价两千走势线) AND Var2>6, 上限, ''), COLORWHITE; STICKLINE(Var8>10 AND Var2>5, 售价两千走势线, 售价两千走势线*0.990, 5, 0), COLOREE00EE; |