question about CTrade class

 

What is the difference between Buy() method and PositionOpen() method in  CTrade class?

if they are the same, whats the point of having two different method that basically do the same thing in CTrade Class?

Documentation on MQL5: Standard Library / Trade Classes / CTrade / PositionOpen
Documentation on MQL5: Standard Library / Trade Classes / CTrade / PositionOpen
  • www.mql5.com
PositionOpen(const string,ENUM_ORDER_TYPE,double,double,double,double,const string) - CTrade - Trade Classes - Standard Library - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
I do not think there is any difference. Depending on how you design your code one may suit better.