M10:MA(C,10),COLORGREEN;M30:MA(C,30),COLORYELLOW;X:=CURRBARSCOUNT=1;X1:DRAWTEXT(C>M10 AND C>M30 AND M10>M30 AND X,M30*0.98,':80%'),COLORWHITE;X2:DRAWTEXT(C
M30 AND M10>M30 AND X,M30*0.98,'仓位:50%'),COLORWHITE;X3:DRAWTEXT(CM30 AND X,M30*0.98,'仓位:20%'),COLORWHITE;X4:DRAWTEXT(C>M10 AND C>M30 AND M10M10 AND C=ZTPRICE(REF(CLOSE#DAY,1),0.1);DT:=C<=DTPRICE(REF(CLOSE#DAY,1),0.1);BA:STICKLINE(ZT,(H+L)/2,CLOSE,0,0),COLORYELLOW;BC:STICKLINE(DT,(H+L)/2,CLOSE