多空分界持股
不会被大牛洗出
持股线在 多空分界线 之上,就一直持股
N:=1;
M:=10;
持仓线:MA(CLOSE,N),COLORMAGENTA,LINETHICK3;
多空分界线:MA(CLOSE,M),COLORGREEN,LINETHICK3;
MA7:=MA(CLOSE,7),COLORGRAY,LINETHICK2;
MA4:=MA(CLOSE,4),COLORGRAY,LINETHICK2;
临界:=CROSS(CLOSE,MA(CLOSE, 36)) AND MA(CLOSE,11) MA(CLOSE, 36) AND CLOSE (REF(LOW,1)+REF(HIGH,1))/2 OR(LOW 多空分界线 AND CLOSE 多空分界线 AND CROSS(持仓线,多空分界线) AND CLOSE (REF(LOW,1)+REF(HIGH,1))/2),COLORRED,NODRAW;
DRAWTEXT(临界,LOW*0.99,'临界'),COLORRED;
DRAWICON(CROSS(MA4,MA7),MA7,9);
DRAWICON(CROSS(MA7,MA4),MA7,9);
ZT:=C =1.096*REF(C,1),NODRAW;
STICKLINE(ZT,O,REF(C,1)*1.1,1,0),COLORRED;