<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Форум QUIK [тема: Le,kbhjdfybt]</title>
		<link>http://forum.quik.ru</link>
		<description>Новое в теме Le,kbhjdfybt форума  на сайте Форум QUIK [forum.quik.ru]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Mon, 20 Apr 2026 16:28:13 +0300</pubDate>
		<item>
			<title>Le,kbhjdfybt</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum1/message39595/topic4721/">Le,kbhjdfybt</a></b> в форуме <a href="http://forum.quik.ru/forum1/">Система QUIK</a>. <br />
			К сожалению не увидел как исправить заголовок сообщения. Если возможно - исправьте на &quot;Дублирование исторических данных&quot; <br />
			<i>06.09.2019 23:27:45, Сергей.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum1/message39595/topic4721/</link>
			<guid>http://forum.quik.ru/messages/forum1/message39595/topic4721/</guid>
			<pubDate>Fri, 06 Sep 2019 23:27:45 +0300</pubDate>
			<category>Система QUIK</category>
		</item>
		<item>
			<title>Le,kbhjdfybt</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum1/message39594/topic4721/">Le,kbhjdfybt</a></b> в форуме <a href="http://forum.quik.ru/forum1/">Система QUIK</a>. <br />
			Подписался на источник данных, установил тайм-фрейм месяц и прошёл по списку инструментов. Что выяснилось - у некоторых инструментов есть свечи, имеющие разные индексы (id), но с одной и той же датой и РАЗНЫМ содержимым:<br /><br />Подписываюсь и читаю исторические данные следующим образом:<br />
====code====
<pre>SECURITIES&#91;scode&#93;&#91;tf&#93;.DS, _error&nbsp;&nbsp;&nbsp;= CreateDataSource('TQBR', scode, tf_value)

SECURITIES&#91;scode&#93;&#91;tf&#93;.LastBarIndex = SECURITIES&#91;scode&#93;&#91;tf&#93;.DS:Size()
for i = 1, SECURITIES&#91;scode&#93;&#91;tf&#93;.LastBarIndex-1 do
&nbsp;&nbsp;&nbsp;FillTableRow(SECURITIES, scode, tf, i)
end

функция FillTableRow - просто выводит в таблицу данные:

function FillTableRowCandles(SECURITIES, scode, tf, index)
&nbsp;&nbsp;&nbsp;tmp = InsertRow(t_id_IND, -1)
&nbsp;&nbsp;&nbsp;SetCell(t_id_IND, tmp,&nbsp;&nbsp;0, string.format("%04d-%02d-%02d %02d:%02d:%02d",
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SECURITIES&#91;scode&#93;&#91;tf&#93;.DS:T(index).year, SECURITIES&#91;scode&#93;&#91;tf&#93;.DS:T(index).month, SECURITIES&#91;scode&#93;&#91;tf&#93;.DS:T(index).day,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SECURITIES&#91;scode&#93;&#91;tf&#93;.DS:T(index).hour, SECURITIES&#91;scode&#93;&#91;tf&#93;.DS:T(index).min, SECURITIES&#91;scode&#93;&#91;tf&#93;.DS:T(index).sec))
&nbsp;&nbsp;&nbsp;SetCell(t_id_IND, tmp, 1, tostring(scode))
&nbsp;&nbsp;&nbsp;SetCell(t_id_IND, tmp, 2, 'TQBR')
&nbsp;&nbsp;&nbsp;SetCell(t_id_IND, tmp, 3, tostring(tf))
&nbsp;&nbsp;&nbsp;SetCell(t_id_IND, tmp, 4, tostring(index), index)
&nbsp;&nbsp;&nbsp;SetCell(t_id_IND, tmp, 5, tostring(SECURITIES&#91;scode&#93;&#91;tf&#93;.DS:O(index)))
&nbsp;&nbsp;&nbsp;SetCell(t_id_IND, tmp, 6, tostring(SECURITIES&#91;scode&#93;&#91;tf&#93;.DS:L(index)))
&nbsp;&nbsp;&nbsp;SetCell(t_id_IND, tmp, 7, tostring(SECURITIES&#91;scode&#93;&#91;tf&#93;.DS:H(index)))
&nbsp;&nbsp;&nbsp;SetCell(t_id_IND, tmp, 8, tostring(SECURITIES&#91;scode&#93;&#91;tf&#93;.DS:C(index)))
&nbsp;&nbsp;&nbsp;SetCell(t_id_IND, tmp, 9, tostring(SECURITIES&#91;scode&#93;&#91;tf&#93;.DS:V(index)))
end
</pre>
=============
<br />Вот даты с дублями (что характерно они все на тайм-фрейме месяц, хотя я подписываюсь и на другие тайм-фреймы):<br /><br />│ 2007-03-01 00:00:00 │ GAZP &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-03-01 00:00:00 │ SNGS &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-02-01 00:00:00 │ IMOEX &nbsp;│ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-03-01 00:00:00 │ PLZL &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-03-01 00:00:00 │ GMKN &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-02-01 00:00:00 │ LKOH &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-03-01 00:00:00 │ SNGSP &nbsp;│ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-02-01 00:00:00 │ NVTK &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-03-01 00:00:00 │ ROSN &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-02-01 00:00:00 │ TATN &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-03-01 00:00:00 │ SBER &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-03-01 00:00:00 │ LKOH &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-02-01 00:00:00 │ SBER &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-02-01 00:00:00 │ ROSN &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-03-01 00:00:00 │ TATN &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-02-01 00:00:00 │ SNGSP &nbsp;│ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-03-01 00:00:00 │ NVTK &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-02-01 00:00:00 │ GMKN &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-02-01 00:00:00 │ PLZL &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-02-01 00:00:00 │ GAZP &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-02-01 00:00:00 │ SNGS &nbsp; │ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br />│ 2007-03-01 00:00:00 │ IMOEX &nbsp;│ MN1 │ &nbsp; &nbsp; &nbsp; 2 │<br /><br />Примеры дублей (для первой строки GAZP):<br /><br />
====code====
<pre>┌────dt_date─┬─────────dt_datetime─┬─symbol─┬─class─┬─tf──┬──open─┬───low─┬───high─┬──close─┬────volume─┐
│ 2007-03-01 │ 2007-03-01 00:00:00 │ GAZP&nbsp;&nbsp; │ TQBR&nbsp;&nbsp;│ MN1 │&nbsp;&nbsp; 266 │&nbsp;&nbsp; 249 │&nbsp;&nbsp;270.4 │ 256.42 │&nbsp;&nbsp; 7683639 │
│ 2007-03-01 │ 2007-03-01 00:00:00 │ GAZP&nbsp;&nbsp; │ TQBR&nbsp;&nbsp;│ MN1 │ 258.5 │ 239.8 │ 277.45 │ 270.87 │ 108418206 │</pre>
=============
первая запись - свеча №15, вторая запись - свеча №17. На графике данные второй свечи (17), но перебор по данным источника находит именно две свечи. Квик - 8.0.5.2<br /><br />Возможно ли проверить у вас корректность получаемых исторических данных на этом же таймфрейме и по этим инструментам?<br /><br />С уважением, Сергей. <br />
			<i>06.09.2019 23:18:38, Сергей.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum1/message39594/topic4721/</link>
			<guid>http://forum.quik.ru/messages/forum1/message39594/topic4721/</guid>
			<pubDate>Fri, 06 Sep 2019 23:18:38 +0300</pubDate>
			<category>Система QUIK</category>
		</item>
	</channel>
</rss>
