
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
Hi,
While running this code snippet, error is coming saying OrderType returns void.
CODE:
for (int i=OrdersTotal()-1 ; i>=0 ; i--) {
if (OrderSelect(i, SELECT_BY_POS)) {
OrderPrint();
Print(OrderType());
}
}
ERROR:
expression of 'void' type is illegal 1 1
OrderType should return int type, but in my mt4 it is not working and returning nothing (void).
can anyone please help to fix this.
Thanks.