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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi all,
Why can't I set StopLoss / TakeProfit for OrderSend(...OP_BUY,...) ?
So are there any features of OrderSend() that I didn't know about ? Please help.