-- 作者:jinzhe
-- 发布时间:2016/7/22 15:45:07
--
1,当有持续大单买入(主动买单500手以上);
此时买一挂单量大于1000,卖一挂单量小于200;
开仓买入100手。
2,止损为开仓价-5,止盈为开仓价+10。
代码分笔周期执行
if BIDVOL>1000 and askvol<200 then buy(holding=0,100,market);
if holding>0 and c<enterprice-5 then sell(1,0,market);
if holding>0 and c>enterprice+10 then sell(1,0,market);
if bidvol<200 and askvol>1000 then buyshort(holding=0,100,market);
if holding<0 and c>enterprice+5 then sellshort(1,0,market);
if holding<0 and c<enterprice-10 then sellshort(1,0,market);
|