MarketDepthControl

StockSharp.Xaml

O controle visual exibindo o livro de pedidos com aspas (IOrderBookMessage).

Herda de: BaseGridControl

Implementa: IComponentConnector

Construtores

MarketDepthControl
public MarketDepthControl()
marketDepthControl = MarketDepthControl()

Inicializa uma nova instância do MarketDepthControl.

Propriedades

AllowOwnOrderDragDrop
public bool AllowOwnOrderDragDrop { get; set; }
value = marketDepthControl.AllowOwnOrderDragDrop
marketDepthControl.AllowOwnOrderDragDrop = value

Permitir que as próprias ordens arrastem e soltem.

AllowSpreadToMove
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.

AnimationDuration
public TimeSpan AnimationDuration { get; set; }
value = marketDepthControl.AnimationDuration
marketDepthControl.AnimationDuration = value

Duração da animação.

AutoUpdateFormat
public bool AutoUpdateFormat { get; set; }
value = marketDepthControl.AutoUpdateFormat
marketDepthControl.AutoUpdateFormat = value

Actualizar automaticamente o formato por instrumento financeiro). Por omissão, está ligado.

CancelAnimationColor
public Color CancelAnimationColor { get; set; }
value = marketDepthControl.CancelAnimationColor
marketDepthControl.CancelAnimationColor = value

Cancelar cor da animação.

DepthData
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.

DepthSecurity
public Security DepthSecurity { get; set; }
value = marketDepthControl.DepthSecurity
marketDepthControl.DepthSecurity = value

Instrumento financeiro para a ligação de dados de profundidade.

ErrorAnimationColor
public Color ErrorAnimationColor { get; set; }
value = marketDepthControl.ErrorAnimationColor
marketDepthControl.ErrorAnimationColor = value

Cor da animação de erro.

FillBuyAnimationColor
public Color FillBuyAnimationColor { get; set; }
value = marketDepthControl.FillBuyAnimationColor
marketDepthControl.FillBuyAnimationColor = value

Preencher comprar cor animação.

FillSellAnimationColor
public Color FillSellAnimationColor { get; set; }
value = marketDepthControl.FillSellAnimationColor
marketDepthControl.FillSellAnimationColor = value

Preencher vender cor animação.

FillTextAnimationColor
public Color FillTextAnimationColor { get; set; }
value = marketDepthControl.FillTextAnimationColor
marketDepthControl.FillTextAnimationColor = value

Preencha a cor do texto.

GroupRange
public decimal? GroupRange { get; set; }
value = marketDepthControl.GroupRange
marketDepthControl.GroupRange = value

Intervalo para o Decimal).

IsBidsOnTop
public bool IsBidsOnTop { get; set; }
value = marketDepthControl.IsBidsOnTop
marketDepthControl.IsBidsOnTop = value

Se deve mostrar as ofertas acima. O valor por omissão está desligado.

IsOwnOrderDragging
public bool IsOwnOrderDragging { get; private set; }
value = marketDepthControl.IsOwnOrderDragging
marketDepthControl.IsOwnOrderDragging = value

Verdadeiro se o usuário está arrastando uma ordem.

MaxBuyVolume
public decimal MaxBuyVolume { get; set; }
value = marketDepthControl.MaxBuyVolume
marketDepthControl.MaxBuyVolume = value

O volume máximo de todas as ofertas.

MaxDepth
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.

MaxSellVolume
public decimal MaxSellVolume { get; set; }
value = marketDepthControl.MaxSellVolume
marketDepthControl.MaxSellVolume = value

O volume máximo de todas as perguntas.

MaxVolume
public decimal MaxVolume { get; set; }
value = marketDepthControl.MaxVolume
marketDepthControl.MaxVolume = value

O volume máximo de todas as citações.

PriceTextFormat
public string PriceTextFormat { get; set; }
value = marketDepthControl.PriceTextFormat
marketDepthControl.PriceTextFormat = value

Formato de preço.

RegisterAnimationColor
public Color RegisterAnimationColor { get; set; }
value = marketDepthControl.RegisterAnimationColor
marketDepthControl.RegisterAnimationColor = value

Registre a cor da animação.

RegisterOrderOn
public MarketDepthExecuteOn RegisterOrderOn { get; set; }
value = marketDepthControl.RegisterOrderOn
marketDepthControl.RegisterOrderOn = value

Executar o gatilho do registo de ordens.

SelectedQuote
public QuoteChange? SelectedQuote { get; }
value = marketDepthControl.SelectedQuote

A citação seleccionada.

ShowBoardColumn
public bool ShowBoardColumn { get; set; }
value = marketDepthControl.ShowBoardColumn
marketDepthControl.ShowBoardColumn = value

