//只能固定轮询模式下执行下面的代码。
abb1:=timetot0(30000)-timetot0(dynainfo(207)),NODRAW;
abb2:=timetot0(190000)-timetot0(dynainfo(207)),NODRAW;
cd:((abb1>0 and abb1<=10) or (time=30000 and not(ISLASTBAR))) or (
(abb2>0 and abb2<=10) or (time=190000 and not(ISLASTBAR)));
if cd then
begin
强平1:sell(holding>0,holding,market);
强平2:sellshort(holding<0,holding,market);
end
不知为何不执行强平?系统显示“dynainfo”返回常数变量函数。要怎样改?
cd:time=30000 or time=190000;//2个收盘K上强平。
if cd then