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
You should use
OrderInfo.OrderType()
Hi
In the COrderInfo class Type is not defined virtual method. If You want to get the type of the order you have to use OrderType() function which return ORDER_TYPE property of the order.
Have a nice day👍📊
That's true. I made a mistake, it's OrderInfo.OrderType() not OrderInfo.Type().

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
I just noticed that OrderInfo.Type() always return a 0 for all type of Orders. Why is this so?
OrderInfoType always return 0 mql5