<?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; camarilla</title>
	<atom:link href="http://www.thinkscripter.com/tag/camarilla/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 Regular Trading Hours Multi-Pivots</title>
		<link>http://www.thinkscripter.com/indicator/thinkscripter-regular-trading-hours-multi-pivots/</link>
		<comments>http://www.thinkscripter.com/indicator/thinkscripter-regular-trading-hours-multi-pivots/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 01:51:08 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[camarilla]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[DeMark]]></category>
		<category><![CDATA[pivot]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[Woodies]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=1132</guid>
		<description><![CDATA[A set of pivot points (Floor, Camarilla, DeMark Hi/Lo, Woodie's) based on regular trading hours (RTH 0930-1600 EST) only regardless of the hours displayed. <a href="http://www.thinkscripter.com/indicator/thinkscripter-regular-trading-hours-multi-pivots/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Why create yet another set of pivots? First and foremost, I wanted a set of pivot points based on regular trading hours (RTH 0930-1600 EST) only regardless of the hours I have displayed. TOS allows you to display regular trading hours only or the full 24 hours. Unfortunately, the standard TOS pivot points will recalculate based on what you have displayed. This annoyed me so I built a set of pivots always based on RTH regardless of what you display. Rather than stopping there I decided to throw four types of pivots into the one study. You can choose between the traditional floor trader&#8217;s pivots, Camarilla pivots, DeMark Hi/Lo pivots or Woodie&#8217;s pivots. You also have the option to display a midline for the traditional and Woodie&#8217;s pivots.</p>
<p>Also pictured are the <a href="http://www.thinkscripter.com/2009/03/12/thinkscripter-multi-stops">ThinkScripter Multi-Stops</a> using a fibonacci stop of the standard settings, as well as the Better Volume indicator from <a href="http://www.emini-watch.com">Emini-Watch</a>. I simply ported his code over for use in thinkScript.</p>
<div id="pro" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/04/multipivots.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/04/multipivots.png" alt="ThinkScripter RTH MultiPivots" title="multipivots" width="450" height="500" class="size-full wp-image-1135" /></a><p class="wp-caption-text">ThinkScripter RTH MultiPivots</p></div>
<div id="pro" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/04/mpquad.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/04/mpquad.png" alt="Four Types of Pivots" title="mpquad" class="size-full wp-image-1136" /></a><p class="wp-caption-text">Four Types of Pivots</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/thinkscripter-regular-trading-hours-multi-pivots/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Camarilla Pivots</title>
		<link>http://www.thinkscripter.com/indicator/camarilla-pivots/</link>
		<comments>http://www.thinkscripter.com/indicator/camarilla-pivots/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 23:12:04 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[camarilla]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[pivot]]></category>
		<category><![CDATA[thinkscript]]></category>

		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=243</guid>
		<description><![CDATA[An implementation of the Camarilla pivots. <a href="http://www.thinkscripter.com/indicator/camarilla-pivots/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had a reader request an implementation of the Camarilla pivots. Rather than re-invent the wheel, I grabbed ToS&#8217; new Person&#8217;s Pivots script, jammed in the Camarilla formulas, cut out some extra plumbing, and voilà. By default the pivot, H1, H2, L1, and L2 levels are hidden. My quick research of these pivots suggested the H3/H4, L3/L4 levels are where the heavy lifting is done. (There is a bug in ThinkScript that makes the dot size a bit large for my taste but until ToS fixes it we&#8217;re stuck.)</p>
<div id="attachment_242" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/02/camarilla.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/02/camarilla.png" alt="Camarilla Pivots" title="camarilla" class="size-full wp-image-242" /></a><p class="wp-caption-text">Camarilla Pivots</p></div>
<pre class="brush: thinkscript; title: ; notranslate"># CAMARILLAPIVOTS
# (c) 2009 http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 08 Feb 2009

input timeFrame = {default DAY, WEEK, MONTH};
input showOnlyToday = no;

def H = high(period = timeFrame)[1];
def L = low(period = timeFrame)[1];
def C = close(period = timeFrame)[1];

def R = H-L;
def calc_PP = (H + L + C) / 3;
def calc_H1 = C+(R*1.1/12);
def calc_H2 = C+(R*1.1/6);
def calc_H3 = C+(R*1.1/4);
def calc_H4 = C+(R*1.1/2);
def calc_L1 = C-(R*1.1/12);
def calc_L2 = C-(R*1.1/6);
def calc_L3 = C-(R*1.1/4);
def calc_L4 = C-(R*1.1/2);

plot H4;
plot H3;
plot H2;
plot H1;
plot PP;
plot L1;
plot L2;
plot L3;
plot L4;

PP.hide();
H1.hide();
H2.hide();
L1.hide();
L2.hide();

if (showOnlyToday and !IsNaN(close(period = timeFrame)[-1])) or
(getAggregationPeriod() &gt; if timeframe == timeframe.DAY then AggregationPeriod.DAY else if timeframe == timeframe.WEEK then AggregationPeriod.WEEK else AggregationPeriod.MONTH)
then {
    H1 = Double.NaN;
    H2 = Double.NaN;
    H3 = Double.NaN;
    H4 = Double.NaN;
    PP = Double.NaN;
    L1 = Double.NaN;
    L2 = Double.NaN;
    L3 = Double.NaN;
    L4 = double.NaN;
}
else {
    H1 = calc_H1;
    H2 = calc_H2;
    H3 = calc_H3;
    H4 = calc_H4;
    PP = calc_PP;
    L1 = calc_L1;
    L2 = calc_L2;
    L3 = calc_L3;
    L4 = calc_L4;
}

PP.SetPaintingStrategy(if timeframe == timeframe.DAY then PaintingStrategy.LINE_VS_POINTS else if timeframe == timeframe.WEEK then PaintingStrategy.LINE_VS_TRIANGLES else PaintingStrategy.LINE_VS_SQUARES);
H1.SetPaintingStrategy(if timeframe == timeframe.DAY then PaintingStrategy.LINE_VS_POINTS else if timeframe == timeframe.WEEK then PaintingStrategy.LINE_VS_TRIANGLES else PaintingStrategy.LINE_VS_SQUARES);
H2.SetPaintingStrategy(if timeframe == timeframe.DAY then PaintingStrategy.LINE_VS_POINTS else if timeframe == timeframe.WEEK then PaintingStrategy.LINE_VS_TRIANGLES else PaintingStrategy.LINE_VS_SQUARES);
H3.SetPaintingStrategy(if timeframe == timeframe.DAY then PaintingStrategy.LINE_VS_POINTS else if timeframe == timeframe.WEEK then PaintingStrategy.LINE_VS_TRIANGLES else PaintingStrategy.LINE_VS_SQUARES);
H4.SetPaintingStrategy(if timeframe == timeframe.DAY then PaintingStrategy.LINE_VS_POINTS else if timeframe == timeframe.WEEK then PaintingStrategy.LINE_VS_TRIANGLES else PaintingStrategy.LINE_VS_SQUARES);

L1.SetPaintingStrategy(if timeframe == timeframe.DAY then PaintingStrategy.LINE_VS_POINTS else if timeframe == timeframe.WEEK then PaintingStrategy.LINE_VS_TRIANGLES else PaintingStrategy.LINE_VS_SQUARES);
L2.SetPaintingStrategy(if timeframe == timeframe.DAY then PaintingStrategy.LINE_VS_POINTS else if timeframe == timeframe.WEEK then PaintingStrategy.LINE_VS_TRIANGLES else PaintingStrategy.LINE_VS_SQUARES);
L3.SetPaintingStrategy(if timeframe == timeframe.DAY then PaintingStrategy.LINE_VS_POINTS else if timeframe == timeframe.WEEK then PaintingStrategy.LINE_VS_TRIANGLES else PaintingStrategy.LINE_VS_SQUARES);
L4.SetPaintingStrategy(if timeframe == timeframe.DAY then PaintingStrategy.LINE_VS_POINTS else if timeframe == timeframe.WEEK then PaintingStrategy.LINE_VS_TRIANGLES else PaintingStrategy.LINE_VS_SQUARES);

PP.SetDefaultColor(GetColor(0));
H1.SetDefaultColor(GetColor(5));
H2.SetDefaultColor(GetColor(5));
H3.SetDefaultColor(GetColor(5));
H4.SetDefaultColor(GetColor(5));
L1.SetDefaultColor(GetColor(6));
L2.SetDefaultColor(GetColor(6));
L3.SetDefaultColor(GetColor(6));
L4.SetDefaultColor(GetColor(6));

PP.SetStyle(Curve.POINTS);
H1.SetStyle(Curve.POINTS);
H2.SetStyle(Curve.POINTS);
H3.SetStyle(Curve.POINTS);
H4.SetStyle(Curve.POINTS);
L1.SetStyle(Curve.POINTS);
L2.SetStyle(Curve.POINTS);
L3.SetStyle(Curve.POINTS);
L4.SetStyle(Curve.POINTS);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/camarilla-pivots/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

