Click or drag to resize

New stop order creation

OrderConditionalWindow - the window for creating a conditional order.

Main properties

Below is the appearance of the component, as well as code snippets with its use. The code example is taken from Samples/OpenECry/SampleOEC.

GUI Order Conditional Window
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))