等级: 专业版
- 注册:
- 2022-8-5
- 曾用名:
|
楼主 |
发表于 2023-3-6 21:31
|
显示全部楼层
老师您好!我检查不出哪里又写错了,又不能成交。麻烦老师帮我看看。 谢谢您
cond1:currenttime>=090000 ;
//用flag来标记是否平过半仓
GLOBALVARIABLE:flag=0;
if currenttime>=090000 then flag:=0;
if cond1 and kk and tsellholding(1)<10 then
begin
tbuyshort(1,10-tsellholding(1),lmt,DYNAINFO( 34)-0.0002);
END
if cond1 and pk and tsellholding(1)>0 then
begin
tsellshort(1,tsellholding(1),lmt,DYNAINFO(28));
END
if flag=0 and TOPENPROFIT/(TACCOUNT(42)*tsellholding(1)*MULTIPLIER)>5 and tsellholding(1)>0 then
begin
tsellshort(1,50%,lmt,DYNAINFO(28)),PERTRADER;
flag:=1;
END
if flag=0 and cond1 and kd and tbuyholding(1)<10 then
begin
tbuy(1,10-tbuyholding(1),lmt,DYNAINFO(28)+0.0002);
END
if cond1 and pd and tbuyholding(1)>0 then
begin
tsell(1,tbuyholding(1),lmt,DYNAINFO(34));
END
if flag=0 and TOPENPROFIT/(TACCOUNT(41)*tbuyholding(1)*MULTIPLIER)>5 and tbuyholding(1)>0 then
begin
tsell(1,50%,lmt,DYNAINFO(34)),PERTRADER;
flag:=1;
END
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?
x
|