Neda shahbazi:
hi every one
I want to use Balance, Equity, Margin, Free margin, Margin Level in expert but I don't know how I can get this info from broker
I want to use MarketInfo() but I can't find them in MarketInfo()
can any one help me?
Best Regards
Neda
AccountBalance() AccountMargin() AccountFreeMargin() AccountEquity()
Or
AccountInfoDouble()
thanks a lot
int OnInit() { _symbol=Symbol(); // set symbol _point = MarketInfo(_symbol,MODE_POINT); _digits= int(MarketInfo(_symbol,MODE_DIGITS)); MULT=1.0; if(_digits==5 || _digits==3) MULT=10.0; PipValue=PipValues(_symbol); // return (INIT_SUCCEEDED); } //--------------------End init ------------ for Auto LOT select : orderlots = MathMin(MathMax((MathRound((AccountFreeMargin()*Risk/1000/100) and Other : void OnStart() { //--- Show all the information available from the function AccountInfoDouble() printf("ACCOUNT_BALANCE = %G",AccountInfoDouble(ACCOUNT_BALANCE)); printf("ACCOUNT_CREDIT = %G",AccountInfoDouble(ACCOUNT_CREDIT)); printf("ACCOUNT_PROFIT = %G",AccountInfoDouble(ACCOUNT_PROFIT)); printf("ACCOUNT_EQUITY = %G",AccountInfoDouble(ACCOUNT_EQUITY)); printf("ACCOUNT_MARGIN = %G",AccountInfoDouble(ACCOUNT_MARGIN)); printf("ACCOUNT_MARGIN_FREE = %G",AccountInfoDouble(ACCOUNT_MARGIN_FREE)); printf("ACCOUNT_MARGIN_LEVEL = %G",AccountInfoDouble(ACCOUNT_MARGIN_LEVEL)); printf("ACCOUNT_MARGIN_SO_CALL = %G",AccountInfoDouble(ACCOUNT_MARGIN_SO_CALL)); printf("ACCOUNT_MARGIN_SO_SO = %G",AccountInfoDouble(ACCOUNT_MARGIN_SO_SO)); }

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hi every one
I want to use Balance, Equity, Margin, Free margin, Margin Level in expert but I don't know how I can get this info from broker
I want to use MarketInfo() but I can't find them in MarketInfo()
can any one help me?
Best Regards
Neda