-- 作者:jinzhe
-- 发布时间:2015/6/11 13:33:34
--
人工手工下单的话,就需要后台来实现下单了,而且手工下单必须是监控界面下单
就写个多头的例子
if tholding>0 and enterprice-c>=30 then tsell(1,0,mkt);
if tholding>0 and hhv(h,tenterbars+1)>=5 and hhv(h,tenterbars+1)<20 and c<hhv(h,tenterbars+1)-5 then tsell(1,0,mkt);
if tholding>0 and hhv(h,tenterbars+1)>=20 and hhv(h,tenterbars+1)<50 and c<hhv(h,tenterbars+1)-10 then tsell(1,0,mkt);
if tholding>0 and hhv(h,tenterbars+1)>=50 and c<hhv(h,tenterbars+1)-20 then tsell(1,0,mkt);
|