以下是通达信压力支撑主图指标公式

核心K线:=V/REF(V,1)>=1.91 AND C>REF(C,1) AND C>O;
 TT:=V=HHV(V,21);
 BBL:=核心K线 AND TT;
 BL:=FILTER(BBL,2);
 K1:=SUMBARS(BL,1);
 STICKLINE(K1,REFV(C,K1-1),REFV(C,K1-1),1,0),COLORYELLOW;
 STICKLINE(K1,REFV(L,K1-1),REFV(L,K1-1),1,0),COLORCYAN;
 {核心K线}
STICKLINE(BL,OPEN,CLOSE,3,0)COLOR0035FF;
 STICKLINE(BL,OPEN,CLOSE,1.8,0)COLOR0064FF;
 STICKLINE(BL,OPEN,CLOSE,1.3,0)COLOR0093FF;
 STICKLINE(BL,OPEN,CLOSE,0.8,0)COLOR00C2FF;
 STICKLINE(BL,OPEN,CLOSE,0.3,0)COLOR00FFFF;
止损:=REF(C,1)>REFV(L,K1-1) AND C<REFV(L,K1-1),COLORGREEN,NODRAW;
 STICKLINE(止损,O,C,3,0),COLOR005500;
 STICKLINE(止损,O,C,2.8,0),COLOR007700;
 STICKLINE(止损,O,C,2.4,0),COLOR009900;
 STICKLINE(止损,O,C,2.0,0),COLOR00AA00;
 STICKLINE(止损,O,C,1.6.5,0),COLOR00BB00;
 STICKLINE(止损,O,C,1.2,0),COLOR00CC00;
 STICKLINE(止损,O,C,1.0,0),COLOR00DD00;
 STICKLINE(止损,O,C,0.6,0),COLOR00EE00;
 STICKLINE(止损,O,C,0.2,0),COLOR00FF00;
 STICKLINE(止损,H,L,0,0),COLOR00FF00;
一买:=BL,NODRAW;
 DRAWTEXT(一买,L,’↖一买’),COLORFF00FF;
二买:=CROSS(C,REFV(C,K1-1)),NODRAW;
 DRAWTEXT(二买,REFV(C,K1-1),’↖二买’),COLORFF00FF;
 DRAWTEXT(止损,L,’止’),COLORGREEN;
 DRAWTEXT(止损,L*0.975,’损’),COLORGREEN;

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