https://www.mql5.com/en/articles/81
https://www.mql5.com/en/articles/66
MT4 => MT5 converter: https://www.mql5.com/en/forum/179991
mt4 orders to mt5: https://www.mql5.com/en/code/16006
https://www.mql5.com/en/blogs/post/681230
Chosse one of his CrossPlattform articles: https://www.mql5.com/en/users/iceron/publications
- www.mql5.com
Migrating from MQL4 to MQL5
https://www.mql5.com/en/articles/81
https://www.mql5.com/en/articles/66
MT4 => MT5 converter: https://www.mql5.com/en/forum/179991
mt4 orders to mt5: https://www.mql5.com/en/code/16006
https://www.mql5.com/en/blogs/post/681230
Chosse one of his CrossPlattform articles: https://www.mql5.com/en/users/iceron/publications
thanks i just saw this general page for convert i ask in specifc my case
"saw this general page " might be not enough, you should have understood - I guess - that in your case you should use deal properties: https://www.mql5.com/en/docs/constants/tradingconstants/dealproperties
- www.mql5.com
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Hi
You haven’t really used this library in your code. To use them you should use the functions provided in those mqh files to obtain the data about orders. So instead of wrongly using those HIstoryOrderGet..
functions you should try this for example:
MT4_ORDER Res = GetOrderData();
and then get the data from this trade by:
int magicNumber = Res.MagicNumber; etc
But here you should also check out the differences between Positions/Orders and Deals: https://www.mql5.com/en/articles/211 Because you tried to get data about profitand close price from the order (which are only pending orders) and I believe you meant to get close price and profit from closed positions (so you would have to use Deals to do that). You should use for this other functions from this library or simpler use those functions: HistoryDealGetTicket, HistoryDealGetInteger, HistoryDealGetDouble, HistoryDealGetInteger etc. with proper deal properties.
Have a nice day👍📊
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi i have a code and i use this library
https://www.mql5.com/en/code/16006
with this include
in apart of my code
i have some error in this part
not recognize ORDER?PROFIT , ORDER?SWAP ETC... but how can substitute that ?