﻿<?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/907/tuplyu-na-rovnom-meste/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-07T04:34:36Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=topic&amp;id=907" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/posts/m/1933/</id>
    <title type="text">если сделать так protected override bool OnProcess() { // если наша стратегия в процессе остановки i...</title>
    <published>2010-03-12T17:55:00Z</published>
    <updated>2016-10-04T14:09:34Z</updated>
    <author>
      <name>denis</name>
      <uri>https://stocksharp.com/users/59/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;если сделать так&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
        protected override bool OnProcess()
        {
            // если наша стратегия в процессе остановки
            if (base.ProcessState == StrategyProcessStates.Stopping)
            {
                // отменяем стратегию
                base.Orders.Where(o =&amp;gt; o.State ==
OrderStates.Active).ForEach(base.Trader.GuarantyCancelOrder);
                return false;
            }
            try
            {
                var direction = OrderDirections.Buy;
                base.Volume = 1;
                var order = base.CreateOrder(direction,
base.Security.GetMarketPrice(direction, MarketPriceTypes.Following),
base.Volume);
                // регистрируем на котирование
                var strategy = new MarketQuotingStrategy(base.Trader,
order, base.Interval, false, MarketPriceTypes.Following, new Unit());
                strategy.Start();
                base.ChildStrategies.Add(strategy);
            }
            catch (Exception e)
            {
                Console.WriteLine(&amp;quot;{0} Exception caught.&amp;quot;, e);
            }
            return true;
        }

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;то исключение все равно не перехватывается :(&lt;/p&gt;
&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/1945/</id>
    <title type="text">Послал на мыло. </title>
    <published>2010-03-14T20:37:00Z</published>
    <updated>2010-03-14T20:37:00Z</updated>
    <author>
      <name>Mikhail Sukhov</name>
      <uri>https://stocksharp.com/users/201/</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/1944/</id>
    <title type="text">вот еще логи с MarketPriceTypes.Middle http://stocksharp.googlegroups.com/web/bot-middle.txt?gda=b4D...</title>
    <published>2010-03-14T16:57:00Z</published>
    <updated>2010-03-14T16:57:00Z</updated>
    <author>
      <name>denis</name>
      <uri>https://stocksharp.com/users/59/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;вот еще логи с MarketPriceTypes.Middle&lt;/p&gt;
&lt;p&gt;&lt;a href="http://stocksharp.googlegroups.com/web/bot-middle.txt?gda=b4DjV0EAAAD7ujiFr5Ha_HYNmvj19TvyqYLFUoA7S8O2fXDdlj4_8eCRmxtWo_ZylMcdYO3kGVRTCT_pCLcFTwcI3Sro5jAzlXFeCn-cdYleF-vtiGpWAA&amp;amp;gsc=3mZFCwsAAABUkaX7Cd6y5wy29deX8sae" rel="nofollow" target="_blank"&gt;http://stocksharp.googlegroups.com/web/bot-middle.txt?gda=b4DjV0EAAAD7ujiFr5Ha_HYNmvj19TvyqYLFUoA7S8O2fXDdlj4_8eCRmxtWo_ZylMcdYO3kGVRTCT_pCLcFTwcI3Sro5jAzlXFeCn-cdYleF-vtiGpWAA&amp;amp;gsc=3mZFCwsAAABUkaX7Cd6y5wy29deX8sae&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;и с MarketPriceTypes.Opposite&lt;/p&gt;
&lt;p&gt;&lt;a href="http://stocksharp.googlegroups.com/web/bot-opposite.txt?gda=_R4AykMAAAD7ujiFr5Ha_HYNmvj19TvyqYLFUoA7S8O2fXDdlj4_8XxREgZSFh1zkfZTN8MQdB8ytiJ-HdGYYcPi_09pl8N7FWLveOaWjzbYnpnkpmxcWg&amp;amp;gsc=3mZFCwsAAABUkaX7Cd6y5wy29deX8sae" rel="nofollow" target="_blank"&gt;http://stocksharp.googlegroups.com/web/bot-opposite.txt?gda=_R4AykMAAAD7ujiFr5Ha_HYNmvj19TvyqYLFUoA7S8O2fXDdlj4_8XxREgZSFh1zkfZTN8MQdB8ytiJ-HdGYYcPi_09pl8N7FWLveOaWjzbYnpnkpmxcWg&amp;amp;gsc=3mZFCwsAAABUkaX7Cd6y5wy29deX8sae&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;При Middle купля ставится и снимается при неизменном в течении 10-15
сек стакане.
При Opposite купля ставится на тик хуже офера и тоже может прыгать.
когда проходят такие длинные листинги:
2010-03-14T16:45:16.2656250+03:00 [0] None =&amp;gt; this.Order.Price=
1574,7  GetNewPrice()= 1574,7
2010-03-14T16:45:16.5937500+03:00 [0] None =&amp;gt; this.Order.Price=
1574,7  GetNewPrice()= 1574,7
2010-03-14T16:45:16.9843750+03:00 [0] None =&amp;gt; this.Order.Price=
1574,7  GetNewPrice()= 1574,7
2010-03-14T16:45:17.2968750+03:00 [0] None =&amp;gt; this.Order.Price=
1574,7  GetNewPrice()= 1574,7
2010-03-14T16:45:17.7187500+03:00 [0] None =&amp;gt; this.Order.Price=
1574,7  GetNewPrice()= 1574,7
2010-03-14T16:45:18.0625000+03:00 [0] None =&amp;gt; this.Order.Price=
1574,7  GetNewPrice()= 1574,7
2010-03-14T16:45:18.4062500+03:00 [0] None =&amp;gt; this.Order.Price=
1574,7  GetNewPrice()= 1574,7
2010-03-14T16:45:18.7968750+03:00 [0] None =&amp;gt; this.Order.Price=
1574,7  GetNewPrice()= 1574,7
2010-03-14T16:45:19.2187500+03:00 [0] None =&amp;gt; this.Order.Price=
1574,7  GetNewPrice()= 1574,7
2010-03-14T16:45:19.5625000+03:00 [0] None =&amp;gt; this.Order.Price=
1574,7  GetNewPrice()= 1574,7
2010-03-14T16:45:19.8750000+03:00 [0] None =&amp;gt; this.Order.Price=
1574,7  GetNewPrice()= 1574,7&lt;/p&gt;
&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/1943/</id>
    <title type="text">лог тут http://stocksharp.googlegroups.com/web/bot-log.txt?gda=I8UhmD4AAAD7ujiFr5Ha_HYNmvj19TvywXObw...</title>
    <published>2010-03-14T15:16:00Z</published>
    <updated>2010-03-14T15:16:00Z</updated>
    <author>
      <name>denis</name>
      <uri>https://stocksharp.com/users/59/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;лог тут&lt;/p&gt;
&lt;p&gt;&lt;a href="http://stocksharp.googlegroups.com/web/bot-log.txt?gda=I8UhmD4AAAD7ujiFr5Ha_HYNmvj19TvywXObw61_wlnOs-pFneTU11NG6vPM9pifSUoS6asTACPjsKXVs-X7bdXZc5buSfmx" rel="nofollow" target="_blank"&gt;http://stocksharp.googlegroups.com/web/bot-log.txt?gda=I8UhmD4AAAD7ujiFr5Ha_HYNmvj19TvywXObw61_wlnOs-pFneTU11NG6vPM9pifSUoS6asTACPjsKXVs-X7bdXZc5buSfmx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;прикреплен к группе&lt;/p&gt;
&lt;p&gt;вывод сделан так
private void OnLog(Strategy strategy, StrategyErrorStates
errorState, string message)
{
// если стратегия вывела не просто сообщение, то вывести на экран.
//if (errorState != StrategyErrorStates.None)
//      this.Sync(() =&amp;gt; MessageBox.Show(this, message));
//else
Console.WriteLine(&amp;quot;{3} [{0}] {1} =&amp;gt; {2}&amp;quot;, strategy.Id,
errorState, message, DateTime.Now.ToString(&amp;quot;o&amp;quot;));//.ToString(&amp;quot;o&amp;quot;)
ToLongTimeString
}
из этого
protected override bool IsNeedReRegister()
{
//Console.WriteLine(&amp;quot;{2} this.Order.Price={0},
GetNewPrice()={1}&amp;quot;, this.Order.Price, GetNewPrice());
AddLog(Ecng.Trading.Algo.StrategyErrorStates.None,
&amp;quot;this.Order.Price= &amp;quot; + this.Order.Price + &amp;quot;  GetNewPrice()= &amp;quot; +
GetNewPrice());
return this.Order.Price != GetNewPrice();
}&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/1942/</id>
    <title type="text">Decimals - это точность цены. Под периодом я имел ввиду сам лог. Каждая запись имеет дату вывода. На...</title>
    <published>2010-03-14T14:36:00Z</published>
    <updated>2010-03-14T14:36:00Z</updated>
    <author>
      <name>Mikhail Sukhov</name>
      <uri>https://stocksharp.com/users/201/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Decimals - это точность цены. Под периодом я имел ввиду сам лог.
Каждая запись имеет дату вывода. Например, через DateTime.Now.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/1941/</id>
    <title type="text">S# 1.6 на лукойле не знаю что такое Decimals (десятичные), а мин шаг = 0,01 рубля лог прикреплен к г...</title>
    <published>2010-03-14T10:16:00Z</published>
    <updated>2010-03-14T10:16:00Z</updated>
    <author>
      <name>denis</name>
      <uri>https://stocksharp.com/users/59/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;S# 1.6 на лукойле
не знаю что такое Decimals (десятичные), а мин шаг = 0,01 рубля
лог прикреплен к группе, там видно что первая заявка выставляется
верно, но после изменения стакана, выставляется на MinStepSize ниже
лучшей купли
период вызова поставлен 0,3сек&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/1940/</id>
    <title type="text">Плюс, могли бы Вы дополнительно выводить и вермя в лог, чтобы проследить, сколько времени прошло меж...</title>
    <published>2010-03-14T02:30:00Z</published>
    <updated>2010-03-14T02:30:00Z</updated>
    <author>
      <name>Mikhail Sukhov</name>
      <uri>https://stocksharp.com/users/201/</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/1939/</id>
    <title type="text">Агалогично, не сразу могу въехать. Требуется Ваша помощь. Можете сказать чему равны MinStepSize и De...</title>
    <published>2010-03-14T02:25:00Z</published>
    <updated>2010-03-14T02:25:00Z</updated>
    <author>
      <name>Mikhail Sukhov</name>
      <uri>https://stocksharp.com/users/201/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Агалогично, не сразу могу въехать. Требуется Ваша помощь. Можете
сказать чему равны MinStepSize и Decimals для данного инструмента?&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/1938/</id>
    <title type="text">про борьбу я не подумал :) теперь про перегрузки: могзи сначало закипели, потом сварились, а когда с...</title>
    <published>2010-03-13T22:07:00Z</published>
    <updated>2010-03-13T22:07:00Z</updated>
    <author>
      <name>denis</name>
      <uri>https://stocksharp.com/users/59/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;про борьбу я не подумал :)
