<?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: My Experience with MetaTrader 5 Indicator Coding</title>
	<atom:link href="http://www.earnforex.com/blog/2009/10/my-experience-with-metatrader-5-indicator-coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.earnforex.com/blog/2009/10/my-experience-with-metatrader-5-indicator-coding/</link>
	<description>My Forex experience and some Forex related information that might be useful to other traders</description>
	<lastBuildDate>Sat, 11 Feb 2012 18:14:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Andrei</title>
		<link>http://www.earnforex.com/blog/2009/10/my-experience-with-metatrader-5-indicator-coding/comment-page-1/#comment-168086</link>
		<dc:creator>Andrei</dc:creator>
		<pubDate>Wed, 24 Feb 2010 20:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.earnforex.com/blog/?p=1810#comment-168086</guid>
		<description>If you want to execute it in the indicator then it&#039;s easy. You have OnCalculate() handler there, it receives High, Low, Close and Open arrays as parameters (just read the helpfile for the exact details). Then in the code you can use High[1] and High[2] the same as in MQL4. Just remember to convert the array to timeseries with ArraySetAsSeries(High, true) if you want the same order of the elements as in MQL4.</description>
		<content:encoded><![CDATA[<p>If you want to execute it in the indicator then it&#8217;s easy. You have OnCalculate() handler there, it receives High, Low, Close and Open arrays as parameters (just read the helpfile for the exact details). Then in the code you can use High[1] and High[2] the same as in MQL4. Just remember to convert the array to timeseries with ArraySetAsSeries(High, true) if you want the same order of the elements as in MQL4.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FX_Trader_Pro</title>
		<link>http://www.earnforex.com/blog/2009/10/my-experience-with-metatrader-5-indicator-coding/comment-page-1/#comment-168037</link>
		<dc:creator>FX_Trader_Pro</dc:creator>
		<pubDate>Wed, 24 Feb 2010 10:51:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.earnforex.com/blog/?p=1810#comment-168037</guid>
		<description>Hi, just read your blog, was hoping you could answer a very very simple question. I know there is a conversion mqh file for the timeseries, but how can you write in the MQL5 proper way the following ?

If High[1]&gt;High[2]    ????

Dumb question i know, but although I am experienced in MQL4 I have found no information on how to do the umtost basic stuff in MQL5

Hope you will spare a 1 minute to answer that.

thx</description>
		<content:encoded><![CDATA[<p>Hi, just read your blog, was hoping you could answer a very very simple question. I know there is a conversion mqh file for the timeseries, but how can you write in the MQL5 proper way the following ?</p>
<p>If High[1]&gt;High[2]    ????</p>
<p>Dumb question i know, but although I am experienced in MQL4 I have found no information on how to do the umtost basic stuff in MQL5</p>
<p>Hope you will spare a 1 minute to answer that.</p>
<p>thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrei</title>
		<link>http://www.earnforex.com/blog/2009/10/my-experience-with-metatrader-5-indicator-coding/comment-page-1/#comment-163263</link>
		<dc:creator>Andrei</dc:creator>
		<pubDate>Mon, 04 Jan 2010 16:18:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.earnforex.com/blog/?p=1810#comment-163263</guid>
		<description>Maybe there coders that do such conversion for money, but I don&#039;t know any. You may want to wait for the MT5 do be out of beta testing. Perhaps, MetaQuotes will offer some more or less automatic tool for that.</description>
		<content:encoded><![CDATA[<p>Maybe there coders that do such conversion for money, but I don&#8217;t know any. You may want to wait for the MT5 do be out of beta testing. Perhaps, MetaQuotes will offer some more or less automatic tool for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rado Radik</title>
		<link>http://www.earnforex.com/blog/2009/10/my-experience-with-metatrader-5-indicator-coding/comment-page-1/#comment-163259</link>
		<dc:creator>Rado Radik</dc:creator>
		<pubDate>Mon, 04 Jan 2010 15:04:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.earnforex.com/blog/?p=1810#comment-163259</guid>
		<description>I dont know manually convert indicators from mq4 to mq5. Can I send mq4 files somewhere it will be converted?</description>
		<content:encoded><![CDATA[<p>I dont know manually convert indicators from mq4 to mq5. Can I send mq4 files somewhere it will be converted?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrei</title>
		<link>http://www.earnforex.com/blog/2009/10/my-experience-with-metatrader-5-indicator-coding/comment-page-1/#comment-163185</link>
		<dc:creator>Andrei</dc:creator>
		<pubDate>Sun, 03 Jan 2010 19:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.earnforex.com/blog/?p=1810#comment-163185</guid>
		<description>Only manually.</description>
		<content:encoded><![CDATA[<p>Only manually.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rado Radik</title>
		<link>http://www.earnforex.com/blog/2009/10/my-experience-with-metatrader-5-indicator-coding/comment-page-1/#comment-163184</link>
		<dc:creator>Rado Radik</dc:creator>
		<pubDate>Sun, 03 Jan 2010 19:43:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.earnforex.com/blog/?p=1810#comment-163184</guid>
		<description>Hello! How Can I convert my favorites mq4 indicators to mq5 indicators?</description>
		<content:encoded><![CDATA[<p>Hello! How Can I convert my favorites mq4 indicators to mq5 indicators?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrei</title>
		<link>http://www.earnforex.com/blog/2009/10/my-experience-with-metatrader-5-indicator-coding/comment-page-1/#comment-155531</link>
		<dc:creator>Andrei</dc:creator>
		<pubDate>Sun, 25 Oct 2009 08:05:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.earnforex.com/blog/?p=1810#comment-155531</guid>
		<description>Yeah, this is quite unusual after MQL4 to see the latest bar as rates_total, while the oldest bar is always number 0. That&#039;s why I had to use ArraySetAsSeries(Close, false); to properly convert and correlate close prices of the bars with the bars of the indicator.</description>
		<content:encoded><![CDATA[<p>Yeah, this is quite unusual after MQL4 to see the latest bar as rates_total, while the oldest bar is always number 0. That&#8217;s why I had to use ArraySetAsSeries(Close, false); to properly convert and correlate close prices of the bars with the bars of the indicator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.earnforex.com/blog/2009/10/my-experience-with-metatrader-5-indicator-coding/comment-page-1/#comment-155512</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 25 Oct 2009 01:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.earnforex.com/blog/?p=1810#comment-155512</guid>
		<description>Nice coding.  I don&#039;t understand why they have made the default arrays non- time series (ie latest bar is rates_total).  It seems more intuitive to write code with latest bar = shift 0.  If you look at fai&#039;s excellent MQL4-&gt;MQL5 porting table in http://forum.mql4.com/, he suggests converting CLose[] etc using SetAsTimeSeries in OnCalculate.

The other point is that MT5 already has iMA etc coded, but it&#039;s quite tricky to use these with the CopyBuffer command.  The MACD example shows one approach.</description>
		<content:encoded><![CDATA[<p>Nice coding.  I don&#8217;t understand why they have made the default arrays non- time series (ie latest bar is rates_total).  It seems more intuitive to write code with latest bar = shift 0.  If you look at fai&#8217;s excellent MQL4-&gt;MQL5 porting table in <a href="http://forum.mql4.com/" rel="nofollow">http://forum.mql4.com/</a>, he suggests converting CLose[] etc using SetAsTimeSeries in OnCalculate.</p>
<p>The other point is that MT5 already has iMA etc coded, but it&#8217;s quite tricky to use these with the CopyBuffer command.  The MACD example shows one approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter M.</title>
		<link>http://www.earnforex.com/blog/2009/10/my-experience-with-metatrader-5-indicator-coding/comment-page-1/#comment-155307</link>
		<dc:creator>Peter M.</dc:creator>
		<pubDate>Fri, 23 Oct 2009 15:02:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.earnforex.com/blog/?p=1810#comment-155307</guid>
		<description>Thanks Andrei, i see the blue and green line on the H4 timeframe and up.</description>
		<content:encoded><![CDATA[<p>Thanks Andrei, i see the blue and green line on the H4 timeframe and up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrei</title>
		<link>http://www.earnforex.com/blog/2009/10/my-experience-with-metatrader-5-indicator-coding/comment-page-1/#comment-155301</link>
		<dc:creator>Andrei</dc:creator>
		<pubDate>Fri, 23 Oct 2009 13:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.earnforex.com/blog/?p=1810#comment-155301</guid>
		<description>It adds two other lines shifted vertically by percentage value - one above the MA line, other - below MA line. You may be not noticing it because of the low timeframe, try D1.</description>
		<content:encoded><![CDATA[<p>It adds two other lines shifted vertically by percentage value &#8211; one above the MA line, other &#8211; below MA line. You may be not noticing it because of the low timeframe, try D1.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

