I tried to get the leverage of my account using this code
Also saved a report of the history
In all cases the leverage shown is 1:200
My broker confirmed that my account is set to 1:30 following European regulations. Also informed they cannot change the leverage that MT5 is reporting.
I'm using the latest beta but I noticed this issue in the stable version
Could this be a bug. Can anyone confirm?
Thanks
I dealt with it in Summer https://www.mql5.com/en/forum/271388
The problem is that we (generally) can have different leverage for each symbol (1:30, 1:20, 1:10, 1:5...). MetaQuotes should add a new symbol property e.g. SymbolInfoInteger(symbol,SYMBOL_LEVERAGE).
I have my own algorithm to compute the symbol leverage which solves my problem but it isn't
a general solution.
I dealt with it in Summer https://www.mql5.com/en/forum/271388
The problem is that we (generally) can have different leverage for each symbol (1:30, 1:20, 1:10, 1:5...). MetaQuotes should add a new symbol property e.g. SymbolInfoInteger(symbol,SYMBOL_LEVERAGE).
I have my own algorithm to compute the symbol leverage which solves my problem but it isn't
a general solution.
Thanks for the reply. I did not find your post.
I second your suggestion to Metaquotes to add a that Symbol property
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I tried to get the leverage of my account using this code
Also saved a report of the history
In all cases the leverage shown is 1:200
My broker confirmed that my account is set to 1:30 following European regulations. Also informed they cannot change the leverage that MT5 is reporting.
I'm using the latest beta but I noticed this issue in the stable version
Could this be a bug. Can anyone confirm?
Thanks