管理员,不好意思,这个问题不小心发到策略发布区去了,阿火在的话请帮忙
继续问题:
想搞清楚 第2部分用均线平仓是没信号的,我觉得是满足条件时得不到exitprice,和说明书里序列运行模式有关,但不知道怎么改写才对
if cond1 then begin
·········语句··········
exitprice:= stoplossprice ;
end
if cond2 then begin
if cross(ma(close,60),close) then
exitprice:= close ;
end
sell(1,exitprice)
cond3:=cross(ma(close,60),close);
if cond2 then begin
if cond3 then
exitprice:= close ;
end