Здравствуйте, вот уже неделю мучаюсь с проблемой, никаким образом не удается получить тиковые данные в openecry. Скажите пожалуйста тики в openECry вообще работают ? Подскажите пожалуйста кто-нибудь в чем дело может быть.... очень прошу =( using ConsoleDump; using Ecng.Common; using Ecng.Xaml; using StockSharp.Algo; using StockSharp.Algo.Candles; using StockSharp.BusinessEntities; using StockSharp.Localization; using StockSharp.Messages; using StockSharp.OpenECry; using StockSharp.Xaml; using StockSharp.Xaml.Charting; using System; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using WpfApp1.Service; namespace WpfApp1 { /// /// Логика взаимодействия для MainWindow.xaml /// public partial class MainWindow { /// /// Название коннетора /// private string selectedConnector; /// /// Выбранный инструмент /// private Security selectedSecurity; /// /// Сервис коннеторов /// private ConnectorServiceInterface ConnectorService; /// /// /// private readonly ChartCandleElement candlesElem; private CandleManager candleManager; private CandleSeries candleSeries; private ChartTradeElement tradesElem; private ScalperStrategy strategy; private Connector Trader; private Portfolio portfolio; public MainWindow() { InitializeComponent(); CandleSettingsEditor.Settings = new CandleSeries { CandleType = typeof(TimeFrameCandle), Arg = TimeSpan.FromMinutes(5), }; CandleSettingsEditor.SettingsChanged += CandleSettingsChanged; ConnectorService = new ConnectorService(); var area = new ChartArea(); Chart.Areas.Add(area); candlesElem = new ChartCandleElement(); area.Elements.Add(candlesElem); tradesElem = new ChartTradeElement { FullTitle = LocalizedStrings.Str985 }; area.Elements.Add(tradesElem); } private void SecurityPicker_OnSecuritySelected(Security security) { if (security == null) return; if (candleSeries != null) { candleManager.Stop(candleSeries); // give back series memory strategy.Start(); } Chart.Reset(new { candlesElem }); selectedSecurity = security; StartBotButton.IsEnabled = true; Trader.RegisterSecurity(security); Trader.RegisterTrades(security); Trader.RegisterMarketDepth(security); candleSeries = new CandleSeries(CandleSettingsEditor.Settings.CandleType, security, CandleSettingsEditor.Settings.Arg); // create strategy based on 80 5-min и 10 5-min strategy = new ScalperStrategy( Chart, candlesElem, tradesElem, candleManager, candleSeries) { Volume = 1, Portfolio = portfolio, Security = security, Connector = Trader, }; strategy.Start(); candleManager.Start(candleSeries); } private void CandleSettingsChanged() { SecurityPicker_OnSecuritySelected(SecurityPicker.SelectedSecurity); } private void FindClick(object sender, RoutedEventArgs e) { var wnd = new SecurityLookupWindow { Criteria = new Security { Code = \"ES\" } }; if (!wnd.ShowModal()) { return; } Trader.Lookup(wnd.Criteria); Trader.LookupSecurities(wnd.Criteria); this.GuiAsync(() =\u003e { }); } private void StartBot(object sender, RoutedEventArgs e) { } private void OnSelectConnector(object sender, System.Windows.Controls.SelectionChangedEventArgs e) { ComboBoxItem item = (ComboBoxItem)ConnectorName.SelectedItem; selectedConnector = item.Name.ToString(); Login.IsEnabled = true; Password.IsEnabled = true; ConnectButton.IsEnabled = true; } /// /// Информация о стакане /// /// private void OnDepth(MarketDepth depth) { if (depth.Security != selectedSecurity) { return; } DepthControl.UpdateDepth(depth); } private void ConnectButton_Click(object sender, System.Windows.RoutedEventArgs e) { Console.WriteLine(\"send connect\"); Trader = ConnectorService.Connect(Login.Text, Password.Password, selectedConnector); // подписываемся на событие успешного соединения Trader.Connected += () =\u003e { Console.WriteLine(\"Bot connected...\"); candleManager = new CandleManager(Trader); //Security Criteria = new Security { Code = \"ES\" }; //Trader.LookupSecurities(Criteria); // update gui labels this.GuiAsync(() =\u003e { FindButton.IsEnabled = true; }); // subscribe on news Trader.RegisterNews(); }; // событие успешного отключения Trader.Disconnected += () =\u003e { Console.WriteLine(\"Bot disconnected...\"); this.GuiAsync(() =\u003e { FindButton.IsEnabled = false; }); }; // подписываемся на событие разрыва соединения Trader.ConnectionError += error =\u003e this.GuiAsync(() =\u003e { MessageBox.Show(this, error.ToString(), LocalizedStrings.Str2959); }); // событие ошибки обработки данных Trader.Error += error =\u003e this.GuiAsync(() =\u003e MessageBox.Show(this, error.ToString(), LocalizedStrings.Str2955)); Trader.NewSecurity += security =\u003e { SecurityPicker.Securities.Add(security); }; Trader.NewMyTrade += trades =\u003e { trades.Dump(); }; Trader.NewTrade += trade =\u003e { trade.Dump(); }; Trader.NewTrades += trade =\u003e { trade.Dump(); }; Trader.NewOrder += order =\u003e { // order.Dump(); }; Trader.NewPosition += position =\u003e { position.Dump(); }; Trader.NewSecurities += securities =\u003e { // Console.WriteLine(\"Получены инструменты...\"); //securities.Dump(); //Connector.Securities.Dump(); }; Trader.NewPortfolio += _portfolio =\u003e { portfolio = _portfolio; // подписываемся на обновление портфеля Trader.RegisterPortfolio(_portfolio); }; Trader.SecurityChanged += sec =\u003e { sec.Dump(); }; Trader.NewMarketDepth += OnDepth; Trader.MarketDepthChanged += OnDepth; SecurityPicker.MarketDataProvider = Trader; Trader.Connect(); } } }