updatePosition method
Updates an open position (e.g. adjust TP/SL or average price).
Implementation
void updatePosition(ChartPosition position) {
final index = _positions.indexWhere((p) => p.id == position.id);
if (index >= 0) {
_positions[index] = position;
notifyListeners();
}
}