Click or drag to resize

New order creation

OrderWindow - window for creating an order.

GUI OrderWindow

If the connection supports the registering a conditional order (stop-loss, take-profit), then in this window you can register a conditional order with advanced conditions by setting the Advanced conditions flag.

Basic properties

Code snippets using it are shown below. Sample code taken from Samples/Common/SampleConnection.


private readonly Connector _connector = new Connector();

private void NewOrderClick(object sender, RoutedEventArgs e)
    var newOrder = new OrderWindow
        Order = new Order { Security = SecurityPicker.SelectedSecurity },
        SecurityProvider = _connector,
        MarketDataProvider = _connector,
        Portfolios = new PortfolioDataSource(_connector),

    if (newOrder.ShowModal(this))