用走完一根k線模式
ma5:ma(c,5);
ma10:ma(c,10);
if ma5>ma10 then buy(holding=0,1,market);
if ma5<ma10 then buyshort(holding=0,1,market);
if h-ENTERPRICE>=10 and enterbars>=0 then sell(holding>0,holding,market);
if ENTERPRICE-l>=10 and enterbars>=0 then sellshort(holding<0,holding,market);