﻿<?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/3020/zhivye-svechi/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-11T06:54:19Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=topic&amp;id=3020" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/posts/m/21451/</id>
    <title type="text">Trader.RegisterTrades(security); Не знаю как в коннекторе смарткома работает candleManager </title>
    <published>2012-09-20T08:19:26Z</published>
    <updated>2012-09-20T08:19:26Z</updated>
    <author>
      <name>OvcharenkoVI</name>
      <uri>https://stocksharp.com/users/390/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Trader.RegisterTrades(security);&lt;/p&gt;
&lt;p&gt;Не знаю как в коннекторе смарткома работает candleManager&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/21450/</id>
    <title type="text">OvcharenkoVI: candleManager.Processing += (series, candles) =&amp;gt; ;Блин, но почему-то у меня это событи...</title>
    <published>2012-09-20T07:42:28Z</published>
    <updated>2012-09-20T07:42:28Z</updated>
    <author>
      <name>topman</name>
      <uri>https://stocksharp.com/users/28590/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(21445)" rel="nofollow" target="_blank"&gt;OvcharenkoVI&lt;/a&gt;:&lt;/strong&gt;
candleManager.Processing += (series, candles) =&amp;gt; ;Блин, но почему-то у меня это событие происходит при каждой новой свечке, а не сделке..&lt;/p&gt;
&lt;/blockquote&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/21445/</id>
    <title type="text">candleManager.Processing += (series, candles) =&amp;gt; ; </title>
    <published>2012-09-19T20:09:05Z</published>
    <updated>2012-09-19T20:09:05Z</updated>
    <author>
      <name>OvcharenkoVI</name>
      <uri>https://stocksharp.com/users/390/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;candleManager.Processing += (series, candles) =&amp;gt; ;&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/21435/</id>
    <title type="text">Спасибо, нижняя часть действительно идея! Но проблема в том, что событие series.ProcessCandle вызыва...</title>
    <published>2012-09-19T13:36:31Z</published>
    <updated>2012-09-19T13:36:31Z</updated>
    <author>
      <name>topman</name>
      <uri>https://stocksharp.com/users/28590/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Спасибо, нижняя часть действительно идея!
Но проблема в том, что событие series.ProcessCandle вызывается только когда появляется новая свечка. Как сделать так, чтобы оно вызывалось при любом изменении?&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/21434/</id>
    <title type="text">series.ProcessCandle += candle =&amp;gt; { if(candle.State == CandleStates.Finished) { this.GuiAsync(() =&amp;gt; ...</title>
    <published>2012-09-19T13:02:53Z</published>
    <updated>2012-09-19T13:02:53Z</updated>
    <author>
      <name>OvcharenkoVI</name>
      <uri>https://stocksharp.com/users/390/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;series.ProcessCandle += candle =&amp;gt;
{
if(candle.State == CandleStates.Finished)
{
this.GuiAsync(() =&amp;gt; wnd.Chart.Candles.Add(candle));
}&lt;/p&gt;
&lt;p&gt;if(candle.State == CandleStates.Changed || candle.State == CandleStates.Started)
{
this.GuiAsync(() =&amp;gt;
{
wnd.Chart.Candles.RemoveAt(wnd.Chart.Candles.Count - 1);
wnd.Chart.Candles.Add(candle);
});
}
};&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/21433/</id>
    <title type="text">Господа, может кто подскажет, как правильно строить свечи real-time, чтобы последняя свеча изменялас...</title>
    <published>2012-09-19T12:32:10Z</published>
    <updated>2012-09-19T12:32:10Z</updated>
    <author>
      <name>topman</name>
      <uri>https://stocksharp.com/users/28590/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Господа, может кто подскажет, как правильно строить свечи real-time, чтобы последняя свеча изменялась при каждой сделке (как в терминалах)? Нигде в документации не нашел стандартных решений.
Вот к примеру есть событие&lt;/p&gt;
&lt;p&gt;series.ProcessCandle += candle =&amp;gt; this.GuiAsync(() =&amp;gt; wnd.Chart.Candles.Add(candle))&lt;/p&gt;
&lt;p&gt;оно отрабатывает только при появлении новой свечки. А есть метод отлавливать событие сделки, ну допустим _trader.NewTrades и функция перерисовки последней свечки?
ЗЫ. Маньячил пример SampleSmartCandles, ниче не придумал ((&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>