以下是通达信进场止盈源码副图

DRAWTEXT_FIX(1,0,0.00,0,’★红箭头买入!’),COLORRED;
    DRAWTEXT_FIX(1,0,0.5,0,’★绿箭头卖出!’),COLORGREEN;

{进场}
P:=21;
    WH1:=IF(L=LLV(L,P),L,DRAWNULL);
    WH2:=CONST(BARSLAST(WH1!=DRAWNULL));
    CURRBARSCOUNT<=WH2+1 AND L=LLV(L,P),COLOR0000FF,LINETHICK2;
    {止盈}
H1:=IF(H=HHV(H,P),H,DRAWNULL);
    H2:=CONST(BARSLAST(H1!=DRAWNULL));
    CURRBARSCOUNT<=H2+1 AND H=HHV(H,P),COLORGREEN, LINETHICK2;

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