if o<4000 and c>3900 and o>c then buyshort(holding=0,3,market);
if ENTERPRICE<4000 and c>4000 and o>4000 and c>o and holding<0 then sellshort(1,2,MARKET);
variable如何使用,希望实现上面语句在满足条件时只执行一次。谢谢
举个例子:
variable:mark:=1;
if buycond and mark then
begin
buy(holding=0,1,market);
mark:=0;
end
//这样执行一次后不再执行第二次,只有重置mark才能有第二次执行的情况