i have the following code,
it used to work, but no Symbolleverage() is not available ,
I have checked this page , https://docs.mql4.com/marketinformation , nothing is there.
I don't want account leverage, https://docs.mql4.com/account/accountleverage
Broker sometimes changes leverage on specific Symbol, and I want to capture that.
int CalculatedLeverage=SymbolLeverage(); // Leverage for CHFJPY is set to 100:1
Alert("Leverage for ",Symbol()," is set at ",CalculatedLeverage,":1");
SymbolLeverage() is a custom function. A quick google search reveals its origins here.
In a nutshell, make sure that you have the relevant .mqh file and make sure it compiles under the latest build.
Hope that helps
To add comments, please log in or register