<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Форум QUIK [тема: Текущей остаток в depo_limits]</title>
		<link>http://forum.quik.ru</link>
		<description>Новое в теме Текущей остаток в depo_limits форума  на сайте Форум QUIK [forum.quik.ru]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Sun, 03 May 2026 17:54:06 +0300</pubDate>
		<item>
			<title>Текущей остаток в depo_limits</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message74393/topic8512/">Текущей остаток в depo_limits</a></b> <i>Текущей остаток в depo_limits</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<a class="blog-p-user-name" id="bp_DMraMXQ0" href="/user/16439/" bx-tooltip-user-id="16439">Evgen</a>, добрый день.<br /><br />По Вашему обращению обнаружили ошибку в работе терминала, которая позволяет с помощью QLua получить технологические позиции с limit_kind=-2000001.<br /><br />В одной из очередных версий ПО мы устраним данную ошибку, пока же рекомендуем просто игнорировать такие позиции (например, для корректной работы скрипта можно проверять, что limit_kind позиции не равен указанному значению).<br /><br />Приносим извинения за причиненные неудобства. <br />
			<i>19.02.2024 05:21:52, Anton Belonogov.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message74393/topic8512/</link>
			<guid>http://forum.quik.ru/messages/forum10/message74393/topic8512/</guid>
			<pubDate>Mon, 19 Feb 2024 05:21:52 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Текущей остаток в depo_limits</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message74376/topic8512/">Текущей остаток в depo_limits</a></b> <i>Текущей остаток в depo_limits</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<a class="blog-p-user-name" id="bp_0ZKSarW1" href="/user/15542/" bx-tooltip-user-id="15542">Anton Belonogov</a>, опять перестало работать, <br />====quote====<br /><a class="blog-p-user-name" id="bp_TXtv0Rbu" href="/user/15542/" bx-tooltip-user-id="15542">Anton Belonogov</a> написал:<br /><noindex><a href="/user/16439/" target="_blank" rel="nofollow">Evgen</a></noindex>, добрый день.<br /><br />Рекомендуем проверить работу более простого кода, например: 
====code====
<pre>&nbsp;&nbsp;n Size&nbsp;&nbsp; =&nbsp;&nbsp; getNumberOf ( "depo_limits" )

 if&nbsp;&nbsp;n Size&nbsp;&nbsp;~ =&nbsp;&nbsp; nil&nbsp;&nbsp; then 
&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;&nbsp;i&nbsp;&nbsp;=&nbsp;&nbsp; 0 , n Size&nbsp;&nbsp; -&nbsp;&nbsp; 1&nbsp;&nbsp; do 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; local&nbsp;&nbsp;depo_limit&nbsp;&nbsp;=&nbsp;&nbsp; getItem ( "depo_limits" , i)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if&nbsp;&nbsp;depo_limit ~ =&nbsp;&nbsp; nil&nbsp;&nbsp; then 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message ( string.format ( "SEC_CODE=%s, CURRENTBAL=%d" , depo_limit.sec_code, depo_limit.currentbal))
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end 
&nbsp;&nbsp;&nbsp;&nbsp;end 
 end&nbsp;&nbsp; </pre>
=============
 &nbsp; &nbsp;Если этот код также не вернет корректные значения текущих позиций, просим Вас сообщить используемую версию Рабочего места QUIK. &nbsp;В противном случае стоит искать ошибку в других используемых функциях.<br /> &nbsp;<br />=============<br />выводит 2 сообщения 10 и 0[FILE ID=11819] <br />
			<img src="https://forum.quik.ru/bitrix/components/bitrix/forum.interface/show_file.php?fid=11819&" width="2919" height="484" /><br /><i>16.02.2024 11:00:29, Evgen.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message74376/topic8512/</link>
			<guid>http://forum.quik.ru/messages/forum10/message74376/topic8512/</guid>
			<pubDate>Fri, 16 Feb 2024 11:00:29 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Текущей остаток в depo_limits</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message74375/topic8512/">Текущей остаток в depo_limits</a></b> <i>Текущей остаток в depo_limits</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<a class="blog-p-user-name" id="bp_PDAzQnys" href="/user/15542/" bx-tooltip-user-id="15542">Anton Belonogov</a>, Спасибо большое, всё работает, вчера не работало. <br />
			<i>16.02.2024 10:15:50, Evgen.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message74375/topic8512/</link>
			<guid>http://forum.quik.ru/messages/forum10/message74375/topic8512/</guid>
			<pubDate>Fri, 16 Feb 2024 10:15:50 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Текущей остаток в depo_limits</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message74368/topic8512/">Текущей остаток в depo_limits</a></b> <i>Текущей остаток в depo_limits</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<a class="blog-p-user-name" id="bp_b4zlRN7E" href="/user/16439/" bx-tooltip-user-id="16439">Evgen</a>, добрый день.<br /><br />Рекомендуем проверить работу более простого кода, например:
