等级: 超级版主
- 注册:
- 2021-5-24
- 曾用名:
|
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
cond1:currenttime>093050 and currenttime<145500;
if cond1 and cross(ma10,ma5) then
begin
tbuyshort(1,300,lmt,DYNAINFO( 34)-0.0002);
END
if cond1 and cross(ma5,ma10) and tsellholding(1)>0 then
begin
tsellshort(1,300,lmt,DYNAINFO( 34));
END
if (close-TAVGENTERPRICEEX2('','',1))/TAVGENTERPRICEEX2('','',1)>(15/100) and tsellholding(1)>0 then
begin
tsellshort(1,50%,lmt,DYNAINFO( 34)),PERTRADER;
END
if currenttime>145500 and tsellholding(1)>0 then
begin
tsellshort(1,tsellholding(1),lmt,DYNAINFO( 34));
END |
|