simulator/simulation.cpp
// "balance" is the sum of deposit + closed trades
"balance" is the sum of deposit + closed trades
" balance " is the sum of deposit + closed trades
float Simulation::get_balance() {
	float value = m_deposit;
	for(auto trade: m_closed_trades) {
		value += trade->profit();
	}
	return value;
}
float Simulation :: get_balance ( ) { float value = m_deposit ; for ( auto trade : m_closed_trades ) { value += trade -> profit ( ) ; } return value ; }
"balance" is the sum of deposit + closed trades
" balance " is the sum of deposit + closed trades