Due to changes in MQL5, now the maximal overall volume allowed for one symbol can be obtained as following:
//--- get symbol limitation for volume double max_volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_LIMIT);
Do not use the old variant! It was like this:
//--- get symbol limitation for volume double max_volume=AccountInfoDouble(ACCOUNT_LIMIT_VOLUME);The article has been corrected and the new Check_Order_And_Volume_Limits.mq5 expert code has been attached to it.
64609
New article Limitations and Verifications in Expert Advisors is published:
Author: MetaQuotes