Margin, free

 
Which code do i have to use if i don't want the ea to use 'free margin' or even 'margin' ?
 
ed1210:
Which code do i have to use if i don't want the ea to use 'free margin' or even 'margin' ?
Please take a look at the AccountInfoDouble() function. If you don't want to use free margin or margin, you also have other options, like balance, credit or the account's equity.