通达信金蝉出洞主图指标公式
通达信波段背离王指标公式
通达信金蝉出洞主图指标公式:
YX:=C<O;
ZGJ:=HHV(H,0);
ZD:=LLV(L,60);
DWTS:=YX AND COUNT(YX,0)=4;
TS:=BArslAst(DWTS);
SJ:=INTPART(TS/6);
ZQ:=BARSLASTCOUNT(SJ=REF(SJ,1))=5;
TJ11:=(DWTS OR ZQ) AND TS>=0;
FB:=C=ZTPRICE(REF(C,1),0.1);
MB:=H=ZTPRICE(REF(C,1),0.1) AND C<H;
FB20:=C=ZTPRICE(REF(C,1),0.2);
CMB:=H=ZTPRICE(REF(C,1),0.2) AND C<H;
STICKLINE(FB,C,O,2,0),COLORYELLOW;
STICKLINE(MB,C,O,2,0),COLORMAGENTA;
STICKLINE(FB20,C,O,2,0),COLORRED;
STICKLINE(CMB,C,O,2,0),COLORWHITE;
ZDJ:=C=LLV(C,60);
DW:=BARSLAST(ZDJ),NODRAW,COLORRED;
CD60:=CONST(REF(C,DW)),COLORGREEN;
TJ:=BETWEEN(DW,1,60) AND C/REF(C,1)>1.043;
拐点:=TJ AND COUNT(TJ,DW)=1;
STICKLINE(拐点, ZGJ,ZD,0.3,1);
GDTS:=BARSLAST(拐点),NODRAW,COLORRED;
拐点价:=CONST(REF(C,GDTS)),COLORRED;
LJD:=C=LLV(C,GDTS);
LJTS:=BARSLAST(LJD);
MD:=LJTS=1 AND C>REF(C,LJTS) AND H>L;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;
M1:=COUNT(MD,GDTS)=1;
D1:=BARSLAST(M1 AND MD);
M2:=COUNT(MD,GDTS)=2;
D2:=BARSLAST(M2 AND MD);
M3:=COUNT(MD,GDTS)=3;
D3:=BARSLAST(M3 AND MD);
M4:=COUNT(MD,GDTS)>3;
C1:=REF(C,D1);
C2:=REF(C,D2);
C3:=REF(C,D3);
G1:=MAX(C1,C2);
G2:=MAX(G1,C3);
GJ1:=IF(M1,C1,0);
GJ2:=IF(M2,G1,0);
GJ3:=IF(M3,G2,0);
GJ:=GJ1 + GJ2 + GJ3;
地平线:CONST(GJ),COLORMAGENTA;
JCCD:=C>=地平线 AND C/REF(C,1)>1.043;
CDTJ:=COUNT(JCCD,GDTS)=1 AND JCCD ;
DRAWTEXT(CDTJ,1.03*H,'金蝉出洞'),COLORYELLOW;
DRAWTEXT(BARSLASTCOUNT(M4)=1,0.97*L,'挖洞捕蝉'),COLORWHITE;
DRAWICON(CDTJ,0.99*L,29);
DRAWICON(BARSLASTCOUNT(M4)=1,L,9);
CDTS:=BARSLAST(CDTJ);
FXJ:=CONST(REF(C,CDTS));
FXX:=IF(M4 OR CDTS>GDTS,0,FXJ);
起飞线:CONST(FXX),COLORGREEN;
通达信有肉肉主图指标公式