<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forex Software — Definition of 'rising']]></title>
		<link>https://forexsb.com/forum/topic/2878/definition-of-rising/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/2878/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Definition of 'rising'.]]></description>
		<lastBuildDate>Fri, 23 Dec 2011 17:18:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Definition of 'rising']]></title>
			<link>https://forexsb.com/forum/post/11967/#p11967</link>
			<description><![CDATA[<div class="codebox"><pre><code>protected bool OscillatorLogic(int iFirstBar, int iPrvs, double[] adIndValue, double dLevelLong, double dLevelShort, ref IndicatorComp indCompLong, ref IndicatorComp indCompShort, IndicatorLogic indLogic)
        {
            double dSigma = Sigma();
 
            switch (indLogic)
            {
                case IndicatorLogic.The_indicator_rises:
                    for (int iBar = iFirstBar; iBar &lt; Bars; iBar++)
                    {
                        int  iCurrBar  = iBar - iPrvs;
                        int  iBaseBar  = iCurrBar - 1;
                        bool bIsHigher = adIndValue[iCurrBar] &gt; adIndValue[iBaseBar];
 
                        if (!isDescreteValues)  // Aroon oscillator uses bIsDescreteValues = true
                        {
                            bool bNoChange = true;
                            while (Math.Abs(adIndValue[iCurrBar] - adIndValue[iBaseBar]) &lt; dSigma &amp;&amp; bNoChange &amp;&amp; iBaseBar &gt; iFirstBar)
                            {
                                bNoChange = (bIsHigher == (adIndValue[iBaseBar + 1] &gt; adIndValue[iBaseBar]));
                                iBaseBar--;
                            }
                        }
 
                        indCompLong.Value[iBar]  = adIndValue[iBaseBar] &lt; adIndValue[iCurrBar] - dSigma ? 1 : 0;
                        indCompShort.Value[iBar] = adIndValue[iBaseBar] &gt; adIndValue[iCurrBar] + dSigma ? 1 : 0;
                    }
                    break;
 
                case IndicatorLogic.The_indicator_falls:
                    for (int iBar = iFirstBar; iBar &lt; Bars; iBar++)
                    {
                        int  iCurrBar  = iBar - iPrvs;
                        int  iBaseBar  = iCurrBar - 1;
                        bool bIsHigher = adIndValue[iCurrBar] &gt; adIndValue[iBaseBar];
 
                        if (!isDescreteValues)  // Aroon oscillator uses bIsDescreteValues = true
                        {
                            bool bNoChange = true;
                            while (Math.Abs(adIndValue[iCurrBar] - adIndValue[iBaseBar]) &lt; dSigma &amp;&amp; bNoChange &amp;&amp; iBaseBar &gt; iFirstBar)
                            {
                                bNoChange = (bIsHigher == (adIndValue[iBaseBar + 1] &gt; adIndValue[iBaseBar]));
                                iBaseBar--;
                            }
                        }
 
                        indCompLong.Value[iBar]  = adIndValue[iBaseBar] &gt; adIndValue[iCurrBar] + dSigma ? 1 : 0;
                        indCompShort.Value[iBar] = adIndValue[iBaseBar] &lt; adIndValue[iCurrBar] - dSigma ? 1 : 0;
                    }
                    break;</code></pre></div><p>I&#039;ve experienced that FSB&#039;s MACD and MT&#039;s MACD are not matching indis, before you made your test did you make sure you were comparing apples to apples?</p>]]></description>
			<author><![CDATA[null@example.com (footon)]]></author>
			<pubDate>Fri, 23 Dec 2011 17:18:26 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/11967/#p11967</guid>
		</item>
		<item>
			<title><![CDATA[Definition of 'rising']]></title>
			<link>https://forexsb.com/forum/post/11965/#p11965</link>
			<description><![CDATA[<p>Hello,</p><p>what does the term rising in the description of the opening logic of some indicators exactly mean?</p><p>I&#039;m trying to verify the backtesting results of FSB by backtesting with the same data converted as fxt-files (and therefore tick data) with the mt4 backtester. </p><p>I backtested the following simple strategy:</p><p>entry: bar opening + macd histogram (exponential, close, simple, 26, 12, 9) rising <br />exit: with bar closing + macd histogram falling</p><p>Now I try to implement this with MQL Editor and defined rising/falling as a positive/negative difference to the last MACD histogram value.<br />example mql4 code: <br />last_macd=iMACD(Symbol(), 0, 12, 26, 9, PRICE_CLOSE, MODE_MAIN, 1);</p><p>The results differ very much from the results in FSB concerning entry and exits of the trades. So I need to know how you define rising and falling.</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (Peter83)]]></author>
			<pubDate>Fri, 23 Dec 2011 16:56:15 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/11965/#p11965</guid>
		</item>
	</channel>
</rss>