Mostrar coluna do tabuleiro.

ShowOwnVolumeColumns
public bool ShowOwnVolumeColumns { get; set; }
value = marketDepthControl.ShowOwnVolumeColumns
marketDepthControl.ShowOwnVolumeColumns = value

Mostrar colunas de volume próprio.

ShowSingleVolumeColumn
public bool ShowSingleVolumeColumn { get; set; }
value = marketDepthControl.ShowSingleVolumeColumn
marketDepthControl.ShowSingleVolumeColumn = value

Mostrar coluna de volume simples. O valor padrão é .

SparseRange
public decimal? SparseRange { get; set; }
value = marketDepthControl.SparseRange
marketDepthControl.SparseRange = value

Intervalo para Int32).

UseOrderAnimations
public bool UseOrderAnimations { get; set; }
value = marketDepthControl.UseOrderAnimations
marketDepthControl.UseOrderAnimations = value

Animações de estado de ordem do próprio usuário.

VolumeTextFormat
public string VolumeTextFormat { get; set; }
value = marketDepthControl.VolumeTextFormat
marketDepthControl.VolumeTextFormat = value

Formato de volume.

Métodos

CancelOrders
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.

Clear
public void Clear()
marketDepthControl.Clear()

Para limpar o livro de ordens.

GetColumnIndex
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.

GetOrders
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.

InitializeComponent
public void InitializeComponent()
marketDepthControl.InitializeComponent()

InitializeComponent

OnLostMouseCapture
protected override void OnLostMouseCapture(MouseEventArgs e)
marketDepthControl.OnLostMouseCapture(e)

Lidar com o evento quando a captura do mouse é perdida.

e
OnPreviewKeyDown
protected override void OnPreviewKeyDown(KeyEventArgs e)
marketDepthControl.OnPreviewKeyDown(e)
ProcessOrder
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.
ProcessOrderFail
public void ProcessOrderFail(OrderFail fail, OrderStates state)
marketDepthControl.ProcessOrderFail(fail, state)

Para lidar com uma falha de registro/move/cancelar de ordem.

ShowOrderFill
public void ShowOrderFill(Sides side, decimal price, decimal volume)
marketDepthControl.ShowOrderFill(side, price, volume)

Mostrar animação de preenchimento de ordem.

UpdateDepth
public void UpdateDepth(IOrderBookMessage message, Security security)
marketDepthControl.UpdateDepth(message, security)

Para atualizar o livro de pedidos.

message
Profundidade do mercado.
security
Instrumento financeiro.
UpdateFormat
public void UpdateFormat(Security security)
marketDepthControl.UpdateFormat(security)

Para atualizar PriceTextFormat e VolumeTextFormat.

security
Instrumento financeiro.

Eventos

CancelingOrder
public event Action<Order> CancelingOrder
marketDepthControl.CancelingOrder += handler

A cancelar a ordem.

MovingOrder
public event Action<Order, decimal> MovingOrder
marketDepthControl.MovingOrder += handler

Movendo ordem para novo preço.

RegisteringOrder
public event Action<Sides, decimal> RegisteringOrder
marketDepthControl.RegisteringOrder += handler

Ordem de registo.

SelectedQuoteChanged
public event Action<QuoteChange?> SelectedQuoteChanged
marketDepthControl.SelectedQuoteChanged += handler

SelectedQuote changed event.

Campos

AllowOwnOrderDragDropProperty
public static readonly DependencyProperty AllowOwnOrderDragDropProperty
value = MarketDepthControl.AllowOwnOrderDragDropProperty

DependencyProperty@ para AllowOwnOrderDragDrop.

AllowSpreadToMoveProperty
public static readonly DependencyProperty AllowSpreadToMoveProperty
value = MarketDepthControl.AllowSpreadToMoveProperty

DependencyProperty@ para AllowSpreadToMove.

AnimationDurationProperty
public static readonly DependencyProperty AnimationDurationProperty
value = MarketDepthControl.AnimationDurationProperty

Duração da animação.

CancelAnimationColorProperty
public static readonly DependencyProperty CancelAnimationColorProperty
value = MarketDepthControl.CancelAnimationColorProperty

Cancelar cor da animação.

DefaultDepth
public const int DefaultDepth
value = MarketDepthControl.DefaultDepth

A profundidade máxima por padrão que é igual a 20.

DepthDataProperty
public static readonly DependencyProperty DepthDataProperty
value = MarketDepthControl.DepthDataProperty

DependencyProperty@ para DepthData.

DepthSecurityProperty
public static readonly DependencyProperty DepthSecurityProperty
value = MarketDepthControl.DepthSecurityProperty

DependencyProperty@ para DepthSecurity.

