MetaEditor Compiler Error: Standard library function 'symbolInfo.VolumeStep()' not recognized after reinstall
There is no VolumeStep method in the CSymbolInfo documentation: https://www.mql5.com/en/docs/standardlibrary/tradeclasses/csymbolinfo
I don't know if this has always been the case (I don't use CSymbolInfo), but no such method exists now
[edit] Looks like that method never existed and was invented by an AI. Out of curiosity, I found some code from 2019 in the codebase that uses CSymbolInfo and there is no VolumeStep().
If you miss it, you just have to create one more method.
The system constant exists, it may not be difficult to do
Gerard William G J B M Dinh Sy #:
If you miss it, you just have to create one more method.
The system constant exists, it may not be difficult to do
If you miss it, you just have to create one more method.
The system constant exists, it may not be difficult to do
If the topic starter prefers to use CSymbolInfo, then there is already a method that returns SYMBOL_VOLUME_STEP
double LotsStep(void) const { return(m_lots_step); }
bool CSymbolInfo::Refresh(void) { //... if(!SymbolInfoDouble(m_name,SYMBOL_VOLUME_STEP,m_lots_step)) return(false); //... }
I can't find the method in the doc
Gerard William G J B M Dinh Sy #:
I can't find the method in the doc
I can't find the method in the doc
https://www.mql5.com/en/docs/standardlibrary/tradeclasses/csymbolinfo/csymbolinfolotsstep
Thx

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 am writing to report a persistent issue I am experiencing when compiling MQL5 code in MetaEditor.
Problem Description: When compiling code that calls the symbolInfo.VolumeStep() method from the CSymbolInfo class (included via <Trade/SymbolInfo.mqh>), I consistently receive the errors 'VolumeStep' - undeclared identifier and ')' - expression expected.
Reproducing the Issue: This problem occurs not only in complex EAs but also in the following minimal test code, which only includes the problematic function call:
Troubleshooting Steps Taken:
I have attempted the following steps to resolve the issue, but the same errors persist:
Verified the code uses the correct method call ( symbolInfo.VolumeStep()).
Deleted the compiled .ex5 file, restarted MetaEditor, and recompiled.
Created a completely new .mq5 file, pasted the code, and compiled.
Performed a full reinstallation of the MetaTrader 5 platform using the latest version. (Specify if you checked "Delete personal data": e.g., "Personal data was also deleted during uninstall." or "Personal data was kept during uninstall.")