等级: 专业版
- 注册:
- 2022-8-5
- 曾用名:
|
楼主 |
发表于 2023-5-17 16:56
|
显示全部楼层
if H>MA3 AND TYPEBAR(1,2)<>0 AND TYPEBAR(1,4)<>0 THEN BEGIN
IF (BUYCD4 ) THEN BEGIN
BUY(HOLDING=0,cw%,LIMITR,XJ);
IF (BUYCD ) THEN BEGIN
IF O<=SG THEN BUY(HOLDING=0,cw%,LIMITR,SG);
IF O>=SG THEN BUY(HOLDING=0,cw%,LIMITR,O);
IF (BUYCD2 ) THEN BEGIN
IF M5>SG THEN BUY(HOLDING=0,cw%,LIMITR,M5);
IF SG>M5 THEN BUY(HOLDING=0,cw%,LIMITR,SG);
IF (BUYCD3 ) THEN BEGIN
IF AA1<=SG THEN BUY(HOLDING=0,cw%,LIMITR,SG);
IF AA1>=SG THEN BUY(HOLDING=0,cw%,LIMITR,AA1);
IF (BUYCD1 )THEN BEGIN
BUY(HOLDING=0,cw%,MARKET);
END
END
END
END
END
END
if holding>0 and con<3 and cross(h,s1) and TYPEBAR(1,1)<>0 then BEGIN
buy(1,cw%,limitr,s1);
con:=con+1;
end |
|