<?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</title>
	<atom:link href="http://www.thinkscripter.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thinkscripter.com</link>
	<description>thinkScript Indicators for thinkorswim</description>
	<lastBuildDate>Fri, 03 Sep 2010 03:26:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>TOS Strategies: Targets and Stops</title>
		<link>http://www.thinkscripter.com/tutorial/tos-strategies-targets-stops/</link>
		<comments>http://www.thinkscripter.com/tutorial/tos-strategies-targets-stops/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 03:26:23 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=2936</guid>
		<description><![CDATA[ Using the entryPrice() function, with relative ease you can create long and short exits with price targets and stop-losses. <a href="http://www.thinkscripter.com/tutorial/tos-strategies-targets-stops/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Truth be told, I have a love-hate relationship with TOS strategies. If you&#8217;ve ever tried to code a strategy exit with either a price target or a stop loss you have undoubtedly felt this frustration. The core of the problem was that exit strategies did not know the price at which the long or short entry was executed. To work around this you had to code the entire entry into the exit and even then that did not necessarily work properly. </p>
<p>History aside,  I was working to create stop type exit strategies for one of our members, when I discovered the following (recent?) function addition to thinkScript: <code style="color: blue;">entryPrice()</code>. Like mana from heaven, the TOS programmers heard our prayers.  As you might have already guessed, this is the solution to the aforementioned problem. With relative ease you can create long and short exits with price targets and stop-losses. I&#8217;ve slammed a few together here to illustrate the point. Below is an image of today&#8217;s /ES session with a custom strategy of mine and the example stop losses set to target = 3.0 and stop-loss = 1.5 (<a href="http://www.thinkscripter.com/wp-content/uploads/2010/09/StopReport.png">Strategy Report Here</a>). </p>
<div id="attachment_2947" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2010/09/Stops.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2010/09/Stops.png" alt="" title="Stops"  class="size-full wp-image-2947" /></a><p class="wp-caption-text">Strategy Stops</p></div>
<pre class="brush: thinkscript;">
# TS_Stop_LX
# http://www.thinkscripter.com
# Last update 02 Sep 2010

declare LONG_EXIT;

input stop = 2.5;
input target = 3.0;

def entry = entryPrice();
def exit = if (high &gt;= (entry + target) or low &lt;= (entry - stop)) then 1 else 0;
def exitPrice = if (high &gt;= (entry + target)) then (entry + target) else (entry - stop);

addOrder(exit, exitPrice);
setColor(color.white);
</pre>
<pre class="brush: thinkscript;">
# TS_Stop_SX
# http://www.thinkscripter.com
# Last update 02 Sep 2010

declare SHORT_EXIT;

input stop = 2.5;
input target = 3.0;

def entry = entryPrice();
def exit = if (low &lt;= (entry - target) or high &gt;= (entry + stop)) then 1 else 0;
def exitPrice = if (low &lt;= (entry - target)) then (entry - target) else (entry + stop);

addOrder(exit, exitPrice);
setColor(color.white);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/tutorial/tos-strategies-targets-stops/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fold &#8211; Basic Syntax</title>
		<link>http://www.thinkscripter.com/tutorial/fold-basic-syntax/</link>
		<comments>http://www.thinkscripter.com/tutorial/fold-basic-syntax/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 14:05:21 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=2853</guid>
		<description><![CDATA[It seems as though there is a fair bit of confusion regarding the new thinkScript looping capability implemented with the fold function. At first glance, the syntax is a bit unusual but dig a little deeper and there is a &#8230; <a href="http://www.thinkscripter.com/tutorial/fold-basic-syntax/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It seems as though there is a fair bit of confusion regarding the new thinkScript looping capability implemented with the <code>fold</code> function. At first glance, the syntax is a bit unusual but dig a little deeper and there is a classic for loop hiding there &#8211; albeit with some constraints. Here&#8217;s the syntax taken directly from thinkorswim&#8217;s own <a href="http://team.thinkorswim.com/thinkscript/dark/index.html">Resource Center</a>:</p>
<p><code></p>
<p class="alert">
def <span style="color:red;">&lt;result&gt;</span> = fold <span style="color:red;">&lt;index&gt;</span> = <span style="color:red;">&lt;start&gt;</span> to <span style="color:red;">&lt;end&gt;</span> with <span style="color:red;">&lt;variable&gt;</span> [ = <span style="color:red;">&lt;init&gt;</span> ] do <span style="color:blue;">&lt;expression&gt;</span>;
</p>
<p></code></p>
<p>So, first and foremost, the <code>fold</code> function is used to define the value for a named variable. Hence, the end result of any fold iteration is saved into an immutable variable once the loop is complete. That variable can be either a non-self-referencing variable using the <code>def</code> statement or can refer to prior values of itself when used with the <code>rec</code> statement. The key point here is that you cannot operate on other variables or <em>do anything</em> within the loop. Your loop&#8217;s sole function will be <u>to return a value</u> into a variable. This alone heavily constrains what you can do with <code>fold</code>. In the sample code above <code style="color:red;">result</code> will contain the final computed value. </p>
<p>Let&#8217;s dive a little deeper into the beast, shall we. Every loop has an index over which it iterates. If you ever programmed in BASIC, you probably coded something like the following</p>
<pre>
for i = 1 to 100
print i
next i
</pre>
<p>which result in the numbers 1 to 100 printing to the screen for your immense enjoyment. OK, so I&#8217;m dating myself here, but yes I began coding BASIC on my Apple II in the early 80&#8242;s and wrote such to impress my less computer savvy classmates. Back to the task at hand. The i variable in this syntax is the <code style="color:red;">index</code> over which this loop iterates or counts. There will be 100 iterations of the loop until the program completes. The functionality in the <code>fold</code> function is identical with the <code style="color:red;">index</code> variable being iterated from the value of <code style="color:red;">start</code> to <code style="color:red;">end</code> in the above sample code.</p>
<p>To recap, we have a variable <code style="color:red;">result</code> to store the final value of the calculation, and we have a loop which will iterate its <code style="color:red;">index</code> variable from <code style="color:red;">start</code> to <code style="color:red;">end</code> which is mathematically <code style="color:red;">start-end</code> times. </p>
<p>Now on to the calculation itself. Internal within the structure of the <code>fold</code> loop is another variable incidentally called <code style="color:red;">variable</code> within the sample code above. This is were the interim value of the loop calculation is held while the loop is iterating. At the conclusion of the loop, the <u>final value</u> of <code style="color:red;">variable</code> is then transferred to <code style="color:red;">result</code>. Beginning to get the idea? The value of <code style="color:red;">variable</code> <em>may be</em> initialized to something using the <code>= </code><code style="color:red;">init</code> syntax. If you omit this optional code, the value of <code style="color:red;">variable</code> will simply start at 0.</p>
<p>The final piece of the puzzle is the calculation code itself. This is the <code>do<span style="color:blue;"> expression</span></code> portion of the code. Within the <code style="color:blue;">expression</code> you can perform any <u>one-line</u> thinkScript calculation using the <code style="color:red;">index</code> variable or other variables/numeric values from elsewhere in your thinkScript code. That is, the code you create here should have the syntax of whatever lies on the right side of an equals sign in the classic thinkScript variable definition. Each time through the loop, the <code style="color:blue;">expression</code> will be evaluated and the result will be placed into <code style="color:red;">variable</code> awaiting the next iteration. So, if my <code style="color:blue;">expression</code> were <code style="color:red;">variable*index</code> then you would be successively multiplying the value of <code style="color:red;">variable</code> by <code style="color:red;">index</code> each iteration through the loop. This might look like this in a BASIC pseudocode example:</p>
<pre>
for index = 1 to 10
variable = variable*index
next index
</pre>
<p>Well, that&#8217;s all for today. Next time we&#8217;ll go through some examples to bring the picture into complete focus. Happy thinkScripting and best of luck in your trading. -Eric</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/tutorial/fold-basic-syntax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ThinkScripter 3.0</title>
		<link>http://www.thinkscripter.com/uncategorized/thinkscripter-3-0/</link>
		<comments>http://www.thinkscripter.com/uncategorized/thinkscripter-3-0/#comments</comments>
		<pubDate>Sat, 14 Aug 2010 20:34:06 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/ts_3/?p=2785</guid>
		<description><![CDATA[Welcome to the third iteration of the ThinkScripter blog. <a href="http://www.thinkscripter.com/uncategorized/thinkscripter-3-0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div style="background: url('http://www.thinkscripter.com/wp-content/uploads/2010/08/bg-beer.png') center no-repeat; font-size: 16px;">
<p>Some of you may have noticed that I&#8217;ve been conspicuously absent both in my posts here and in the forum of late. Well&#8230;.I&#8217;ve been locked in the ThinkScripter laboratory for nearly eight weeks now working on the facelift for the blog and I&#8217;m happy to take the wraps off the new design today. This marks the third major site overhaul since I began in January of 2009.<br />
<br />
The first iteration was a boilerplate WordPress.com blog with little or no customization. This is a great way to get started publishing content on the internet. Being the tinkerer that I am, I quickly began running into the limitations of the basic free blog. I moved over to a paid server and cobbled together a few custom theme parts to introduce version two. It served me steadfastly until my desire for just that much more control finally got me rolling a few months ago.<br />
<br />
Many of the changes are under the hood, so to speak, and rather than add patches to the previous site architecture I just started with a clean slate and built my own theme. I&#8217;ve added a dynamic <a href="http://www.thinkscripter.com/indicators">Indicator</a> page, thinkScript syntax highlighting, and skinned the <a href="http://www.thinkscripter.com/forum">Forum</a> properly just to name a few of the enhancements. In the process I became much more intimate with web architecture, php, css, wordpress, etc and finally feel like the master of my own domain &#8211; no pun intended.<br />
<br />
As with all major updates I expect to encounter some bugs along the way and would appreciate any tippers if something is acting wonky.<br />
<br />
Lastly, it has been a distinct pleasure and honor to bring this site to you and the thinkScript community at large. Thank you all for your kind remarks, encouragement, and donations along the way. Now, time for a cold one!</p>
<p>Your host,<br />
Eric
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/uncategorized/thinkscripter-3-0/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Trend</title>
		<link>http://www.thinkscripter.com/indicator/trend/</link>
		<comments>http://www.thinkscripter.com/indicator/trend/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 02:18:58 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[trend]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=2151</guid>
		<description><![CDATA[This is a modified Heikin-Ashi trend indicator made popular by John Carter and widely available across the internet for other platforms. <a href="http://www.thinkscripter.com/indicator/trend/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s another indicator by <em>very</em> popular request. It wasn&#8217;t until TOS included the new <code>fold</code> function that I was able to properly implement it in thinkScript.</p>
<p>This is a modified Heikin-Ashi trend indicator made popular by <a href="http://www.amazon.com/gp/product/0071459588?ie=UTF8&#038;tag=thinks-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0071459588">John Carter</a> and widely available across the internet for other platforms. First note that these are not Heikin-Ashi candlesticks themselves which are a built in option in TOS. Instead, this is the Heikin-Ashi coloring applied to regular candlesticks with a slight modification. The modification involves rejecting a change in the Heikin-Ashi trend when the bar in question is an inside bar; inside in the Heikin-Ashi sense. The user selects the period to look back for the inside bar comparison. Pictured below is the Trend indicator with blue as an uptrend and red as a downtrend. You have the option to display the rejected inside bars in a highlighted color as shown in the second image. The colors are fully user selectable using global defaults.</p>
<div id="pro" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2010/06/TrendO.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2010/06/TrendO.png" alt="" title="TrendO"  class="size-full wp-image-2153" /></a><p class="wp-caption-text">Trend</p></div>
<div id="pro" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2010/06/TrendOHL.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2010/06/TrendO.png" alt="" title="Trend with Inside Bars Highlighted"  class="size-full wp-image-2153" /></a><p class="wp-caption-text">Trend with Inside Bars Highlighted</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/trend/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Renko Chart</title>
		<link>http://www.thinkscripter.com/indicator/renko-chart/</link>
		<comments>http://www.thinkscripter.com/indicator/renko-chart/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 12:58:52 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[Renko]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[trend]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=2104</guid>
		<description><![CDATA[The colored blocks are analogous to those of the traditional Renko chart. Trend change is indicated when the next block begins to form in the alternate color. <a href="http://www.thinkscripter.com/indicator/renko-chart/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Using the framework of the previous <a href="http://www.thinkscripter.com/2010/04/16/three-line-break/">Three Line Break</a> study, I was able to craft this <a href="http://www.investopedia.com/terms/r/renkochart.asp">Renko Chart</a>. At first glance it doesn&#8217;t resemble a Renko Chart but upon careful inspection you will see the same information albeit in a different manner. The colored blocks are analogous to those of the Renko chart. Trend change is indicated when the next block begins to form in the alternate color. The user can select either a variable ATR block size or a fixed price size. The paintbars can be colored to match the Renko blocks as shown. The Renko Chart will be added to the <a href="http://www.thinkscripter.com/donations/">Pro Subscriber</a> bundle this weekend.</p>
<div id="pro" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2010/06/Renko.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2010/06/Renko.png" alt="" title="Renko"  class="size-full wp-image-2109" /></a><p class="wp-caption-text">Renko Chart</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/renko-chart/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Weekend Builds and Bug Fixes</title>
		<link>http://www.thinkscripter.com/uncategorized/weekend-builds-and-bug-fixes/</link>
		<comments>http://www.thinkscripter.com/uncategorized/weekend-builds-and-bug-fixes/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 02:02:42 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=2099</guid>
		<description><![CDATA[This weekend&#8217;s TOS builds broke several studies including Fisher Transform Signals, Value Chart, and Option Volume. They have all been fixed and there is a new zip file uploaded to the forum for Pro Subscribers. The Fisher Transform Signals code &#8230; <a href="http://www.thinkscripter.com/uncategorized/weekend-builds-and-bug-fixes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This weekend&#8217;s TOS builds broke several studies including <a href="http://www.thinkscripter.com/2009/03/07/fisher-transform-signals/">Fisher Transform Signals</a>, <a href="http://www.thinkscripter.com/2009/02/16/value-chart/">Value Chart</a>, and <a href="http://www.thinkscripter.com/2010/05/17/thinkscripter-option-volume/">Option Volume</a>. They have all been fixed and there is a new zip file uploaded to the forum for <a href="http://www.thinkscripter.com/donations/">Pro Subscribers</a>. The <a href="http://www.thinkscripter.com/2009/03/07/fisher-transform-signals/">Fisher Transform Signals</a> code has been updated and can be found <a href="http://www.thinkscripter.com/2009/03/07/fisher-transform-signals/">here</a>.</p>
<p>Some of you may have noticed that my pace of development has slowed down in the last six months. This was as a result of some major transitions in my life which are now mostly complete. I hope to return with a renewed vigor in the coming weeks. I am tossing around several ideas for expanding the <a href="http://www.thinkscripter.com/donations/">Pro Subscriber</a> benefits to include a 24/7 Adobe Connect Pro chat room, a thinkScript educational video series, and of course some new studies taken from my now exceptionally long list of requests. Please let me know your thoughts/desires!</p>
<p>Best of luck to all and thank you for the donations and support,<br />
Eric</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/uncategorized/weekend-builds-and-bug-fixes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Percent Correction</title>
		<link>http://www.thinkscripter.com/indicator/percent-correction/</link>
		<comments>http://www.thinkscripter.com/indicator/percent-correction/#comments</comments>
		<pubDate>Sat, 22 May 2010 12:29:25 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[correction]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[percent]]></category>
		<category><![CDATA[thinkscript]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=2088</guid>
		<description><![CDATA[Simply shows how deep the current correction is in percentage terms from the high. It is designed for use on daily charts during intermediate term pullbacks. <a href="http://www.thinkscripter.com/indicator/percent-correction/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Those who follow me on <a href="http://twitter.com/thinkscripter">Twitter</a> may have seen this chart pop up on occasion so I thought I&#8217;d share it with you this weekend. It simply shows how deep the current correction is in percentage terms from the high. It is designed for use on daily charts during intermediate term pullbacks. The study also has a bear mode that measures corrections up when the trend is down. To initialize the study, the user enters the start date if the current prevailing trend, select bull or bear mode, and the spacing of the percentage lines. In the picture below, I started the study at the March lows of last year and used a two percent spacing. Also pictured is my version of the Renko chart which will be released to the <a href="http://www.thinkscripter.com/donations/">Pro Subscribers</a> in a forthcoming update. Best of luck in your trading. -Eric<br />
<div id="attachment_2090" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2010/05/PctCorr.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2010/05/PctCorr.png" alt="" title="PctCorr"  class="size-full wp-image-2090" /></a><p class="wp-caption-text">Percent Correction</p></div></p>
<pre class="brush: thinkscript;"># TS_PercentCorrection
# http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 22 May 2010

# Designed for use on daily charts

input startDateYYYYMMDD = 20100101;
input mode = {default Bull, Bear};
input spacing = 1.0;

def start = if getYyyyMmDd() &gt; startDateYYYYMMDD then 1 else 0;

rec highPrint = compoundValue(1, if start then if high &gt; highPrint[1] then high else highPrint[1] else high , high);
rec lowPrint = compoundValue(1, if start then if low &lt; lowPrint[1] then low else lowPrint[1] else low , low);

def onePercent = if mode == mode.Bull then highPrint * 0.01 else -lowPrint * 0.01;
def base = if mode == mode.Bull then highPrint else lowPrint;

plot hp = if start then base else double.nan;
plot p1 = if start then base - onePercent * 1 * spacing else double.nan;
plot p2 = if start then base - onePercent * 2 * spacing else double.nan;
plot p3 = if start then base - onePercent * 3 * spacing else double.nan;
plot p4 = if start then base - onePercent * 4 * spacing else double.nan;
plot p5 = if start then base - onePercent * 5 * spacing else double.nan;
plot p6 = if start then base - onePercent * 6 * spacing else double.nan;
plot p7 = if start then base - onePercent * 7 * spacing else double.nan;
plot p8 = if start then base - onePercent * 8 * spacing else double.nan;
plot p9 = if start then base - onePercent * 9 * spacing else double.nan;
plot p10 = if start then base - onePercent * 10 * spacing else double.nan;

hp.HideBubble();
p1.HideBubble();
p2.HideBubble();
p3.HideBubble();
p4.HideBubble();
p5.HideBubble();
p6.HideBubble();
p7.HideBubble();
p8.HideBubble();
p9.HideBubble();
p10.HideBubble();

AddChartBubble(yes, if IsNaN(close[-1]) then p1 else double.nan, concat(&quot;-&quot;, concat(1.0 * spacing, &quot;%&quot;)), color.white);
AddChartBubble(yes,  if IsNaN(close[-1]) then p2 else double.nan, concat(&quot;-&quot;, concat(2.0 * spacing, &quot;%&quot;)), color.white);
AddChartBubble(yes, if IsNaN(close[-1]) then  p3 else double.nan, concat(&quot;-&quot;, concat(3 * spacing, &quot;%&quot;)), color.white);
AddChartBubble(yes, if IsNaN(close[-1]) then  p4 else double.nan, concat(&quot;-&quot;, concat(4 * spacing, &quot;%&quot;)), color.white);
AddChartBubble(yes, if IsNaN(close[-1]) then  p5 else double.nan, concat(&quot;-&quot;, concat(5 * spacing, &quot;%&quot;)), color.white);
AddChartBubble(yes, if IsNaN(close[-1]) then  p6 else double.nan, concat(&quot;-&quot;, concat(6 * spacing, &quot;%&quot;)), color.white);
AddChartBubble(yes, if IsNaN(close[-1]) then  p7 else double.nan, concat(&quot;-&quot;, concat(7 * spacing, &quot;%&quot;)), color.white);
AddChartBubble(yes,  if IsNaN(close[-1]) then p8 else double.nan, concat(&quot;-&quot;, concat(8 * spacing, &quot;%&quot;)), color.white);
AddChartBubble(yes, if IsNaN(close[-1]) then  p9 else double.nan, concat(&quot;-&quot;, concat(9 * spacing, &quot;%&quot;)), color.white);
AddChartBubble(yes,  if IsNaN(close[-1]) then p10 else double.nan, concat(&quot;-&quot;, concat(10 * spacing, &quot;%&quot;)), color.white);

hp.HideTitle();
p1.HideTitle();
p2.HideTitle();
p3.HideTitle();
p4.HideTitle();
p5.HideTitle();
p6.HideTitle();
p7.HideTitle();
p8.HideTitle();
p9.HideTitle();
p10.HideTitle();</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/percent-correction/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<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>3</slash:comments>
		</item>
		<item>
		<title>Meltup</title>
		<link>http://www.thinkscripter.com/uncategorized/meltup/</link>
		<comments>http://www.thinkscripter.com/uncategorized/meltup/#comments</comments>
		<pubDate>Sun, 16 May 2010 14:09:34 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=2067</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><center><br />
<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/eb1n1X0Oqdw&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/eb1n1X0Oqdw&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object><br />
</center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/uncategorized/meltup/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Three Line Break</title>
		<link>http://www.thinkscripter.com/indicator/three-line-break/</link>
		<comments>http://www.thinkscripter.com/indicator/three-line-break/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 14:11:16 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[bricks]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[three line break]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=2042</guid>
		<description><![CDATA[The Three Line Break chart, also called Three Price Break. <a href="http://www.thinkscripter.com/indicator/three-line-break/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>By popular demand&#8230;.The Three Line Break chart, also called Three Price Break, or Bricks in John Carter&#8217;s Book <a href="http://www.amazon.com/gp/product/0071459588?ie=UTF8&amp;tag=thinks-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0071459588">Mastering the Trade</a>, is a time independent charting method similar to point and figure charts made popular in Steve Nison&#8217;s book <a href="http://www.amazon.com/gp/product/047100720X?ie=UTF8&#038;tag=thinks-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=047100720X">Beyond Candlesticks</a>. A new brick in the series is formed only when the closing price exceeds the high or low of the prior brick. The trend remains in the current direction until price &#8220;breaks&#8221; the high or low of the third brick back in the series. The advantage is that the price movement required for a reversal is not fixed but rather depends on the progression of the price action.  I&#8217;ve coded options to display the price bars color coordinated with the Three Line Break color, gray for closer inspection of the bricks, or the user&#8217;s default colors. <span style="color: #999999;">(Note: The Three Line Break will be posted to the <a href="http://www.thinkscripter.com/forum/">forum</a> as part of this weekend&#8217;s <a href="http://www.thinkscripter.com/donations/">Pro Subscriber</a> update.)</span></p>
<div id="pro" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2010/04/3LPB.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2010/04/3LPB.png" alt="" title="3LPB" class="size-full wp-image-2049" /></a><p class="wp-caption-text">Three Line Break</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/three-line-break/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
