<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	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>thinkScript Archives - PatternSmart.com</title>
	<atom:link href="https://patternsmart.com/wp/tag/thinkscript/feed/" rel="self" type="application/rss+xml" />
	<link>https://patternsmart.com/wp/tag/thinkscript/</link>
	<description></description>
	<lastBuildDate>Thu, 23 Jul 2026 18:20:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>

<image>
	<url>https://patternsmart.com/wp/wp-content/uploads/2026/04/cropped-icon-32x32.png</url>
	<title>thinkScript Archives - PatternSmart.com</title>
	<link>https://patternsmart.com/wp/tag/thinkscript/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Debug Indicator Signal Logic Bar by Bar in Trading Code</title>
		<link>https://patternsmart.com/wp/how-to-debug-indicator-signal-logic-bar-by-bar-in-trading-code/</link>
					<comments>https://patternsmart.com/wp/how-to-debug-indicator-signal-logic-bar-by-bar-in-trading-code/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 30 May 2026 15:59:42 +0000</pubDate>
				<category><![CDATA[Coding Logic]]></category>
		<category><![CDATA[algorithmic trading]]></category>
		<category><![CDATA[bar by bar debugging]]></category>
		<category><![CDATA[indicator debugging]]></category>
		<category><![CDATA[multi-timeframe indicator]]></category>
		<category><![CDATA[NinjaTrader]]></category>
		<category><![CDATA[Pine Script]]></category>
		<category><![CDATA[repainting]]></category>
		<category><![CDATA[signal logic]]></category>
		<category><![CDATA[strategy development]]></category>
		<category><![CDATA[technical analysis code]]></category>
		<category><![CDATA[thinkScript]]></category>
		<category><![CDATA[trading code]]></category>
		<category><![CDATA[trading indicator]]></category>
		<category><![CDATA[trading signals]]></category>
		<guid isPermaLink="false">https://patternsmart.com/wp/?p=1118</guid>

					<description><![CDATA[<p>To debug indicator signals bar by bar, the goal is to see exactly which condition becomes true or false on each candle and why the signal appears or does not appear. A good debugging process is: 1. Break the signal into smaller conditions Instead of debugging one large condition like: Split it into individual variables: [&#8230;]</p>
<p>The post <a href="https://patternsmart.com/wp/how-to-debug-indicator-signal-logic-bar-by-bar-in-trading-code/">How to Debug Indicator Signal Logic Bar by Bar in Trading Code</a> appeared first on <a href="https://patternsmart.com/wp">PatternSmart.com</a>.</p>
]]></description>
		
					<wfw:commentRss>https://patternsmart.com/wp/how-to-debug-indicator-signal-logic-bar-by-bar-in-trading-code/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://patternsmart.com/wp/wp-content/uploads/2026/05/Debug-Indicator.png" medium="image"></media:content>
	</item>
		<item>
		<title>Alert is not supported in SCAN and custom quote in thinkorswim</title>
		<link>https://patternsmart.com/wp/alert-is-not-supported-in-scan-and-custom-quote-in-thinkorswim/</link>
					<comments>https://patternsmart.com/wp/alert-is-not-supported-in-scan-and-custom-quote-in-thinkorswim/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 22 Feb 2017 02:46:11 +0000</pubDate>
				<category><![CDATA[Thinkorswim]]></category>
		<category><![CDATA[Thinkorswim TOS]]></category>
		<category><![CDATA[thinkScript]]></category>
		<guid isPermaLink="false">http://patternsmart.com/wp/?p=498</guid>

					<description><![CDATA[<p>Alerts can&#8217;t be used in SCAN and custom quote. We cannot put an alert script into a custom quote or SCAN and expect it to function.</p>
<p>The post <a href="https://patternsmart.com/wp/alert-is-not-supported-in-scan-and-custom-quote-in-thinkorswim/">Alert is not supported in SCAN and custom quote in thinkorswim</a> appeared first on <a href="https://patternsmart.com/wp">PatternSmart.com</a>.</p>
]]></description>
		
					<wfw:commentRss>https://patternsmart.com/wp/alert-is-not-supported-in-scan-and-custom-quote-in-thinkorswim/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>secondary aggregation period cannot be less than the primary aggregation period in thinkscript</title>
		<link>https://patternsmart.com/wp/secondary-aggregation-period-cannot-be-less-than-the-primary-aggregation-period-in-thinkscript/</link>
					<comments>https://patternsmart.com/wp/secondary-aggregation-period-cannot-be-less-than-the-primary-aggregation-period-in-thinkscript/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 22 Feb 2017 02:45:31 +0000</pubDate>
				<category><![CDATA[Thinkorswim]]></category>
		<category><![CDATA[thinkScript]]></category>
		<guid isPermaLink="false">http://patternsmart.com/wp/?p=496</guid>

					<description><![CDATA[<p>Code: plot weeklyClose = close("IBM", period = AggregationPeriod.WEEK); This code plots weekly Close price for IBM. Interesting thing is that the IBM chart does not have to be opened to plot the Close price: it will be plotted on chart of any symbol you specified in chart settings. There is, however, a restriction in terms [&#8230;]</p>
<p>The post <a href="https://patternsmart.com/wp/secondary-aggregation-period-cannot-be-less-than-the-primary-aggregation-period-in-thinkscript/">secondary aggregation period cannot be less than the primary aggregation period in thinkscript</a> appeared first on <a href="https://patternsmart.com/wp">PatternSmart.com</a>.</p>
]]></description>
		
					<wfw:commentRss>https://patternsmart.com/wp/secondary-aggregation-period-cannot-be-less-than-the-primary-aggregation-period-in-thinkscript/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>two different secondary aggregation periods cannot be used within a single variable in thinkscript</title>
		<link>https://patternsmart.com/wp/two-different-secondary-aggregation-periods-cannot-be-used-within-a-single-variable-in-thinkscript/</link>
					<comments>https://patternsmart.com/wp/two-different-secondary-aggregation-periods-cannot-be-used-within-a-single-variable-in-thinkscript/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 22 Feb 2017 02:45:02 +0000</pubDate>
				<category><![CDATA[Thinkorswim]]></category>
		<category><![CDATA[thinkScript]]></category>
		<guid isPermaLink="false">http://patternsmart.com/wp/?p=494</guid>

					<description><![CDATA[<p>Another restriction is that two different secondary aggregation periods cannot be used within a single variable: Code: plot Data = close(period = AggregationPeriod.MONTH) + close(period = AggregationPeriod.WEEK); This script will not work on daily charts. In order to make it work, you need to break into two variables: Code: def a = close(period = AggregationPeriod.MONTH); [&#8230;]</p>
<p>The post <a href="https://patternsmart.com/wp/two-different-secondary-aggregation-periods-cannot-be-used-within-a-single-variable-in-thinkscript/">two different secondary aggregation periods cannot be used within a single variable in thinkscript</a> appeared first on <a href="https://patternsmart.com/wp">PatternSmart.com</a>.</p>
]]></description>
		
					<wfw:commentRss>https://patternsmart.com/wp/two-different-secondary-aggregation-periods-cannot-be-used-within-a-single-variable-in-thinkscript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>three types of aggregation in TOS Charts thinkScript</title>
		<link>https://patternsmart.com/wp/three-types-of-aggregation-in-tos-charts-thinkscript/</link>
					<comments>https://patternsmart.com/wp/three-types-of-aggregation-in-tos-charts-thinkscript/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 22 Feb 2017 02:43:45 +0000</pubDate>
				<category><![CDATA[Thinkorswim]]></category>
		<category><![CDATA[aggregation]]></category>
		<category><![CDATA[Thinkorswim TOS]]></category>
		<category><![CDATA[thinkScript]]></category>
		<category><![CDATA[timeframe]]></category>
		<category><![CDATA[TOS]]></category>
		<guid isPermaLink="false">http://patternsmart.com/wp/?p=492</guid>

					<description><![CDATA[<p>So far, we have learned many things about the bars on charts and values which can be calculated for them. But we never discussed the way they are formed (or, aggregated). In TOS Charts, three types of aggregation are available: time aggregation, tick aggregation, and range aggregation. Time charts represent price action in terms of [&#8230;]</p>
<p>The post <a href="https://patternsmart.com/wp/three-types-of-aggregation-in-tos-charts-thinkscript/">three types of aggregation in TOS Charts thinkScript</a> appeared first on <a href="https://patternsmart.com/wp">PatternSmart.com</a>.</p>
]]></description>
		
					<wfw:commentRss>https://patternsmart.com/wp/three-types-of-aggregation-in-tos-charts-thinkscript/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
