以下是通达信在画线方法中简单改为主图叠加,在主图中是不显示的

通达信在画线方法中简单改为主图叠加,在主图中是不显示的

源码

VAR1:=1;
 VAR2:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;

{大盘收盘:INDEXC;

INDEXC;

昨大盘收盘:REF(INDEXC,1);}

VAR3:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100;

VAR4:=VAR2-VAR3;

VAR5:=(OPEN-REF(CLOSE,1))/REF(CLOSE,1)*100;

VAR6:=(INDEXO-REF(INDEXC,1))/REF(INDEXC,1)*100;

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;
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。