теперь про перегрузки: могзи сначало закипели, потом сварились, а
когда стали поджариваться получилось это
class my_MarketQuotingStrategy : MarketQuotingStrategy
{
public my_MarketQuotingStrategy(ITrader trader, Order order,
TimeSpan interval, bool isForts, MarketPriceTypes priceType, Unit
priceDelta)
: base(trader, order, interval, isForts, priceType,
priceDelta)
{
Console.WriteLine(&amp;quot;dgdfg&amp;quot;);
}
protected override bool IsNeedReRegister()
{
Console.WriteLine(&amp;quot;this.Order.Price={0},
GetNewPrice()={1}&amp;quot;, this.Order.Price, GetNewPrice());
return this.Order.Price != GetNewPrice();
}
}
поскольку я полный чайник, то даже не могу понять чего я сделал, но на
вывод получил это
[0] None =&amp;gt; ChStrategy runned
&amp;quot;SampleSMA.vshost.exe&amp;quot; (управляемый): &amp;quot;C:\WINDOWS\assembly\GAC_MSIL
\System.Runtime.Serialization
\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll&amp;quot; загружен,
загрузка символов пропущена. Модуль оптимизирован, включен режим
отладки &amp;quot;Только мой код&amp;quot;.
dgdfg
this.Order.Price=1595, GetNewPrice()=1595
this.Order.Price=1595, GetNewPrice()=1595
this.Order.Price=1595, GetNewPrice()=1595
this.Order.Price=1595, GetNewPrice()=1595
this.Order.Price=1595, GetNewPrice()=1595
...скип...
this.Order.Price=1595, GetNewPrice()=1595
this.Order.Price=1595, GetNewPrice()=1595
this.Order.Price=1595, GetNewPrice()=1595
this.Order.Price=1595, GetNewPrice()=1602,32
[0] None =&amp;gt; Quoting new order Buy price 1602,31 volume 1
[0] None =&amp;gt; Quoting new order Buy with id 789112783 price 1602,31
volume 1 transaction 1
this.Order.Price=1602,31, GetNewPrice()=1595
[0] Warning =&amp;gt; Order 789112783 doesn't have a state
this.Order.Price=1602,31, GetNewPrice()=1595
[0] None =&amp;gt; Quoting renewing order Buy with id 789112783 price 1602,31
volume 1 transaction 1
[0] None =&amp;gt; Quoting renewed order Buy with id 789112810 price 1602,3
volume 1 transaction 2
this.Order.Price=1602,3, GetNewPrice()=1595
[0] None =&amp;gt; Quoting renewing order Buy with id 789112810 price 1602,3
volume 1 transaction 2
[0] None =&amp;gt; Quoting renewed order Buy with id 789112839 price 1594,99
volume 1 transaction 3
this.Order.Price=1594,99, GetNewPrice()=1595
[0] Warning =&amp;gt; Order 789112839 doesn't have a state
this.Order.Price=1594,99, GetNewPrice()=1595
[0] None =&amp;gt; Quoting renewing order Buy with id 789112839 price 1594,99
volume 1 transaction 3
[0] None =&amp;gt; Quoting renewed order Buy with id 789112856 price 1594,99
volume 1 transaction 4
this.Order.Price=1594,99, GetNewPrice()=1595
[0] None =&amp;gt; Quoting renewing order Buy with id 789112856 price 1594,99
volume 1 transaction 4
[0] None =&amp;gt; Quoting renewed order Buy with id 789112872 price 1594,99
volume 1 transaction 5
this.Order.Price=1594,99, GetNewPrice()=1595
[0] Warning =&amp;gt; Order 789112872 doesn't have a state
this.Order.Price=1594,99, GetNewPrice()=1595
[0] Warning =&amp;gt; Order 789112872 doesn't have a state
this.Order.Price=1594,99, GetNewPrice()=1595
[0] None =&amp;gt; Quoting renewing order Buy with id 789112872 price 1594,99
volume 1 transaction 5
[0] None =&amp;gt; Quoting renewed order Buy with id 789112893 price 1594,99
volume 1 transaction 6
this.Order.Price=1594,99, GetNewPrice()=1595
[0] Warning =&amp;gt; Order 789112893 doesn't have a state
this.Order.Price=1594,99, GetNewPrice()=1595
[0] None =&amp;gt; Quoting renewing order Buy with id 789112893 price 1594,99
volume 1 transaction 6
[0] None =&amp;gt; Quoting renewed order Buy with id 789112913 price 1594,99
volume 1 transaction 7
this.Order.Price=1594,99, GetNewPrice()=1595
[0] Warning =&amp;gt; Order 789112913 doesn't have a state
this.Order.Price=1594,99, GetNewPrice()=1595
[0] None =&amp;gt; Quoting renewing order Buy with id 789112913 price 1594,99
volume 1 transaction 7
[0] None =&amp;gt; Quoting renewed order Buy with id 789112935 price 1594,99
volume 1 transaction 8
this.Order.Price=1594,99, GetNewPrice()=1595
[0] None =&amp;gt; Quoting renewing order Buy with id 789112935 price 1594,99
volume 1 transaction 8
[0] None =&amp;gt; Quoting renewed order Buy with id 789112948 price 1594,99
volume 1 transaction 9
this.Order.Price=1594,99, GetNewPrice()=1595
[0] Warning =&amp;gt; Order 789112948 doesn't have a state
this.Order.Price=1594,99, GetNewPrice()=1595
[0] Warning =&amp;gt; Order 789112948 doesn't have a state
this.Order.Price=1594,99, GetNewPrice()=1595&lt;/p&gt;
&lt;p&gt;и так далее, много-много раз
т.е. выставление купли происходит на тик хуже лучшего бида, а
поскольку оно не равно, то надо переставить... задать отступ не могу,
там только на чтение
// регистрируем на котирование
var strategy = new
my_MarketQuotingStrategy(base.Trader, order, base.Interval, false,
MarketPriceTypes.Following, new Unit());&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;           strategy.Start();
            base.ChildStrategies.Add(strategy);
