<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Mirroring condition Could be eased inside the same indicator!!!]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/5286/" />
	<updated>2015-04-22T05:45:57Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/5286/mirroring-condition-could-be-eased-inside-the-same-indicator/</id>
		<entry>
			<title type="html"><![CDATA[Re: Mirroring condition Could be eased inside the same indicator!!!]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/28696/#p28696" />
			<content type="html"><![CDATA[<p>Use &quot;IndicatorLogic.The_indicator_is_higher_than_the_level_line&quot; or &quot;IndicatorLogic.The_indicator_is_lower_than_the_level_line&quot;</p><p>and give the level to the <strong>NoDirectionOscillatorLogic</strong>. It takes one level value.</p><div class="codebox"><pre><code>/// &lt;summary&gt;
///     Calculates the logic of a No Direction Oscillator.
/// &lt;/summary&gt;
/// &lt;param name=&quot;firstBar&quot;&gt;The first bar number.&lt;/param&gt;
/// &lt;param name=&quot;prvs&quot;&gt;To use the previous bar or not.&lt;/param&gt;
/// &lt;param name=&quot;adIndValue&quot;&gt;The indicator values.&lt;/param&gt;
/// &lt;param name=&quot;dLevel&quot;&gt;The Level value.&lt;/param&gt;
/// &lt;param name=&quot;indComp&quot;&gt;Indicator component where to save the results.&lt;/param&gt;
/// &lt;param name=&quot;indLogic&quot;&gt;The chosen logic.&lt;/param&gt;
/// &lt;returns&gt;True if everything is ok.&lt;/returns&gt;
protected void NoDirectionOscillatorLogic(int firstBar, int prvs, double[] adIndValue, double dLevel, ref IndicatorComp indComp, IndicatorLogic indLogic)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-04-22T05:45:57Z</updated>
			<id>https://forexsb.com/forum/post/28696/#p28696</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Mirroring condition Could be eased inside the same indicator!!!]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/28695/#p28695" />
			<content type="html"><![CDATA[<p>Another Question But using The Level Line :</p><p>If I need to Close both long and short at the same level line How it can be done?</p>]]></content>
			<author>
				<name><![CDATA[ahmedalhoseny]]></name>
				<uri>https://forexsb.com/forum/user/1512/</uri>
			</author>
			<updated>2015-04-22T04:54:11Z</updated>
			<id>https://forexsb.com/forum/post/28695/#p28695</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Mirroring condition Could be eased inside the same indicator!!!]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/28694/#p28694" />
			<content type="html"><![CDATA[<p>Fantastic <br />Thanks Pop</p>]]></content>
			<author>
				<name><![CDATA[ahmedalhoseny]]></name>
				<uri>https://forexsb.com/forum/user/1512/</uri>
			</author>
			<updated>2015-04-22T04:51:30Z</updated>
			<id>https://forexsb.com/forum/post/28694/#p28694</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Mirroring condition Could be eased inside the same indicator!!!]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/28693/#p28693" />
			<content type="html"><![CDATA[<p>See ADX code for example.<br />The only difference is that you use &quot;NoDirectionOscillatorLogic&quot; instead of &quot;OscillatorLogic&quot;</p><div class="codebox"><pre><code>// ADX rises equal signals in both directions!
NoDirectionOscillatorLogic(firstBar, previous, adx, level, ref Component[3], logicRule);
Component[4].Value = Component[3].Value;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-04-22T04:41:05Z</updated>
			<id>https://forexsb.com/forum/post/28693/#p28693</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Mirroring condition Could be eased inside the same indicator!!!]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/28692/#p28692" />
			<content type="html"><![CDATA[<p>Hello Pop <br />as we know the FSB built to make conditions are mirrored fro buy and sell signals !!! <br />BUT what if i want to buy in both conditions </p><p>Example : if RSI rise ............&gt; Buy &amp; RSI Falls .........&gt; Buy when both &gt; 70 level </p><p>Is that possible to be done inside one indicator !!!!!!</p><br /><div class="codebox"><pre><code>case &quot;RSI rises&quot;:
                    indLogic = IndicatorLogic.The_indicator_rises;
                    SpecialValues = new double[] {50};
                    break;

                case &quot;RSI falls&quot;:
                    indLogic = IndicatorLogic.The_indicator_falls;
                    SpecialValues = new double[] {50};
                    break;

                case &quot;RSI is higher than the Level line&quot;:
                    indLogic = IndicatorLogic.The_indicator_is_higher_than_the_level_line;
                    SpecialValues = new[] {dLevel, 100 - dLevel};
                    break;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ahmedalhoseny]]></name>
				<uri>https://forexsb.com/forum/user/1512/</uri>
			</author>
			<updated>2015-04-22T04:35:02Z</updated>
			<id>https://forexsb.com/forum/post/28692/#p28692</id>
		</entry>
</feed>
