I just order two pending order ,but ,it likely to run many ,ervry few second later,there will be twe pending order appear in the screen ,why?
plglenn:
int LARGENUMBER = 100000;
int _orderIdBuy = -1;
int _orderIdSell = -1;
//step1
OrderSend(Symbol(), OP_BUYSTOP, _number, Bid + _pendingPoint * Point, 0, Bid + _pendingPoint * Point - _lossPoint * Point, Bid + _pendingPoint * Point + _getPoint * Point, "some comment", 16384, 0, Green);
OrderSend(Symbol(), OP_SELLSTOP, _number, Ask - _pendingPoint * Point, 0, Ask - _pendingPoint * Point + _lossPoint * Point, Ask + _pendingPoint * Point - _getPoint * Point, "some comment", 16384, 0, Green);
//step2
}
I just order two pending order,but,it likely to run many,ervry few second later,there will be twe pending order appear in the screen,why?
the code as follow :
int start()
{int LARGENUMBER = 100000;
int _orderIdBuy = -1;
int _orderIdSell = -1;
//step1
OrderSend(Symbol(), OP_BUYSTOP, _number, Bid + _pendingPoint * Point, 0, Bid + _pendingPoint * Point - _lossPoint * Point, Bid + _pendingPoint * Point + _getPoint * Point, "some comment", 16384, 0, Green);
OrderSend(Symbol(), OP_SELLSTOP, _number, Ask - _pendingPoint * Point, 0, Ask - _pendingPoint * Point + _lossPoint * Point, Ask + _pendingPoint * Point - _getPoint * Point, "some comment", 16384, 0, Green);
//step2
}
DON'T DOUBLE POST why it run many times

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I just order two pending order,but,it likely to run many,ervry few second later,there will be twe pending order appear in the screen,why?
the code as follow :
int start()
{int LARGENUMBER = 100000;
int _orderIdBuy = -1;
int _orderIdSell = -1;
//step1
OrderSend(Symbol(), OP_BUYSTOP, _number, Bid + _pendingPoint * Point, 0, Bid + _pendingPoint * Point - _lossPoint * Point, Bid + _pendingPoint * Point + _getPoint * Point, "some comment", 16384, 0, Green);
OrderSend(Symbol(), OP_SELLSTOP, _number, Ask - _pendingPoint * Point, 0, Ask - _pendingPoint * Point + _lossPoint * Point, Ask + _pendingPoint * Point - _getPoint * Point, "some comment", 16384, 0, Green);
//step2
}