&lt;/code&gt;&lt;/pre&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/1937/</id>
    <title type="text">Да, надо дописать в доку, что нужен стакан. Стакан полезнее просто лучший котировок потому что: 1) о...</title>
    <published>2010-03-13T16:17:00Z</published>
    <updated>2010-03-13T16:17:00Z</updated>
    <author>
      <name>Mikhail Sukhov</name>
      <uri>https://stocksharp.com/users/201/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Да, надо дописать в доку, что нужен стакан.&lt;/p&gt;
&lt;p&gt;Стакан полезнее просто лучший котировок потому что: 1) он быстрее 2)
котирование учитывает другие потоки, чтобы предотвратить борьбу между
ними. без стакана такое не вычислить.&lt;/p&gt;
&lt;p&gt;Не встречал такого... Попробуйте перегрузить метод IsNeedReRegister и
посмотреть, почему он так считает. Его текущая логика return
this.Order.Price != GetNewPrice();&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/1936/</id>
    <title type="text">квик-джуниор - рулит :) стакана вообще не было :) судя по описанию MarketQuotingStrategy можно было ...</title>
    <published>2010-03-13T15:49:00Z</published>
    <updated>2010-03-13T15:49:00Z</updated>
    <author>
      <name>denis</name>
      <uri>https://stocksharp.com/users/59/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;квик-джуниор - рулит :)&lt;/p&gt;
