If c>ma(close,60) and ma(close,60)>REF(MA(C,60),1) then
begin
Sellshort(holding<0,holding,thisclose);
Buy(holding=0,thisclose);
End
if enterprice<c then
begin
Sell(holding>0,holding,market)
end
为什么以上代码不执行平多信号??那个地方出错了?
请高手解释一下
Buy(holding=0,thisclose); 开多 End if
enterprice>c then 止损 应该还有平多开空的语句 |
这个语句不对吗?我是想表现 当前为开多, 开仓价>当前收盘价(enterprice>c)为止损这个不对吗?