{涨停时间(窗),副图:}
N:=3;
WR大于80考虑买:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),linethick0;
均价:amount/(vol*100),linethick0,coloryellow;
ZT:=C/ref(C,1)>1.097;
XH:=FILTER(ZT,13);
BH:=BARSLAST(ZT);
STICKLINE(ZT,0,L*0.7,4,0),COLORYELLOW;
DRAWTEXT(ZT,L*0.8,'涨停'),COLORf00ff0;;
varZT:=BARSLAST(C/REF(C,1)>1.097);
AA:=BETWEEN(C,REF(L,BH)*1.01,REF(L,BH)*0.987);
stickline(AA,0,L*0.3,2,0),colorblue;
drawtext(AA,L*0.4,'警戒'),colorwhite;
stickline(AA and varzt=2,0,L*0.5,2,0),colorred;
drawtext(AA and varzt=2,L*0.5,'时间窗'),colorwhite;
stickline(AA and varzt=4,0,L*0.5,2,0),colorred;
drawtext(AA and varzt=4,L*0.5,'时间窗'),colorwhite;
stickline(AA and varzt=7,0,L*0.5,2,0),colorred;
drawtext(AA and varzt=7,L*0.5,'时间窗'),colorwhite;
stickline(AA and varzt=12,0,L*0.5,2,0),colorred;
drawtext(AA and varzt=12,L*0.5,'时间窗'),colorwhite;
stickline(AA and varzt=20,0,L*0.5,2,0),colorred;
drawtext(AA and varzt=20,L*0.5,'时间窗'),colorwhite;
说明(DRAWTEXT(ZT,L*0.8,'涨停'),COLORf00ff0;;)详细信息 : 多余的 ";" ! 把它删除就行了. |