请教:
IF CLOSE>W_JJD THEN
BEGIN
sellshort(holding<0,0,MARKETR);
if holding=0 then 开多:buy(1,1,MARKETR);
END
条件明明是成立的为什么在K线图上没有显示开多信号呢?
改为以下,看看
IF CLOSE>W_JJD THEN
BEGIN
sellshort(holding<0,0,MARKETR);
buy(holding=0,1,MARKETR);//开多
END
if holding>0 and OPENPROFIT>0 and (多单平仓条件1 or 多单平仓条件2) then
begin
SELL(1,HOLDING,MARKETR); //平多
end