Download MetaTrader 5

CTrade vs MqlTradeRequest - help

To add comments, please log in or register
Do you have Linux? Find out how to install MetaTrader on it!
theDUDE
43
theDUDE 2012.08.03 22:42 
I'm just confused, it appears to me that both CTrade and MqlTradeRequest can be used to place a trade independently. Is this true? And if so, is one better that the other?
Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure
Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure
  • www.mql5.com
Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure - Documentation on MQL5
onewithzachy
2271
onewithzachy 2012.08.04 00:04  
theDUDE:
I'm just confused, it appears to me that both CTrade and MqlTradeRequest can be used to place a trade independently. Is this true? And if so, is one better that the other?

Hi theDUDE,

Dude, CTrade is a class that using MqlTradeRequest. We can create any other class similar to CTrade and we can name it "whatever trade", but as long as it using MqlTradeRequest then its all the same with using MqlTradeRequest alone.

If we open CTrade class we'll see MqlTradeRequest all over it. 

I prefer using CTrade coz its already well written, but execution wise : its all the same.

 

To add comments, please log in or register