<?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; volume</title>
	<atom:link href="http://www.thinkscripter.com/tag/volume/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>ThinkScripter Option Volume</title>
		<link>http://www.thinkscripter.com/indicator/option-volume/</link>
		<comments>http://www.thinkscripter.com/indicator/option-volume/#comments</comments>
		<pubDate>Tue, 18 May 2010 04:03:41 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[Option Volume]]></category>
		<category><![CDATA[options]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[volume]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=2071</guid>
		<description><![CDATA[Display intraday option volume for a set of five option strikes. <a href="http://www.thinkscripter.com/indicator/option-volume/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing around with some of the new features in thinkScript over the past few weeks and several new studies have resulted. This one will display intraday option volume for a set of five option strikes (You have the option to display only three or one strike if you wish). The calls are stacked above the horizontal line with puts below. The format is a stacked bar type to accommodate showing all the strikes at once. The color code is referenced in the upper left. Additionally, the indicator has three other modes (single strike only) that will display total strike volume for the day, open interest, and volume as a percentage of open interest (see the second image below). The total volume and open interest modes are designed for use on daily charts but will function on the intraday charts as shown below. To initialize the study, you need to enter your desired center strike, expiration date, and the strike spacing for the underlying.</p>
<p>My intention was to release this to the <a href="http://www.thinkscripter.com/donations/">Pro Subscribers</a> only but it seems to me that I have been neglecting the general public as of late. As such, this one will be for mass consumption. The script is too long to post here so you will have to swing by the <a href="http://www.thinkscripter.com/forum/viewforum.php?f=26">forum</a>  &#8220;Released ThinkScripter Studies&#8221; section (free registration required) to grab yourself a copy. Best of luck in your trading. -Eric</p>
<div id="attachment_2073" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2010/05/OV.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2010/05/OV.png" alt="" title="OV"  class="size-full wp-image-2073" /></a><p class="wp-caption-text">Option Volume</p></div>
<div id="attachment_2073" class="wp-caption aligncenter" style="width: 640px"><a href=http://www.thinkscripter.com/wp-content/uploads/2010/05/OVSub.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2010/05/OVSub.png" alt="" title="AM"  class="size-full wp-image-2073" /></a><p class="wp-caption-text">Alternate Modes</p></div>
<p><center><br />
<h1><a href="http://www.thinkscripter.com/forum">Take me to the forum!</a></h1>
<p></center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/option-volume/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Volume Trend and Price Trend</title>
		<link>http://www.thinkscripter.com/indicator/volume-trend-and-price-trend/</link>
		<comments>http://www.thinkscripter.com/indicator/volume-trend-and-price-trend/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 23:51:52 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[trend]]></category>
		<category><![CDATA[volume]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=1875</guid>
		<description><![CDATA[Volume/Price Trend plots the linear regression of the volume/price for the user specified last number of bars with the color of line reflecting the slope. <a href="http://www.thinkscripter.com/indicator/volume-trend-and-price-trend/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In trading we constantly check to see if volume is confirming price. Rising price accompanied by falling volume is often the signal for an impending reversal. The Volume Trend plots the linear regression of the volume for the user specified last number of bars. The color of line reflects the slope &#8211; green for rising and red for falling. The Price Trend is a similar linear regression line. In this case, the line is colored blue if the price and volume are of diverging slopes and white else wise. Both indicators will automatically update with each bar. Also pictured is the revised AutoFibLines script. It is completely functional again and now has the added benefit of working on Forex pairs and other symbols trading down in the decimal range. Also added were a reversal dot indicating at what closing price the AutoFibs will reverse direction and update the fib levels as well as a trend direction arrow indicating in which direction the fibs have been drawn. PS: The ToS Script Editor is happy with cutting and pasting from the web again! <img src='http://www.thinkscripter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="attachment_1874" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/12/VolumeTrend.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/12/VolumeTrend.png" alt="Volume and Price Trend" title="VolumeTrend"  class="size-full wp-image-1874" /></a><p class="wp-caption-text">Volume and Price Trend</p></div>
<pre class="brush: thinkscript; title: ; notranslate"># TS_VolumeTrend
# http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 16 Dec 2009

declare on_volume;
declare real_size;

input period = 50;

plot VolTrend = InertiaAll(volume, period);
def volumeSlope = if voltrend&gt;voltrend[1] then 1 else 0;
VolTrend.assignValueColor(if voltrend&gt;voltrend[1] then color.green else color.red);
VolTrend.setLineWeight(2);
</pre>
<pre class="brush: thinkscript; title: ; notranslate">
# TS_PriceTrend
# http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 16 Dec 2009

input price = close;
input period = 50;
def offset = 100;

def linearPriceTrend = InertiaAll(close, period);
def priceSlope =  if linearPriceTrend&gt;linearPriceTrend[1] then 1 else 0;
def dist = HighestAll(AbsValue(linearPriceTrend - price)) * (offset / 100.0);

def VolTrend = InertiaAll(volume, period);
def volumeSlope = if voltrend&gt;voltrend[1] then 1 else 0;

plot PriceTrend = if priceSlope==0 then linearPriceTrend-dist else if priceSlope==1 then linearPriceTrend+dist else linearPriceTrend;
PriceTrend.assignValueColor(if volumeSlope != priceSlope then color.blue else color.white);
PriceTrend.setLineWeight(2);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/volume-trend-and-price-trend/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Daily Volume and TPO Profiles</title>
		<link>http://www.thinkscripter.com/indicator/daily-volume-and-tpo-profiles/</link>
		<comments>http://www.thinkscripter.com/indicator/daily-volume-and-tpo-profiles/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 13:58:58 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[market profile]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[TPO]]></category>
		<category><![CDATA[volume]]></category>
		<category><![CDATA[Volume profile]]></category>
		<category><![CDATA[VPOC]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=1825</guid>
		<description><![CDATA[Daily versions of both the Volume Profile and TPO Profile. (REPLACED BY TOS NATIVE VERSIONS) <a href="http://www.thinkscripter.com/indicator/daily-volume-and-tpo-profiles/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong><span style="color: #ff0000;">UPDATE MARCH 2010: The various profile studies (Volume/TPO) have been implemented natively by TOS and replace my thinkScript versions. I will leave these studies in the PRO bundle for those interested in looking at the code but I recommend using the new TOS versions henceforth. &#8211; Eric</span></strong><br />
<br />
After numerous subscriber requests, I put together a daily version of both the Volume Profile and TPO Profile scripts. Whereas the original profile studies total all data displayed on the current TOS chart, the new versions will display only one day&#8217;s data and the associated profile. The daily volume point of control (VPOC) is shown as the yellow bar. I have modified the original Volume and TPO Profile studies to allow the user to move them further to the right to mitigate the overlap when running concurrently with the new daily version. <span style="color:#888888;">Note: Subscriber update has been posted to the forum along with setup instructions.</span></p>
<p><div id="pro" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/10/VolProfileDaily1.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/10/VolProfileDaily1.png" alt="Daily Volume Profile" title="VolProfileDaily" class="size-full wp-image-1827" /></a><p class="wp-caption-text">Daily Volume Profile</p></div><br />
<div id="pro" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/10/TPOProfileDaily.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/10/TPOProfileDaily.png" alt="Daily TPO Profile " title="TPOProfileDaily" class="size-full wp-image-1828" /></a><p class="wp-caption-text">Daily TPO Profile </p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/daily-volume-and-tpo-profiles/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Finite Volume Element</title>
		<link>http://www.thinkscripter.com/indicator/finite-volume-element/</link>
		<comments>http://www.thinkscripter.com/indicator/finite-volume-element/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 21:04:28 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[Finite Volume Element]]></category>
		<category><![CDATA[Katsanos]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[volume]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=1638</guid>
		<description><![CDATA[Markos Katsanos' Finite Volume Element (FVE). <a href="http://www.thinkscripter.com/indicator/finite-volume-element/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Markos Katsanos&#8217; Finite Volume Element (FVE) indicator was first described in &#8220;Detecting Breakouts&#8221; in the April 2003 issue &#8220;Technical Analysis of Stocks and Commodities.&#8221; The FVE is a money flow indicator but with several key differences from Chakin&#8217;s Money Flow or On Balance Volume. Unlike these money flow indicators which add or subtract all volume even if the security barely closed higher than the previous close, FVE uses a volatility threshold to take into account minimal price changes.</p>
<p>Divergences between price and the indicator can provide leading signals whereas the slope of the indicator shows if the bulls or bears are in control. Values above zero are bullish and indicate accumulation while values below zero indicate distribution. FVE crossing the zero line indicates that the short to intermediate balance of power is changing.</p>
<p>Also pictured are the ThinkScripter <a href="http://www.thinkscripter.com/2009/08/21/volumetric-trendline/">Volumetric Trendlines</a> and Volume Profile (still  under development).</p>
<div id="attachment_1640" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/08/FVE.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/08/FVE.png" alt="Finite Volume Element" title="FVE" class="size-full wp-image-1640" /></a><p class="wp-caption-text">Finite Volume Element</p></div>
<pre class="brush: thinkscript; title: ; notranslate"># TS_FiniteVolumeElement
# (c) 2009 http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 25 AUG 2009

declare lower;

input FVEPeriod = 22;
input smoothingPeriod = 10;
def intra = log(high)-log(low);
def vintra = stdev(intra, FVEPeriod);
def inter = log(hlc3)-log(hlc3[1]);
def vinter = stdev(inter,FVEPeriod);
def cutoff = 0.1*(vinter+vintra)*close;

def MF = (Close - (High + Low ) / 2 )+ hlc3 - hlc3[1] ;
def VE = if MF &gt; cutoff then volume else if MF &lt; -cutoff then -volume else 0;
def FVE = 100*sum(VE,FVEPeriod)/(average(volume,FVEPeriod)*FVEPeriod);

plot FiniteVolumeElement = FVE;
FiniteVolumeElement.setDefaultColor(color.cyan);

plot SmoothedFVE = Average(FVE,smoothingPeriod)  ;
SmoothedFVE.setDefaultColor(color.blue);

plot zero = 0;
zero.setDefaultColor(color.white);</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/finite-volume-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DeMark Pressure Ratio</title>
		<link>http://www.thinkscripter.com/indicator/demark-pressure-ratio/</link>
		<comments>http://www.thinkscripter.com/indicator/demark-pressure-ratio/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 00:46:18 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[TDPressure]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[volume]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=1536</guid>
		<description><![CDATA[The DeMark Pressure Ratio indicator seeks to quantify accumulation/distribution through a combination of volume and price action. <a href="http://www.thinkscripter.com/indicator/demark-pressure-ratio/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had several requests to code various indicators designed by Tom DeMark and here is one such study. The DeMark Pressure Ratio indicator seeks to quantify accumulation/distribution through a combination of volume and price action. The short entry is indicated by the oscillator exiting from above the overbought line at 75 with the long entry indicated by a rise above the 25 oversold line. Also pictured is the soon to be released ThinkScripter Volumetric Trendline study which automatically plots in real-time a volumetric trendline for the user selected period. Pictured on this chart of the /ES are 20, 55, 110, and 250 period volumetric trendlines. Stay tuned <img src='http://www.thinkscripter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Both studies will be added to the member&#8217;s bundle this weekend.</p>
<div id="pro" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/08/TDPressureRatio.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/08/TDPressureRatio.png" alt="TD Pressure Ratio" title="TDPressureRatio" width="450" height="500" class="size-full wp-image-1539" /></a><p class="wp-caption-text">TD Pressure Ratio</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/demark-pressure-ratio/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Relative Volume Percentage</title>
		<link>http://www.thinkscripter.com/indicator/relative-volume-percentage/</link>
		<comments>http://www.thinkscripter.com/indicator/relative-volume-percentage/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 15:26:10 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[relative volume]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[volume]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=1436</guid>
		<description><![CDATA[A study comparing the current price bar's volume to historical volume in the same bar on previous days. <a href="http://www.thinkscripter.com/indicator/relative-volume-percentage/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Several forum members requested a study to compare the current price bar&#8217;s volume to historical volume in the same bar on previous days. The resulting study displays the current bar&#8217;s volume as a percentage of the historical average for as much data is available in your chart. The 20 day charts will provide the most usable data. This study can be used on any intraday charts (i.e. anything less than daily charts) <strong>BUT WILL NOT WORK ON TICK CHARTS</strong>. Let me say this again, this study <strong>DOES NOT WORK ON TICK CHARTS</strong>. Ok, that&#8217;s enough yelling. It should be obvious why this won&#8217;t work on tick charts but furthermore, we still have a bug in TOS that crashes the study any time the getAggregationPeriod() function is called on a tick chart.</p>
<p>You&#8217;ll need to enter the number of hours in the trading cycle. Normally this is 6.5 hours for stocks (0930-1600) and 6.75 for index futures (0930-1615). This study is designed to be used on trading hours charts (i.e. &#8220;Show trading hours only&#8221; checked).</p>
<p>Lastly, you&#8217;ll need to select if you are using the chart on an index future like the /ES.  When TOS plots an hourly chart of an index future, there is one extra bar in the chart because of the partial hour up front and partial hour in back. I put in a particularly inelegant kludge to work around this until something more aesthetically pleasing comes to mind.</p>
<div id="attachment_1440" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/07/RelPercVol.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/07/RelPercVol.png" alt="Relative Volume Percentage" title="RelPercVol" class="size-full wp-image-1440" /></a><p class="wp-caption-text">Relative Volume Percentage</p></div>
<pre class="brush: thinkscript; title: ; notranslate"># TS_RelativePercentVolume
# http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 26 JUL 2009

##### DO NOT USE ON TICK CHARTS #####

declare lower;

# Use the number of hours from market open to market open the following
# session (6.5 for stocks, 6.75 for index futures etc)
input hoursPerCycle = 6.75;
# Must select YES for /ES, /NQ etc since and extra bar appears on hourly charts
input indexFuture = YES;
input averagePeriod = 10;
input threshold = 25.0;

rec cycle = compoundValue(1, if getDay() != getDay()[1] then cycle[1]+1 else cycle[1],1);
def barLength = getAggregationPeriod()/60000;

def barsPerCycleV = round100(hoursPerCycle*60/barLength);
def barsPerCycleR = round100((hoursPerCycle*60/barLength)/100)*100;
def barsPerCycle = if barsPerCycleV &gt; barsperCycleR then barsPerCycleR+1 else barsPerCycleR;

# This 'kludge' is in here since index futures plotted on a one hour chart add an extra bar
# Not elegant but it works until something hits me 

def kludge = if indexFuture and barsPerCycle==7 then 1 else 0;

rec aggVolume = volume + aggVolume[barsPerCycle+kludge];
def aveVolume = aggVolume/(cycle+1);

plot percentDiff = ((volume/aveVolume))*100.0;
percentDiff.setpaintingStrategy(paintingStrategy.HISTOGRAM);
percentDiff.setLineWeight(3);
percentDiff.assignValueColor(if percentDiff &lt; 100-threshold then color.red else if percentDiff &gt; 100+threshold then color.green else color.white);

plot zero = 100;
zero.setDefaultColor(color.white);
zero.setStyle(curve.SHORT_DASH);

plot highMark = 200;
highMark.setDefaultColor(color.dark_gray);

plot lowMark = 0;
lowMark.setDefaultColor(color.dark_gray);

plot ave = average(percentDiff,averagePeriod);
ave.setDefaultColor(color.yellow);</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/relative-volume-percentage/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Four Volume</title>
		<link>http://www.thinkscripter.com/indicator/four-volume/</link>
		<comments>http://www.thinkscripter.com/indicator/four-volume/#comments</comments>
		<pubDate>Thu, 14 May 2009 04:27:37 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[up/down volume ratio]]></category>
		<category><![CDATA[volume]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=1243</guid>
		<description><![CDATA[Up/Down volume ratio of the average volume of the /ES, /YM, /NQ, and /TF combined. <a href="http://www.thinkscripter.com/indicator/four-volume/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is a bit of a twist on my earlier <a href="http://www.thinkscripter.com/2009/01/20/updown-volume-ratio">Up/Down Volume Ratio</a> study. Rather than plot the ratio of an underlying equity or future contract, this study averages the volume of the /ES, /YM, /NQ, and /TF and performs the same calculations. In essence, I&#8217;m trying to see if more of the volume is going into the bars that close down or to those that close up. You can see from the plot that very high ratios often precede tops and very low ratios often precede bottoms. The indicator can also produce nice divergences as well.  (NOTE: This one is a resource hog! You may not want to run this on a &#8220;challenged&#8221; machine)</p>
<div id="attachment_1242" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/05/fourvolume.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/05/fourvolume.png" alt="Four Volume" title="fourvolume"  class="size-full wp-image-1242" /></a><p class="wp-caption-text">Four Volume</p></div>
<pre class="brush: thinkscript; title: ; notranslate">
# TS_FourVolume
# (c) 2009 http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 13 May 2009

declare lower;

input VolumePeriod = 10;
input OscillatorLength = 10;
input priceChangeWeighted = NO;
input overbought = 80.0;
input oversold = 20.0;

input mode = {default UP_DOWN_VOL_RATIO, OSCILLATOR};

def price1 = close(&quot;/ES&quot;);
def price2 = close(&quot;/NQ&quot;);
def price3 = close(&quot;/YM&quot;);
def price4 = close(&quot;/TF&quot;);

def volume1 = volume(&quot;/ES&quot;);
def volume2 = volume(&quot;/NQ&quot;);
def volume3 = volume(&quot;/YM&quot;);
def volume4 = volume(&quot;/TF&quot;);

def avePrice = (price1+price2+price3+price4)/4.0;
def delta = absValue(avePrice-avePrice[1]);
def aveVolume = (volume1+volume2+volume3+volume4)/4.0;
def multiplier = if(priceChangeWeighted, delta,1);

plot maxLine = 80.0;
plot minLine = 20.0;
maxLine.setDefaultColor(color.BLUE);
minLine.setDefaultColor(color.BLUE);
plot midLine = 50.0;
midLine.setDefaultColor(color.WHITE);

def up = if(avePrice&gt;avePrice[1], aveVolume*multiplier, 0);
def down = if(avePrice&lt;avePrice[1], aveVolume*multiplier, 0);
def upvol = sum(up, VolumePeriod);
def downvol = sum(down, VolumePeriod);

def UPDVR= ((upvol/(downvol+upvol)));

def highestVR = Highest(UPDVR, OscillatorLength);
def lowestVR = Lowest(UPDVR, OscillatorLength);

plot FourVolume;

switch (mode) {

case UP_DOWN_VOL_RATIO:
FourVolume = UPDVR*100;
case OSCILLATOR:
FourVolume = (UPDVR - lowestVR) / (highestVR - lowestVR)*100;
}

FourVolume.DefineColor(&quot;OverBought&quot;, Color.DOWNTICK);
FourVolume.DefineColor(&quot;Normal&quot;, color.cyan);
FourVolume.DefineColor(&quot;OverSold&quot;, Color.UPTICK);
FourVolume.AssignValueColor(if FourVolume &lt; oversold then FourVolume.color(&quot;OverSold&quot;)
else if FourVolume &gt; overbought then FourVolume.color(&quot;OverBought&quot;)
else FourVolume.color(&quot;Normal&quot;));
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/four-volume/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Volume Channel In Action</title>
		<link>http://www.thinkscripter.com/analysis/volume-channel-in-action/</link>
		<comments>http://www.thinkscripter.com/analysis/volume-channel-in-action/#comments</comments>
		<pubDate>Wed, 13 May 2009 02:09:34 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Analysis]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[volume]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=1235</guid>
		<description><![CDATA[As I watched the market today, I paid particular attention to the Volume Channel study I coded last week. Volume often speaks, well, volumes about the underlying price action. I&#8217;ve circled the instances where price revisited a high volume level &#8230; <a href="http://www.thinkscripter.com/analysis/volume-channel-in-action/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As I watched the market today, I paid particular attention to the <a href="http://www.thinkscripter.com/2009/05/08/volume-channel">Volume Channel</a> study I coded last week. Volume often speaks, well, <em>volumes</em> about the underlying price action. I&#8217;ve circled the instances where price revisited a high volume level and a rejection occurred. Not bad&#8230;I see a bright future ahead for this one or some part thereof in another study.</p>
<div id="pro" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/05/volumechannelanalysis.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/05/volumechannelanalysis.png" alt="Volume Channel In Action" title="volumechannelanalysis" class="size-full wp-image-1237" /></a><p class="wp-caption-text">Volume Channel In Action</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/analysis/volume-channel-in-action/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Volume Channel</title>
		<link>http://www.thinkscripter.com/indicator/volume-channel/</link>
		<comments>http://www.thinkscripter.com/indicator/volume-channel/#comments</comments>
		<pubDate>Fri, 08 May 2009 14:16:02 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[channel]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[volume]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=1223</guid>
		<description><![CDATA[ Draws a high and low price channel corresponding to the price range of the selected period's highest volume bar. <a href="http://www.thinkscripter.com/indicator/volume-channel/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of our forum members requested an implementation of something he had seen once in a seminar. The concept is simple &#8211; draw a high and low price channel corresponding to the price range of the day&#8217;s highest volume bar. Each time a higher volume bar occurs, the channel is redrawn to reflect the new high and low. In addition, the day&#8217;s chart can be broken into three time periods within which the volume channel is reset. In this chart, the white dots represent the boundary between the time slices. In a sense, these are volumetric pivot levels. <span style="color: #888888;">(Note: This code will be posted in the gold donor section of the forum on Sunday)</span></p>
<div id="pro" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/05/volumechannel.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/05/volumechannel.png" alt="Volume Channel" title="volumechannel"  class="size-full wp-image-1225" /></a><p class="wp-caption-text">Volume Channel</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/volume-channel/feed/</wfw:commentRss>
		<slash:comments>4</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>