&lt;p&gt;стакана вообще не было :) судя по описанию MarketQuotingStrategy можно
было сделать не выходя за пределы таблицы &amp;quot;инструменты&amp;quot;, а вот с
другими стратегиями такой фокус не пройдет
теперь буду знать что нужен стакан и выводить нужно так&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;           private void StartDde()
            {
                    _isDdeStarted = true;
            _trader.StartDde();
            _trader.StartDde(mysec + &amp;quot; Котировки&amp;quot; );
            _trader.StartDde(&amp;quot;папир&amp;quot;);
            _trader.StartDde(&amp;quot;папир_фортс&amp;quot;);
            }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;а просто _trader.StartDde(lkoh); не идет, говорит что &amp;quot;окно LKOH не
найдено&amp;quot;&lt;/p&gt;
&lt;p&gt;сейчас переделал OnLog, там такое все разговорчивое оказывается
private void OnLog(Strategy strategy, StrategyErrorStates
errorState, string message)
{
// если стратегия вывела не просто сообщение, то вывести на экран.
//if (errorState != StrategyErrorStates.None)
//      this.Sync(() =&amp;gt; MessageBox.Show(this, message));
Console.WriteLine(&amp;quot;[{0}] {1} =&amp;gt; {2}&amp;quot;,
strategy.Id, errorState, message);
}&lt;/p&gt;
&lt;p&gt;[0] None =&amp;gt; Quoting new order Buy with id 788915243 price 1566,99
volume 1 transaction 76
[0] Warning =&amp;gt; Order 788915243 doesn't have a state
[0] None =&amp;gt; Quoting renewing order Buy with id 788915243 price 1566,99
volume 1 transaction 76
[0] None =&amp;gt; Quoting renewed order Buy with id 788915281 price 1566,99
volume 1 transaction 77
[0] Warning =&amp;gt; Order 788915281 doesn't have a state
[0] Warning =&amp;gt; Order 788915281 doesn't have a state
[0] Warning =&amp;gt; Order 788915281 doesn't have a state
[0] None =&amp;gt; Quoting renewing order Buy with id 788915281 price 1566,99
volume 1 transaction 77
[0] None =&amp;gt; Quoting renewed order Buy with id 788915320 price 1566,99
volume 1 transaction 78
[0] Warning =&amp;gt; Order 788915320 doesn't have a state
[0] Warning =&amp;gt; Order 788915320 doesn't have a state
[0] None =&amp;gt; Quoting renewing order Buy with id 788915320 price 1566,99
volume 1 transaction 78
[0] None =&amp;gt; Quoting renewed order Buy with id 788915341 price 1566,99
volume 1 transaction 79
[0] Warning =&amp;gt; Order 788915341 doesn't have a state
[0] Warning =&amp;gt; Order 788915341 doesn't have a state
[0] None =&amp;gt; Quoting renewing order Buy with id 788915341 price 1566,99
volume 1 transaction 79
[0] None =&amp;gt; Quoting renewed order Buy with id 788915367 price 1566,99
volume 1 transaction 80
[0] Warning =&amp;gt; Order 788915367 doesn't have a state
[0] Warning =&amp;gt; Order 788915367 doesn't have a state
[0] Warning =&amp;gt; Order 788915367 doesn't have a state
[0] Warning =&amp;gt; Order 788915367 doesn't have a state
[0] Warning =&amp;gt; Order 788915367 doesn't have a state
[0] None =&amp;gt; Quoting renewing order Buy with id 788915367 price 1566,99
volume 1 transaction 80
[0] None =&amp;gt; Quoting renewed order Buy with id 788915436 price 1566,99
volume 1 transaction 81
[0] Warning =&amp;gt; Order 788915436 doesn't have a state
[0] Warning =&amp;gt; Order 788915436 doesn't have a state
[0] None =&amp;gt; Quoting renewing order Buy with id 788915436 price 1566,99
volume 1 transaction 81
[0] None =&amp;gt; Quoting renewed order Buy with id 788915468 price 1566,99
volume 1 transaction 82
[0] Warning =&amp;gt; Order 788915468 doesn't have a state
[0] Warning =&amp;gt; Order 788915468 doesn't have a state
[0] None =&amp;gt; Quoting renewing order Buy with id 788915468 price 1566,99
volume 1 transaction 82
[0] None =&amp;gt; Quoting renewed order Buy with id 788915490 price 1566,99
volume 1 transaction 83
[0] Warning =&amp;gt; Order 788915490 doesn't have a state
[0] Warning =&amp;gt; Order 788915490 doesn't have a state
[0] None =&amp;gt; Quoting renewing order Buy with id 788915490 price 1566,99
volume 1 transaction 83
[0] None =&amp;gt; Quoting renewed order Buy with id 788915524 price 1566,99
volume 1 transaction 84
[0] None =&amp;gt; Quoting renewing order Buy with id 788915524 price 1566,99
volume 1 transaction 84
[0] None =&amp;gt; Quoting renewed order Buy with id 788915538 price 1566,99
volume 1 transaction 85
[0] Warning =&amp;gt; Order 788915538 doesn't have a state
[0] Warning =&amp;gt; Order 788915538 doesn't have a state
[0] Warning =&amp;gt; Order 788915538 doesn't have a state
[0] None =&amp;gt; Quoting renewing order Buy with id 788915538 price 1566,99
volume 1 transaction 85
[0] None =&amp;gt; Quoting renewed order Buy with id 788915562 price 1566,99
volume 1 transaction 86
[0] Warning =&amp;gt; Order 788915562 doesn't have a state
[0] None =&amp;gt; Quoting renewing order Buy with id 788915562 price 1566,99
volume 1 transaction 86
[0] None =&amp;gt; Quoting renewed order Buy with id 788915581 price 1566,99
volume 1 transaction 87
[0] Warning =&amp;gt; Order 788915581 doesn't have a state
[0] Warning =&amp;gt; Order 788915581 doesn't have a state
[0] None =&amp;gt; Quoting renewing order Buy with id 788915581 price 1566,99
volume 1 transaction 87&lt;/p&gt;
&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/1935/</id>
    <title type="text">Это говорит о том, что стакан пустой, и нет возможности его проанализировать. Котировки по ДДДЕ теку...</title>
    <published>2010-03-12T22:41:00Z</published>
    <updated>2010-03-12T22:41:00Z</updated>
    <author>
      <name>Mikhail Sukhov</name>
      <uri>https://stocksharp.com/users/201/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Это говорит о том, что стакан пустой, и нет возможности его
