<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forex Software — forcing base price change the indicator calculations]]></title>
		<link>https://forexsb.com/forum/topic/6040/forcing-base-price-change-the-indicator-calculations/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/6040/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in forcing base price change the indicator calculations.]]></description>
		<lastBuildDate>Sat, 21 May 2016 18:38:03 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: forcing base price change the indicator calculations]]></title>
			<link>https://forexsb.com/forum/post/36020/#p36020</link>
			<description><![CDATA[<p>See my previous post!</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Sat, 21 May 2016 18:38:03 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/36020/#p36020</guid>
		</item>
		<item>
			<title><![CDATA[Re: forcing base price change the indicator calculations]]></title>
			<link>https://forexsb.com/forum/post/36019/#p36019</link>
			<description><![CDATA[<p>and here is the indicator after modification</p>]]></description>
			<author><![CDATA[null@example.com (ahmedalhoseny)]]></author>
			<pubDate>Sat, 21 May 2016 18:34:05 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/36019/#p36019</guid>
		</item>
		<item>
			<title><![CDATA[Re: forcing base price change the indicator calculations]]></title>
			<link>https://forexsb.com/forum/post/36018/#p36018</link>
			<description><![CDATA[<p>The indicator is the original Moving average</p>]]></description>
			<author><![CDATA[null@example.com (ahmedalhoseny)]]></author>
			<pubDate>Sat, 21 May 2016 18:32:15 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/36018/#p36018</guid>
		</item>
		<item>
			<title><![CDATA[Re: forcing base price change the indicator calculations]]></title>
			<link>https://forexsb.com/forum/post/36016/#p36016</link>
			<description><![CDATA[<p>Your code is correct. </p><p>I may help you with the code if you attach both indicators. </p><p>I can only suppose that you haven;t changed the &quot;Calculate&quot; method correspondingly.</p><p>The original code is:</p><div class="codebox"><pre><code>        public override void Calculate(IDataSet dataSet)
        {
            DataSet = dataSet;

            // Reading the parameters
            BasePrice basePrice = (BasePrice)IndParam.ListParam[2].Index;</code></pre></div><p>It will not work with your modification because it will covert the index 0 to BasePrice.Open.</p><p>You have to change the code to that:</p><div class="codebox"><pre><code>        public override void Calculate(IDataSet dataSet)
        {
            DataSet = dataSet;

            // Reading the parameters
            BasePrice basePrice = BasePrice.Close;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Sat, 21 May 2016 17:26:48 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/36016/#p36016</guid>
		</item>
		<item>
			<title><![CDATA[Re: forcing base price change the indicator calculations]]></title>
			<link>https://forexsb.com/forum/post/36010/#p36010</link>
			<description><![CDATA[<p>I think you need to keep index as in the original. And forcing comes easier when you do it in the calc block, why waste time with a parameter window? But the latter is only my opinion.</p>]]></description>
			<author><![CDATA[null@example.com (footon)]]></author>
			<pubDate>Sat, 21 May 2016 09:22:51 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/36010/#p36010</guid>
		</item>
		<item>
			<title><![CDATA[forcing base price change the indicator calculations]]></title>
			<link>https://forexsb.com/forum/post/36008/#p36008</link>
			<description><![CDATA[<p>Hello Pop <br />When trying to force MA indicator to use only close it gives me different calculations from the normal use of baseprice (close) !!!!!!</p><p>The original code :<br /></p><div class="codebox"><pre><code>IndParam.ListParam[2].Caption = &quot;Base price&quot;;
            IndParam.ListParam[2].ItemList = Enum.GetNames(typeof (BasePrice));
            IndParam.ListParam[2].Index = (int) BasePrice.Close;
            IndParam.ListParam[2].Text = IndParam.ListParam[2].ItemList[IndParam.ListParam[2].Index];
            IndParam.ListParam[2].Enabled = true;
            IndParam.ListParam[2].ToolTip = &quot;The price Moving Average is based on.&quot;;</code></pre></div><p>The modified code :<br /></p><div class="codebox"><pre><code> IndParam.ListParam[2].Caption = &quot;Base price&quot;;
            IndParam.ListParam[2].ItemList = new[] { &quot;Close&quot; };
            IndParam.ListParam[2].Index = 0;
            IndParam.ListParam[2].Text = IndParam.ListParam[2].ItemList[IndParam.ListParam[2].Index];
            IndParam.ListParam[2].Enabled = true;
            IndParam.ListParam[2].ToolTip = &quot;The price the central Moving Average is based on.&quot;;</code></pre></div><p>logically they should plot identical lines but it didnot happen !!!!</p>]]></description>
			<author><![CDATA[null@example.com (ahmedalhoseny)]]></author>
			<pubDate>Sat, 21 May 2016 03:50:32 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/36008/#p36008</guid>
		</item>
	</channel>
</rss>