====code====
<pre>nSize = getNumberOf("depo_limits")

if nSize ~= nil then
&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;for i = 0, nSize - 1 do
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;local depo_limit = getItem("depo_limits", i)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if depo_limit ~= nil then
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message(string.format("SEC_CODE=%s, CURRENTBAL=%d", depo_limit.sec_code, depo_limit.currentbal))
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end
&nbsp;&nbsp;&nbsp;end
end</pre>
=============
<p></p><p>Если этот код также не вернет корректные значения текущих позиций, просим Вас сообщить используемую версию Рабочего места QUIK.</p><p>В противном случае стоит искать ошибку в других используемых функциях.<br /> </p> <br />
			<i>16.02.2024 06:49:30, Anton Belonogov.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message74368/topic8512/</link>
			<guid>http://forum.quik.ru/messages/forum10/message74368/topic8512/</guid>
			<pubDate>Fri, 16 Feb 2024 06:49:30 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Текущей остаток в depo_limits</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message74365/topic8512/">Текущей остаток в depo_limits</a></b> <i>Текущей остаток в depo_limits</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Здравствуйте уважаемые господа, я новичок в программирование, только познаю. Подскажите пожалуйста, как вывести текущую позицию акций в таблицу с depo_limits. В futures_client_holding всё работает.<br /><br />function PosNowFunc(secCode,acc) &nbsp; &nbsp; &nbsp; <br />local nSize = getNumberOf(&quot;depo_limits&quot;) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp;if (nSize~=nil)then<br /> &nbsp; &nbsp; &nbsp; &nbsp;local lot = tonumber(getParamEx(Class, Emit, &#39;LOTSIZE&#39;).param_value)<br /> &nbsp; &nbsp; &nbsp; &nbsp;for i = 0, nSize-1 do<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;local depo_limit = getItem(&quot;depo_limits&quot;,i)<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(depo_limit~=nil<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;and depo_limit.sec_code == secCode<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;and depo_limit.trdaccid == acc)<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;then &nbsp; &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--message(&quot;LOT&quot;)<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return &nbsp;math.floor(depo_limit.currentbal/lot) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--math.floor(depo_limit.currentbal) &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--tonumber(depo_limit.currentbal/lot)<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--depo_limit.currentbal<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--depo_limit.sec_code<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /> &nbsp; &nbsp; &nbsp; &nbsp;end<br /> &nbsp; &nbsp;end<br /> &nbsp; &nbsp;return 0<br /><br />Если вставить depo_limit.sec_code, выводит код инструмента, но &nbsp;с depo_limit.currentbal не выводит текущей позиции. Подскажете пожалуйста. где ошибка. <br />
			<img src="https://forum.quik.ru/bitrix/components/bitrix/forum.interface/show_file.php?fid=11817&" width="2903" height="1476" /><br /><img src="https://forum.quik.ru/bitrix/components/bitrix/forum.interface/show_file.php?fid=11818&" width="2865" height="1514" /><br /><i>16.02.2024 00:13:29, Evgen.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message74365/topic8512/</link>
			<guid>http://forum.quik.ru/messages/forum10/message74365/topic8512/</guid>
			<pubDate>Fri, 16 Feb 2024 00:13:29 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
	</channel>
</rss>
