Download MetaTrader 5
To add comments, please log in or register
Write articles and earn money. We pay 200 USD for them!
Russell Savige
13
Russell Savige 2009.03.09 06:04 

I have a new live account. The leverage could be anything from 100:1 to 500:1


How do I determine what leverage this account has?

Is it possible to find the leverage within the terminal interface?

Tovan Adams
168
Tovan Adams 2009.03.09 06:47  
PT49 wrote >>

I have a new live account. The leverage could be anything from 100:1 to 500:1


How do I determine what leverage this account has?

Is it possible to find the leverage within the terminal interface?

Hi Russell,

Here's a link to the command for that information:

https://docs.mql4.com/account/AccountLeverage

You would have to write an EA or indicator to use or display this information. There might be something already out there that someone else has written, but I don't know of any that display your leverage.

- Tovan

Russell Savige
13
Russell Savige 2009.03.09 07:00  
tovan wrote >>

Hi Russell,

Here's a link to the command for that information:

https://docs.mql4.com/account/AccountLeverage

You would have to write an EA or indicator to use or display this information. There might be something already out there that someone else has written, but I don't know of any that display your leverage.

- Tovan

Thanks tovan

DougRH4x
539
DougRH4x 2011.02.15 09:45  

Can I use this in a script instead?

If so, what changes would I have to make?

Thanks,

DougRH

DougRH4x
539
DougRH4x 2011.02.15 10:07  
I finally found a program that was within even my MQL4 programming capabilities! (< 8)
Files:
Phillip
800
Phillip 2011.02.15 17:29  

Be aware that account leverage only reports that maximum allowed leverage for the account whereas the broker sets/defines leverage on a per currency pair basis.

For example you may have an account that has 200:1 leverage "globally" but when you go to actually open a position the currency pair itself may require 100:1 leverage (margin requirement is higher) or 25:1.

This is common for cross-currency pairs, commodity (gold/silver/etc) and CFDs.

I think the attached is the latest revision of my tool for handling this. Include the file in your EA:

#include <Analyze_Currency_Symbol_2010.12.09.mqh>

And then make a call to SymbolLeverage() when you need the info:

int   CalculatedLeverage=SymbolLeverage();   // Leverage for CHFJPY is set to 100:1
Print("Leverage for ",Symbol()," is set at ",CalculatedLeverage,":1");
abdR
4
abdR 2016.06.23 01:57  
1005phillip:

Be aware that account leverage only reports that maximum allowed leverage for the account whereas the broker sets/defines leverage on a per currency pair basis.

For example you may have an account that has 200:1 leverage "globally" but when you go to actually open a position the currency pair itself may require 100:1 leverage (margin requirement is higher) or 25:1.

This is common for cross-currency pairs, commodity (gold/silver/etc) and CFDs.

I think the attached is the latest revision of my tool for handling this. Include the file in your EA:

And then make a call to SymbolLeverage() when you need the info:

Hi 1005philip. Can I use your tool "analyze_currency_symbol_2010.12.09.mqh" ? 
/
To add comments, please log in or register