<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Gap Indicator]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/3226/" />
	<updated>2012-04-17T00:58:25Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/3226/gap-indicator/</id>
		<entry>
			<title type="html"><![CDATA[Re: Gap Indicator]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/13965/#p13965" />
			<content type="html"><![CDATA[<p>This would be a useful indicator to check the data with . Since the markets are 24 hours then any gap more than a few pips might be indicative of an error in the data, except over the weekends.</p>]]></content>
			<author>
				<name><![CDATA[SpiderMan]]></name>
				<uri>https://forexsb.com/forum/user/4094/</uri>
			</author>
			<updated>2012-04-17T00:58:25Z</updated>
			<id>https://forexsb.com/forum/post/13965/#p13965</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Gap Indicator]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/13958/#p13958" />
			<content type="html"><![CDATA[<p>Gap indicator measures the gap between current open price and previous bar close price.<br />If the gap is greater than a Minimum Gap, the indicator rises a signal.</p><p>There are two logical rules.<br /> - &quot;Positive Gap&quot; - rises buy signal if the gap is positive and sell signal if the gap is negative.<br /> - &quot;Negative Gap&quot; - rises sell signal if the gap is positive and buy signal if the gap is negative.</p><p>Formula:<br /></p><div class="codebox"><pre><code>// Positive Gap logic
if (Open[bar] &gt; Close[bar - 1] + minGap) 
    longSignals[bar] = 1;
if (Open[bar] &lt; Close[bar - 1] - minGap) 
    shortSignals[bar] = 1;

// Negative Gap logic
if (Open[bar] &lt; Close[bar - 1] - minGap) 
    longSignals[bar] = 1;
if (Open[bar] &gt; Close[bar - 1] + minGap) 
    shortSignals[bar] = 1;</code></pre></div><p>Screenshot:<br /><span class="postimg"><img src="http://i.imgur.com/LXSgi.png" alt="http://i.imgur.com/LXSgi.png" /></span></p><p>Possible use:<br /><span class="postimg"><img src="http://i.imgur.com/toyvq.png" alt="http://i.imgur.com/toyvq.png" /></span></p><p>Indicator is attached below:</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2012-04-16T11:30:06Z</updated>
			<id>https://forexsb.com/forum/post/13958/#p13958</id>
		</entry>
</feed>