ErrorAnimationColorProperty
public static readonly DependencyProperty ErrorAnimationColorProperty
value = MarketDepthControl.ErrorAnimationColorProperty

Cor da animação de erro.

FillBuyAnimationColorProperty
public static readonly DependencyProperty FillBuyAnimationColorProperty
value = MarketDepthControl.FillBuyAnimationColorProperty

Preencher comprar cor animação.

FillSellAnimationColorProperty
public static readonly DependencyProperty FillSellAnimationColorProperty
value = MarketDepthControl.FillSellAnimationColorProperty

Preencher vender cor animação.

FillTextAnimationColorProperty
public static readonly DependencyProperty FillTextAnimationColorProperty
value = MarketDepthControl.FillTextAnimationColorProperty

Preencha a cor do texto.

GroupCommand
public static readonly RoutedCommand GroupCommand
value = MarketDepthControl.GroupCommand

O comando para a profundidade do mercado do grupo.

GroupRangeProperty
public static readonly DependencyProperty GroupRangeProperty
value = MarketDepthControl.GroupRangeProperty

DependencyProperty@ para GroupRange.

GroupResetCommand
public static readonly RoutedCommand GroupResetCommand
value = MarketDepthControl.GroupResetCommand

O comando para reiniciar a profundidade de agrupamento de mercado.

IsBidsOnTopProperty
public static readonly DependencyProperty IsBidsOnTopProperty
value = MarketDepthControl.IsBidsOnTopProperty

DependencyProperty@ para IsBidsOnTop.

IsOwnOrderDraggingKey
public static readonly DependencyPropertyKey IsOwnOrderDraggingKey
value = MarketDepthControl.IsOwnOrderDraggingKey

Verdadeiro se o usuário está arrastando uma ordem.

MaxBuyVolumeProperty
public static readonly DependencyProperty MaxBuyVolumeProperty
value = MarketDepthControl.MaxBuyVolumeProperty

DependencyProperty@ para MaxBuyVolume.

MaxDepthProperty
public static readonly DependencyProperty MaxDepthProperty
value = MarketDepthControl.MaxDepthProperty

DependencyProperty@ para MaxDepth.

MaxSellVolumeProperty
public static readonly DependencyProperty MaxSellVolumeProperty
value = MarketDepthControl.MaxSellVolumeProperty

DependencyProperty@ para MaxSellVolume.

MaxVolumeProperty
public static readonly DependencyProperty MaxVolumeProperty
value = MarketDepthControl.MaxVolumeProperty

DependencyProperty@ para MaxVolume.

PriceTextFormatProperty
public static readonly DependencyProperty PriceTextFormatProperty
value = MarketDepthControl.PriceTextFormatProperty

DependencyProperty@ para PriceTextFormat.

RegisterAnimationColorProperty
public static readonly DependencyProperty RegisterAnimationColorProperty
value = MarketDepthControl.RegisterAnimationColorProperty

Registre a cor da animação.

RegisterOrderOnProperty
public static readonly DependencyProperty RegisterOrderOnProperty
value = MarketDepthControl.RegisterOrderOnProperty

Executar o gatilho do registo de ordens.

ShowBoardColumnProperty
public static readonly DependencyProperty ShowBoardColumnProperty
value = MarketDepthControl.ShowBoardColumnProperty

DependencyProperty@ para ShowBoardColumn.

ShowOwnVolumeColumnsProperty
public static readonly DependencyProperty ShowOwnVolumeColumnsProperty
value = MarketDepthControl.ShowOwnVolumeColumnsProperty

DependencyProperty@ para ShowOwnVolumeColumns.

ShowSingleVolumeColumnProperty
public static readonly DependencyProperty ShowSingleVolumeColumnProperty
value = MarketDepthControl.ShowSingleVolumeColumnProperty

DependencyProperty@ para ShowSingleVolumeColumn.

SparseCommand
public static readonly RoutedCommand SparseCommand
value = MarketDepthControl.SparseCommand

O comando para a profundidade de mercado esparsa.

SparseRangeProperty
public static readonly DependencyProperty SparseRangeProperty
value = MarketDepthControl.SparseRangeProperty

DependencyProperty@ para SparseRange.

SparseResetCommand
public static readonly RoutedCommand SparseResetCommand
value = MarketDepthControl.SparseResetCommand

O comando para repor a profundidade de mercado.

UseOrderAnimationsProperty
public static readonly DependencyProperty UseOrderAnimationsProperty
value = MarketDepthControl.UseOrderAnimationsProperty

DependencyProperty@ para UseOrderAnimations.

VolumeTextFormatProperty
public static readonly DependencyProperty VolumeTextFormatProperty
value = MarketDepthControl.VolumeTextFormatProperty

DependencyProperty@ para VolumeTextFormat.