同花顺天山雪莲指标公式股票软件源码如下: N:=10;M:=3; Var4:=3*SMA((INDEXC-LLV(INDEXL,n))/(HHV(INDEXH, n)-LLV(INDEXL,n))*100, 20, 1)-2*SMA(SMA((INDEXC-LLV(INDEXL,n))/(HHV(INDEXH,n)-LLV(INDEXL,n))*100, 20, 1), 15, 1); Var5:=3*SMA((INDEXO-LLV(INDEXL,n))/(HHV(INDEXH, n)-LLV(INDEXL,n))*100, 20, 1)-2*SMA(SMA((INDEXO-LLV(INDEXL,n))/(HHV(INDEXH,n)-LLV(INDEXL,n))*100, 20, 1), 15, 1); Var6:=100-Var5; Var7:=100-Var4; a1:=REF(INDEXC,1); a2:=100*V/CAPITAL; STICKLINE(Var7va1:=MA(var6,3); //{www.gpxiazai.com 股票软件下载网_同花顺股票指标公式} STICKLINE(-1*Var7>va1, -1*Var7, -1*Var6,3,1), coloryellow; STICKLINE(Var7>=REF(Var6, 1), -1*Var7, -1*Var6, 3,1), colorgreen; 天山雪莲:FORCAST(-1*var6,21),colorgreen; 天山雪莲1:FORCAST(-1*var6,m),colorbrown; 冰火莲:(-1*Var7+ (-1*Var6))/2, LINETHICK0, colorblue; DRAWTEXT(CROSS(冰火莲,天山雪莲)AND 天山雪莲<-48,冰火莲,'起轿'),colorred; |