<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Форум QUIK [тема: Как брать цену расчёта заявки автоматически ?]</title>
		<link>http://forum.quik.ru</link>
		<description>Новое в теме Как брать цену расчёта заявки автоматически ? форума  на сайте Форум QUIK [forum.quik.ru]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Thu, 23 Apr 2026 09:26:08 +0300</pubDate>
		<item>
			<title>Как брать цену расчёта заявки автоматически ?</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message8360/topic902/">Как брать цену расчёта заявки автоматически ?</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Добрый день,<br /><br />Николай, автор скрипта наверное сможет Вам изменить логику скрипта. <br />Обратитесь к нему. <br />
			<i>07.09.2015 12:00:46, Egor Zaytsev.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message8360/topic902/</link>
			<guid>http://forum.quik.ru/messages/forum10/message8360/topic902/</guid>
			<pubDate>Mon, 07 Sep 2015 12:00:46 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Как брать цену расчёта заявки автоматически ?</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message8329/topic902/">Как брать цену расчёта заявки автоматически ?</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			НА САЙТЕ - &nbsp;<noindex><a href="http://robostroy.ru/community/article.aspx?id=773" target="_blank" rel="nofollow">http://robostroy.ru/community/article.aspx?id=773</a></noindex><br />Есть скрипт робота выставляющего заявки, но что бы он выставил нужные заявки перед запуском нужно указать цену к примеру &nbsp;price=1995 и уже потом скрипт рассчитывает цену заявок.<br />Нельзя ли переделать скрипт так что бы не писать каждый раз новую цену что бы выставить новые заявки. А что бы робот сам брал цену (или последнюю рыночную или &nbsp;рассчитывал &nbsp;выставление заявок от бида или аска или "Цены последней сделки") которые существуют в данный момент запуска? <br /><br />Вот текст этого скрипта:<br /><br />price=1988<br /><br />for v=1,5,1 do<br /><br /> &nbsp; &nbsp; &nbsp;--покупка<br /><br /> &nbsp; &nbsp; &nbsp;t = {<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"CLASSCODE"&#93;="TQBR",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"SECCODE"&#93;="LKOH",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"ACTION"&#93;="NEW_ORDER",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"ACCOUNT"&#93;="L01-00000F00",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"CLIENT_CODE"&#93;="52134",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"TYPE"&#93;="L",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"OPERATION"&#93;="B",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"QUANTITY"&#93;="1",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"PRICE"&#93;=tostring(price-v*3),<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"TRANS_ID"&#93;="1"<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /><br /> &nbsp; &nbsp; &nbsp;res=sendTransaction(t)<br /><br /> &nbsp; &nbsp; &nbsp;message(res,1)<br /><br /> &nbsp; &nbsp; &nbsp;--продажа<br /><br /> &nbsp; &nbsp; &nbsp;t = {<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"CLASSCODE"&#93;="TQBR",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"SECCODE"&#93;="LKOH",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"ACTION"&#93;="NEW_ORDER",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"ACCOUNT"&#93;="L01-00000F00",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"CLIENT_CODE"&#93;="52134",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"TYPE"&#93;="L",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"OPERATION"&#93;="S",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"QUANTITY"&#93;="1",<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"PRICE"&#93;=tostring(price+v*3),<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;"TRANS_ID"&#93;="1"<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /><br /> &nbsp; &nbsp; &nbsp;res=sendTransaction(t)<br /><br /> &nbsp; &nbsp; &nbsp;message(res,1)<br /><br /> end <br />
			<i>05.09.2015 14:55:45, Николай Колесников.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message8329/topic902/</link>
			<guid>http://forum.quik.ru/messages/forum10/message8329/topic902/</guid>
			<pubDate>Sat, 05 Sep 2015 14:55:45 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
	</channel>
</rss>
