等级: 专业版
- 注册:
- 2022-8-5
- 曾用名:
|
variable:con=2;
variable:position=0;
IF SPPC3 THEN BEGIN
收盘平多:SELL(1,0,MARKET);
收盘平空:SELLSHORT(1,0,MARKET);
con:=2;
position:=0;
END
IF (JXZY OR JXZY1) AND BUYCD<>1 THEN BEGIN
SELL(1,0,MARKETR);
con:=2;
position:=0;
END
if position = 0 then begin
IF (BUYCD4 )AND H>MA3 AND TYPEBAR(1,2)<>0 AND TYPEBAR(1,4)<>0 THEN BEGIN
BUY(HOLDING=0,cw%,LIMITR,XJ);
position:=1;
END
END
while con>0 and position = 1 and cross(h,s1) and TYPEBAR(1,1)<>0 do BEGIN
buy(1,cw%,limitr,s1);
con:=con-1;
END
麻烦帮忙看下上面的加仓循环语句哪里出错了,为什么图表加载有时有效有时无效?
|
|