Click or drag to resize

Stop orders

The same RegisterOrder method used to register stop orders, but with ETradeOrderCondition and the Conditional type of order indicating:

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))

The special ETradeOrderCondition class is given to work with the stop orders conditions. This class supports the following types of stop orders: