KD:="1分钟做多.a#min1" ; //开多条件
PD:="做多持仓.a#min1"or time=150000 or ENTERPRICE-close>3.2 or close-ENTERPRICE>5 ; //平多条件
KK:="1分钟做空.a#min1"; //开空条件
PK:="做空持仓.a#min1"or time=150000 or close- ENTERPRICE>3.2 or enterprice-close>5; //平空条件
SELLSHORT((PK=1 ) ,2,thisclose); //平空信号
BUY(KD=1 AND HOLDING=0 and exitbars=-1,2,thisclose);
BUY(KD=1 and exitbars>0 AND HOLDING=0,2,thisclose);
//开多信号
SELL((PD=1) ,2,market); //平多信号
BUYSHORT(KK=1 AND HOLDING=0 and exitbars=-1,2, thisclose); //开空信号
BUYSHORT(KK=1 and exitbars>0 AND HOLDING=0,2, thisclose);
[此贴子已经被作者于2013-5-17 9:57:40编辑过]