等级: 超级版主
- 注册:
- 2021-5-18
- 曾用名:
|
DZS:=ct=1 and (avgenterprice-c)>avgenterprice*ZS;
KZS:=at=1 and (c-avgenterprice)>avgenterprice*ZS;
IF REF(DZS and avgenterprice<>0,1) AND HOLDING>0 THEN BEGIN
SELL(1,0,LIMITR,O);
ct:=-1;
END
IF REF(KZS and avgenterprice<>0 ,1) AND HOLDING<0 THEN BEGIN
SELLSHORT(1,0,LIMITR,O);
at:=-1;
END
JDZS:= CT>1 AND C<AVGENTERPRICE ;
条件1:REF(JDZS and avgenterprice<>0,1);
IF REF(JDZS and avgenterprice<>0,1) THEN BEGIN
SELL(1,0,LIMITR,O);
ct:=-1;
END
JKZS:= AT>1 AND C>AVGENTERPRICE;
IF REF(JKZS and avgenterprice<>0,1) THEN BEGIN
SELLSHORT(1,0,LIMITR,O);
at:=-1;
END
直接这样去查看,变量器里的变量你不知道是哪一行位置时候的变量,只有开仓前面直接输出这样显示看你才能定位 |
|