-- 作者:COMBOY
-- 发布时间:2015/7/15 22:57:10
--
if cross(ma60,c) and time>091500 and time<151000 then begin if holding>0 then sell(1,1,limitr,ma60) ; if holding=0 then buyshort(1,1,limitr,ma60); end
if cross(c,ma60) and time>091500 and time<151000 then begin
if holding<0 then sellshort(1,1,limitr,ma60) ; if holding=0 then buy(1,1,LIMITR,ma60); end
版主能否帮我修改下上面代码,使得即使发生k线跳空,没有cross也执行买多或买空
[此贴子已经被作者于2015/7/15 22:57:17编辑过]
|
-- 作者:jinzhe
-- 发布时间:2015/7/16 8:50:59
--
if cross(ma60,c) and time>091500 and time<151000 then begin if holding>0 then sell(1,1,limitr,ma60),IGNORECHECKPRICE ; if holding=0 then buyshort(1,1,limitr,ma60),IGNORECHECKPRICE; end
if cross(c,ma60) and time>091500 and time<151000 then begin
if holding<0 then sellshort(1,1,limitr,ma60) ,IGNORECHECKPRICE; if holding=0 then buy(1,1,LIMITR,ma60),IGNORECHECKPRICE; end
|