Download MetaTrader 5

What code to use to display broker's leverage?

To add comments, please log in or register
Have you found a good programmer? Make a targeted order!
mql4student
147
mql4student 2015.09.28 00:42 

Hi,

 I want to create a custom indicator that automatically display the broker's leverage on my chart.

 What is the code to use to display that? 

mql4student
147
mql4student 2015.09.28 00:47  

Nevermind, I figured it out:

 Print("Account #",AccountNumber(), " leverage is "AccountLeverage());

http://docs.mql4.com/account/accountleverage

AccountLeverage - MQL4 Documentation
  • docs.mql4.com
AccountLeverage - MQL4 Documentation
To add comments, please log in or register