MarketDepthControl
El control visual que muestra el libro de pedidos con citas (IOrderBookMessage@).
Hereda de: BaseGridControl
Implementa: IComponentConnector
Constructores
public MarketDepthControl()
marketDepthControl = MarketDepthControl()
Inicia una nueva instancia de la MarketDepthControl.
Propiedades
public bool AllowOwnOrderDragDrop { get; set; }
value = marketDepthControl.AllowOwnOrderDragDrop
marketDepthControl.AllowOwnOrderDragDrop = value
Permitir que las órdenes sean arrastradas y caídas.
public bool AllowSpreadToMove { get; set; }
value = marketDepthControl.AllowSpreadToMove
marketDepthControl.AllowSpreadToMove = value
Obtiene o establece un valor indicando si se permite que la extensión se mueva. Cuando , la extensión puede moverse hacia arriba y hacia abajo. Cuando , la extensión permanece en el medio.
public TimeSpan AnimationDuration { get; set; }
value = marketDepthControl.AnimationDuration
marketDepthControl.AnimationDuration = value
Duración de la animación.
public bool AutoUpdateFormat { get; set; }
value = marketDepthControl.AutoUpdateFormat
marketDepthControl.AutoUpdateFormat = value
Actualizar automáticamente el formato por instrumento financiero). Por defecto está en encendido.
public Color CancelAnimationColor { get; set; }
value = marketDepthControl.CancelAnimationColor
marketDepthControl.CancelAnimationColor = value
Cancelar el color de la animación.
public IOrderBookMessage DepthData { get; set; }
value = marketDepthControl.DepthData
marketDepthControl.DepthData = value
Datos de profundidad para el enlace. Configurar esta propiedad actualiza la pantalla del libro de pedidos.
public Security DepthSecurity { get; set; }
value = marketDepthControl.DepthSecurity
marketDepthControl.DepthSecurity = value
instrumento financiero para la fijación de datos de profundidad.
public Color ErrorAnimationColor { get; set; }
value = marketDepthControl.ErrorAnimationColor
marketDepthControl.ErrorAnimationColor = value
Color de animación de error.
public Color FillBuyAnimationColor { get; set; }
value = marketDepthControl.FillBuyAnimationColor
marketDepthControl.FillBuyAnimationColor = value
Llena de color de animación.
public Color FillSellAnimationColor { get; set; }
value = marketDepthControl.FillSellAnimationColor
marketDepthControl.FillSellAnimationColor = value
Llena el color de la animación.
public Color FillTextAnimationColor { get; set; }
value = marketDepthControl.FillTextAnimationColor
marketDepthControl.FillTextAnimationColor = value
Llena el color del texto.
public decimal? GroupRange { get; set; }
value = marketDepthControl.GroupRange
marketDepthControl.GroupRange = value
Rango para Decimal).
public bool IsBidsOnTop { get; set; }
value = marketDepthControl.IsBidsOnTop
marketDepthControl.IsBidsOnTop = value
Ya sea para mostrar las ofertas anteriores. El predeterminado está apagado.
public bool IsOwnOrderDragging { get; private set; }
value = marketDepthControl.IsOwnOrderDragging
marketDepthControl.IsOwnOrderDragging = value
Es cierto si el usuario está arrastrando un pedido.
public decimal MaxBuyVolume { get; set; }
value = marketDepthControl.MaxBuyVolume
marketDepthControl.MaxBuyVolume = value
El volumen máximo de todas las ofertas.
public int MaxDepth { get; set; }
value = marketDepthControl.MaxDepth
marketDepthControl.MaxDepth = value
La profundidad máxima de la pantalla de la reserva de pedidos. El valor predeterminado es DefaultDepth.
public decimal MaxSellVolume { get; set; }
value = marketDepthControl.MaxSellVolume
marketDepthControl.MaxSellVolume = value
El volumen máximo de todos los pedidos.
public decimal MaxVolume { get; set; }
value = marketDepthControl.MaxVolume
marketDepthControl.MaxVolume = value
El volumen máximo de todas las citas.
public string PriceTextFormat { get; set; }
value = marketDepthControl.PriceTextFormat
marketDepthControl.PriceTextFormat = value
Formato de precio.
public Color RegisterAnimationColor { get; set; }
value = marketDepthControl.RegisterAnimationColor
marketDepthControl.RegisterAnimationColor = value
Registra el color de la animación.
public MarketDepthExecuteOn RegisterOrderOn { get; set; }
value = marketDepthControl.RegisterOrderOn
marketDepthControl.RegisterOrderOn = value
Ejecutar el gatillo del registro de pedidos.
public QuoteChange? SelectedQuote { get; }
value = marketDepthControl.SelectedQuote
La cita seleccionada.
public bool ShowBoardColumn { get; set; }
value = marketDepthControl.ShowBoardColumn
marketDepthControl.ShowBoardColumn = value
Mostrar la columna de la Junta.
public bool ShowOwnVolumeColumns { get; set; }
value = marketDepthControl.ShowOwnVolumeColumns
marketDepthControl.ShowOwnVolumeColumns = value
Mostrar columnas de volumen.
public bool ShowSingleVolumeColumn { get; set; }
value = marketDepthControl.ShowSingleVolumeColumn
marketDepthControl.ShowSingleVolumeColumn = value
Mostrar columna de volumen simple. El valor predeterminado es .
public decimal? SparseRange { get; set; }
value = marketDepthControl.SparseRange
marketDepthControl.SparseRange = value
Rango para Int32).
public bool UseOrderAnimations { get; set; }
value = marketDepthControl.UseOrderAnimations
marketDepthControl.UseOrderAnimations = value
Animaciones de estado de pedido propio usuario.
public string VolumeTextFormat { get; set; }
value = marketDepthControl.VolumeTextFormat
marketDepthControl.VolumeTextFormat = value
Formato de volumen.
Métodos
public void CancelOrders(Func<Order, bool> predicate)
marketDepthControl.CancelOrders(predicate)
Cancela pedidos que se agregaron a esta instancia de MarketDepthControl@. Este método no cancela pedidos por sí mismo. Simplemente notifica a los suscriptores con CancelingOrderevent.
public MarketDepthColumns GetColumnIndex(GridColumn column)
result = marketDepthControl.GetColumnIndex(column)
Para conseguir el tipo de columna por celda.
- column
- Columna.
Devuelve: El tipo de columna.
public IEnumerable<Order> GetOrders(decimal price, Sides? side, OrderTypes? type)
result = marketDepthControl.GetOrders(price, side, type)
Obtenga órdenes activas por criterios especificados.
- price
- Precio del pedido.
- side
- Coge el lado de la orden (comprar o vender).
- type
- Tipo de pedido.
Devuelve: Encontramos órdenes.
public void InitializeComponent()
marketDepthControl.InitializeComponent()
InitializeComponent
protected override void OnLostMouseCapture(MouseEventArgs e)
marketDepthControl.OnLostMouseCapture(e)
Maneja el evento cuando se pierde la captura del ratón.
- 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 manejar una orden.
- order
- Orden.
- price
- Precio del pedido.
- balance
- Saldo de contratos de orden.
- state
- Orden estatal.
public void ProcessOrderFail(OrderFail fail, OrderStates state)
marketDepthControl.ProcessOrderFail(fail, state)
Para manejar un registro de pedidos/move/cancel fallar.
public void ShowOrderFill(Sides side, decimal price, decimal volume)
marketDepthControl.ShowOrderFill(side, price, volume)
Mostrar orden de llenar animación.
public void UpdateDepth(IOrderBookMessage message, Security security)
marketDepthControl.UpdateDepth(message, security)
Para actualizar el libro de pedidos.
- message
- Profundidad de mercado.
- security
- instrumento financiero.
public void UpdateFormat(Security security)
marketDepthControl.UpdateFormat(security)
Para actualizar PriceTextFormat y VolumeTextFormat.
- security
- instrumento financiero.
Eventos
public event Action<Order> CancelingOrder
marketDepthControl.CancelingOrder += handler
Cancelando orden.
public event Action<Order, decimal> MovingOrder
marketDepthControl.MovingOrder += handler
Moving orden a nuevo precio.
public event Action<Sides, decimal> RegisteringOrder
marketDepthControl.RegisteringOrder += handler
Orden de registro.
public event Action<QuoteChange?> SelectedQuoteChanged
marketDepthControl.SelectedQuoteChanged += handler
SelectedQuotecambió el evento.
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
Duración de la animación.
public static readonly DependencyProperty CancelAnimationColorProperty
value = MarketDepthControl.CancelAnimationColorProperty
Cancelar el color de la animación.
public const int DefaultDepth
value = MarketDepthControl.DefaultDepth
La profundidad máxima por defecto es igual a 20.
public static readonly DependencyProperty DepthDataProperty
value = MarketDepthControl.DepthDataProperty
DependencyProperty for DepthData.
public static readonly DependencyProperty DepthSecurityProperty
value = MarketDepthControl.DepthSecurityProperty
DependencyProperty for DepthSecurity.
public static readonly DependencyProperty ErrorAnimationColorProperty
value = MarketDepthControl.ErrorAnimationColorProperty
Color de animación de error.
public static readonly DependencyProperty FillBuyAnimationColorProperty
value = MarketDepthControl.FillBuyAnimationColorProperty
Llena de color de animación.
public static readonly DependencyProperty FillSellAnimationColorProperty
value = MarketDepthControl.FillSellAnimationColorProperty
Llena el color de la animación.
public static readonly DependencyProperty FillTextAnimationColorProperty
value = MarketDepthControl.FillTextAnimationColorProperty
Llena el color del texto.
public static readonly RoutedCommand GroupCommand
value = MarketDepthControl.GroupCommand
El comando para la profundidad del mercado de grupo.
public static readonly DependencyProperty GroupRangeProperty
value = MarketDepthControl.GroupRangeProperty
DependencyProperty for GroupRange.
public static readonly RoutedCommand GroupResetCommand
value = MarketDepthControl.GroupResetCommand
El comando para reiniciar la profundidad del mercado de agrupación.
public static readonly DependencyProperty IsBidsOnTopProperty
value = MarketDepthControl.IsBidsOnTopProperty
DependencyProperty for IsBidsOnTop.
public static readonly DependencyPropertyKey IsOwnOrderDraggingKey
value = MarketDepthControl.IsOwnOrderDraggingKey
Es cierto si el usuario está arrastrando un pedido.
public static readonly DependencyProperty MaxBuyVolumeProperty
value = MarketDepthControl.MaxBuyVolumeProperty
DependencyProperty for MaxBuyVolume.
public static readonly DependencyProperty MaxDepthProperty
value = MarketDepthControl.MaxDepthProperty
DependencyProperty for MaxDepth.
public static readonly DependencyProperty MaxSellVolumeProperty
value = MarketDepthControl.MaxSellVolumeProperty
DependencyProperty for MaxSellVolume.
public static readonly DependencyProperty MaxVolumeProperty
value = MarketDepthControl.MaxVolumeProperty
DependencyProperty for MaxVolume.
public static readonly DependencyProperty PriceTextFormatProperty
value = MarketDepthControl.PriceTextFormatProperty
DependencyProperty for PriceTextFormat.
public static readonly DependencyProperty RegisterAnimationColorProperty
value = MarketDepthControl.RegisterAnimationColorProperty
Registra el color de la animación.
public static readonly DependencyProperty RegisterOrderOnProperty
value = MarketDepthControl.RegisterOrderOnProperty
Ejecutar el gatillo del registro de pedidos.
public static readonly DependencyProperty ShowBoardColumnProperty
value = MarketDepthControl.ShowBoardColumnProperty
DependencyProperty for 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
El comando para la escasa profundidad del mercado.
public static readonly DependencyProperty SparseRangeProperty
value = MarketDepthControl.SparseRangeProperty
DependencyProperty for SparseRange.
public static readonly RoutedCommand SparseResetCommand
value = MarketDepthControl.SparseResetCommand
El comando para reiniciar la profundidad del mercado.
public static readonly DependencyProperty UseOrderAnimationsProperty
value = MarketDepthControl.UseOrderAnimationsProperty
DependencyProperty para UseOrderAnimations.
public static readonly DependencyProperty VolumeTextFormatProperty
value = MarketDepthControl.VolumeTextFormatProperty
DependencyProperty for VolumeTextFormat.