ma5:ma(c,5);
ma10:ma(c,10);
ma20:ma(c,20);
ma30:ma(c,30);
jc:cross(ma5,ma10);
sc:cross(ma10,ma5);
if c>ma5 and jc and ma20>ma30 then buy(holding=0,1,market);
if sc then sell(holding>0,holding,market);
m3:=(t0totime(timetot0(closetime(0))-60*3));//收盘前3分钟的时间
if time>=m3 then Sell(holding>0,holding,market);//收盘前3分钟清仓