CI个性指标:
ci的指标原码(大智慧,飞狐,分析家均可用)
Var1:=IF(YEAR=1991 AND MONTH>7, 0, 1); Var2:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100*Var1; Var3:=(INDEXC-REF(INDEXC, 1))/REF(INDEXC, 1)*100*Var1; Var4:=Var2-Var3; Var5:=(OPEN-REF(CLOSE, 1))/REF(CLOSE, 1)*100*Var1; Var6:=(INDEXO-REF(INDEXC, 1))/REF(INDEXC, 1)*100*Var1; Var7:=Var5-Var6; STICKLINE(Var4>=0, SUM(REF(Var4, 1), 0)+100+Var7, SUM(Var4, 0)+100, 6, 0), COLORRED; STICKLINE(Var4<0, SUM(REF(Var4, 1), 0)+100+Var7, SUM(Var4, 0)+100, 6, 0), COLOR00FF00; ema(SUM(REF(Var4, 1), 0)+100+Var7,5),colorwhite; ema(SUM(REF(Var4, 1), 0)+100+Var7,10),colorff00ff; ema(SUM(REF(Var4, 1), 0)+100+Var7,20),coloryellow; ema(SUM(REF(Var4, 1), 0)+100+Var7,30),colorffff33; ema(SUM(REF(Var4, 1), 0)+100+Var7,60),color0099ff; 可以代替K线,均线粘合选股
|