<?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/indicator/polarized-trin-oscillator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thinkscripter.com/indicator/polarized-trin-oscillator/</link>
	<description>thinkScript Indicators for thinkorswim</description>
	<lastBuildDate>Fri, 03 Feb 2012 20:01:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: ThinkScripter</title>
		<link>http://www.thinkscripter.com/indicator/polarized-trin-oscillator/#comment-713</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-713</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/indicator/polarized-trin-oscillator/#comment-712</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-712</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/indicator/polarized-trin-oscillator/#comment-711</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-711</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/indicator/polarized-trin-oscillator/#comment-710</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-710</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/indicator/polarized-trin-oscillator/#comment-709</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-709</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>
	<item>
		<title>By: Curtis White</title>
		<link>http://www.thinkscripter.com/indicator/polarized-trin-oscillator/#comment-708</link>
		<dc:creator>Curtis White</dc:creator>
		<pubDate>Tue, 07 Apr 2009 19:03:37 +0000</pubDate>
		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=867#comment-708</guid>
		<description>Here are my complete modifications.  This adds a histogram fill and  plots a dot when TRIN &gt;= 0 as explained above.

plot histogramFill = PTO;
histoGramFill.SetPaintingStrategy(paintingStrategy.Histogram);
histoGramFill.SetDefaultColor(color.green);
histoGramFill.SetLineWeight(3);

plot zeroCross = if PTO &gt;= 0 then 0 else double.nan;
zeroCross.SetPaintingStrategy(paintingStrategy.points);</description>
		<content:encoded><![CDATA[<p>Here are my complete modifications.  This adds a histogram fill and  plots a dot when TRIN &gt;= 0 as explained above.</p>
<p>plot histogramFill = PTO;<br />
histoGramFill.SetPaintingStrategy(paintingStrategy.Histogram);<br />
histoGramFill.SetDefaultColor(color.green);<br />
histoGramFill.SetLineWeight(3);</p>
<p>plot zeroCross = if PTO &gt;= 0 then 0 else double.nan;<br />
zeroCross.SetPaintingStrategy(paintingStrategy.points);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis White</title>
		<link>http://www.thinkscripter.com/indicator/polarized-trin-oscillator/#comment-703</link>
		<dc:creator>Curtis White</dc:creator>
		<pubDate>Thu, 02 Apr 2009 04:08:10 +0000</pubDate>
		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=867#comment-703</guid>
		<description>Thanks for this script! Check my blog for my own version TICK indicator.

Here is a modification that I made that plots a DOT on the zero line for any time the TRIN is ABOVE 0 &quot;bullish&quot; and no dot when not plotted.  The way this is to be used is NOT as a trade system but as a way of saying OKAY should I be more or less bullish.  You have to wait until next bar is plotted for confirmation.  So basically you want to look for shorts when no dots and buys when dots.

plot zeroCross = if PTO &gt;= 0 then 0 else double.nan;
zeroCross.SetPaintingStrategy(paintingStrategy.points);

Put this on base study (behind graph) and hide everything else except zero line.</description>
		<content:encoded><![CDATA[<p>Thanks for this script! Check my blog for my own version TICK indicator.</p>
<p>Here is a modification that I made that plots a DOT on the zero line for any time the TRIN is ABOVE 0 &#8220;bullish&#8221; and no dot when not plotted.  The way this is to be used is NOT as a trade system but as a way of saying OKAY should I be more or less bullish.  You have to wait until next bar is plotted for confirmation.  So basically you want to look for shorts when no dots and buys when dots.</p>
<p>plot zeroCross = if PTO &gt;= 0 then 0 else double.nan;<br />
zeroCross.SetPaintingStrategy(paintingStrategy.points);</p>
<p>Put this on base study (behind graph) and hide everything else except zero line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thinkscripter</title>
		<link>http://www.thinkscripter.com/indicator/polarized-trin-oscillator/#comment-707</link>
		<dc:creator>thinkscripter</dc:creator>
		<pubDate>Sat, 28 Mar 2009 10:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=867#comment-707</guid>
		<description>Thanks Bill. The indicator was easy enough to build but I&#039;m seeing some inconsistency issues with the ToS data for $ADVN and $DECN. I&#039;m not sure what is causing it but there are holes in the data which make the chart incorrect. I will troubleshoot and contact ToS for their opinion.
Eric</description>
		<content:encoded><![CDATA[<p>Thanks Bill. The indicator was easy enough to build but I&#8217;m seeing some inconsistency issues with the ToS data for $ADVN and $DECN. I&#8217;m not sure what is causing it but there are holes in the data which make the chart incorrect. I will troubleshoot and contact ToS for their opinion.<br />
Eric</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Smith</title>
		<link>http://www.thinkscripter.com/indicator/polarized-trin-oscillator/#comment-706</link>
		<dc:creator>Bill Smith</dc:creator>
		<pubDate>Sat, 28 Mar 2009 05:57:51 +0000</pubDate>
		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=867#comment-706</guid>
		<description>I found this link with the formula, so I think you could make an indicator, but I was trying to figure out how to get it in the price chart area so an indicator (like MACD) could be applied to it.  Not sure if that is possible.

http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:introduction_to_mark#mcclellan_summation_</description>
		<content:encoded><![CDATA[<p>I found this link with the formula, so I think you could make an indicator, but I was trying to figure out how to get it in the price chart area so an indicator (like MACD) could be applied to it.  Not sure if that is possible.</p>
<p><a href="http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:introduction_to_mark#mcclellan_summation_" rel="nofollow">http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:introduction_to_mark#mcclellan_summation_</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thinkscripter</title>
		<link>http://www.thinkscripter.com/indicator/polarized-trin-oscillator/#comment-705</link>
		<dc:creator>thinkscripter</dc:creator>
		<pubDate>Sat, 28 Mar 2009 02:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=867#comment-705</guid>
		<description>Bill,
You&#039;ve peaked my curiosity and I&#039;m investigating if it is possible.
Eric</description>
		<content:encoded><![CDATA[<p>Bill,<br />
You&#8217;ve peaked my curiosity and I&#8217;m investigating if it is possible.<br />
Eric</p>
]]></content:encoded>
	</item>
</channel>
</rss>

