﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">Вывод стакана</title>
  <id>~/topic/1059/vyvod-stakana/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-07T19:14:45Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=topic&amp;id=1059" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/posts/m/3374/</id>
    <title type="text">ооо эврика))) долго же я размышлял над этой темой)) спасибо </title>
    <published>2010-07-16T18:10:00Z</published>
    <updated>2010-07-16T18:10:00Z</updated>
    <author>
      <name>Serg</name>
      <uri>https://stocksharp.com/users/484/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;ооо эврика))) долго же я размышлял над этой темой)) спасибо&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/3373/</id>
    <title type="text">Возможно я что-то путаю, но по-моему чтобы отслеживать изменения котировок нужно вызвать либо trader...</title>
    <published>2010-07-16T18:03:00Z</published>
    <updated>2010-07-16T18:03:00Z</updated>
    <author>
      <name>MCTuTeJ|19951995</name>
      <uri>https://stocksharp.com/users/18/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Возможно я что-то путаю, но по-моему чтобы отслеживать изменения
котировок нужно вызвать либо trader.RegisterQuotes(security), либо
GetMarketDepth(security).&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/3372/</id>
    <title type="text">пардон .... не дописал) пункт 3. void stak_QuotesChanged(OrderDirections arg1, System.Collections.Ge...</title>
    <published>2010-07-16T15:57:00Z</published>
    <updated>2010-07-16T15:57:00Z</updated>
    <author>
      <name>Serg</name>
      <uri>https://stocksharp.com/users/484/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;пардон .... не дописал)
пункт 3.
void stak_QuotesChanged(OrderDirections arg1,
System.Collections.Generic.IDictionary&amp;lt;int, Quote&amp;gt; arg2)
{
foreach (var qoute in quik.GetMarketDepth(sber))
{
ToLog(&amp;quot;Направление &amp;quot; + qoute.OrderDirection + &amp;quot; Объем
&amp;quot;+ qoute.Volume +&amp;quot; Цена &amp;quot;+ qoute.Price);
}
}&lt;/p&gt;
&lt;p&gt;Результат моей работы:
в текст боксе ничего не появляется
при отладке приложения и просмотре внутренних полей stak было
замечено что все поля нулевые кроме конечно Security&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/3371/</id>
    <title type="text">Всем привет. Подскажите плиз как правильно выводить стакан и регистрироваться на событие его изменен...</title>
    <published>2010-07-16T15:52:00Z</published>
    <updated>2010-07-16T15:52:00Z</updated>
    <author>
      <name>Serg</name>
      <uri>https://stocksharp.com/users/484/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Всем привет. Подскажите плиз как правильно выводить стакан и
регистрироваться на событие его изменение(котировок стакана)?
Делаю все примерно так:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;При подключении к квику стартую вывод таблицы текущих параметров
quik.Connected += () =&amp;gt;
{
quik.StartDde(quik.SecuritiesTable);
ToLog(&amp;quot;conneced...&amp;quot;);
_isConnected = true;
};&lt;/li&gt;
&lt;li&gt;При появлении новой секурити
quik.NewSecurities += securities =&amp;gt;
{
if (sber == null)
sber = securities.FirstOrDefault(sec =&amp;gt;
sec.Code == secCode);
if (sber != null)
{
ToLog(&amp;quot;Инструмент появился.&amp;quot;);
stak = new MarketDepth(sber);
stak.QuotesChanged += new
Action&amp;lt;OrderDirections, System.Collections.Generic.IDictionary&amp;lt;int,
Quote&amp;gt;&amp;gt;(stak_QuotesChanged);
quik.StartDde(sber); // здесь квик начинает
вывод стакана по дде
}
};&lt;/li&gt;
&lt;li&gt;И пытаюсь текст боксе увидеть результат обновления стакана&lt;/li&gt;
&lt;/ol&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>