# 为什么不能下单 OrderSend(Symbol(), OP_SELLSTOP, _number, Ask - _pendingPoint * Point, 0, Ask - _pendingPoint * Point + _lossPoint * Point, Ask + _pendingPoint * Point - _getPoint * Point, "some comment", 12321, 0, Green);

87
2009.10.20 02:58

OrderSend(Symbol(), OP_SELLSTOP, _number, Ask - _pendingPoint * Point, 0, Ask - _pendingPoint * Point + _lossPoint * Point, Ask + _pendingPoint * Point - _getPoint * Point, "some comment", 12321, 0, Green);

71
2009.10.20 03:40

OrderSend(Symbol(), OP_SELLSTOP, _number, Ask - _pendingPoint * Point, 0, Ask - _pendingPoint * Point + _lossPoint * Point, Ask + _pendingPoint * Point - _getPoint * Point, "some comment", 12321, 0, Green);//你改成OP_SELLLIMIT试试

87
2009.10.20 03:54

extern double _number = 1.0;//閹靛鏆? //use it
extern int _second = 5000;//娴滃娆㈤惃鍕闂? //use it
extern double _sellPendPrice = 0.0;//閹稿倸鐢崡鏍敄娴犻攱鐗?
extern double _sellLossPrice = 0.0;//閸楁牕宕熷銏″疮娴犻攱鐗?
extern double _sellGetPrice = 0.0;//閸楁牕宕熷銏㈡畅娴犻攱鐗?
extern int _pendingPoint = 2000;//閹稿倽鎹ｉ悙瑙勬殶 //use it
extern int _getPoint = 1000;//
extern int _lossPoint = 1000;//
extern double Lots = 1;
extern int ChasStart = 10;
extern int ChasStop = 22;
extern int Step = 25;
extern int TP = 40;

int _curTime;
int _curTimeNew;
extern int prevtime = -10000;
int OrderCountOtlA=0 ;
int OrderCountOtlB=0;
int start()
{

OrderSend(Symbol(), OP_SELLSTOP, _number, Ask - _pendingPoint * Point, 0, Ask - _pendingPoint * Point + _lossPoint * Point, Ask + _pendingPoint * Point - _getPoint * Point, "some comment", 12321, 0, Green);

OrderSend(Symbol(), OP_BUYSTOP, _number, Bid + _pendingPoint * Point, 0, Bid + _pendingPoint * Point - _lossPoint * Point, Bid + _pendingPoint * Point + _getPoint * Point, "some comment", 12321, 0, Green);

return (0);
}
/