以下是通达信低买高卖(源码主图贴图)

E5:EMA(C,5),COLORLIGRAY;
E10:EMA(C,10),COLORMAGENTA;

A:DRAWLINE(L=LLV(L,BARSLAST(CROSS(E10,E5))+1) AND L=LLV(L,5) AND E5<=E10,L,H=HHV(H,BARSLAST(CROSS(E5,E10))+1) AND H=HHV(H,5) AND E5>=E10,H,0),COLORRED;
B:DRAWLINE(H=HHV(H,BARSLAST(CROSS(E5,E10))+1) AND H=HHV(H,5) AND E5>=E10,H,L=LLV(L,BARSLAST(CROSS(E10,E5))+1) AND L=LLV(L,5) AND E5<=E10,L,0),COLORGREEN;
DRAWTEXT(H=A,H,’卖出’);
DRAWTEXT(L=B,L,’买入’);

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