Click or drag to resize

New stop order creation

OrderConditionalWindow - the window for creating a conditional order.

GUI Order Conditional Window

Main properties

Below is the code snippet with its use. The code example is taken from Samples/InteractiveBrokers/SampleIB.

private void NewStopOrderClick(object sender, RoutedEventArgs e)
    var newOrder = new OrderConditionalWindow
        Order = new Order
            Security = SecurityPicker.SelectedSecurity,
            Type = OrderTypes.Conditional,
        SecurityProvider = MainWindow.Instance.Trader,
        MarketDataProvider = MainWindow.Instance.Trader,
        Portfolios = new PortfolioDataSource(MainWindow.Instance.Trader),
        Adapter = MainWindow.Instance.Trader.TransactionAdapter

    if (newOrder.ShowModal(this))