<?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; Данные для робота за последние 5 свечей с объемами]]></title>
		<link>https://quik2dde.ru/viewtopic.php?id=141</link>
		<atom:link href="https://quik2dde.ru/extern.php?action=feed&amp;tid=141&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Данные для робота за последние 5 свечей с объемами».]]></description>
		<lastBuildDate>Wed, 01 Apr 2015 10:18:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Данные для робота за последние 5 свечей с объемами]]></title>
			<link>https://quik2dde.ru/viewtopic.php?pid=1203#p1203</link>
			<description><![CDATA[<div class="codebox"><pre><code>local tag = &quot;SBER&quot;--идентификатор графика
local t, _, _ = getCandlesByIndex (tag, 0, getNumCandles(tag) - 5, 5)
local v1 = t[0].volume
local v2 = t[1].volume
local v3 = t[2].volume
local v4 = t[3].volume
local v5 = t[4].volume
local msg = v1..&quot;\n&quot;..v2..&quot;\n&quot;..v3..&quot;\n&quot;..v4..&quot;\n&quot;..v5
message (msg,2)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (kalikazandr)]]></author>
			<pubDate>Wed, 01 Apr 2015 10:18:59 +0000</pubDate>
			<guid>https://quik2dde.ru/viewtopic.php?pid=1203#p1203</guid>
		</item>
		<item>
			<title><![CDATA[Данные для робота за последние 5 свечей с объемами]]></title>
			<link>https://quik2dde.ru/viewtopic.php?pid=1107#p1107</link>
			<description><![CDATA[<p>Всем здравствуйте! Подскажите как в lua прописать такие же данные за последние 5 свечей и прследних 5 объемов, как в qpile?</p><p>Вот так прописано в qpile:</p><p>volume1=0<br />volume2=0<br />volume3=0<br />volume4=0<br />volume5=0</p><p>volume1=get_collection_item(volume_col,1)+0<br />volume2=get_collection_item(volume_col,2)+0<br />volume3=get_collection_item(volume_col,3)+0<br />volume4=get_collection_item(volume_col,4)+0<br />volume5=get_collection_item(volume_col,5)+0</p><p>Low0=get_collection_item(low_col,0)+0<br />High0=get_collection_item(high_col,0)+0</p><p>Open1=get_collection_item(open_col,1)+0<br />Close1=get_collection_item(close_col,1)+0<br />Low1=get_collection_item(low_col,1)+0<br />High1=get_collection_item(high_col,1)+0</p><p>Open2=get_collection_item(open_col,2)+0<br />Close2=get_collection_item(close_col,2)+0<br />Low2=get_collection_item(low_col,2)+0<br />High2=get_collection_item(high_col,2)+0</p><p>Open3=get_collection_item(open_col,3)+0<br />Close3=get_collection_item(close_col,3)+0<br />Low3=get_collection_item(low_col,3)+0<br />High3=get_collection_item(high_col,3)+0</p><p>Open4=get_collection_item(open_col,4)+0<br />Close4=get_collection_item(close_col,4)+0<br />Low4=get_collection_item(low_col,4)+0<br />High4=get_collection_item(high_col,4)+0</p><p>Open5=get_collection_item(open_col,5)+0<br />Close5=get_collection_item(close_col,5)+0<br />Low5=get_collection_item(low_col,5)+0<br />High5=get_collection_item(high_col,5)+0</p><p>А вот пока есть данные за последние две свечи и два последних объма. Как еще дописать три свечи и три объма в lua?</p><p>Вот пока что есть: </p><p>self.volume1=tonumber(self.PriceSeries[1].volume)<br />self.volume2=tonumber(self.PriceSeries[0].volume)</p><br /><p>self.CurClose1=tonumber(self.PriceSeries[1].close)<br />self.CurOpen1=tonumber(self.PriceSeries[1].open)<br />self.CurLow1=tonumber(self.PriceSeries[1].low)<br />self.CurHigh1=tonumber(self.PriceSeries[1].high)</p><p>self.CurClose2=tonumber(self.PriceSeries[0].close)<br />self.CurOpen2=tonumber(self.PriceSeries[0].open)<br />self.CurLow2=tonumber(self.PriceSeries[0].low)<br />self.CurHigh2=tonumber(self.PriceSeries[0].high)</p><br /><p>Пожаловаться на это сообщение Удалить сообщение</p>]]></description>
			<author><![CDATA[null@example.com (fintrader)]]></author>
			<pubDate>Mon, 09 Mar 2015 13:40:58 +0000</pubDate>
			<guid>https://quik2dde.ru/viewtopic.php?pid=1107#p1107</guid>
		</item>
	</channel>
</rss>
