﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">Прекращение получения данных при остановки дочерних стратегий</title>
  <id>~/topic/1964/prekrashshenie-polucheniya-dannyh-pri-ostanovki-dochernih-strategii/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-15T01:04:41Z</updated>
  <logo>https://stocksharp.ru/images/logo.png</logo>
  <link href="https://stocksharp.ru/handlers/atom.ashx?category=topic&amp;id=1964" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.ru/posts/m/11803/</id>
    <title type="text">Alexander: Пробуйте 4.0.1 dll с codeplex и новую плазу. Вот сейчас собираю как раз) </title>
    <published>2011-09-30T13:10:35Z</published>
    <updated>2011-09-30T13:10:35Z</updated>
    <author>
      <name>frontman</name>
      <uri>https://stocksharp.ru/users/28487/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(11801)" rel="nofollow" target="_blank"&gt;Alexander&lt;/a&gt;:&lt;/strong&gt;
Пробуйте 4.0.1 dll с codeplex и новую плазу.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Вот сейчас собираю как раз)&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/11802/</id>
    <title type="text">Раз у вас таких проблем не наблюдается знач пойду руки себе выпрямлять... </title>
    <published>2011-09-30T13:09:34Z</published>
    <updated>2011-09-30T13:09:34Z</updated>
    <author>
      <name>frontman</name>
      <uri>https://stocksharp.ru/users/28487/</uri>
      <email>info@stocksharp.ru</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.ru/posts/m/11801/</id>
    <title type="text">Пробуйте 4.0.1 dll с codeplex и новую плазу. </title>
    <published>2011-09-30T13:08:24Z</published>
    <updated>2011-09-30T13:08:24Z</updated>
    <author>
      <name>Alexander</name>
      <uri>https://stocksharp.ru/users/2826/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Пробуйте 4.0.1 dll с codeplex и новую плазу.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/11800/</id>
    <title type="text">Только останавливаю я дочернею стратегию. А данные перестают поступать вообще. Т.е. передача данных ...</title>
    <published>2011-09-30T13:07:54Z</published>
    <updated>2011-09-30T13:07:54Z</updated>
    <author>
      <name>frontman</name>
      <uri>https://stocksharp.ru/users/28487/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Только останавливаю я дочернею стратегию. А данные перестают поступать вообще.
Т.е. передача данных встает на ITrader&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/11799/</id>
    <title type="text">Да. Я так и делаю. Как я и описывал ранее: frontman: Вещь странная и мне не понятная) Т.е. Есть стра...</title>
    <published>2011-09-30T13:06:32Z</published>
    <updated>2011-09-30T13:06:32Z</updated>
    <author>
      <name>frontman</name>
      <uri>https://stocksharp.ru/users/28487/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Да. Я так и делаю. Как я и описывал ранее:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(11780)" rel="nofollow" target="_blank"&gt;frontman&lt;/a&gt;:&lt;/strong&gt;
