下载MetaTrader 5
要添加评论,请登录注册
直接在MetaTrader出售产品。数百万交易者正在等候!
glennking
87
glennking 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试试

glennking
87
glennking 2009.10.20 03:54  
#property copyright "Copyright ?2009, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"

extern double _number = 1.0;//閹靛鏆? //use it
extern int _second = 5000;//娴滃娆㈤惃鍕闂? //use it
extern double _buyPendPrice = 0.0;//閹稿倸宕熺拹顓濇嫳娴犻攱鐗?
extern double _sellPendPrice = 0.0;//閹稿倸鐢崡鏍敄娴犻攱鐗?
extern double _buyLossPrice = 0.0;//娑旀澘宕熷銏″疮娴犻攱鐗?
extern double _buyGetPrice = 0.0;//娑旀澘宕熷銏㈡畅娴犻攱鐗?
extern double _sellLossPrice = 0.0;//閸楁牕宕熷銏″疮娴犻攱鐗?
extern double _sellGetPrice = 0.0;//閸楁牕宕熷銏㈡畅娴犻攱鐗?
extern int _pendingPoint = 2000;//閹稿倽鎹i悙瑙勬殶 //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);
}
/
要添加评论,请登录注册