通达信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, 2, 0), COLORRED;

STICKLINE(VAR4<0, SUM(REF(VAR4, 1), 0)+100+VAR7, SUM(VAR4, 0)+100, 2, 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;
 

上一篇:通达信私募指标精华:提前逃脱源码我用了多年的主图公式    下一篇:通达信天下奇兵主图源码