以下是通达信主图指标公式源码

MA5:MA(C,5),DOTLINE,COLOR606060;
 H3:=EVERY(C>MA5,3);
 L3:=EVERY(C<ma5,3);
 X:=H3-L3;
 T2:=BARSLAST(X!=0);
 Y:=REF(X,T2);
 T3:=BARSLAST(CROSS(Y,0) OR CROSS(0,Y));
 HHL:=IF(REF(Y=-1,1),LLV(L,2),HHV(MAX(LLV(L,2),REF(LLV(L,2),1)),T3));
 LLH:=IF(REF(Y=1,1), HHV(H,2),LLV(MIN(HHV(H,2),REF(HHV(H,2),1)),T3));
 NOTEXT3:IF(Y=1 ,HHL,DRAWNULL),COLORCC66FF,LINETHICK2;
 NOTEXT4:IF(Y=-1,LLH,DRAWNULL),COLOR55CC33,LINETHICK2;
 NOTEXT1:IF(Y=1 AND T3=0,HHL,DRAWNULL),COLORFF66A0,CIRCLEDOT,LINETHICK7;
 NOTEXT10:IF(Y=1 AND T3=0,HHL,DRAWNULL),COLOR00FFFF,CROSSDOT,LINETHICK1;
 NOTEXT11:IF(Y=1 AND T3=0,HHL,DRAWNULL),COLOR0000FF,POINTDOT,LINETHICK4;
 NOTEXT2:IF(Y=-1 AND T3=0,LLH,DRAWNULL),COLOR00FFCC,CIRCLEDOT,LINETHICK7;
 NOTEXT20:IF(Y=-1 AND T3=0,LLH,DRAWNULL),COLORCC00FF,CROSSDOT,LINETHICK2;
 NOTEXT21:IF(Y=-1 AND T3=0,LLH,DRAWNULL),COLORFFFFFF,POINTDOT,LINETHICK4;

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