why can't I set StopLoss / TakeProfit for OrderSend (...OP_BUY,...) ?

 

Hi all,

Why can't I set StopLoss / TakeProfit for OrderSend(...OP_BUY,...) ?


       
//trading Gold - XAUUSD. Below is my test:

//---------------------------------------------------------------------------

             OrderSend(Symbol(),OP_BUY,0.1,Ask,3,1000,2000,"test",0,0,Blue); // failed ! this statement won't be executed (because of SL/TP)

//---------------------------------------------------------------------------


//---------------------------------------------------------------------------

             OrderSend(Symbol(),OP_BUYLIMIT,0.1,Ask-5,3,1000,2000,"test",0,0,Blue); // successful! this statement will be executed !

//---------------------------------------------------------------------------


So are there any features of OrderSend() that I didn't know about ? Please help.

 
Read this: ECN
 
RaptorUK:
Read this: ECN

Thank you.
Reason: