<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Polarized TRIN Oscillator</title>
	<atom:link href="http://www.thinkscripter.com/2009/03/26/polarized-trin-oscillator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thinkscripter.com/2009/03/26/polarized-trin-oscillator/</link>
	<description>Custom ThinkScript Indicator Scripts for thinkorswim</description>
	<lastBuildDate>Wed, 28 Jul 2010 12:44:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: ThinkScripter</title>
		<link>http://www.thinkscripter.com/2009/03/26/polarized-trin-oscillator/comment-page-1/#comment-1838</link>
		<dc:creator>ThinkScripter</dc:creator>
		<pubDate>Fri, 26 Mar 2010 12:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=867#comment-1838</guid>
		<description>Mike,
I think the &quot;User Contributions: Studies&quot; section in the forum would be a better place to post this but thanks for sharing regardless.
-Eric</description>
		<content:encoded><![CDATA[<p>Mike,<br />
I think the &#8220;User Contributions: Studies&#8221; section in the forum would be a better place to post this but thanks for sharing regardless.<br />
-Eric</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.thinkscripter.com/2009/03/26/polarized-trin-oscillator/comment-page-1/#comment-1837</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 26 Mar 2010 04:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=867#comment-1837</guid>
		<description># Bill Williams fractal indicator
# written by Mike Lapping
# 
# Make sure that you change the settings for this indicator so that it plots arrows 
# up for upfractal plots
# down for downfractal plots
#
# can be used and modified by anyone for any reason. do not sell.

def isupfractal;
def isdownfractal;

# Looking for high and low series of equalities
# checking for possible fractal formation

rec hicount =  if (high == high[1], hicount[1] + 1, 0);
# if the last bar high is the same as this bar&#039;s high, increment
# otherwise set false(0)

rec hivalid = if ((hicount[1] == 0 and hicount == 1 and high &gt; high[2] and high &gt; high[3]) or (hicount[1] and hicount and hivalid[1] ), 1, 0) ;
# set hivalid to true(1)
# if we are entering an equality series, check if the 2 bars preceding the first equal bar # are lower than the current bar
# or if the last bar was an equal bar and this bar is an equal bar and the current equal
# series is valid
# otherwise it is false 

rec locount  =  if (low == low[1], locount[1] + 1, 0);
rec lovalid = if ((locount[1] == 0 and locount == 1 and low &lt; low[2] and low  high[1] and high &gt; high[2])) and high &gt; high[-1] and high &gt; high[-2], high, 0);
# Ok this is complicated, basically its checking if there were a series of equal bars and
# if the two bars before the first equal bar were lower
# or if the last 2 bars were lower than the current bar
# and if the two following 2 bars are lower than the current bar

# Checking for a traditional or non-standard down fractal

isdownfractal = if(((locount and lovalid) or (low &lt; low[1] and low &lt; low[2])) and low &lt; low[-1] and low &lt; low[-2], low, 0);

plot upfractal = if( isupfractal, isupfractal + (15 * tickSize()), double.nan);

plot downfractal = if( isdownfractal, isdownfractal - (15 * tickSize()), double.nan);

# This business with the tickSize() function is basically putting the arrow further away
# from the bar so that the fractal is easier to read</description>
		<content:encoded><![CDATA[<p># Bill Williams fractal indicator<br />
# written by Mike Lapping<br />
#<br />
# Make sure that you change the settings for this indicator so that it plots arrows<br />
# up for upfractal plots<br />
# down for downfractal plots<br />
#<br />
# can be used and modified by anyone for any reason. do not sell.</p>
<p>def isupfractal;<br />
def isdownfractal;</p>
<p># Looking for high and low series of equalities<br />
# checking for possible fractal formation</p>
<p>rec hicount =  if (high == high[1], hicount[1] + 1, 0);<br />
# if the last bar high is the same as this bar&#8217;s high, increment<br />
# otherwise set false(0)</p>
<p>rec hivalid = if ((hicount[1] == 0 and hicount == 1 and high &gt; high[2] and high &gt; high[3]) or (hicount[1] and hicount and hivalid[1] ), 1, 0) ;<br />
# set hivalid to true(1)<br />
# if we are entering an equality series, check if the 2 bars preceding the first equal bar # are lower than the current bar<br />
# or if the last bar was an equal bar and this bar is an equal bar and the current equal<br />
# series is valid<br />
# otherwise it is false </p>
<p>rec locount  =  if (low == low[1], locount[1] + 1, 0);<br />
rec lovalid = if ((locount[1] == 0 and locount == 1 and low &lt; low[2] and low  high[1] and high &gt; high[2])) and high &gt; high[-1] and high &gt; high[-2], high, 0);<br />
# Ok this is complicated, basically its checking if there were a series of equal bars and<br />
# if the two bars before the first equal bar were lower<br />
# or if the last 2 bars were lower than the current bar<br />
# and if the two following 2 bars are lower than the current bar</p>
<p># Checking for a traditional or non-standard down fractal</p>
<p>isdownfractal = if(((locount and lovalid) or (low &lt; low[1] and low &lt; low[2])) and low &lt; low[-1] and low &lt; low[-2], low, 0);</p>
<p>plot upfractal = if( isupfractal, isupfractal + (15 * tickSize()), double.nan);</p>
<p>plot downfractal = if( isdownfractal, isdownfractal &#8211; (15 * tickSize()), double.nan);</p>
<p># This business with the tickSize() function is basically putting the arrow further away<br />
# from the bar so that the fractal is easier to read</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Spain</title>
		<link>http://www.thinkscripter.com/2009/03/26/polarized-trin-oscillator/comment-page-1/#comment-983</link>
		<dc:creator>Scott Spain</dc:creator>
		<pubDate>Tue, 13 Oct 2009 22:41:23 +0000</pubDate>
		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=867#comment-983</guid>
		<description>I was wondering if there was a Fractals indicator for TOS Thinkdesktop? This is the fractal indicator that Mark Stevenson was asking for. It is a standard indicator for the Metatrader 4 program. It is one of the main indicators for Bill Williams Alligator system. The way the indicator displays its results is with arrows above or below price bars.</description>
		<content:encoded><![CDATA[<p>I was wondering if there was a Fractals indicator for TOS Thinkdesktop? This is the fractal indicator that Mark Stevenson was asking for. It is a standard indicator for the Metatrader 4 program. It is one of the main indicators for Bill Williams Alligator system. The way the indicator displays its results is with arrows above or below price bars.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ThinkScripter</title>
		<link>http://www.thinkscripter.com/2009/03/26/polarized-trin-oscillator/comment-page-1/#comment-475</link>
		<dc:creator>ThinkScripter</dc:creator>
		<pubDate>Sun, 28 Jun 2009 18:56:16 +0000</pubDate>
		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=867#comment-475</guid>
		<description>Mark,
The PolarizedFractalEfficiency study already exists in TOS. IS this close to what you want?
Eric</description>
		<content:encoded><![CDATA[<p>Mark,<br />
The PolarizedFractalEfficiency study already exists in TOS. IS this close to what you want?<br />
Eric</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Stevenson</title>
		<link>http://www.thinkscripter.com/2009/03/26/polarized-trin-oscillator/comment-page-1/#comment-473</link>
		<dc:creator>Mark Stevenson</dc:creator>
		<pubDate>Sun, 28 Jun 2009 07:07:29 +0000</pubDate>
		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=867#comment-473</guid>
		<description>I&#039;m looking for a Fractal Indicator study for the TOS charts.  I believe it&#039;s a built-in study in MT4 but I don&#039;t use that package so it would be nice to have a similar indicator for TOS.  Have you seen one?</description>
		<content:encoded><![CDATA[<p>I&#8217;m looking for a Fractal Indicator study for the TOS charts.  I believe it&#8217;s a built-in study in MT4 but I don&#8217;t use that package so it would be nice to have a similar indicator for TOS.  Have you seen one?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
