等级: 超级版主
- 注册:
- 2021-5-24
- 曾用名:
|
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
cond1:currenttime>093050 ;
//用flag来标记是否平过半仓
GLOBALVARIABLE:flag=0;
if currenttime>093000 and currenttime<093100 then flag:=0;
if cond1 and (ma10>ma5) and tsellholding(1)<300 then
begin
tbuyshort(1,300-tsellholding(1),lmt,DYNAINFO( 34)-0.0002);
END
if cond1 and (ma5>ma10) and tsellholding(1)>0 then
begin
tsellshort(1,tsellholding(1),lmt,DYNAINFO(28));
END
if flag=0 and (close-TAVGENTERPRICEEX2('','',1))/TAVGENTERPRICEEX2('','',1)>(15/100) and tsellholding(1)>0 then
begin
tsellshort(1,50%,lmt,DYNAINFO(28)),PERTRADER;
flag:=1;
END
if currenttime>145500 and tsellholding(1)>0 then
begin
tsellshort(1,tsellholding(1),lmt,DYNAINFO(28));
END |
|