<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Форум QUIK [тема: CreateDataSource]</title>
		<link>http://forum.quik.ru</link>
		<description>Новое в теме CreateDataSource форума  на сайте Форум QUIK [forum.quik.ru]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Wed, 22 Apr 2026 23:16:18 +0300</pubDate>
		<item>
			<title>CreateDataSource</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message37380/topic4435/">CreateDataSource</a></b> <i>получение данных свечи</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Большое СПАСИБО ! разобрался <br />
			<i>10.04.2019 11:55:32, Дмитрий.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message37380/topic4435/</link>
			<guid>http://forum.quik.ru/messages/forum10/message37380/topic4435/</guid>
			<pubDate>Wed, 10 Apr 2019 11:55:32 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>CreateDataSource</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message37371/topic4435/">CreateDataSource</a></b> <i>получение данных свечи</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<br />====quote====<br /> local High = ds:H(1)<br />		 &nbsp; local Low = ds:L(1)<br />=============<br />Нумерация свечки начинается слева. Их загрузится 2-3тыс. <br />Для получения текущей надо
====code====
<pre>&nbsp;&nbsp;&nbsp;&nbsp;Size = ds:Size();
&nbsp;&nbsp;&nbsp;&nbsp;T = ds:T(Size);
&nbsp;&nbsp;&nbsp;&nbsp;O = ds:O(Size);
&nbsp;&nbsp;&nbsp;&nbsp;H = ds:H(Size);
&nbsp;&nbsp;&nbsp;&nbsp;L = ds:L(Size);
&nbsp;&nbsp;&nbsp;&nbsp;C = ds:C(Size);</pre>
============= <br />
			<i>09.04.2019 23:13:30, Игорь Б.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message37371/topic4435/</link>
			<guid>http://forum.quik.ru/messages/forum10/message37371/topic4435/</guid>
			<pubDate>Tue, 09 Apr 2019 23:13:30 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>CreateDataSource</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message37370/topic4435/">CreateDataSource</a></b> <i>получение данных свечи</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Добрый вечер!<br />Помогите пожалуйста, при попытке получить данные последней закрытой свечи (открытие, хай, лоу, закрытие) выдаются "левые" данные. Код скрипта и картинка с выводимыми данными ниже: <br /><br />is_run = true<br /><br />-- присванивание переменным начальных базовых значений торгового алгоритма<br /><br />Account = "SPBFUT000oy" &nbsp; &nbsp; &nbsp; -- торговый счет<br />Class_Code = "SPBFUT" &nbsp; &nbsp; &nbsp; &nbsp; -- класс инструмента<br />Sec_Code = "SiM9" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- код инструмента<br />TF = INTERVAL_M15 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- таймфрейм<br /><br /><br />function main()<br /><br /> &nbsp; &nbsp;-- подписываемся на получение данных свечей по инструменту в массив ds &nbsp;<br />	ds=CreateDataSource(Class_Code, Sec_Code, TF)	<br />	ds:SetEmptyCallback() &nbsp;<br />	<br /> &nbsp; &nbsp;while is_run do<br /> &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; sleep(1000) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- обрабатываем цикл с задержкой 1сек. <br />		 &nbsp; 		 &nbsp;<br />		 &nbsp; local High = ds:H(1)<br />		 &nbsp; local Low = ds:L(1)<br />			<br />		message("Low = "..(Low).."\n".."High = "..(High)	,1)<br />		<br />		 &nbsp;<br /> &nbsp; &nbsp;end<br />end <br /><br />-----------<br />function OnStop()		<br /> &nbsp; &nbsp; is_run = false										<br /><br />	 ds:Close() <br />end<br /><br />подскажите, что я делаю не так? <br />
			<img src="https://forum.quik.ru/bitrix/components/bitrix/forum.interface/show_file.php?fid=5832&" width="676" height="398" /><br /><i>09.04.2019 21:34:30, Дмитрий.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message37370/topic4435/</link>
			<guid>http://forum.quik.ru/messages/forum10/message37370/topic4435/</guid>
			<pubDate>Tue, 09 Apr 2019 21:34:30 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
	</channel>
</rss>
