Click or drag to resize

Ticks

TradeGrid - trade table.

GUI Trade Grid

Main properties

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

XAML
<Window x:Class="SampleIB.MyTradesWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:loc="clr-namespace:StockSharp.Localization;assembly=StockSharp.Localization"
    xmlns:xaml="http://schemas.stocksharp.com/xaml"
    Title="{x:Static loc:LocalizedStrings.MyTrades}" Height="284" Width="644">
  <xaml:MyTradeGrid x:Name="TradeGrid" x:FieldModifier="public" />
</Window>
C#
.......................................

// create connector
Trader = new InteractiveBrokersTrader
{
};

Trader.NewMyTrade += trade => _myTradesWindow.TradeGrid.Trades.Add(trade);