проанализировать. Котировки по ДДДЕ текут?&lt;/p&gt;
&lt;p&gt;Насчет перехвата, не совсем понял. Раз MessageBox выводится - значит
перехватывается. Думаю, через событие Strategy.Log&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/1934/</id>
    <title type="text">Сорри, отвечу по позднее. С ходу не могу понять. </title>
    <published>2010-03-12T18:06:00Z</published>
    <updated>2010-03-12T18:06:00Z</updated>
    <author>
      <name>Mikhail Sukhov</name>
      <uri>https://stocksharp.com/users/201/</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/1932/</id>
    <title type="text">СтокШарп 1,6 на примере симплСМА </title>
    <published>2010-03-12T13:23:00Z</published>
    <updated>2010-03-12T13:23:00Z</updated>
    <author>
      <name>denis</name>
      <uri>https://stocksharp.com/users/59/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;СтокШарп 1,6 на примере симплСМА&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/1931/</id>
    <title type="text">делаю так protected override bool OnProcess() { // если наша стратегия в процессе остановки if (base...</title>
    <published>2010-03-12T13:15:00Z</published>
    <updated>2010-03-12T13:15:00Z</updated>
    <author>
      <name>denis</name>
      <uri>https://stocksharp.com/users/59/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;делаю так
protected override bool OnProcess()
{
// если наша стратегия в процессе остановки
if (base.ProcessState == StrategyProcessStates.Stopping)
{
// отменяем стратегию
base.Orders.Where(o =&amp;gt; o.State ==
OrderStates.Active).ForEach(base.Trader.GuarantyCancelOrder);
return false;
}
var direction = OrderDirections.Buy;
base.Volume = 1;
var order = base.CreateOrder(direction,
base.Security.GetMarketPrice(direction, MarketPriceTypes.Following),
base.Volume);
// регистрируем на котирование
var strategy = new MarketQuotingStrategy(base.Trader,
order, base.Interval, false, MarketPriceTypes.Following, new Unit());
strategy.Start();
base.ChildStrategies.Add(strategy);&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;       return true;
        //end
    }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;собирается без ошибок, но при нажатии на кнопку &amp;quot;старт&amp;quot; выскакивает&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.google.com/leaf?id=0Bw2gQDvf41vtMzM3ZTAxMTktZjc5NC00NDY2LWI2NTktYTA5YzEyZDQ1MGRm&amp;amp;sort=name&amp;amp;layout=list&amp;amp;num=50" rel="nofollow" target="_blank"&gt;https://docs.google.com/leaf?id=0Bw2gQDvf41vtMzM3ZTAxMTktZjc5NC00NDY2LWI2NTktYTA5YzEyZDQ1MGRm&amp;amp;sort=name&amp;amp;layout=list&amp;amp;num=50&lt;/a&gt;&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>