Should I login to my account before sending orders in MT5?
I mean before using commands like: Ordersend(), should I send user information to server? should I do somehting else? because the server rejects all of my orders, but when I manually put them there is no error.
I want to send an order to the server using CTrade class.
I want to send the following order to the server:
Stop Loss: 0
Take profit = 0
Fill policy= return
what is the complete needed code for that?
should I use CTrade.OrderOpen() method first and then use CTrade.OrderSend()?
or is it just enough to use CTrade.BuyLimit() method?