<?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; A/D Ratio</title>
	<atom:link href="http://www.thinkscripter.com/tag/ad-ratio/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thinkscripter.com</link>
	<description>thinkScript Indicators for thinkorswim</description>
	<lastBuildDate>Sun, 29 Jan 2012 16:11:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Advance/Decline Box</title>
		<link>http://www.thinkscripter.com/indicator/advancedecline-box/</link>
		<comments>http://www.thinkscripter.com/indicator/advancedecline-box/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 18:48:57 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[A/D Line]]></category>
		<category><![CDATA[A/D Ratio]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[thinkscript]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=1905</guid>
		<description><![CDATA[Displays the Advance Decline Ratio or Advancing-Declining Issues in a little box at the upper left.  <a href="http://www.thinkscripter.com/indicator/advancedecline-box/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a Sunday afternoon quickie for my loyal readers. While playing with some of the recently added new toys in thinkScript, I build this quick study that displays the Advance Decline Ratio or Advancing-Declining Issues in a little box at the upper left. You can select if you want the A/D Ratio or A-D Issues in the study properties panel. I set the coloring up such that the box is red if the value has worsened from the previous bar or green if it has improved. As with all indicators which pull the $ADVN and $DECN data, it will not work on TICK charts. Best of luck trading in the new year! &#8211; Eric<br />
<div id="attachment_1908" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2010/01/ADBOX.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2010/01/ADBOX.png" alt="" title="ADBOX" class="size-full wp-image-1908" /></a><p class="wp-caption-text">Advance Decline Box</p></div></p>
<pre class="brush: thinkscript; title: ; notranslate">
# TS_AdvanceDeclineBox
# thinkscripter@gmail.com
# Last Update 12 MAY 2010

def A = close(&quot;$ADVN&quot;);
def D = close (&quot;$DECN&quot;);
def ADL = A - D;
def ADR = if A &gt; D then A / D else -D / A;
input mode = {default Ratio, Issues};
def modeSwitch = if mode == mode.Ratio then 1 else 0;

AddChartLabel(yes, concat(
if modeSwitch then ADR else ADL, concat(&quot; &quot;,
if modeSwitch then &quot;:1  A/D RATIO&quot; else &quot; A/D LINE&quot;)),
if modeSwitch then if ADR &gt; ADR[1] then color.green else color.red else if ADL &gt; ADL[1] then color.green else color.red);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/advancedecline-box/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Advance/Decline Issues or Volume &#8211; Upper Study</title>
		<link>http://www.thinkscripter.com/indicator/advancedecline-issues-or-volume-upper-study/</link>
		<comments>http://www.thinkscripter.com/indicator/advancedecline-issues-or-volume-upper-study/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 02:58:00 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[A/D Line]]></category>
		<category><![CDATA[A/D Ratio]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[thinkscript]]></category>

		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=285</guid>
		<description><![CDATA[Modified market breadth indicator superimposed on the volume. <a href="http://www.thinkscripter.com/indicator/advancedecline-issues-or-volume-upper-study/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In an ongoing effort to simplify my charts I have modified the <a href="http://www.thinkscripter.com/2009/01/21/market-breadth/">Market Breadth</a> indicator to be superimposed on the volume. You must have the &#8220;Overlapped Volume&#8221; style setting selected. You can display NYSE or NASDAQ advancing-declining issues or advancing-declining volume. There is a scaling factor to minimize the plot to suit your needs.</p>
<div id="attachment_284" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/02/adupper.png"><img class="size-full wp-image-284" title="adupper" src="http://www.thinkscripter.com/wp-content/uploads/2009/02/adupper.png" alt="Advance/Decline Upper"  /></a><p class="wp-caption-text">Advance/Decline Upper</p></div>
<pre class="brush: thinkscript; title: ; notranslate">
# ADVANCE-DECLINE-UPPER
# http://thinkscripter.wordpress.com
# thinkscripter@gmail.com
# Last Update 19 Feb 2009

declare on_volume;
declare upper;

input display = {default  ADIssues,  ADVolume};
input market = {default NYSE, NASDAQ};
input scaleFactor = 1.0;

def maxVolume = highestAll(volume);

def advancing = if(market, close(&quot;$advn/q&quot;), close(&quot;$advn&quot;));
def declining =  if(market, close(&quot;$decn/q&quot;), close(&quot;$decn&quot;));
def advVolume = if(market, close(&quot;$uvol/q&quot;), close(&quot;$uvol&quot;));
def decVolume = if(market, close(&quot;$dvol/q&quot;), close(&quot;$dvol&quot;));

def maxADV = max(highestAll(advVolume), highestAll(decVolume));
def maxADI = max(highestAll(advancing), highestAll(declining));
def ratioV = maxVolume/maxADV;
def ratioI = maxVolume/maxADI;

plot Breadth;

switch (display) {
case ADIssues:
Breadth = if(advancing - declining &gt; 0, advancing - declining, declining - advancing)*scaleFactor*ratioI;
case ADVolume:
Breadth = if(advVolume - decVolume &gt; 0, advVolume - decVolume, decVolume - advVolume)*ScaleFactor*ratioV ;
}

Breadth.AssignValueColor(
if display == display.ADIssues then
if advancing - declining &gt; 0 then color.dark_green else color.dark_red
else if advVolume - decVolume &gt; 0 then color.dark_green else color.dark_red);

Breadth.SetPaintingStrategy(paintingStrategy.HISTOGRAM);
Breadth.SetLineWeight(5);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/advancedecline-issues-or-volume-upper-study/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Market Breadth</title>
		<link>http://www.thinkscripter.com/indicator/market-breadth/</link>
		<comments>http://www.thinkscripter.com/indicator/market-breadth/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 22:43:06 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[A/D Line]]></category>
		<category><![CDATA[A/D Ratio]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[volume]]></category>

		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=148</guid>
		<description><![CDATA[This indicator will plot market breadth for the NYSE or NASDAQ in one of four ways. <a href="http://www.thinkscripter.com/indicator/market-breadth/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This indicator will plot market breadth for the NYSE or NASDAQ in one of four ways:</p>
<p>1) Advancing/Declining Issues Ratio<br />
2) Advancing-Declining Issues Total<br />
3) Advancing/Declining Volume Ratio<br />
4) Advancing-Declining Volume Total</p>
<div id="attachment_147" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/01/marketbreadth.png"><img class="size-full wp-image-147" title="marketbreadth" src="http://www.thinkscripter.com/wp-content/uploads/2009/01/marketbreadth.png" alt="Market Breadth"  /></a><p class="wp-caption-text">Market Breadth</p></div>
<pre class="brush: thinkscript; title: ; notranslate">
# MARKETBREADTH
# http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 21 Jan 2009

declare lower;

input display = {default ADIssuesRatio, ADIssues, ADVolumeRatio, ADVolume};
input market = {default NYSE, NASDAQ};

def advancing = if(market, close(&quot;$advn/q&quot;), close(&quot;$advn&quot;));
def declining =  if(market, close(&quot;$decn/q&quot;), close(&quot;$decn&quot;));
def advVolume = if(market, close(&quot;$uvol/q&quot;), close(&quot;$uvol&quot;));
def decVolume = if(market, close(&quot;$dvol/q&quot;), close(&quot;$dvol&quot;));

plot Breadth;

switch(display) {
  case ADIssuesRatio:
    Breadth = if(advancing &gt; declining, (advancing / declining), (-declining / advancing));
  case ADIssues:
    Breadth = advancing - declining;
  case ADVolume:
    Breadth = advVolume - decVolume;
case ADVolumeRatio:
    Breadth = if( advVolume &gt; decVolume, (advVolume / decVolume), (-decVolume / advVolume));
}

Breadth.AssignValueColor(if Breadth &gt;= 0.0 then color.green else color.red);
Breadth.SetPaintingStrategy(paintingStrategy.HISTOGRAM);
Breadth.SetLineWeight(3);

plot ZeroLine = 0.0;
ZeroLine.SetDefaultColor(color.white);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/market-breadth/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

