{30分钟箱体}
N:=BARSLAST(TIME2=100100);
C1:CONST(IF(N,MAX(REF(HHV(H,0),N),DYNAINFO(4)),HHV(H,0))),DOTLINE,COLORBROWN;
C2:CONST(IF(N,MIN(REF(LLV(L,0),N),DYNAINFO(4)),LLV(L,0))),DOTLINE,COLORBROWN;
VV:=HHV(V,0);
DRAWTEXT(C1/C2 =1.03 AND CROSS(C,C1) AND V =VV,C1,'★买入')COLORRED;
DRAWTEXT(C1/C2 =1.03 AND CROSS(C2,C) AND V =VV,C2,'★卖出')COLORGREEN;