Account Balance Update

 

Does the AccountBalance() function show the current equity balance in real time? For example, lets say I have 1 ea running and currently it is making a profit of 100.00 and lets say the opening balance in the account before the ea ran was 500.00. Will the AccountBalance() function show a value of 600.00?

If not, suppose the market conditions are right so that a second ea on a seperate currency-pair chart opens, but it attempts to determine how many lots to trade based on the value of the AccountBalance() function before it invokes OrderSend(). (This will insure that no more than a certain pre-defined per cent of the account balance is never risked, for example, one per cent.) If the AccountBalance() function does not show the current equity value, is there a way for the second ea to know what the actual equity balance is so that it can determine how many lots to trade to limit the risk of the trade?

 
Balance doesn't update until the order closes. AccountEquity does.
 

1) there is 2 functions

don't mix

2) of course it's in real time

Reason: