<?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; SVAPO</title>
	<atom:link href="http://www.thinkscripter.com/tag/svapo/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>Short Term Volume and Price Oscillator</title>
		<link>http://www.thinkscripter.com/indicator/short-term-volume-and-price-oscillator/</link>
		<comments>http://www.thinkscripter.com/indicator/short-term-volume-and-price-oscillator/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 15:09:51 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[SVAPO]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[vervoort]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=1730</guid>
		<description><![CDATA[Sylvain Vervoort's Short-Term Volume and Price Oscillator. <a href="http://www.thinkscripter.com/indicator/short-term-volume-and-price-oscillator/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of our members requested an implementation of Sylvain Vervoort&#8217;s Short-Term Volume and Price Oscillator as described in the November 2007 issue of Stocks and Commodities magazine. In essence, when the price is trending up and volume is increasing, volume is added into the oscillator calculation. Conversely, when price is trending down and volume is increasing, volume will be subtracted from the oscillator. During consolidation phases when price and volume diverge, volume is not used to calculate the oscillator. A buy is indicated when the oscillator is below the green line but greater than yesterday&#8217;s value. A sell is indicated when the oscillator is above the red line but less than yesterday&#8217;s value. Also pictured are the <a href="http://www.thinkscripter.com/2009/03/12/thinkscripter-multi-stops/">Multi-Stops</a>, <a href="http://www.thinkscripter.com/2009/09/05/thinkscripter-volume-profile/">Volume Profile</a>, and <a href="http://www.thinkscripter.com/2009/02/16/value-chart/">Value Chart</a>.<br />
<div id="attachment_1733" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/09/SVAPO.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/09/SVAPO.png" alt="Short Term Volume and Price Oscillator" title="SVAPO"  class="size-full wp-image-1733" /></a><p class="wp-caption-text">Short Term Volume and Price Oscillator</p></div></p>
<pre class="brush: thinkscript; title: ; notranslate"># TS_ShortTermVolumeAndPriceOscillator
# (c) 2009 http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 20 SEP 2009

declare lower;

input period = 8;
input cutoff = 1.0;

input devH = 1.5; #Standard Deviation High
input devL = 1.3; #Standard Deviation Low
input stdevper = 100; #Standard Deviation Period

rec haopen = compoundValue(1, ((open[1] + high[1] + low[1] + close[1]) / 4 + haopen[1]) / 2, hl2);
def haclose = ((open + high + low + close) / 4 + haopen + Max(high, haopen) + Min(low, haopen)) / 4;

def hac = 3 * ExpAverage(haclose, period / 1.6)
- 3 * ExpAverage(ExpAverage(haclose, period / 1.6), period / 1.6)
+ ExpAverage(ExpAverage(ExpAverage(haclose, period / 1.6), period / 1.6), period / 1.6);

def vave = Average(volume, period * 5)[1];
def vmax = vave * 2;
def vc = if(volume &lt; vmax, volume, vmax);

def vtrendi = inertia(volume,period);
def vtrend =vtrendi-vtrendi[1];

def vtr = 3 * ExpAverage(vtrend, period)
- 3 * ExpAverage(ExpAverage(vtrend, period), period)
+ ExpAverage(ExpAverage(ExpAverage(vtrend, period), period), period);

def calc1 = If haC &gt; (haC[1]*(1+cutoff/1000)) and (vtr &gt;=
vtr[1] and vtr[1] &gt; vtr[2]) then vc else If haC &lt; (haC[1]*(1-cutoff/1000)) and (vtr &gt;=
vtr[1] and vtr[1] &gt; vtr[2]) then -vc else 0;
def SVAPOBase = Sum(calc1,period)/(vave+1);

plot SVAPO = 3 * ExpAverage(SVAPOBase, period)
- 3 * ExpAverage(ExpAverage(SVAPOBase, period), period)
+ ExpAverage(ExpAverage(ExpAverage(SVAPOBase, period), period), period);
SVAPO.setDefaultColor(color.cyan);

plot upperSDLine = devH*Stdev(SVAPO,stdevper);
upperSDLine.setDefaultColor(color.red);
upperSDLine.setStyle(curve.SHORT_DASH);
plot lowerSDLine = -devL*Stdev(SVAPO,stdevper);
lowerSDLine.setDefaultColor(color.green);
lowerSDLine.setStyle(curve.SHORT_DASH);
plot zero = 0;
zero.setDefaultColor(color.white);</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/short-term-volume-and-price-oscillator/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

