<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[QUIK -> DDE &mdash; Получить sec_code при выборе бумаги в ТТТ.]]></title>
	<link rel="self" href="https://quik2dde.ru/extern.php?action=feed&amp;tid=442&amp;type=atom" />
	<updated>2023-10-19T17:33:16Z</updated>
	<generator>PunBB</generator>
	<id>https://quik2dde.ru/viewtopic.php?id=442</id>
		<entry>
			<title type="html"><![CDATA[Re: Получить sec_code при выборе бумаги в ТТТ.]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=4289#p4289" />
			<content type="html"><![CDATA[<p>-- индикатор что показывает sec_code<br />&nbsp; &nbsp;Settings = {<br /> Name = &quot;goodmode&quot;<br />}</p><p>function Init()<br />&nbsp; &nbsp; return 1<br />&nbsp; &nbsp;&nbsp; <br />end</p> <br /><br /><p>function OnCalculate(Index)<br />&nbsp; &nbsp;if Index == 1 then<br />&nbsp; &nbsp; &nbsp; local info = getDataSourceInfo();<br />&nbsp; &nbsp; &nbsp; message(info.sec_code)<br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;return 0<br />end</p><br /><p>Работает.&nbsp; Каким образом можно научить скрипт брать данные из этого индикатора? Нужно чтоб скрипт брал sec_code</p>]]></content>
			<author>
				<name><![CDATA[Alexey89]]></name>
				<uri>https://quik2dde.ru/profile.php?id=3408</uri>
			</author>
			<updated>2023-10-19T17:33:16Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=4289#p4289</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Получить sec_code при выборе бумаги в ТТТ.]]></title>
			<link rel="alternate" href="https://quik2dde.ru/viewtopic.php?pid=4288#p4288" />
			<content type="html"><![CDATA[<p>Код даже не выдает ошибок. Никакой реакции. Почему?&nbsp; Есть ли какой-нибудь вариант привязать getDataSourceInfo() к конкретному индикатору, что бы получать sec_code при выборе бумаги в ТТТ?&nbsp; </p><p>function OnCalculate(Index)<br />&nbsp; &nbsp;if Index == 1 then<br />&nbsp; &nbsp;local info = getDataSourceInfo();<br />&nbsp; &nbsp;message( info.sec_code )<br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;return 0<br />end</p>]]></content>
			<author>
				<name><![CDATA[Alexey89]]></name>
				<uri>https://quik2dde.ru/profile.php?id=3408</uri>
			</author>
			<updated>2023-10-19T11:30:24Z</updated>
			<id>https://quik2dde.ru/viewtopic.php?pid=4288#p4288</id>
		</entry>
</feed>
