价:=8;价:=9;数量:=10000;买入日:=161226;卖出日:=170330;:=1;MA1:IF(均线=1,MA(CLOSE,5),DRAWNULL);MA2:IF(均线=1,MA(CLOSE,10),DRAWNULL);MA3:IF(均线=1,MA(CLOSE,20),DRAWNULL);MA4:IF(均线=1,MA(CLOSE,60),DRAWNULL);买入日期:=1000000+买入日;DRAWICON(DATE=买入日期,L*0.98,1);卖出日期:=1000000+卖出日;DRAWICON(DATE=卖出日期,H*1.02,2);买入:IF(买入价!=0,买入价,DRAWNULL),COLORLIRED,DOTLINE;卖出:=IF(卖出价!=0,卖出价,DRAWNULL),COLORGREEN,DOTLINE;STICKLINE(DATE=买入日期,买入,买入,10,0),COLORGREEN;STICKLINE(DATE=卖出日期,卖出,卖出,10,0),COLORGREEN;盈亏:=(卖出-买入)*数量/10000,COLORYELLOW,NODRAW;