开仓次数?要用全局变量记录
variable:n=0;
variable:m=0
if 开仓条件 and 持仓判断 then begin
buy.......;
n:=n+1;
end
if 开仓条件2 and 持仓判断 then begin
buyshort.....;
m:=m+1;
end
n是开多次数,m是开空次数
请问4个交易函数BUY,BUYSHORT,SELL,SELLSHORT有返回值吗?
那如何判断是否成交?是否全部或者部分成交?
那后台交易呢?