同花顺使者看盘指标公式股票软件源码如下: P1:=13;P2:=5; 强弱线:0,COLOR663399; LC:=REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0), 4, 1)/SMA(ABS(CLOSE-LC),4,1)*100; RSI2:=SMA(MAX(CLOSE-LC,0), 8, 1)/SMA(ABS(CLOSE-LC),8,1)*100; RSI3:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100; Var1:=(RSI1+RSI2+RSI3)/3,COLORWHITE; Var2:=MA(CLOSE, 5); Var3:=MA(CLOSE,10); Var4:=MA(CLOSE,20); Var5:=MA(CLOSE,30); Var6:=(Var2+Var3+Var4+Var5)/4; Var7:=(Var6-REF(Var6, p1 ))/REF(Var6, 13)*100; Var8:=(Var6-REF(Var6, p1 ))/REF(Var6, 13)*100; Var9:=EMA(Var7, p2); 趋势:Var9,COLORWHITE, POINTDOT; 反转:STICKLINE(Var9>1*REF(Var9, 1), Var7, 0, 0.1, 0),COLOR663399; 持股:STICKLINE(Var7>1*REF(Var7, 1), Var7,Var9, 7, 1), COLOR5050ff; 持币:STICKLINE(Var7<1*REF(Var7, 1), Var7,Var9, 7, 1), COLORGREEN; //{www.gpxiazai.com 股票软件下载网_同花顺股票指标公式} 离场或持股观望:STICKLINE(趋势>=0 AND Var7<1*REF(Var7, 1) ,var7,趋势,7,1),COLORC0C0C0; 预警:STICKLINE(趋势>=20 AND 趋势>REF(趋势 ,1),Var7 ,趋势,7 ,0 ),COLORYELLOW; 风险:STICKLINE(趋势>=40 AND 趋势>REF(趋势 ,1),Var7,趋势 ,7 ,0 ),COLOREE00EE; 相对头部:STICKLINE(趋势>5 AND CROSS(80,Var1),Var7 ,趋势 ,7 ,0 ),COLORFFB97A; |