double AccountTradeInfo::GetTradeDayProfit() const { QMutexLocker oLocker(&m_mLock); double dProfit = 0; for(auto iPos = m_lPositions.begin() ; iPos != m_lPositions.end() ; iPos++) { Position *pPosition = *iPos; dProfit = pPosition->GetTradeDayProfit(); } return dProfit; }