<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[QUIK -> DDE &mdash; Ошибка при подсчёте спреда]]></title>
		<link>https://quik2dde.ru/viewtopic.php?id=29</link>
		<atom:link href="https://quik2dde.ru/extern.php?action=feed&amp;tid=29&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Ошибка при подсчёте спреда».]]></description>
		<lastBuildDate>Fri, 18 Jan 2013 03:11:03 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Ошибка при подсчёте спреда]]></title>
			<link>https://quik2dde.ru/viewtopic.php?pid=83#p83</link>
			<description><![CDATA[<p>Этот момент отражен в документации.<br />как вариант можно сделать примерно так:<br />old_message = message<br />message = &nbsp; &nbsp; function (str, type)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type = type or 3</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return old_message(tostring(str), type)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end</p><p>file = nil</p><p>...<br />тогда начинают работать такие варианты:<br />message(&quot;123&quot;, 1)<br />message(&quot;123&quot;)<br />message(123)</p>]]></description>
			<author><![CDATA[null@example.com (mbul)]]></author>
			<pubDate>Fri, 18 Jan 2013 03:11:03 +0000</pubDate>
			<guid>https://quik2dde.ru/viewtopic.php?pid=83#p83</guid>
		</item>
		<item>
			<title><![CDATA[Re: Ошибка при подсчёте спреда]]></title>
			<link>https://quik2dde.ru/viewtopic.php?pid=81#p81</link>
			<description><![CDATA[<p>Меленький нюансик важен, оказывается:</p><p>.......<br />&nbsp; &nbsp; &nbsp; &nbsp; message (<strong>tostring(</strong>spread<strong>)</strong>, 1)<br />.......</p>]]></description>
			<author><![CDATA[null@example.com (swerg)]]></author>
			<pubDate>Thu, 17 Jan 2013 16:57:48 +0000</pubDate>
			<guid>https://quik2dde.ru/viewtopic.php?pid=81#p81</guid>
		</item>
		<item>
			<title><![CDATA[Ошибка при подсчёте спреда]]></title>
			<link>https://quik2dde.ru/viewtopic.php?pid=79#p79</link>
			<description><![CDATA[<p>Подскажите пожалуйста, почему не работает такой код. Он запускается и ничего не происходит. Желаемые сообщения не появляются.</p><br /><p>is_run = true</p><p>function main()<br />&nbsp; &nbsp; while is_run do<br />&nbsp; &nbsp; &nbsp; &nbsp; sleep(50)<br />&nbsp; &nbsp; end;<br />end</p><p>function OnStop()<br />&nbsp; &nbsp; is_run = false<br />end</p><p>function OnParam(class, sec)<br />&nbsp; &nbsp; if class ==&quot;SPBFUT&quot; and sec ==&quot;RIH3&quot; then<br />&nbsp; &nbsp; &nbsp; &nbsp; bid=getParamEx(class, sec, &quot;bid&quot;).param_value<br />&nbsp; &nbsp; &nbsp; &nbsp; offer=getParamEx(class, sec, &quot;offer&quot;).param_value<br />&nbsp; &nbsp; &nbsp; &nbsp; spread=offer-bid<br />&nbsp; &nbsp; &nbsp; &nbsp; message (spread, 1)<br />&nbsp; &nbsp; end</p><p>end</p>]]></description>
			<author><![CDATA[null@example.com (Kosmonavt)]]></author>
			<pubDate>Tue, 15 Jan 2013 17:52:57 +0000</pubDate>
			<guid>https://quik2dde.ru/viewtopic.php?pid=79#p79</guid>
		</item>
	</channel>
</rss>
