//仅1分钟有效
a:=DYNAINFO( 11);
//准备需要计算的变量
aaa:=a;
TradeTime:= time>090000 and time<145200 ;
//建立多头进场条件
Long:=cross(c,aaa) and TradeTime;
if Long then
begin
tSELLSHORT( tholding<0,开仓手数,lmt,h,0,'88859','');
SELLSHORT(holding<0,holding,thisclose);
BUY(Long,开仓手数,thisclose);
tbuy(Long,开仓手数,lmt,h,0,'88859','');
end
//建立空头进场条件
Short:=cross(aaa,c) and TradeTime;
if Short then
begin
tsell( tholding>0,开仓手数,lmt,l,0,'88859','');
SELL( holding>0,holding,thisclose);
BUYSHORT(Short,开仓手数,thisclose);
tbuyshort( short,开仓手数,lmt,l,0,'88859','');
end
//收盘前平仓
sell(time>145500 and holding>0,0,thisclose) ;
tsell(time>145500 and tholding>0,0,lmt,l);
sellshort(time>145500 and holding<0,0,thisclose) ;
tsellshort(time>145500 and holding<0,0,lmt,h);
谢谢