等级: 超级版主
- 注册:
- 2021-5-18
- 曾用名:
|
HA:=stkindi('','var1.kd',0,5,0);
HB:=stkindi('','var1.kk',0,5,0);
ZB1_BOOL : =IFELSE( CROSS(TMP1,0),-1,IFELSE(CROSS(0,TMP1),1,REF(ZB1_BOOL,1)) ),NODRAW;
KD:ZB1_BOOL=1 , NODRAW;
KK:ZB1_BOOL=-1 ,NODRAW;
DT:=KD&&HA;
KT:=KK&&HB;
KD2:KD&&L>REF(L,SUMBARS(KD,2)-1),NODRAW;
KK2:KK&&H<REF(H,SUMBARS(KK,2)-1),NODRAW;
KC:VOL>REF(VOL,1)*2,NODRAW;
KC1:OPI>=REF(OPI,1),NODRAW;
PD3 : ZB1_BOOL=-1,NODRAW;
PK3 : ZB1_BOOL=1,NODRAW;
if PK3 then sellshort(1,holding,marketr);
if PD3 then sell(1,holding,marketr);
if DT AND KC AND KD2 then
buy(holding=0,1,marketr);
if KT AND KC AND KK2 then buyshort(holding=0,1,marketr); |
|