CTrade vs MqlTradeRequest which one is the best and effective - page 2

 
Deep Raj:

Use the MQL4-style in the MT5.

OrderSend - Trade Functions - MQL4 Reference
OrderSend - Trade Functions - MQL4 Reference
  • docs.mql4.com
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. At opening of a market order (OP_SELL or OP_BUY), only the latest prices of Bid (for selling) or Ask (for buying) can be used as open price. If operation is performed with a...
 
You have to be very careful when using CTrade as some of the properties like magic number are not set and are equal to 0
 
mt5_fxc_follower2 :
You have to be very careful when using CTrade as some of the properties like magic number are not set and are equal to 0

To set the Magic number use the CTrade :: SetExpertMagicNumber method

Documentation on MQL5: Standard Library / Trade Classes / CTrade / SetExpertMagicNumber
Documentation on MQL5: Standard Library / Trade Classes / CTrade / SetExpertMagicNumber
  • www.mql5.com
SetExpertMagicNumber(ulong) - CTrade - Trade Classes - Standard Library - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 

I tried Trade and OrderSend, based on my experience

- Ctrade : it can work for all brokers

- OrderSend : doesn't work for some brokers

It is not 100% guaranteed, you have to check your own EA for some reason

 
Mirrel AI #:

I tried Trade and OrderSend, based on my experience

- Ctrade : it can work for all brokers

- OrderSend : doesn't work for some brokers

It is not 100% guaranteed, you have to check your own EA for some reason

are you sure ????

its very strange