Download MetaTrader 5

Trade Functions vs. Trade Classes

To add comments, please log in or register
dudenukem
57
dudenukem 2011.09.22 16:32 

both provide more or less the same functionality but what is better to use while coding the EA?

balazs321
168
balazs321 2011.09.22 23:25  
What is a trade function?
balazs321
168
balazs321 2011.09.22 23:25  
But I guess that trade classes are based on trade functions.
Valerii Mazurenko
3485
Valerii Mazurenko 2011.09.23 01:13  

Trade function - i like to know how my code's working. But when i use standart library - i'm not sure that it was written in best way. 

dudenukem
57
dudenukem 2011.09.23 11:49  
balazs321:
What is a trade function?

these are the trade functions according to mql5 documentation;

 

https://www.mql5.com/en/docs/trading

 

to me they look quite clumsy - I would recommend to use them only in the beginning stage - later on its better to implement own classes or objects based on CTrade. 

Documentation on MQL5: Trade Functions
  • www.mql5.com
Trade Functions - Documentation on MQL5
To add comments, please log in or register