MQL4 - automated forex trading   /  

Forum

OrderSend in backtest mode

Back to topics list To post a new topic, please log in or register

avatar
81
Craig 2007.07.10 23:37 
Can OrderSend return -1 in the backtester?
I have an EA which gets different results in the backtester depending on if I handle OrderSend errors.
article

Statistical Report #2

We analyzed the Participants' trade results over the last two months.


avatar
Moderator
33780
Rosh 2007.07.11 09:10 
See documentation http://docs.mql4.com/trading/OrderSend

The main function used to open a position or place a pending order.
Returns number of the ticket assigned to the order by the trade server or -1 if it fails. To get additional error information, one has to call the GetLastError() function.


avatar
Moderator
5089
stringo 2007.07.11 11:09 
Back to topics list  

To add comments, please log in or register