以下是通达信红色趋势副图源码

通达信红色趋势副图源码

买线:EMA(C,2),COLOR000999;
卖线:EMA(SLOPE(C,21)*20+C,42),POINTDOT,COLORYELLOW; 
BUY1:=CROSS(买线,卖线);
SEL1:=CROSS(卖线,买线);

DRAWTEXT(SEL1,HIGH+0.1,’◎’),COLORWHITE,LINETHICK5;
STICKLINE(买线>=卖线,LOW,HIGH,0.1,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,4,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,4,1),COLORBROWN;
STICKLINE(买线<卖线,CLOSE,OPEN,4,0),COLORFFFF00;
STICKLINE(买线<卖线,CLOSE,OPEN,4,0),COLOR00FF00;
STICKLINE(买线<卖线,LOW,HIGH,0.1,1),COLOR00FF00;
STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,6,0),COLORYELLOW;

限制:=EMA((((H+C)/2+L+(C+L)/2)/3-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2))/(EMA(HHV (((H+C)/2+L+(C+L)/2)/3,21),2)-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2)),8)*100;
平衡:=SMA(EMA(SMA((C+L)/2,3,1),3),5,1);
DRAWTEXT(FILTER(平衡>REF(平衡,1)AND HHV(MA((H+C)/2,13),10)<REF(HHV(MA((H+C)/2,13),10),1)AND((C+L)/2)>REF((C+L)/2,1),5)AND 限制<88,L*0.98,’    ——‘),COLORRED;

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