
Discover new MetaTrader 5 opportunities with MQL5 community and services
- 2024.10.29
- www.mql5.com
MQL5: language of trade strategies built-in the MetaTrader 5 Trading Platform, allows writing your own trading robots, technical indicators, scripts and libraries of functions
Traders and coders are coding for free:
- if it is interesting for them personally, or
- if it is interesting for many members of this forum.
Freelance section of the forum should be used in most of the cases.

Trading applications for MetaTrader 5 to order
- 2024.10.29
- www.mql5.com
The largest freelance service with MQL5 application developers
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Hi
You cannot define those mt4 functions in mt5 and use them later. I assume you use those functions somewhere in the code to trade or manage positions and trades, but it’s not allowed in mql5.
You need to use proper classes and functions from the library you included like: CPositionInfo and methods for it: SelectByIndex, Symbol, Volume, PositionType etc.
Have a nice day👍📊

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register