'PositionTotal()' WARNING deprecated behavior, hidden method calling will be disabled in a future MQL compiler version
Because you have a custom method PositionsTotal() which is hidden by the built-in PositionsTotal().
Thanks Alain :)
yes I found the method defined as PositionTotal and renamed it to Get_PositionTotal. It seems to be working without error now.
However, I noticed another method defined as OrdersTotal, but do not get any error for it !
I am trying to use concepts from "Universal Expert Advisor" by Vasiliy Sokalov ... :) and good learning exposure for a newbie like me.
Thanks for pointing out the error area.
Thanks Alain :)
yes I found the method defined as PositionTotal and renamed it to Get_PositionTotal. It seems to be working without error now.
However, I noticed another method defined as OrdersTotal, but do not get any error for it !
I am trying to use concepts from "Universal Expert Advisor" by Vasiliy Sokalov ... :) and good learning exposure for a newbie like me.
Thanks for pointing out the error area.
You can also use the built-in Scope Resolution Operation :: to use the context, like ::PositionsTotal();
It is useful when using two methods with the same name.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Please help to identify why this warning message is coming and solution to same.