The average gain / loss is the arithmetic mean of the realized profit/loss of already closed trades, and also includes the unrealized profit/loss of trades that remain open at the end of a backtest. (i.e. has not expired, has not been closed)
For more information, please review: Analyzing Results