?
?來源:程序化久久網(wǎng)( www.kzuj.com.cn )
if ref(all(c>o,2),1) and holding=0 then buy(1,1,marketr);
if close-enterprice>10*mindiff and holding>0 then sell(1,holding,marketr);
if low<ref(low,enterbars+1) and holding>0 then sell(1,1,marketr);