MarketDepthControl
O controle visual exibindo o livro de pedidos com aspas (IOrderBookMessage).
Herda de: BaseGridControl
Implementa: IComponentConnector
Construtores
public MarketDepthControl()
marketDepthControl = MarketDepthControl()
Inicializa uma nova instância do MarketDepthControl.
Propriedades
public bool AllowOwnOrderDragDrop { get; set; }
value = marketDepthControl.AllowOwnOrderDragDrop
marketDepthControl.AllowOwnOrderDragDrop = value
Permitir que as próprias ordens arrastem e soltem.
public bool AllowSpreadToMove { get; set; }
value = marketDepthControl.AllowSpreadToMove
marketDepthControl.AllowSpreadToMove = value
Obtém ou define um valor indicando se o spread é permitido mover. Quando , o spread pode mover-se para cima e para baixo. Quando , o spread permanece no meio.
public TimeSpan AnimationDuration { get; set; }
value = marketDepthControl.AnimationDuration
marketDepthControl.AnimationDuration = value
Duração da animação.
public bool AutoUpdateFormat { get; set; }
value = marketDepthControl.AutoUpdateFormat
marketDepthControl.AutoUpdateFormat = value
Actualizar automaticamente o formato por instrumento financeiro). Por omissão, está ligado.
public Color CancelAnimationColor { get; set; }
value = marketDepthControl.CancelAnimationColor
marketDepthControl.CancelAnimationColor = value
Cancelar cor da animação.
public IOrderBookMessage DepthData { get; set; }
value = marketDepthControl.DepthData
marketDepthControl.DepthData = value
Os dados de profundidade para a ligação. A configuração desta propriedade actualiza a exibição do livro de pedidos.
public Security DepthSecurity { get; set; }
value = marketDepthControl.DepthSecurity
marketDepthControl.DepthSecurity = value
Instrumento financeiro para a ligação de dados de profundidade.
public Color ErrorAnimationColor { get; set; }
value = marketDepthControl.ErrorAnimationColor
marketDepthControl.ErrorAnimationColor = value
Cor da animação de erro.
public Color FillBuyAnimationColor { get; set; }
value = marketDepthControl.FillBuyAnimationColor
marketDepthControl.FillBuyAnimationColor = value
Preencher comprar cor animação.
public Color FillSellAnimationColor { get; set; }
value = marketDepthControl.FillSellAnimationColor
marketDepthControl.FillSellAnimationColor = value
Preencher vender cor animação.
public Color FillTextAnimationColor { get; set; }
value = marketDepthControl.FillTextAnimationColor
marketDepthControl.FillTextAnimationColor = value
Preencha a cor do texto.
public decimal? GroupRange { get; set; }
value = marketDepthControl.GroupRange
marketDepthControl.GroupRange = value
Intervalo para o Decimal).
public bool IsBidsOnTop { get; set; }
value = marketDepthControl.IsBidsOnTop
marketDepthControl.IsBidsOnTop = value
Se deve mostrar as ofertas acima. O valor por omissão está desligado.
public bool IsOwnOrderDragging { get; private set; }
value = marketDepthControl.IsOwnOrderDragging
marketDepthControl.IsOwnOrderDragging = value
Verdadeiro se o usuário está arrastando uma ordem.
public decimal MaxBuyVolume { get; set; }
value = marketDepthControl.MaxBuyVolume
marketDepthControl.MaxBuyVolume = value
O volume máximo de todas as ofertas.
public int MaxDepth { get; set; }
value = marketDepthControl.MaxDepth
marketDepthControl.MaxDepth = value
A profundidade máxima da exibição do livro de pedidos. O valor padrão é DefaultDepth.
public decimal MaxSellVolume { get; set; }
value = marketDepthControl.MaxSellVolume
marketDepthControl.MaxSellVolume = value
O volume máximo de todas as perguntas.
public decimal MaxVolume { get; set; }
value = marketDepthControl.MaxVolume
marketDepthControl.MaxVolume = value
O volume máximo de todas as citações.
public string PriceTextFormat { get; set; }
value = marketDepthControl.PriceTextFormat
marketDepthControl.PriceTextFormat = value
Formato de preço.
public Color RegisterAnimationColor { get; set; }
value = marketDepthControl.RegisterAnimationColor
marketDepthControl.RegisterAnimationColor = value
Registre a cor da animação.
public MarketDepthExecuteOn RegisterOrderOn { get; set; }
value = marketDepthControl.RegisterOrderOn
marketDepthControl.RegisterOrderOn = value
Executar o gatilho do registo de ordens.
public QuoteChange? SelectedQuote { get; }
value = marketDepthControl.SelectedQuote
A citação seleccionada.
public bool ShowBoardColumn { get; set; }
value = marketDepthControl.ShowBoardColumn
marketDepthControl.ShowBoardColumn = value
Mostrar coluna do tabuleiro.
public bool ShowOwnVolumeColumns { get; set; }
value = marketDepthControl.ShowOwnVolumeColumns
marketDepthControl.ShowOwnVolumeColumns = value
Mostrar colunas de volume próprio.
public bool ShowSingleVolumeColumn { get; set; }
value = marketDepthControl.ShowSingleVolumeColumn
marketDepthControl.ShowSingleVolumeColumn = value
Mostrar coluna de volume simples. O valor padrão é .
public decimal? SparseRange { get; set; }
value = marketDepthControl.SparseRange
marketDepthControl.SparseRange = value
Intervalo para Int32).
public bool UseOrderAnimations { get; set; }
value = marketDepthControl.UseOrderAnimations
marketDepthControl.UseOrderAnimations = value
Animações de estado de ordem do próprio usuário.
public string VolumeTextFormat { get; set; }
value = marketDepthControl.VolumeTextFormat
marketDepthControl.VolumeTextFormat = value
Formato de volume.
Métodos
public void CancelOrders(Func<Order, bool> predicate)
marketDepthControl.CancelOrders(predicate)
Cancelar as encomendas que foram adicionadas a esta instância de MarketDepthControl. Este método não cancela as encomendas por si só. Ele apenas notifica os assinantes com CancelingOrder event.
public MarketDepthColumns GetColumnIndex(GridColumn column)
result = marketDepthControl.GetColumnIndex(column)
Para obter o tipo de coluna por célula.
- column
- Coluna.
Retorna: O tipo de coluna.
public IEnumerable<Order> GetOrders(decimal price, Sides? side, OrderTypes? type)
result = marketDepthControl.GetOrders(price, side, type)
Obter ordens activas por critérios específicos.
- price
- Preço de encomenda.
- side
- Lado da ordem (compre ou venda).
- type
- Tipo de ordem.
Retorna: Encontrei ordens.
public void InitializeComponent()
marketDepthControl.InitializeComponent()
InitializeComponent
protected override void OnLostMouseCapture(MouseEventArgs e)
marketDepthControl.OnLostMouseCapture(e)
Lidar com o evento quando a captura do mouse é perdida.
- e
protected override void OnPreviewKeyDown(KeyEventArgs e)
marketDepthControl.OnPreviewKeyDown(e)
public void ProcessOrder(Order order, decimal price, decimal balance, OrderStates state)
marketDepthControl.ProcessOrder(order, price, balance, state)
Para lidar com uma ordem.
- order
- Ordem.
- price
- Preço de encomenda.
- balance
- Saldo dos contratos de encomenda.
- state
- Ordem, estado.
public void ProcessOrderFail(OrderFail fail, OrderStates state)
marketDepthControl.ProcessOrderFail(fail, state)
Para lidar com uma falha de registro/move/cancelar de ordem.
public void ShowOrderFill(Sides side, decimal price, decimal volume)
marketDepthControl.ShowOrderFill(side, price, volume)
Mostrar animação de preenchimento de ordem.
public void UpdateDepth(IOrderBookMessage message, Security security)
marketDepthControl.UpdateDepth(message, security)
Para atualizar o livro de pedidos.
- message
- Profundidade do mercado.
- security
- Instrumento financeiro.
public void UpdateFormat(Security security)
marketDepthControl.UpdateFormat(security)
Para atualizar PriceTextFormat e VolumeTextFormat.
- security
- Instrumento financeiro.
Eventos
public event Action<Order> CancelingOrder
marketDepthControl.CancelingOrder += handler
A cancelar a ordem.
public event Action<Order, decimal> MovingOrder
marketDepthControl.MovingOrder += handler
Movendo ordem para novo preço.
public event Action<Sides, decimal> RegisteringOrder
marketDepthControl.RegisteringOrder += handler
Ordem de registo.
public event Action<QuoteChange?> SelectedQuoteChanged
marketDepthControl.SelectedQuoteChanged += handler
SelectedQuote changed event.
Campos
public static readonly DependencyProperty AllowOwnOrderDragDropProperty
value = MarketDepthControl.AllowOwnOrderDragDropProperty
DependencyProperty@ para AllowOwnOrderDragDrop.
public static readonly DependencyProperty AllowSpreadToMoveProperty
value = MarketDepthControl.AllowSpreadToMoveProperty
DependencyProperty@ para AllowSpreadToMove.
public static readonly DependencyProperty AnimationDurationProperty
value = MarketDepthControl.AnimationDurationProperty
Duração da animação.
public static readonly DependencyProperty CancelAnimationColorProperty
value = MarketDepthControl.CancelAnimationColorProperty
Cancelar cor da animação.
public const int DefaultDepth
value = MarketDepthControl.DefaultDepth
A profundidade máxima por padrão que é igual a 20.
public static readonly DependencyProperty DepthDataProperty
value = MarketDepthControl.DepthDataProperty
DependencyProperty@ para DepthData.
public static readonly DependencyProperty DepthSecurityProperty
value = MarketDepthControl.DepthSecurityProperty
DependencyProperty@ para DepthSecurity.
public static readonly DependencyProperty ErrorAnimationColorProperty
value = MarketDepthControl.ErrorAnimationColorProperty
Cor da animação de erro.
public static readonly DependencyProperty FillBuyAnimationColorProperty
value = MarketDepthControl.FillBuyAnimationColorProperty
Preencher comprar cor animação.
public static readonly DependencyProperty FillSellAnimationColorProperty
value = MarketDepthControl.FillSellAnimationColorProperty
Preencher vender cor animação.
public static readonly DependencyProperty FillTextAnimationColorProperty
value = MarketDepthControl.FillTextAnimationColorProperty
Preencha a cor do texto.
public static readonly RoutedCommand GroupCommand
value = MarketDepthControl.GroupCommand
O comando para a profundidade do mercado do grupo.
public static readonly DependencyProperty GroupRangeProperty
value = MarketDepthControl.GroupRangeProperty
DependencyProperty@ para GroupRange.
public static readonly RoutedCommand GroupResetCommand
value = MarketDepthControl.GroupResetCommand
O comando para reiniciar a profundidade de agrupamento de mercado.
public static readonly DependencyProperty IsBidsOnTopProperty
value = MarketDepthControl.IsBidsOnTopProperty
DependencyProperty@ para IsBidsOnTop.
public static readonly DependencyPropertyKey IsOwnOrderDraggingKey
value = MarketDepthControl.IsOwnOrderDraggingKey
Verdadeiro se o usuário está arrastando uma ordem.
public static readonly DependencyProperty MaxBuyVolumeProperty
value = MarketDepthControl.MaxBuyVolumeProperty
DependencyProperty@ para MaxBuyVolume.
public static readonly DependencyProperty MaxDepthProperty
value = MarketDepthControl.MaxDepthProperty
DependencyProperty@ para MaxDepth.
public static readonly DependencyProperty MaxSellVolumeProperty
value = MarketDepthControl.MaxSellVolumeProperty
DependencyProperty@ para MaxSellVolume.
public static readonly DependencyProperty MaxVolumeProperty
value = MarketDepthControl.MaxVolumeProperty
DependencyProperty@ para MaxVolume.
public static readonly DependencyProperty PriceTextFormatProperty
value = MarketDepthControl.PriceTextFormatProperty
DependencyProperty@ para PriceTextFormat.
public static readonly DependencyProperty RegisterAnimationColorProperty
value = MarketDepthControl.RegisterAnimationColorProperty
Registre a cor da animação.
public static readonly DependencyProperty RegisterOrderOnProperty
value = MarketDepthControl.RegisterOrderOnProperty
Executar o gatilho do registo de ordens.
public static readonly DependencyProperty ShowBoardColumnProperty
value = MarketDepthControl.ShowBoardColumnProperty
DependencyProperty@ para ShowBoardColumn.
public static readonly DependencyProperty ShowOwnVolumeColumnsProperty
value = MarketDepthControl.ShowOwnVolumeColumnsProperty
DependencyProperty@ para ShowOwnVolumeColumns.
public static readonly DependencyProperty ShowSingleVolumeColumnProperty
value = MarketDepthControl.ShowSingleVolumeColumnProperty
DependencyProperty@ para ShowSingleVolumeColumn.
public static readonly RoutedCommand SparseCommand
value = MarketDepthControl.SparseCommand
O comando para a profundidade de mercado esparsa.
public static readonly DependencyProperty SparseRangeProperty
value = MarketDepthControl.SparseRangeProperty
DependencyProperty@ para SparseRange.
public static readonly RoutedCommand SparseResetCommand
value = MarketDepthControl.SparseResetCommand
O comando para repor a profundidade de mercado.
public static readonly DependencyProperty UseOrderAnimationsProperty
value = MarketDepthControl.UseOrderAnimationsProperty
DependencyProperty@ para UseOrderAnimations.
public static readonly DependencyProperty VolumeTextFormatProperty
value = MarketDepthControl.VolumeTextFormatProperty
DependencyProperty@ para VolumeTextFormat.