等级: 专业版
- 注册:
- 2022-8-5
- 曾用名:
|
楼主 |
发表于 2022-12-28 17:40
|
显示全部楼层
MACD1:=COUNT(MACD=-10 AND VOLYQ, ENTERBARS)=1;
VARIABLE:NUM=0;
IF MACD1=-10 AND (NUM=1 ) THEN BEGIN
IF MACD1 AND C<ENTERPRICE AND C<AVGENTERPRICE THEN BEGIN
平仓1: SELLSHORT(1 ,HOLDING/2,THISCLOSE);
NUM:=NUM+1;
END;
MACD2:=COUNT(MACD=-10 AND VOLYQ, ENTERBARS)=2;
VARIABLE:NUM=0;
IF MACD2=-10 AND (NUM=2 ) THEN BEGIN
IF MACD2 AND C<ENTERPRICE AND C<AVGENTERPRICE THEN BEGIN
平仓2: SELLSHORT(1 ,HOLDING/2,THISCLOSE);
NUM:=NUM+1;
END;
MACD3:=COUNT(MACD=-10 AND VOLYQ, ENTERBARS)=3;
VARIABLE:NUM=0;
IF MACD3=-10 AND (NUM=3 ) THEN BEGIN
IF MACD3 AND C<ENTERPRICE AND C<AVGENTERPRICE THEN BEGIN
平仓3: SELLSHORT(1 ,HOLDING/2,THISCLOSE);
NUM:=NUM+1;
END;
|
|