下单代码全为限价单
//做多
TSELL(CROSS(MA1,MA2) ,0,LMT,P1_option_bid,0,'',P1_option);//平多沽
TSELLSHORT(CROSS(MA1,MA2) ,0,LMT,C1_option_ask,0,'',c1_option);//平空购
TBUY( KDPK and TBUYHOLDINGEX('',c1_option,1)<ss ,ss,LMT,C1_option_ask,0,'',c1_option);
TBUYSHORT( KDPK and TSELLHOLDINGEX('',P1_option,1)<ss,ss,LMT,P1_option_bid,0,'',P1_option);
TBUY( XD and TBUYHOLDINGEX('',c1_option,1)<ss ,ss,LMT,C1_option_ask,0,'',c1_option);
TBUYSHORT( XD and TSELLHOLDINGEX('',P1_option,1)<ss,ss,LMT,P1_option_bid,0,'',P1_option);
//做空
Tsell(CROSS(MA2,MA1) ,0,LMT,C1_option_bid,0,'',C1_option);
TSELLSHORT(CROSS(MA2,MA1) ,0,LMT,P1_option_ask,0,'',p1_option);
TBUY( XK and TBUYHOLDINGEX('',P1_option,1)<ss ,ss,LMT,P1_option_ask,0,'',P1_option);
TBUYSHORT( XK and TSELLHOLDINGEX('',c1_option,1)<ss ,ss,LMT,C1_option_bid,0,'',c1_option);
TBUY( KKPD and TBUYHOLDINGEX('',P1_option,1)<ss ,ss,LMT,P1_option_ask,0,'',P1_option);
TBUYSHORT( KKPD and TSELLHOLDINGEX('',c1_option,1)<ss ,ss,LMT,C1_option_bid,0,'',c1_option);
|