通达信冲关趋势通道主图指标公式
通达信冲关趋势通道主图指标公式:
AA1:=Ema(C,2);
BB1:=EMA(AA1,2);
A0:=MA(BB1,3);
AA2:=EMA((H+C+O)/3,18);
DD3:=A0>=AA2 AND C>AA2;
DD4:=A0<AA2 ;
DD5:=A0>AA2 ;
CC1:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
CC2:=crOSS(C,CC1) AND CC1>REF(CC1,1);
{逃顶-止损}
ZB1:=HHV(L,20);
XX1 := MAX(MAX((H-L),Abs(REF(C,1)-H)),ABS(REF(C,1)-L));
XX2 :=MA(XX1,13);
XX3 :=REF(C,1)-REF(XX2,1);
XX4 :=HHV(XX3,20);
{多数成本}
强弱分界:EMA(COst(85),10),COLORRED;
{成本}
CB1:=EMA(COST(5),5);
CB2:=EMA(COST(13),5);
CB3:=EMA(COST(34),5);
CB4:=LLV(CB1,34);
CB5:=LLV(CB2,34);
CB6:=LLV(CB3,34);
CB7:=EMA(C,5);
CB8:=LLV(CB7,34);
{-----------------【图解模板】---------------------}
{K线}
STICKLINE((DD4 OR DD5) AND O<=C ,H,L,0,0),COLOR00CC99;
STICKLINE((DD4 OR DD5) AND O<=C ,C,O,3,0),COLOR00CC99;
STICKLINE((DD4 OR DD5) AND O>=C ,H,L,0,0),COLOR3F8C3A;
STICKLINE((DD4 OR DD5) AND O>=C ,C,O,3,0),COLOR3F8C3A;
STICKLINE((DD3 OR C>AA2) AND O<=C,C,O,3,0),COLORRED;
STICKLINE((DD3 OR C>AA2) AND O<=C,H,L,0,0),COLORRED;
STICKLINE((DD3 OR C>AA2) AND O>=C,C,O,3,0),COLORFF33FF;
STICKLINE((DD3 OR C>AA2) AND O>=C,H,L,0,0),COLORFF33FF;
STICKLINE(CC2,H,L,0,0),COLORWHITE;
STICKLINE(CC2,O,C,3,0),COLORWHITE;
STICKLINE(MA(C,13)>O AND C>MA(C,13) AND O<C,O,C,3,0),COLORYELLOW;
STICKLINE(MA(C,13)>O AND C>MA(C,13),H,L,0,0),COLORYELLOW;
{逃顶-止损}
IF(ZB1=REF(ZB1,1),ZB1,DRAWNULL),POINTDOT,COLORYELLOW;
IF(XX4=REF(XX4,1),XX4,DRAWNULL),POINTDOT,COLORCYAN;
一关:IF(CB1>CB4,CB1,CB4),COLORBLUE;
二关:IF(CB2>CB5,CB2,CB5),COLORGREEN;
三关:IF(CB3>CB6,CB3,CB6),COLORMAGENTA;
冲关:IF(CB7>CB8,CB7,CB8),COLORWHITE;
通达信冲关趋势通道主图指标公式实例图解:
通达信冲关趋势通道主图指标公式