以下是通达信玩转K线主图公式源码贴图

通达信公式 玩转K线主图

均线3:=MA(CLOSE,30),LINETHICK1;
均线2:=MA(CLOSE,20),LINETHICK0;
均线6:=MA(CLOSE,60);
均线12:=MA(CLOSE,120),colorblue,LINETHICK1;
均线九九归一84:MA(CLOSE,84),LINETHICK0;
{买线:=MA(CLOSE,4);}
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,32)*20+CLOSE,56),LINETHICK0;
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT (BU,LOW*0.989,’▲’),coloryellow,LINETHICK3;
DRAWTEXT(SEL,HIGH*1.0175,’▼’),COLORffffff,LINETHICK3;
STICKLINE(买线>=卖线,LOW,HIGH,0,0),colorred;
STICKLINE(买线>=卖线,CLOSE,OPEN,10,0),COLOR0000AA;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000CC;
STICKLINE(买线<卖线,CLOSE,OPEN,10,0),COLORAAAA00;
STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORBBBB00;
STICKLINE(买线<卖线,LOW,HIGH,0,0),COLORFFFF00;
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,10,0),coloryellow;
STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,10,0),colormagenta;

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