等级: 专业版
- 注册:
- 2021-8-3
- 曾用名:
|
楼主 |
发表于 2022-2-10 10:30
|
显示全部楼层
//双均线
C1_option:='10003844';
C2_option:='10003786';
MA5:=ma(C,5);
MA20:=ma(C,20);
KDPK:=CROSS(MA5,MA20);//开多平空条件
KKPD:=CROSS(MA20,MA5);//开空平多条件
TSELLSHORT (KDPK and tholding<0 ,1,MKT,0,0,'19851102245',C1_option) ;
TSELL(KDPK and tholding>0,1,MKT,0,0,'19851102245',C2_option);
TBUY(KDPK and TBUYHOLDINGEX('19851102245',c1_option,1)<100,1,MKT,0,0,'19851102245',c1_option);
TBUYSHORT(KDPK and TsellHOLDINGEX('19851102245',c2_option,1)<100,1,MKT,0,0,'19851102245',c2_option);
tsell(KKPD and tholding>0 ,1,MKT,0,0,'19851102245',C1_option) ;
TSELLSHORT(KKPD and tholding<0 ,1,MKT,0,0,'19851102245',C2_option);
TBUYSHORT(KKPD and TsellHOLDINGEX('19851102245',c1_option,2)<100,1,MKT,0,0,'19851102245',c1_option);
TBUY(KKPD and TBUYHOLDINGEX('19851102245',c2_option,1)<100,1,MKT,0,0,'19851102245',c2_option);
以上是完整代码,监控510050,但没反应,请老师看看,问题出在何处,按道理,每分钟金死叉都应该有开平动作。谢了
补充内容 (2022-2-10 10:42):
问题解决了,谢谢老师 |
|