Event for PendingOrder creation failed

Created at 02 May 2013, 17:18
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
HI

hichem

Joined 17.12.2012

Event for PendingOrder creation failed
02 May 2013, 17:18


Hello, 

How can a robot detect if a pendingOrder creation request has failed ?


@hichem
Replies

cAlgo_Fanatic
07 May 2013, 12:54

If the order fails to be filled due to invalid values being set then the error event will be raised and the error message will be technical error:

protected override void OnError(Error error)
{
// Do something if there is an error Print("Error: {0}", error.Code); }




@cAlgo_Fanatic