BuySellPanel
StockSharp.Xaml
Painel de operações de compra/venda.
Herda de: UserControl
Implementa: IPersistable, IComponentConnector
Construtores
BuySellPanel
public BuySellPanel()
buySellPanel = BuySellPanel()
Inicializa uma nova instância do BuySellPanel.
Propriedades
MarketDataProvider
public IMarketDataProvider MarketDataProvider { get; set; }
value = buySellPanel.MarketDataProvider
buySellPanel.MarketDataProvider = value
O fornecedor de dados de mercado.
Portfolio
public Portfolio Portfolio { get; set; }
value = buySellPanel.Portfolio
buySellPanel.Portfolio = value
Portfólio.
Portfolios
public PortfolioDataSource Portfolios { get; set; }
value = buySellPanel.Portfolios
buySellPanel.Portfolios = value
Portfolios disponíveis.
Security
public Security Security { get; set; }
value = buySellPanel.Security
buySellPanel.Security = value
Instrumento financeiro.
SecurityProvider
public ISecurityProvider SecurityProvider { get; set; }
value = buySellPanel.SecurityProvider
buySellPanel.SecurityProvider = value
O fornecedor de informações sobre instrumentos.
Volume
public decimal? Volume { get; set; }
value = buySellPanel.Volume
buySellPanel.Volume = value
Volume.
Métodos
InitializeComponent
public void InitializeComponent()
buySellPanel.InitializeComponent()
InitializeComponent
Load
public void Load(SettingsStorage storage)
buySellPanel.Load(storage)
Carregar as configurações.
- storage
- Configuração do armazenamento.
Save
public void Save(SettingsStorage storage)
buySellPanel.Save(storage)
Gravar as definições.
- storage
- Configuração do armazenamento.
Eventos
Closed
public event Action<BuySellPanel> Closed
buySellPanel.Closed += handler
Fechando BuySellPanel event.
OrderRegistering
public event Action<Security, Portfolio, Sides, decimal, decimal> OrderRegistering
buySellPanel.OrderRegistering += handler
O evento de registo da ordem.
PortfolioChanged
public event Action<Portfolio, Portfolio> PortfolioChanged
buySellPanel.PortfolioChanged += handler
O Portfólio mudou de evento.
SecurityChanged
public event Action<Security, Security> SecurityChanged
buySellPanel.SecurityChanged += handler
O instrumento financeiro alterou o evento.