等级: 免费版
- 注册:
- 2021-10-13
- 曾用名:
|
楼主 |
发表于 2021-11-30 14:32
|
显示全部楼层
Tcd:TIME=130200 OR TIME=170200 OR TIME=010200;
Tcd2:TIME=130100;
Tcd3:TIME=170100;
Tcd4:TIME=010100;
P2:VALUEWHEN(TCD2,O),NODRAW;
P3:VALUEWHEN(TCD3,O),NODRAW;
P4:VALUEWHEN(TCD4,O),NODRAW;
KD:TCD AND C>REF(H,1);
KK:TCD AND C<REF(L,1);
P1:=VALUEWHEN(KD,O);
P2:=VALUEWHEN(KK,O);
IF HOLDING<0 AND C>P2 THEN SELLSHORT(1,HOLDING,MARKET);
IF HOLDING>0 AND C<P1 THEN SELL(1,HOLDING,MARKET);
IF KD AND HOLDING=0 THEN BUY(1,10,MARKET);
IF KK AND HOLDING=0 THEN BUYSHORT(1,10,MARKET);
补充内容 (2021-11-30 14:32):
是完全复制的,为何显示不对,而单独的指标是对的 |
|