﻿<?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">TrendMarketDepthGenerator разреженные стаканы</title>
  <id>~/topic/4335/trendmarketdepthgenerator-razrezhennye-stakany/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-04T10:35:53Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=topic&amp;id=4335" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/posts/m/29412/</id>
    <title type="text">[quote=esper;29408][url=http://stocksharp.com/download/]Выложили 4.2.2.5[/url] [*][url=http://stocks...</title>
    <published>2014-01-30T19:39:05Z</published>
    <updated>2016-08-16T00:16:42Z</updated>
    <author>
      <name>Rebelion</name>
      <uri>https://stocksharp.com/users/28840/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;[quote=esper;29408][url=http://stocksharp.com/download/]Выложили 4.2.2.5[/url]&lt;/p&gt;
&lt;p&gt;[*][url=http://stocksharp.com/forum/4296/Vopros-po-ghienieratsii-stakanov-i-zakrytiiu-pozitsii/]Вопрос по генерации стаканов и закрытию позиции.[/url]&lt;/p&gt;
&lt;p&gt;[*]Plaza. Фильтрация пустых изменений по инструментам.[/list][/quote]&lt;/p&gt;
&lt;p&gt;А можно ли как-то решить вопрос с излишней разреженностью стакана? А то прописываю:
[code=csharp]                            var newTrendMarketDepthGenerator = new TrendMarketDepthGenerator(trader.GetSecurityId(security))
{
Interval = TimeSpan.FromMilliseconds(1),
MaxAsksDepth = 10,
MaxBidsDepth = 10,
UseTradeVolume = true,
MaxVolume = 50,
GenerateDepthOnEachTrade = true,
MinVolume = 5,&lt;br /&gt;
MinSpreadStepCount = 1,
MaxSpreadStepCount = 2,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;                        };[/code]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Получаю же такие стаканы (по три бида и три офера последовательно)&lt;/p&gt;
&lt;h2 id="quote000000.0040000best-bid-143520.000000000-1-best-ask-143540.000000000-2-last-trade-12202013-100254-825985020-143520.000000000-1-price-143520.000000000-volume-1-price-143490.000000000-volume-44-price-143410.000000000-volume-44-price-143540.000000000-volume-2-price-143600.000000000-volume-19-price-143690.000000000-volume-48"&gt;[quote]00:00:00.0040000Best Bid: Бид 143520.000000000 1   Best Ask: Оффер 143540.000000000 2    Last Trade: 12/20/2013 10:02:54 825985020 143520.000000000 1
Price: 143520.000000000  Volume:  1
Price: 143490.000000000  Volume:  44
Price: 143410.000000000  Volume:  44
Price: 143540.000000000  Volume:  2
Price: 143600.000000000  Volume:  19
Price: 143690.000000000  Volume:  48&lt;/h2&gt;
&lt;h2 id="best-bid-143520.000000000-1-best-ask-143540.000000000-2-last-trade-12202013-100254-825985020-143520.000000000-1-price-143520.000000000-volume-1-price-143430.000000000-volume-34-price-143410.000000000-volume-23-price-143540.000000000-volume-2-price-143640.000000000-volume-25-price-143740.000000000-volume-35"&gt;00:00:00.0040000Best Bid: Бид 143520.000000000 1   Best Ask: Оффер 143540.000000000 2    Last Trade: 12/20/2013 10:02:54 825985020 143520.000000000 1
Price: 143520.000000000  Volume:  1
Price: 143430.000000000  Volume:  34
Price: 143410.000000000  Volume:  23
Price: 143540.000000000  Volume:  2
Price: 143640.000000000  Volume:  25
Price: 143740.000000000  Volume:  35&lt;/h2&gt;
&lt;h2 id="best-bid-143520.000000000-1-best-ask-143540.000000000-2-last-trade-12202013-100254-825985020-143520.000000000-1-price-143520.000000000-volume-1-price-143500.000000000-volume-13-price-143430.000000000-volume-11-price-143540.000000000-volume-2-price-143640.000000000-volume-28-price-143740.000000000-volume-34"&gt;00:00:00.0040000Best Bid: Бид 143520.000000000 1   Best Ask: Оффер 143540.000000000 2    Last Trade: 12/20/2013 10:02:54 825985020 143520.000000000 1
Price: 143520.000000000  Volume:  1
Price: 143500.000000000  Volume:  13
Price: 143430.000000000  Volume:  11
Price: 143540.000000000  Volume:  2
Price: 143640.000000000  Volume:  28
Price: 143740.000000000  Volume:  34&lt;/h2&gt;
&lt;h2 id="best-bid-143520.000000000-1-best-ask-143540.000000000-2-last-trade-12202013-100254-825985020-143520.000000000-1-price-143520.000000000-volume-1-price-143480.000000000-volume-11-price-143420.000000000-volume-19-price-143540.000000000-volume-2-price-143570.000000000-volume-23-price-143620.000000000-volume-31"&gt;00:00:00.0040000Best Bid: Бид 143520.000000000 1   Best Ask: Оффер 143540.000000000 2    Last Trade: 12/20/2013 10:02:54 825985020 143520.000000000 1
Price: 143520.000000000  Volume:  1
Price: 143480.000000000  Volume:  11
Price: 143420.000000000  Volume:  19
Price: 143540.000000000  Volume:  2
Price: 143570.000000000  Volume:  23
Price: 143620.000000000  Volume:  31&lt;/h2&gt;
&lt;h2 id="best-bid-143520.000000000-1-best-ask-143540.000000000-2-last-trade-12202013-100254-825985020-143520.000000000-1-price-143520.000000000-volume-1-price-143440.000000000-volume-46-price-143340.000000000-volume-25-price-143540.000000000-volume-2-price-143560.000000000-volume-22-price-143630.000000000-volume-6"&gt;00:00:00.0040000Best Bid: Бид 143520.000000000 1   Best Ask: Оффер 143540.000000000 2    Last Trade: 12/20/2013 10:02:54 825985020 143520.000000000 1
Price: 143520.000000000  Volume:  1
Price: 143440.000000000  Volume:  46
Price: 143340.000000000  Volume:  25
Price: 143540.000000000  Volume:  2
Price: 143560.000000000  Volume:  22
Price: 143630.000000000  Volume:  6&lt;/h2&gt;
&lt;h2 id="best-bid-143520.000000000-1-best-ask-143540.000000000-2-last-trade-12202013-100254-825985020-143520.000000000-1-price-143520.000000000-volume-1-price-143510.000000000-volume-39-price-143410.000000000-volume-28-price-143540.000000000-volume-2-price-143550.000000000-volume-33-price-143650.000000000-volume-29"&gt;00:00:00.0040000Best Bid: Бид 143520.000000000 1   Best Ask: Оффер 143540.000000000 2    Last Trade: 12/20/2013 10:02:54 825985020 143520.000000000 1
Price: 143520.000000000  Volume:  1
Price: 143510.000000000  Volume:  39
Price: 143410.000000000  Volume:  28
Price: 143540.000000000  Volume:  2
Price: 143550.000000000  Volume:  33
Price: 143650.000000000  Volume:  29&lt;/h2&gt;
&lt;h2 id="best-bid-143520.000000000-1-best-ask-143540.000000000-2-last-trade-12202013-100254-825985020-143520.000000000-1-price-143520.000000000-volume-1-price-143480.000000000-volume-14-price-143450.000000000-volume-23-price-143540.000000000-volume-2-price-143640.000000000-volume-23-price-143670.000000000-volume-9"&gt;00:00:00.0040000Best Bid: Бид 143520.000000000 1   Best Ask: Оффер 143540.000000000 2    Last Trade: 12/20/2013 10:02:54 825985020 143520.000000000 1
Price: 143520.000000000  Volume:  1
Price: 143480.000000000  Volume:  14
Price: 143450.000000000  Volume:  23
Price: 143540.000000000  Volume:  2
Price: 143640.000000000  Volume:  23
Price: 143670.000000000  Volume:  9&lt;/h2&gt;
&lt;h2 id="best-bid-143520.000000000-1-best-ask-143540.000000000-2-last-trade-12202013-100254-825985020-143520.000000000-1-price-143520.000000000-volume-1-price-143450.000000000-volume-38-price-143430.000000000-volume-22-price-143540.000000000-volume-2-price-143570.000000000-volume-49-price-143630.000000000-volume-34"&gt;00:00:00.0040000Best Bid: Бид 143520.000000000 1   Best Ask: Оффер 143540.000000000 2    Last Trade: 12/20/2013 10:02:54 825985020 143520.000000000 1
Price: 143520.000000000  Volume:  1
Price: 143450.000000000  Volume:  38
Price: 143430.000000000  Volume:  22
Price: 143540.000000000  Volume:  2
Price: 143570.000000000  Volume:  49
Price: 143630.000000000  Volume:  34&lt;/h2&gt;
&lt;h2 id="best-bid-143520.000000000-1-best-ask-143540.000000000-2-last-trade-12202013-100254-825985020-143520.000000000-1-price-143520.000000000-volume-1-price-143510.000000000-volume-14-price-143500.000000000-volume-33-price-143540.000000000-volume-2-price-143560.000000000-volume-19-price-143580.000000000-volume-26"&gt;00:00:00.0040000Best Bid: Бид 143520.000000000 1   Best Ask: Оффер 143540.000000000 2    Last Trade: 12/20/2013 10:02:54 825985020 143520.000000000 1
Price: 143520.000000000  Volume:  1
Price: 143510.000000000  Volume:  14
Price: 143500.000000000  Volume:  33
Price: 143540.000000000  Volume:  2
Price: 143560.000000000  Volume:  19
Price: 143580.000000000  Volume:  26&lt;/h2&gt;
&lt;h2 id="best-bid-143520.000000000-1-best-ask-143540.000000000-2-last-trade-12202013-100254-825985020-143520.000000000-1-price-143520.000000000-volume-1-price-143480.000000000-volume-11-price-143380.000000000-volume-23-price-143540.000000000-volume-2-price-143610.000000000-volume-15-price-143660.000000000-volume-7"&gt;00:00:00.0040000Best Bid: Бид 143520.000000000 1   Best Ask: Оффер 143540.000000000 2    Last Trade: 12/20/2013 10:02:54 825985020 143520.000000000 1
Price: 143520.000000000  Volume:  1
Price: 143480.000000000  Volume:  11
Price: 143380.000000000  Volume:  23
Price: 143540.000000000  Volume:  2
Price: 143610.000000000  Volume:  15
Price: 143660.000000000  Volume:  7&lt;/h2&gt;
&lt;h2 id="best-bid-143520.000000000-1-best-ask-143540.000000000-2-last-trade-12202013-100254-825985020-143520.000000000-1-price-143520.000000000-volume-1-price-143510.000000000-volume-21-price-143480.000000000-volume-49-price-143540.000000000-volume-2-price-143600.000000000-volume-19-price-143700.000000000-volume-31"&gt;00:00:00.0040000Best Bid: Бид 143520.000000000 1   Best Ask: Оффер 143540.000000000 2    Last Trade: 12/20/2013 10:02:54 825985020 143520.000000000 1
Price: 143520.000000000  Volume:  1
Price: 143510.000000000  Volume:  21
Price: 143480.000000000  Volume:  49
Price: 143540.000000000  Volume:  2
Price: 143600.000000000  Volume:  19
Price: 143700.000000000  Volume:  31&lt;/h2&gt;
&lt;h2 id="best-bid-143520.000000000-1-best-ask-143540.000000000-2-last-trade-12202013-100254-825985020-143520.000000000-1-price-143520.000000000-volume-1-price-143510.000000000-volume-11-price-143490.000000000-volume-19-price-143540.000000000-volume-2-price-143580.000000000-volume-25-price-143640.000000000-volume-22"&gt;00:00:00.0040000Best Bid: Бид 143520.000000000 1   Best Ask: Оффер 143540.000000000 2    Last Trade: 12/20/2013 10:02:54 825985020 143520.000000000 1
Price: 143520.000000000  Volume:  1
Price: 143510.000000000  Volume:  11
Price: 143490.000000000  Volume:  19
Price: 143540.000000000  Volume:  2
Price: 143580.000000000  Volume:  25
Price: 143640.000000000  Volume:  22&lt;/h2&gt;
&lt;p&gt;00:00:00.0040000Best Bid: Бид 143520.000000000 1   Best Ask: Оффер 143540.000000000 2    Last Trade: 12/20/2013 10:02:54 825985020 143520.000000000 1
Price: 143520.000000000  Volume:  1
Price: 143460.000000000  Volume:  44
Price: 143390.000000000  Volume:  15
Price: 143540.000000000  Volume:  2
Price: 143590.000000000  Volume:  35
Price: 143610.000000000  Volume:  43[/quote]&lt;/p&gt;
&lt;p&gt;Добавление строчек&lt;/p&gt;
&lt;p&gt;[code=csharp]                                MinSpreadStepCount = 1,
MaxSpreadStepCount = 2,[/code]&lt;/p&gt;
&lt;p&gt;не помогает - стаканы генерируются ровно такие же. Как можно решить/обойти данную проблему?&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>