openPosition method
Opens an executed position on the chart.
Implementation
void openPosition(ChartPosition position) {
_positions.removeWhere((p) => p.id == position.id);
_positions.add(position);
onPositionOpened?.call(position);
notifyListeners();
}