<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[QUIK -> DDE &mdash; Ошибка при подсчёте спреда]]></title>
	<link rel="self" href="https://quik2dde.ru/extern.php?action=feed&amp;tid=29&amp;type=atom" />
	<updated>2013-01-18T03:11:03Z</updated>
	<generator>PunBB</generator>
	<id>https://quik2dde.ru/viewtopic.php?id=29</id>
		<entry>
			<title type="html"><![CDATA[Re: Ошибка при подсчёте спреда]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=83#p83" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mbul]]></name>
				<uri>https://quik2dde.ru/profile.php?id=89</uri>
			</author>
			<updated>2013-01-18T03:11:03Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=83#p83</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ошибка при подсчёте спреда]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=81#p81" />
			<content type="html"><![CDATA[<p>Меленький нюансик важен, оказывается:</p><p>.......<br />&nbsp; &nbsp; &nbsp; &nbsp; message (<strong>tostring(</strong>spread<strong>)</strong>, 1)<br />.......</p>]]></content>
			<author>
				<name><![CDATA[swerg]]></name>
				<uri>https://quik2dde.ru/profile.php?id=78</uri>
			</author>
			<updated>2013-01-17T16:57:48Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=81#p81</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Ошибка при подсчёте спреда]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=79#p79" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Kosmonavt]]></name>
				<uri>https://quik2dde.ru/profile.php?id=79</uri>
			</author>
			<updated>2013-01-15T17:52:57Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=79#p79</id>
		</entry>
</feed>
