Replies

stepdominiz
02 Mar 2024, 13:51 ( Updated at: 03 Mar 2024, 07:09 )

i try this openPositions.Clear(); and openPositions.Clear();  still not work. 

 List<Position> openPositions = new List<Position>();
         openPositions.Clear();
        foreach (var position in _robot.Positions)
    
        if (position.VolumeInUnits > 0)
        {
            // Add position label and PID to the ComboBox item
            //string itemText = $"({position.Id}){position.Label}";
            string itemText = $"{position.Id}";
            OrderSelection.AddItem(itemText); // Add position label and PID to the ComboBox
            
        }


@stepdominiz