Вещь странная и мне не понятная)
Т.е. Есть стратегия в ней постоянно обрабатывается стакан, и в этой стратегии применяются защитные стратегии в частности StopLossStrategy. При остановки одной из дочерних стратегий получение данных основной стратегией да и вообще
PlazaTrader останавливается...
Я думал это из за ошибки внутри самой StopLossStrategy. создал свою защитную стратегию. Все равно эффект тот же. Притом если останавливать мою стратегию вот так&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-csharp"&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;this.When(Security.LastTradePriceLessAbsolute(stopPrice))
.Do(() =&amp;gt;
{
...
Stop();
})
.Once();&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;gt; Данные не перестают поступать. А если так
&amp;gt; ```csharp
 this.When(this.StrategyNewOrder())
                .Do(Stop)
                .Once();
&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;
&lt;p&gt;То перестают)
В чем проблема может быть не знаете?&lt;/p&gt;
&lt;/blockquote&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/11798/</id>
    <title type="text">frontman: Остановиться правило а не стратегия. Я вот о чем. Вы вызываете метод Stop(); и останавлива...</title>
    <published>2011-09-30T13:04:56Z</published>
    <updated>2011-09-30T13:04:56Z</updated>
    <author>
      <name>Alexander</name>
      <uri>https://stocksharp.ru/users/2826/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(11797)" rel="nofollow" target="_blank"&gt;frontman&lt;/a&gt;:&lt;/strong&gt;
Остановиться правило а не стратегия. Я вот о чем.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Вы вызываете метод Stop(); и останавливаете сами стратегию. Своими руками. Внутри правила.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/11797/</id>
    <title type="text">Остановиться правило а не стратегия. Я вот о чем. </title>
    <published>2011-09-30T12:59:49Z</published>
    <updated>2011-09-30T12:59:49Z</updated>
    <author>
      <name>frontman</name>
      <uri>https://stocksharp.ru/users/28487/</uri>
      <email>info@stocksharp.ru</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.ru/posts/m/11792/</id>
    <title type="text">frontman: Хм... Оставить ее запущенной.. Хм.. Ресурсы ни как кушать не будет? Once - от английского ...</title>
    <published>2011-09-30T12:43:43Z</published>
    <updated>2011-09-30T12:43:43Z</updated>
    <author>
      <name>Alexander</name>
      <uri>https://stocksharp.ru/users/2826/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(11789)" rel="nofollow" target="_blank"&gt;frontman&lt;/a&gt;:&lt;/strong&gt;
Хм... Оставить ее запущенной.. Хм..
Ресурсы ни как кушать не будет?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Once - от английского слова единожды. Остановится само.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/11789/</id>
    <title type="text">Хм... Оставить ее запущенной.. Хм.. Ресурсы ни как кушать не будет? </title>
    <published>2011-09-30T12:28:57Z</published>
    <updated>2011-09-30T12:28:57Z</updated>
    <author>
      <name>frontman</name>
      <uri>https://stocksharp.ru/users/28487/</uri>
      <email>info@stocksharp.ru</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.ru/posts/m/11787/</id>
    <title type="text">Не вызывайте Stop для дочерней стратегии. Там делается Once() </title>
    <published>2011-09-30T12:23:51Z</published>
    <updated>2011-09-30T12:23:51Z</updated>
    <author>
      <name>Alexander</name>
      <uri>https://stocksharp.ru/users/2826/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Не вызывайте Stop для дочерней стратегии. Там делается Once()&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/11781/</id>
    <title type="text">Правда во внешней стратегии так же навешано правило на StopLossStrategy.StrategyNewOrder(). Может из...</title>
    <published>2011-09-30T11:05:57Z</published>
    <updated>2011-09-30T11:05:57Z</updated>
    <author>
      <name>frontman</name>
      <uri>https://stocksharp.ru/users/28487/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Правда во внешней стратегии так же навешано правило на StopLossStrategy.StrategyNewOrder().
Может из за этого че то?&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/11780/</id>
    <title type="text">Вещь странная и мне не понятная) Т.е. Есть стратегия в ней постоянно обрабатывается стакан, и в этой...</title>
    <published>2011-09-30T11:02:47Z</published>
    <updated>2011-09-30T11:02:47Z</updated>
    <author>
      <name>frontman</name>
      <uri>https://stocksharp.ru/users/28487/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Вещь странная и мне не понятная)
Т.е. Есть стратегия в ней постоянно обрабатывается стакан, и в этой стратегии применяются защитные стратегии в частности StopLossStrategy. При остановки одной из дочерних стратегий получение данных основной стратегией да и вообще&lt;br /&gt;
PlazaTrader останавливается...
Я думал это из за ошибки внутри самой StopLossStrategy. создал свою защитную стратегию. Все равно эффект тот же. Притом если останавливать мою стратегию вот так&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-csharp"&gt;this.When(Security.LastTradePriceLessAbsolute(stopPrice))
                    .Do(() =&amp;gt;
                            {
                               ...
                                Stop();
                            })
                    .Once();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Данные не перестают поступать. А если так&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-csharp"&gt; this.When(this.StrategyNewOrder())
                .Do(Stop)
                .Once();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;То перестают)
В чем проблема может быть не знаете?&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>