以下是通达信密码分时主图公式

通达信密码分时主图公式

源码

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

MACD:=(DIF-DEA)*2,COLORSTICK;

K1:=IF(PERIOD=0 ,”分时引.密码3#DAY”,DRAWNULL);

D1:=IF(PERIOD=0 ,”分时引.密码1#DAY”,DRAWNULL);

F1:=IF(PERIOD=0 ,”分时引.密码4#DAY”,DRAWNULL);

J1:=IF(PERIOD=0 ,”分时引.密码2#DAY”,DRAWNULL);

昨收:=IF(PERIOD=0 ,”分时引.ZS#DAY”,DRAWNULL);

RCC:=昨收;

STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),RCC*1,MACD*5+RCC*1,0,0),COLOR992299,LINETHICK3;

STICKLINE(MACD>=0 AND MACD< REF(MACD,1),RCC*1,MACD*5+RCC*1,0,0),COLOR774422,LINETHICK3;

STICKLINE(MACD<0 AND MACD>=REF(MACD,1),RCC*1,MACD*5+RCC*1,0,0),COLOR064499,LINETHICK3;

STICKLINE(MACD<0 AND MACD< REF(MACD,1),RCC*1,MACD*5+RCC*1,0,0),COLOR774422,LINETHICK3;

IF(PERIOD=0 ,C,DRAWNULL)LINETHICK1,COLORCCCCCC;

分时均价线:SUM(C*V,240)/SUM(V,240),COLORYELLOW;

J1,COLORYELLOW,LINETHICK1;

D2:D1+(昨收-K1),DOTLINE,COLORWHITE,LINETHICK1;

J2:J1+(昨收-F1),COLORWHITE,LINETHICK1;

{所属地域:DRAWTEXT_FIX(ISLASTBAR ,0.08,0.01,1,DYBLOCK),COLORYELLOW;

所属行业:DRAWTEXT_FIX(ISLASTBAR ,0.1,0.01,0,HYBLOCK),COLORYELLOW;};
 

 

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