IF(操作 REF(操作,1),操作,DRAWNULL),COLORLICYAN,LINETHICK3;
拉升:HHV(D,13),COLORLIRED,LINETHICK1;
阻力:HHV(D,55),COLORCYAN;
买卖:LLV(D,8),COLORYELLOW,LINETHICK1;
IF(买卖 REF(买卖,1),买卖,DRAWNULL),COLORLICYAN,LINETHICK0;{
DRAWTEXT(REF(C,1) D AND C D AND D REF(D,1),H*1.02, '卖'),COLORGREEN;
DRAWTEXT(REF(C,1) D AND C D AND D REF(D,1),L*0.98, '买'),COLORYELLOW;}
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX 0,2) AND CROSS(DX,MA(DX,2)),1,0);{
DRAWTEXT(FILTER(买=1,5),LOW*0.98,'拉'),COLORWHITE;}
DP:=IF(C=INDEXC,0,1);
GJ:=AMOUNT/V/100;
明阻:L+(GJ-L)+(C-L),NODRAW;
明支:L+(C-GJ),NODRAW;
今阻:REF(明阻 , 1)NODRAW;
今支:REF(明支 , 1),NODRAW;