<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ThinkScripter &#187; polarized</title>
	<atom:link href="http://www.thinkscripter.com/tag/polarized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thinkscripter.com</link>
	<description>thinkScript Indicators for thinkorswim</description>
	<lastBuildDate>Mon, 06 Sep 2010 19:13:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Polarized TRIN Oscillator</title>
		<link>http://www.thinkscripter.com/indicator/polarized-trin-oscillator/</link>
		<comments>http://www.thinkscripter.com/indicator/polarized-trin-oscillator/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 23:44:14 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[oscillator]]></category>
		<category><![CDATA[polarized]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[TRIN]]></category>

		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=867</guid>
		<description><![CDATA[Experimental polarized oscillator using the average value of the TRIN and TRINQ. The oscillator has been inverted so that a rising oscillator line is indicative of rising prices vice the way the actual TRIN works. <a href="http://www.thinkscripter.com/indicator/polarized-trin-oscillator/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been messing with the TRIN as of late and crafted this polarized oscillator using the average value of the TRIN and TRINQ. The oscillator has been inverted so that a rising oscillator line is indicative of rising prices vice the way the actual TRIN works. I&#8217;d have to classify this one as experimental so feel free to hack away and post your modified version in the comments. I&#8217;ll be creating a user submissions page over the weekend and look forward to posting some of your best scripts!</p>
<div id="attachment_869" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/03/polarizedtrin.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/03/polarizedtrin.png" alt="Polarized TRIN Oscillator" title="polarizedtrin" class="size-full wp-image-869" /></a><p class="wp-caption-text">Polarized TRIN Oscillator</p></div>
<pre class="brush: thinkscript;">
# POLARIZEDTRINOSCILLATOR
# (c) 2009 http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 26 MAR 2009

declare lower;

input length = 9;
input EMA_period = 5;

def trin = close(&quot;$TRIN&quot;);
def trinq = close(&quot;$TRIN/Q&quot;);

def aveTrin = (trin+trinq)/2;

def fractal = sqrt(power(aveTrin-aveTrin[length],2)+100);
def incremental = sqrt(power(aveTrin-aveTrin[1],2)+1);
def sum = sum(incremental,length);

def resultant = if aveTrin-aveTrin[length] &gt; 0 then round((fractal/sum)*100) else round(-(fractal/sum)*100);

def polarizedTrin = if resultant == 0 then 1 else resultant;
plot PTO = expAverage(-polarizedTrin, EMA_period);
PTO.setDefaultColor(color.yellow);

plot zeroline = 0.0;
zeroline.setDefaultColor(color.white);
plot plusLine =75;
plusLine.setDefaultColor(color.cyan);
plot minusLine = -75;
minusLine.setDefaultColor(color.cyan);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/polarized-trin-oscillator/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
