以下代码跑出来,2016.07之后一个信号都没有。 这是不可能的,软件有问题么?
能否帮我查以下?
if time = 1400 then begin
ypP1:= CALLSTOCKEX('YP00',vtclose,2,2,30000) ;
ypP2:= CALLSTOCKEX('YP00',vtclose,2,40,30000) ;
ypRise:= ypP2/ypP1*1.0; //外盘棕榈油
end
if time = 1400 && ypRise>1.005
then begin
buy(1,1,nextopen);
end
sell(time = 1430 ,1,thisclose);
ypP1:= CALLSTOCKEX('YP00',vtclose,2,2,30000) ;
ypP2:= CALLSTOCKEX('YP00',vtclose,2,40,30000) ;
这两个要引用什么样的数据?
因为担心理解上出现差异,所以用户描述一下上面引用是引用什么数据:后面参数2,2和2,40引用的分别是什么
周期数指的是偏移的周期数吗
2,40是要引用未来的40个周期数据吗?
这是在不改变代码愿意的情况下,对交易时间做了一个修改,选择了属于该品种的交易时间,140000 和143000不是yp00的交易时间
if time = 150500 then begin
ypP1: CALLSTOCKEX('YP00',vtclose,2,2,30000) ;
ypP2: CALLSTOCKEX('YP00',vtclose,2,40,30000) ;
ypRise:= ypP2/ypP1*1.0; //外盘棕榈油
end
if time = 150500 && ypRise>1.005
then begin
buy(1,1,nextopen);
end
sell(time = 153000 ,1,thisclose);