以下是通达信操盘手K线主图 趋势线和K线的应用

通达信操盘手K线主图 趋势线和K线的应用

SJTJ:=DATE<1590301;
最新价:IF(SJTJ, C,DRAWNULL),LINETHICK0,COLORYELLOW;
DRAWNUMBER(ISLASTBAR ,C,C),COLORWHITE;
AAA:=CONST(HHV(H,50));PL5:=HHV(H,45);

买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWICON(BU AND SJTJ,L-0.1,1);
DRAWICON(SEL AND SJTJ,H+0.1,2);
趋势线上升:IF(买线>卖线 AND SJTJ,卖线,DRAWNULL),LINETHICK2,COLORRED;
趋势线下降:IF(卖线>买线 AND SJTJ,卖线,DRAWNULL),LINETHICK2,COLORGREEN;
DK1:=BARSLAST(买线>卖线);
KK1:=BARSLAST(卖线>买线);
DK2:=BARSLAST(CROSS(KK1,DK1));
KK2:=BARSLAST(CROSS(DK1,KK1));
HS:=DK2<KK2 AND SJTJ;
LS:=KK2<DK2 AND SJTJ;
W2:=OPEN-CLOSE;
HT:=IF(OPEN>CLOSE,OPEN,CLOSE);
LT:=IF(OPEN<CLOSE,OPEN,CLOSE);
STICKLINE(W2>0 AND HS,OPEN,CLOSE,2,0),COLORRED;
STICKLINE(W2>0 AND HS,OPEN,H,0.0,0),COLORRED;
STICKLINE(W2>0 AND HS,C,L,0.0,0),COLORRED;
STICKLINE(W2<=0 AND HS,OPEN,CLOSE,2,1),COLORRED;
STICKLINE(W2<=0 AND HS,O,L,0.0,0),COLORRED;
STICKLINE(W2<=0 AND HS,C,H,0.0,0),COLORRED;

STICKLINE(W2>0 AND LS,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(W2>0 AND LS,OPEN,H,0.0,0),COLORGREEN;
STICKLINE(W2>0 AND LS,C,L,0.0,0),COLORGREEN;
STICKLINE(W2<=0 AND LS,OPEN,CLOSE,2,1),COLORGREEN;
STICKLINE(W2<=0 AND LS,C,H,0.0,0),COLORGREEN;
STICKLINE(W2<=0 AND LS,O,L,0.0,0),COLORGREEN;
MA5:MA(CLOSE,5),COLORWHITE,LINETHICK1;
MA10:MA(CLOSE,10),COLORCYAN,LINETHICK1;
MA60:MA(CLOSE,60),COLORMAGENTA,LINETHICK1;
DRAWTEXT(HS=1 AND REF(LS,1),LOW*0.995,48);
DRAWTEXT(LS=1 AND REF(HS,1),H*1.008,49);
DRAWNUMBER(ISLASTBAR ,卖线,卖线),COLORYELLOW;
 

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