 
等级: 超级版主
- 注册:
- 2021-5-18
- 曾用名:
- FireScript
|
TK:ref(low,1)>O;//跳空,可自行调整其判断方式
if TK and TODAYBAR=1 then
begin
buy(TYPE(1)=2,ENTERVOL,market);
buyshort(TYPE(1)=4,ENTERVOL,market);
end
if time=CLOSETIME(0) or (time=CLOSETIME(1) and CLOSETIME(4)=CLOSETIME(0)) then
begin
收盘平多:sell(1,holding,market);
收盘平空:sellshort(1,holding,market);
END
isTk:VALUEWHEN(TODAYBAR=1,TK);
if 开仓条件 and (not(isTk) or (isTk and TODAYBAR>2)) then //所有开仓条件 加上后面的条件
begin
end |
|