通達信拐點起飛主圖 通達信主圖指標原始碼附圖

指标公式分享發表於2024-03-09
{ 通達信拐點起飛主圖 通達信主圖指標原始碼附圖 }


{拐點起飛主圖}


YX:=C<o; <br="">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; <br="">FB20:=C=ZTPRICE(REF(C,1),0.2);
CMB:=H=ZTPRICE(REF(C,1),0.2) AND C<h; <br="">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;
GUHAI:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
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;

相關文章