<?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 - Custom ThinkScript Indicators for thinkorswim &#187; cycle</title>
	<atom:link href="http://www.thinkscripter.com/tag/cycle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thinkscripter.com</link>
	<description>Custom ThinkScript Indicator Scripts for thinkorswim</description>
	<lastBuildDate>Mon, 28 Jun 2010 02:18:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Sine Wave Cycles</title>
		<link>http://www.thinkscripter.com/2010/02/06/sine-wave-cycles/</link>
		<comments>http://www.thinkscripter.com/2010/02/06/sine-wave-cycles/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 19:09:41 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[cycle]]></category>
		<category><![CDATA[cyclic]]></category>
		<category><![CDATA[Ehlers]]></category>
		<category><![CDATA[MESA]]></category>
		<category><![CDATA[sine wave]]></category>
		<category><![CDATA[support and resistance]]></category>
		<category><![CDATA[thinkscript]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=1966</guid>
		<description><![CDATA[By popular request, here is my incarnation of a sine wave cycle support and resistance study similar to Barry Taylor&#8217;s excellent indicator (TradeStation, NinjaTrader, MultiCharts) over at Emini-Watch. The indicator plots support and resistance levels based on John Ehlers&#8217; MESA Sine Wave. The advantage of the MESA Sine Wave is in identifying cyclical turning points [...]]]></description>
			<content:encoded><![CDATA[<p>By popular request, here is my incarnation of a sine wave cycle support and resistance study similar to Barry Taylor&#8217;s excellent indicator (TradeStation, NinjaTrader, MultiCharts) over at <a href="http://emini-watch.com/products/hilbert-sine-wave">Emini-Watch</a>. The indicator plots support and resistance levels based on John Ehlers&#8217; <a href="http://www.mesasoftware.com/mesa.htm">MESA Sine Wave</a>. The advantage of the MESA Sine Wave is in identifying cyclical turning points <em>before</em> they occur; 1/8th of a cycle prior according to Ehlers. The study begins plotting the horizontal dots (white overhead resistance, red support) when a cycle turn is predicted and will continue until the next cycle turn occurs. When the market begins to trend and is no longer cyclic, the price levels are seen to be breakout points. Also pictured is a new version of the <a href="http://www.thinkscripter.com/2009/09/05/thinkscripter-volume-profile/">Volume Profile</a> that allows you to stack as many profiles as you desire to create a plot with greater detail.<br />
<div id="attachment_1971" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.thinkscripter.com/wp-content/uploads/2010/02/SineWaveCycles.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2010/02/SineWaveCycles.png" alt="" title="SineWaveCycles" width="500" height="450" class="size-full wp-image-1971" /></a><p class="wp-caption-text">Sine Wave Cycles Support and Resistance</p></div></p>
<p style="text-align: center;"><a href="http://www.thinkscripter.com/donations"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/08/GoProButton.png" alt="GoProButton" title="GoProButton" width="225" height="75" class="aligncenter size-full wp-image-1487" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/2010/02/06/sine-wave-cycles/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Cycle Point Moving Average</title>
		<link>http://www.thinkscripter.com/2009/05/19/cycle-point-moving-average/</link>
		<comments>http://www.thinkscripter.com/2009/05/19/cycle-point-moving-average/#comments</comments>
		<pubDate>Wed, 20 May 2009 04:37:15 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[cycle]]></category>
		<category><![CDATA[cycle moving average]]></category>
		<category><![CDATA[moving average]]></category>
		<category><![CDATA[thinkscript]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=1315</guid>
		<description><![CDATA[UPDATE : This script has been rendered inoperable as of 12 Dec 09 due to changes in the TOS ZigZag function. I will leave it posted as a reference for coders to examine the script methodology. This very basic script plots a close approximation of the cycle point moving average. You enter in the required [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"> <strong>UPDATE : This script has been rendered inoperable as of 12 Dec 09 due to changes in the TOS ZigZag function. I will leave it posted as a reference for coders to examine the script methodology.</strong></span></p>
<p>This very basic script plots a close approximation of the cycle point moving average. You enter in the required price reversal for a cycle turn, a moving average period, and it does the rest courtesy of the TOS zigZag function. I had coded this script some time ago and found nothing particularly compelling about it but decided to use it to illustrate the only new thinkScript feature I saw in the last build; namely the <span style="color: #0000ff;">defineColor()</span><span style="color: #0000ff;"> </span>command. In the past, when ever I needed to control the color of some study plot dynamically, I had to hard code in the colors in the associated <span style="color: #0000ff;">assignValueColor()</span> statement. As such, the custom coloring was only modifiable by altering the thinkScript itself. Using the new <span style="color: #0000ff;">defineColor()</span> command allows the scripter to code in value assignable colors but also allow an end user to change those colors should they desire. This is pretty useful as I had a number of folks ask for a &#8220;Green&#8221; implementation of the <a href="http://www.thinkscripter.com/2009/02/13/squeeze-indicator">Squeeze</a>. I expect to retrofit my earlier studies with this capability as time allows.</p>
<p>Break&#8230;.Break&#8230;.</p>
<p>Thanks to all for bearing with me this week. I know my response to your emails has been a bit slower than usual but I think I&#8217;ve gotten back to just about everyone at this point. It&#8217;s been a pretty busy week for myself and the family as we move back into our house after a four year absence in Annapolis. As such I haven&#8217;t really had as much time to devote to developmental stuff as I would like. I expect to be full steam ahead by early next week. </p>
<div id="attachment_1314" class="wp-caption aligncenter" style="width: 460px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/05/cpma.png"><img class="size-full wp-image-1314" title="cpma" src="http://www.thinkscripter.com/wp-content/uploads/2009/05/cpma.png" alt="Cycle Point Moving Average" width="450" height="500" /></a><p class="wp-caption-text">Cycle Point Moving Average</p></div>
<p><code><br />
# TS_CyclePointMovingAverage<br />
# (c) 2009 http://www.thinkscripter.com<br />
# thinkscripter@gmail.com<br />
# Last Update 19 May 2009</p>
<p>declare fullrange;</p>
<p>input RequiredPointsForCycleReversal = 10;<br />
input CycleMovingAveragePeriod = 7;</p>
<p>def ZZData = ZigZagSign(&quot;reversal amount&quot; = RequiredPointsForCycleReversal);<br />
def isHigh = if ZZData[1] &lt; ZZData and ZZData &gt; ZZData[-1] then 1 else 0;<br />
def isLow = if ZZData[1] &gt; ZZData and ZZData &lt; ZZData[-1] then 1 else 0;<br />
plot cyclePoint = if isHigh then high else if isLow then low else double.nan;<br />
plot CPMA = Average(ZZData, CycleMovingAveragePeriod);</p>
<p>CPMA.DefineColor(&quot;Positive Slope&quot;, color.cyan);<br />
CPMA.DefineColor(&quot;Negative Slope&quot;, color.magenta);<br />
CPMA.AssignValueColor(if CPMA - CPMA[1] &gt;= 0 then CPMA.color(&quot;Positive Slope&quot;) else CPMA.color(&quot;Negative Slope&quot;));<br />
CPMA.setLineWeight(3);</p>
<p>cyclePoint.SetStyle(curve.POINTS);<br />
cyclePoint.SetDefaultColor(color.white);<br />
cyclePoint.SetLineWeight(5);<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/2009/05/19/cycle-point-moving-average/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
