等级: 免费版
- 注册:
- 2021-7-13
- 曾用名:
|

楼主 |
发表于 2021-12-27 09:07
|
显示全部楼层
ma13:ma(c,13);
ma21:ma(c,21);
ma34:ma(c,34);
variable:zsp1:=0,zsp2:=0;
if c<zsp1 and holding>0 then
begin
多止损:sell(1,holding,market);
zsp1:=0;
end
if c>zsp2 and holding<0 then
begin
空止损:sell(1,holding,market);
zsp2:=0;
end
if cross(ma13,ma34) and ma13>ma21 and holding=0 then
begin
buy(1,10,market);
zsp1:=l;
end
if cross(ma34,ma13) and ma13<ma21 and holding=0 then
begin
buyshort(1,10,market);
zsp2:=h;
end
if cross(ma13,c) and holding>0 then
begin
sell(1,holding,market);
zsp1:=0;
end
if cross(c,ma13) and holding<0 then
begin
sellshort(1,holding,market);
zsp2:=0;
end
这个程序的五分钟界面就出现上面这个错误,请问老师需要怎么修改? |
|