Извиняюсь сразу за глупые вопросы, но как и у многих начинающих, они возникают, а спросить не у кого. 
в примере Sample , создаю новую форму, далее в ней код:
Код
namespace Sample
{
	using System;
	using System.Collections.ObjectModel;
	using System.Linq;
	using System.Threading;
	using System.Windows;
	using System.Windows.Controls;
	using Ecng.Collections;
	using Ecng.Common;
	using Ecng.Xaml;
	using StockSharp.BusinessEntities;
	using StockSharp.Quik;
	using StockSharp.Algo;
	
	public partial class bot : Window
	{
		
		private static Security _lkoh;
		private static MarketDepth _depth;
		public bot()
		{
			
			
			InitializeComponent();
			_lkoh.Code="LKOH";
			MainWindow.Instance.Trader.RegisterQuotes(_lkoh);
			_depth=MainWindow.Instance.Trader.GetMarketDepth(_lkoh);
			st.Content=_depth.Asks[0].Price.ToString();
		}
		public ObservableCollection<Security> Securities { get; private set; }
	}
}
 Соответственно после вызова окна ругается. Почему, понять не могу.