<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Novelties of the MQL5 language</title>
	<atom:link href="http://mqlmagazine.com/mql-programming/novelties-of-the-mql5-language/feed/" rel="self" type="application/rss+xml" />
	<link>http://mqlmagazine.com/mql-programming/novelties-of-the-mql5-language/</link>
	<description>All things MetaTrader</description>
	<lastBuildDate>Fri, 27 Jan 2012 16:37:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michal</title>
		<link>http://mqlmagazine.com/mql-programming/novelties-of-the-mql5-language/comment-page-1/#comment-1054</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Sun, 18 Jul 2010 10:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://mqlmagazine.com/?p=93#comment-1054</guid>
		<description>Best* regards :)</description>
		<content:encoded><![CDATA[<p>Best* regards <img src='http://mqlmagazine.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://mqlmagazine.com/mql-programming/novelties-of-the-mql5-language/comment-page-1/#comment-1053</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Sun, 18 Jul 2010 09:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://mqlmagazine.com/?p=93#comment-1053</guid>
		<description>Thank You very much for Your answer!
I think i&#039;m much closer to understend that. 
I have to check that in a program yet but i think it will be o.k. :).
Examples and programming are the most important to really understand :P so i have to just try :P
I hope it will be easy :D and it the same way for scripts, indicators and EA.

Your Regards
Michal</description>
		<content:encoded><![CDATA[<p>Thank You very much for Your answer!<br />
I think i&#8217;m much closer to understend that.<br />
I have to check that in a program yet but i think it will be o.k. <img src='http://mqlmagazine.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .<br />
Examples and programming are the most important to really understand <img src='http://mqlmagazine.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  so i have to just try <img src='http://mqlmagazine.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
I hope it will be easy <img src='http://mqlmagazine.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  and it the same way for scripts, indicators and EA.</p>
<p>Your Regards<br />
Michal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bogdan Caramalac, MQLmagazine sr.editor</title>
		<link>http://mqlmagazine.com/mql-programming/novelties-of-the-mql5-language/comment-page-1/#comment-1042</link>
		<dc:creator>Bogdan Caramalac, MQLmagazine sr.editor</dc:creator>
		<pubDate>Sat, 17 Jul 2010 22:27:07 +0000</pubDate>
		<guid isPermaLink="false">http://mqlmagazine.com/?p=93#comment-1042</guid>
		<description>Hi Michal,

Well, it is your option whether you declare or not arrays so big. Thing is, you have to declare at least one-element array.
To get what you want, which is not prices, rather history access, you need to use the &lt;strong&gt;CopyRates()&lt;/strong&gt; function.
For that, you have to declare an &lt;strong&gt;MqlRates&lt;/strong&gt; array. The MqlRates is a structure itself containg high, low, close prices etc.
So when you get info with CopyRates you get them all in a single array.

CopyRates disregards the &quot;as series&quot; setup of your array. It will begin with the latest bar on the nth-1 position in the array, and will continue to the oldest bar which will be on 0 position in the array. Run this script for instance on a chart of your choice:

void OnStart()
  {
   MqlRates Rates[3];
   ArraySetAsSeries(Rates,false); //set it to true also and retry
   CopyRates(Symbol(),Period(),0,3,Rates);
   Print(&quot;Close[0]=&quot;,Rates[0].close,&quot; Open[0]=&quot;,Rates[0].open);
   Print(&quot;Close[1]=&quot;,Rates[1].close,&quot; Open[1]=&quot;,Rates[1].open);
   Print(&quot;Close[2]=&quot;,Rates[2].close,&quot; Open[2]=&quot;,Rates[2].open);
  }

Check all the syntaxes of CopyRates - it also allows selection based on dates, not only bar indexes.</description>
		<content:encoded><![CDATA[<p>Hi Michal,</p>
<p>Well, it is your option whether you declare or not arrays so big. Thing is, you have to declare at least one-element array.<br />
To get what you want, which is not prices, rather history access, you need to use the <strong>CopyRates()</strong> function.<br />
For that, you have to declare an <strong>MqlRates</strong> array. The MqlRates is a structure itself containg high, low, close prices etc.<br />
So when you get info with CopyRates you get them all in a single array.</p>
<p>CopyRates disregards the &#8220;as series&#8221; setup of your array. It will begin with the latest bar on the nth-1 position in the array, and will continue to the oldest bar which will be on 0 position in the array. Run this script for instance on a chart of your choice:</p>
<p>void OnStart()<br />
  {<br />
   MqlRates Rates[3];<br />
   ArraySetAsSeries(Rates,false); //set it to true also and retry<br />
   CopyRates(Symbol(),Period(),0,3,Rates);<br />
   Print(&#8220;Close[0]=&#8221;,Rates[0].close,&#8221; Open[0]=&#8221;,Rates[0].open);<br />
   Print(&#8220;Close[1]=&#8221;,Rates[1].close,&#8221; Open[1]=&#8221;,Rates[1].open);<br />
   Print(&#8220;Close[2]=&#8221;,Rates[2].close,&#8221; Open[2]=&#8221;,Rates[2].open);<br />
  }</p>
<p>Check all the syntaxes of CopyRates &#8211; it also allows selection based on dates, not only bar indexes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://mqlmagazine.com/mql-programming/novelties-of-the-mql5-language/comment-page-1/#comment-1041</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Sat, 17 Jul 2010 20:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://mqlmagazine.com/?p=93#comment-1041</guid>
		<description>Hi,
Could somebody explain me and other beginner programers how to get to price in MQL5? I mean in MQL4 it&#039;s for example Open[5], Close[100], High[0] etc. But i dont understand new system which is in MQL5 :/. If i think correct i have to create array something like double Open[1000]; and than save prices in this variables? -&gt; plz help :)
I will very gratefull for some example step by step.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Could somebody explain me and other beginner programers how to get to price in MQL5? I mean in MQL4 it&#8217;s for example Open[5], Close[100], High[0] etc. But i dont understand new system which is in MQL5 :/. If i think correct i have to create array something like double Open[1000]; and than save prices in this variables? -&gt; plz help <img src='http://mqlmagazine.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I will very gratefull for some example step by step.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

