 
等级: 超级版主
- 注册:
- 2021-5-18
- 曾用名:
|
// 开多指令
开多1: tBUY(kd AND tbuyholding(1) = 0, N, mkt);
// 平多指令
平多1: tSELL(PD1 AND tENTERBARS(1) > 0, tbuyholding(1), mkt);
平多2: tSELL(PD2 AND tENTERBARS(1) > 0, tbuyholding(1), mkt);
// 开空指令
开空1: tBUYSHORT(kk AND tsellholding(1) = 0, N, mkt);
// 平空指令
平空1: tSELLSHORT(PK1 AND tENTERBARS(1) >0, tsellholding(1), mkt);
平空2: tSELLSHORT(PK2 AND tENTERBARS(1) >0, tsellholding(1), mkt);
CON1:= TIME=230000;
CON2:=TIME=230000 AND REMAININGTIME(230000)<=3 AND REMAININGTIME(230000)>=0;
condd:=CON1 OR CON2;
if condd then
begin
tsell(1,tbuyholding(1),mkt);
tsellshort(1,tsellholding(1),mkt);
end
|
|