<?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/"
	 xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>Strategy Development &#8211; Tradesq Blog</title>
	<atom:link href="https://blog.tradesq.net/category/strategy-development/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.tradesq.net</link>
	<description>Home of EasyLanguage Algos</description>
	<lastBuildDate>Thu, 31 Aug 2023 09:48:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.2</generator>

<image>
	<url>https://blog.tradesq.net/wp-content/uploads/2022/11/cropped-tradesq_big-32x32.png</url>
	<title>Strategy Development &#8211; Tradesq Blog</title>
	<link>https://blog.tradesq.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Testing a YouTube-Sourced Trading Idea in the Futures Markets</title>
		<link>https://blog.tradesq.net/youtube-trading-idea/</link>
					<comments>https://blog.tradesq.net/youtube-trading-idea/#respond</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Thu, 31 Aug 2023 09:48:23 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Strategy Development]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=607</guid>

					<description><![CDATA[<p>Introduction: In the vast landscape of trading, inspiration can emerge from a multitude of sources &#8211; books, courses, forums, and the digital realm of YouTube, Discord, and beyond. The latter, in particular, hosts a myriad of channels unveiling trading strategies across Forex, Crypto, Futures, Stocks, and more. These platforms often showcase strategies through visual aids &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/youtube-trading-idea/">Testing a YouTube-Sourced Trading Idea in the Futures Markets</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-rank-math-toc-block" id="rank-math-toc" id="rank-math-toc"><h2>Table of Contents</h2><nav><ul><li ><a href="#introduction">Introduction:</a></li><li ><a href="#the-strategy">The Strategy</a></li><li ><a href="#the-research">The research</a><ul><li ><a href="#software">Software</a></li><li ><a href="#code-considerations">Code Considerations</a></li></ul></li><li ><a href="#results">Results</a><ul><li ><a href="#data-nq-15-min">Data: NQ (15min)</a></li><li ><a href="#data-cl-60-min">Data: CL (60min)</a></li><li ><a href="#data-cl-60-min-1">Data: CL (60min)</a></li></ul></li><li ><a href="#conclusion">Conclusion</a></li></ul></nav></div>


<h2 class="wp-block-heading" id="introduction"><strong>Introduction:</strong></h2>


<p class="wp-block-paragraph ">In the vast landscape of trading, inspiration can emerge from a multitude of sources &ndash; books, courses, forums, and the digital realm of YouTube, Discord, and beyond. The latter, in particular, hosts a myriad of channels unveiling trading strategies across Forex, Crypto, Futures, Stocks, and more. These platforms often showcase strategies through visual aids like Trading View, elaborating on entry points, exits, and filters. Yet, amidst this wealth of information, the challenge lies in the lack of comprehensive backtesting, accounting for crucial factors like Slippage, Commissions, and years of historical data. Personally, I find it imperative not to embark on any trading idea without first subjecting it to my own rigorous backtesting. This article centers on precisely that as we delve into a random strategy sourced from YouTube and subject it to rigorous testing in the Futures Markets. My YouTube search for &#8220;Futures Trading Strategy&#8221; led me to the Trade Pro Channel, capturing my attention with its profitability claim over the past eight years.</p>


<p class="wp-block-paragraph "></p>



<figure class="wp-block-image size-full"><a href="https://www.youtube.com/watch?v=1FdgVZX55AY&amp;t=338s" target="_blank" rel="noopener"><img data-dominant-color="1d1b14" data-has-transparency="true" style="--dominant-color: #1d1b14;" fetchpriority="high" decoding="async" width="884" height="194" src="https://blog.tradesq.net/wp-content/uploads/2023/08/image.png" alt="" class="has-transparency wp-image-608" srcset="https://blog.tradesq.net/wp-content/uploads/2023/08/image.png 884w, https://blog.tradesq.net/wp-content/uploads/2023/08/image-300x66.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/08/image-768x169.png 768w" sizes="(max-width: 884px) 100vw, 884px" /></a></figure>


<p class="wp-block-paragraph ">It&rsquo;s a mean reversion strategy with the following entry and exit conditions:</p>


<h2 class="wp-block-heading" id="the-strategy">The Strategy</h2>


<p class="wp-block-paragraph "><strong>Conditions to go long:</strong></p>


<ul class="wp-block-list ">
<li>Price above a 200-exponential moving average.</li>



<li>Price crosses below a 20-exponential moving average or Price crosses below a 50-exponential moving average.</li>



<li>RSI 14 is below oversold limit of 20.&nbsp;</li>
</ul>


<p class="wp-block-paragraph "><strong>Conditions to go short:</strong></p>


<ul class="wp-block-list ">
<li>Price below a 200-exponential moving average.</li>



<li>Price crosses above a 20-exponential moving average, or Price crosses above a 50-exponential moving average.</li>



<li>RSI 14 is above the overbought limit of 80.&nbsp;</li>
</ul>


<p class="wp-block-paragraph "><strong>Conditions to exit:</strong></p>


<ul class="wp-block-list ">
<li>Profit target 2x Stop loss (No specific number).&nbsp;</li>
</ul>


<p class="wp-block-paragraph ">Now, I will code and test the strategy and upload it to Tradesq to find out what futures markets the strategy will work.</p>


<h2 class="wp-block-heading" id="the-research">The research</h2>


<h3 class="wp-block-heading" id="software">Software</h3>


<ul class="wp-block-list ">
<li>
<strong>Charting Software:</strong>&nbsp;TradeStation 10.0.</li>



<li>
<strong>Code development language:</strong>&nbsp;Easylanguage 10.0.</li>



<li>
<strong>Future Markets Research:</strong>&nbsp;<a href="https://tradesq.net" target="_blank" rel="noopener">tradesq.net</a>
</li>
</ul>


<h3 class="wp-block-heading" id="code-considerations"><strong>Code Considerations</strong></h3>


<ul class="wp-block-list ">
<li>Option to go long only, short only, or both.</li>



<li>A profit target bigger or equal to the Stop loss will add a multiplier from a 1:1 ratio to a 2:1 ratio.</li>



<li>RSI length as an input.&nbsp;</li>
</ul>


<p class="wp-block-paragraph ">Let&#8217;s check if the code is working and how the entries look in TradeStation:</p>



<figure class="wp-block-image size-full"><img data-dominant-color="191b1c" data-has-transparency="true" style="--dominant-color: #191b1c;" decoding="async" width="818" height="344" src="https://blog.tradesq.net/wp-content/uploads/2023/08/image-1.png" alt="" class="has-transparency wp-image-609" srcset="https://blog.tradesq.net/wp-content/uploads/2023/08/image-1.png 818w, https://blog.tradesq.net/wp-content/uploads/2023/08/image-1-300x126.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/08/image-1-768x323.png 768w" sizes="(max-width: 818px) 100vw, 818px" /></figure>


<p class="wp-block-paragraph ">After checking that the code is working correctly, let&#8217;s proceed to take it to Tradesq and set the inputs that will vary:</p>



<figure class="wp-block-image size-full"><img data-dominant-color="f1f2f3" data-has-transparency="true" style="--dominant-color: #f1f2f3;" decoding="async" width="372" height="374" src="https://blog.tradesq.net/wp-content/uploads/2023/08/image-2.png" alt="" class="has-transparency wp-image-610" srcset="https://blog.tradesq.net/wp-content/uploads/2023/08/image-2.png 372w, https://blog.tradesq.net/wp-content/uploads/2023/08/image-2-298x300.png 298w, https://blog.tradesq.net/wp-content/uploads/2023/08/image-2-150x150.png 150w" sizes="(max-width: 372px) 100vw, 372px" /></figure>


<h2 class="wp-block-heading" id="results">Results</h2>


<p class="wp-block-paragraph ">Filtered by strategies with a PNL/DD ratio above 5.0, R2 above 0.5, and more than 200 trades:</p>



<figure class="wp-block-image size-full"><img data-dominant-color="eeeef0" data-has-transparency="true" style="--dominant-color: #eeeef0;" loading="lazy" decoding="async" width="620" height="230" src="https://blog.tradesq.net/wp-content/uploads/2023/08/image-3.png" alt="" class="has-transparency wp-image-611" srcset="https://blog.tradesq.net/wp-content/uploads/2023/08/image-3.png 620w, https://blog.tradesq.net/wp-content/uploads/2023/08/image-3-300x111.png 300w" sizes="(max-width: 620px) 100vw, 620px" /></figure>


<p class="wp-block-paragraph ">Note: All results include trading costs, Slippage and Commission.</p>


<p class="wp-block-paragraph ">It seems that the strategy works well on Index and Energy futures; let&#8217;s see some of those results:</p>


<h3 class="wp-block-heading" id="data-nq-15-min"><strong>Data: NQ (15min)</strong></h3>



<figure class="wp-block-image size-large"><img data-dominant-color="f6f5f3" data-has-transparency="true" style="--dominant-color: #f6f5f3;" loading="lazy" decoding="async" width="1024" height="325" src="https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.37.32-1024x325.png" alt="" class="has-transparency wp-image-617" srcset="https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.37.32-1024x325.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.37.32-300x95.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.37.32-768x244.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.37.32-1536x488.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.37.32-2048x651.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<h3 class="wp-block-heading" id="data-cl-60-min"><strong>Data: CL (60min)</strong></h3>



<figure class="wp-block-image size-large"><img data-dominant-color="f5f5f2" data-has-transparency="true" style="--dominant-color: #f5f5f2;" loading="lazy" decoding="async" width="1024" height="340" src="https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.35.45-1-1024x340.png" alt="" class="has-transparency wp-image-616" srcset="https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.35.45-1-1024x340.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.35.45-1-300x100.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.35.45-1-768x255.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.35.45-1-1536x510.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.35.45-1-2048x680.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<h3 class="wp-block-heading" id="data-cl-60-min-1"><strong>Data: CL (60min)</strong></h3>



<figure class="wp-block-image size-large"><img data-dominant-color="f6f5f3" data-has-transparency="true" style="--dominant-color: #f6f5f3;" loading="lazy" decoding="async" width="1024" height="306" src="https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.38.22-1024x306.png" alt="" class="has-transparency wp-image-618" srcset="https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.38.22-1024x306.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.38.22-300x90.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.38.22-768x229.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.38.22-1536x459.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/08/Screenshot-2023-08-31-at-11.38.22-2048x612.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<h2 class="wp-block-heading" id="conclusion">Conclusion</h2>


<p class="wp-block-paragraph ">Our journey through testing a YouTube-sourced trading strategy highlights the indispensable need for thorough validation. The Trade Pro Channel&#8217;s seemingly promising eight-year-profitable strategy reminded us that concepts require solid testing before trust. Employing the right tools, like TradeStation,&nbsp;&nbsp;Easylanguage, and <a href="http://tradesq.net" target="_blank" rel="noopener">Tradesq</a>, revealed market suitability, showing that diligent testing can yield surprises. In the world of trading ideas, it&#8217;s the tested ones that deserve our attention &ndash; a lesson to always test before you trade.</p>


<p class="wp-block-paragraph "><strong>Author:</strong></p>


<p class="wp-block-paragraph ">Juan Fernando G&oacute;mez</p>


<p class="wp-block-paragraph ">Email: jgomezv2@gmail.com</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/youtube-trading-idea/">Testing a YouTube-Sourced Trading Idea in the Futures Markets</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tradesq.net/youtube-trading-idea/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://www.youtube.com/embed/1FdgVZX55AY" medium="video" width="1280" height="720">
			<media:player url="https://www.youtube.com/embed/1FdgVZX55AY" />
			<media:title type="plain">After 8 Years Trading This Is My Favorite Strategy - Best Way To Trade Consistently And Profitably</media:title>
			<media:description type="html"><![CDATA[Thank you for watching!FREE live trade signals by me! Message me on Twitter to get an invite link to the discord signals group: https://twitter.com/TradePro1...]]></media:description>
			<media:thumbnail url="https://blog.tradesq.net/wp-content/uploads/2023/08/people-holding-youtube-icon-scaled.webp" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
		<item>
		<title>Enhancing the 2-Period RSI2 on Indexes Using the VIX Futures Market &#8211; an RSI trading strategy</title>
		<link>https://blog.tradesq.net/rsi-trading-strategy-using-the-vix-futures-market/</link>
					<comments>https://blog.tradesq.net/rsi-trading-strategy-using-the-vix-futures-market/#respond</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Wed, 26 Jul 2023 10:17:20 +0000</pubDate>
				<category><![CDATA[Strategy Development]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=585</guid>

					<description><![CDATA[<p>Introduction In the book &#8220;Short Term Trading Strategies That Work&#8221; by Larry Connors and Cesar Alvarez, a widely used entry strategy for Index markets is discussed, which takes advantage of the index mean reversion edge through the 2-period RSI. This RSI trading strategy involves going long only when the 2-period RSI falls below an oversold &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/rsi-trading-strategy-using-the-vix-futures-market/">Enhancing the 2-Period RSI2 on Indexes Using the VIX Futures Market &#8211; an RSI trading strategy</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-rank-math-toc-block" id="rank-math-toc" id="rank-math-toc"><h2>Table of Contents</h2><nav><ul><li ><a href="#introduction">Introduction</a></li><li ><a href="#why-vix">Why VIX? </a></li><li ><a href="#considerations">Considerations</a></li><li ><a href="#first-approach">First approach</a><ul><li ><a href="#results">Results</a></li></ul></li><li ><a href="#applying-tradesq">Applying Tradesq</a><ul><li ><a href="#results-1">Results</a><ul><li ><a href="#nasdaq-60-min">Nasdaq 60min</a></li><li ><a href="#es-120-min">ES 120min</a></li><li ><a href="#ym-60-min">YM 60min</a></li><li ><a href="#ym-120-min">YM 120min</a></li></ul></li></ul></li><li ><a href="#conclusion">Conclusion</a></li></ul></nav></div>


<h2 class="wp-block-heading" id="introduction">Introduction</h2>


<p class="wp-block-paragraph ">In the book &#8220;<a href="https://www.amazon.com/Short-Term-Trading-Strategies-That-ebook/dp/B007RSLN7M" target="_blank" rel="noopener">Short Term Trading Strategies That Work</a>&#8221; by Larry Connors and Cesar Alvarez, a widely used entry strategy for Index markets is discussed, which takes advantage of the index mean reversion edge through the 2-period RSI. This RSI trading strategy involves going long only when the 2-period RSI falls below an oversold limit. In this article, we will explore whether the RSI works in different timeframes and index markets, and we will use the Volatility Index (VIX) as a filter to enhance the strategy. </p>


<p class="wp-block-paragraph ">To establish a reference point, let&#8217;s consider a random pick from the ES market:</p>


<p class="wp-block-paragraph "></p>



<figure class="wp-block-image size-large"><img data-dominant-color="0b0b0a" data-has-transparency="true" style="--dominant-color: #0b0b0a;" loading="lazy" decoding="async" width="1024" height="370" src="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.02.53-1024x370.png" alt="" class="has-transparency wp-image-586" srcset="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.02.53-1024x370.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.02.53-300x108.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.02.53-768x277.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.02.53-1536x555.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.02.53.png 1744w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">Market: @ES&nbsp;<br>Timeframe: 120 mins.<br>Entry RSI2 crosses below 20. (Long only).<br>Stop loss: $1500.<br>Profit target: $1500.<br>Slippage: $12.5 per contract.<br>Commission: $2.5 per trade.</p>


<p class="wp-block-paragraph ">Based on the above parameters, the results are as follows:</p>



<figure class="wp-block-image size-large"><img data-dominant-color="f7f8f7" data-has-transparency="true" style="--dominant-color: #f7f8f7;" loading="lazy" decoding="async" width="1024" height="853" src="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.05.03-1024x853.png" alt="" class="has-transparency wp-image-588" srcset="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.05.03-1024x853.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.05.03-300x250.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.05.03-768x640.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.05.03-1536x1280.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.05.03.png 1860w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-table"><table><tbody><tr><td>Net Profit:</td><td>$87.977</td></tr><tr><td>Avg Trade:</td><td>$69.7</td></tr><tr><td>Trades:</td><td>1.262</td></tr><tr><td>Profit Factor:</td><td>1,10</td></tr><tr><td>Max DD:</td><td>$37.282</td></tr></tbody></table></figure>


<p class="wp-block-paragraph ">We could say there is an edge, but it can be further improved to increase its effectiveness by reducing the number of trades. In order to achieve this, I want to use the VIX as a filter.</p>


<h2 class="wp-block-heading" id="why-vix">Why VIX? </h2>


<p class="wp-block-paragraph ">Let&#8217;s explore its definition:</p>


<p class="wp-block-paragraph "><em>&nbsp;&ldquo;The Cboe Volatility Index (VIX) is a real-time index that represents the market&rsquo;s expectations for the relative strength of near-term price changes of the S&amp;P 500 Index (SPX). Because it is derived from the prices of SPX index options with near-term expiration dates, it generates a 30-day forward projection of volatility. Volatility, or how fast prices change, is often seen as a way to gauge market sentiment, and in particular the degree of fear among market participants.</em></p>


<p class="wp-block-paragraph "><em>The index is more commonly known by its ticker symbol and is often referred to simply as &ldquo;the VIX.&rdquo; It was created by the Cboe Options Exchange (Cboe) and is maintained by Cboe Global Markets. It is an important index in the world of trading and investment because it provides a quantifiable measure of market risk and investors&rsquo; sentiments.&rdquo;</em></p>


<p class="wp-block-paragraph ">Source:&nbsp;<a href="https://www.investopedia.com/terms/v/vix.asp" target="_blank" rel="noopener">https://www.investopedia.com/terms/v/vix.asp</a></p>


<p class="wp-block-paragraph ">As we can see from the definition, incorporating the VIX in our strategy allows us to leverage market sentiment as a filtering mechanism. To achieve this, we will consider the following cases:</p>


<ul class="wp-block-list ">
<li>Case 1: High of the VIX is higher than X bars ago.</li>



<li>Case 2: High of the VIX is lower than X bars ago.</li>



<li>Case 3: VIX RSI of X number bars ago is greater than 50.</li>



<li>Case 4: VIX RSI of X number bars ago is lower than 50.</li>



<li>Case 5: VIX RSI of X number bars ago is greater than 80.</li>



<li>Case 6: VIX RSI of X number bars ago is lower than 20.</li>
</ul>


<p class="wp-block-paragraph "></p>


<h2 class="wp-block-heading" id="considerations"><strong>Considerations</strong></h2>


<p class="wp-block-paragraph "><strong>Charting Software:</strong>&nbsp;TradeStation 10.0.</p>


<p class="wp-block-paragraph "><strong>Code development language:</strong>&nbsp;Easylanguage 10.0.</p>


<p class="wp-block-paragraph "><strong>Code Considerations:</strong></p>


<ul class="wp-block-list ">
<li>
<strong>Entries type:&nbsp;</strong><ul class="wp-block-list ">
<li>Long only.</li>
</ul>
</li>



<li>
<strong>Entries Direction:&nbsp;</strong><ul class="wp-block-list ">
<li>Mean Reversion.</li>
</ul>
</li>



<li>
<strong>Exits:</strong><ul><li>Stop Loss</li></ul>
<ul class="wp-block-list ">
<li>Profit Target: Stop Loss&nbsp;</li>
</ul>
</li>



<li>
<strong>Trigger:</strong><ul><li>Long when Close crosses below Oversold.</li></ul>
<ul class="wp-block-list ">
<li>VIX Filter on data 2</li>
</ul>
</li>
</ul>


<p class="wp-block-paragraph "></p>


<h2 class="wp-block-heading" id="first-approach">First approach</h2>


<p class="wp-block-paragraph ">OK, now that the code is ready, let&#8217;s add Data2 to our reference strategy:</p>



<figure class="wp-block-image size-large"><img data-dominant-color="e3e9eb" data-has-transparency="true" style="--dominant-color: #e3e9eb;" loading="lazy" decoding="async" width="1024" height="613" src="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.08.12-1024x613.png" alt="" class="has-transparency wp-image-589" srcset="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.08.12-1024x613.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.08.12-300x180.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.08.12-768x460.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.08.12.png 1042w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">And look for the following cases and parameters:</p>



<figure class="wp-block-image size-large"><img data-dominant-color="606365" data-has-transparency="true" style="--dominant-color: #606365;" loading="lazy" decoding="async" width="1024" height="422" src="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.08.39-1024x422.png" alt="" class="has-transparency wp-image-590" srcset="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.08.39-1024x422.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.08.39-300x124.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.08.39-768x317.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.08.39-1536x633.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.08.39-2048x845.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph "></p>


<h3 class="wp-block-heading" id="results">Results</h3>



<figure class="wp-block-image size-large"><img data-dominant-color="f9fafa" data-has-transparency="true" style="--dominant-color: #f9fafa;" loading="lazy" decoding="async" width="1006" height="1024" src="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.09.24-1006x1024.png" alt="" class="has-transparency wp-image-591" srcset="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.09.24-1006x1024.png 1006w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.09.24-295x300.png 295w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.09.24-768x782.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.09.24.png 1434w" sizes="(max-width: 1006px) 100vw, 1006px" /></figure>



<figure class="wp-block-table"><table><tbody><tr><td>&nbsp;</td><td>RSI2</td><td>RSI2 + VIX filters</td></tr><tr><td>Net Profit:</td><td>$87.977</td><td>$77.862</td></tr><tr><td>Avg Trade:</td><td>$69.7</td><td>$140.29</td></tr><tr><td>Trades:</td><td>1.262</td><td>555</td></tr><tr><td>Profit Factor:</td><td>1,10</td><td>1.21</td></tr><tr><td>Max DD:</td><td>$37.282</td><td>$17.862</td></tr></tbody></table></figure>


<p class="wp-block-paragraph ">The more effective filter case is number 4: where the RSI of the VIX with 7 bars back is above 50, even if the net profit is reduced, the strategy is more effective in reducing more than half of the trades, duplicating the average per trade and reducing the drawdown by $20.000.&nbsp;</p>


<p class="wp-block-paragraph ">After seeing the improvement of the strategy, some questions arise:</p>


<ul class="wp-block-list ">
<li>Will it work in another timeframe?</li>



<li>Will it work on other Index futures markets?</li>



<li>What will happen if the VIX has a different timeframe from the primary Market?</li>
</ul>


<p class="wp-block-paragraph ">This research will take me a considerable big amount of time to do it manually, so what better tool than Tradesq to help me out.</p>


<h2 class="wp-block-heading" id="applying-tradesq">Applying Tradesq</h2>


<p class="wp-block-paragraph "><a href="https://tradesq.net" target="_blank" rel="noopener">Tradesq</a> has been chosen as a Futures trading system research tool. </p>


<p class="wp-block-paragraph ">On Tradesq, I will enter the code, and on Data1, select the four main Index futures markets:&nbsp;</p>


<p class="wp-block-paragraph ">@ES: E-MINI S&amp;P 500.</p>


<p class="wp-block-paragraph ">@NQ: E-MINI NASDAQ 100.</p>


<p class="wp-block-paragraph ">@RTY: E-MINI RUSSELL 2000.</p>


<p class="wp-block-paragraph ">@YM: E-MINI DOW 30.</p>


<p class="wp-block-paragraph ">11 timeframes, from 15 minutes to daily.</p>


<p class="wp-block-paragraph ">For Data 2, the market will be @VX, and timeframes from 15 minutes to daily.&nbsp;</p>



<figure class="wp-block-image size-large"><img data-dominant-color="f3f3f3" data-has-transparency="true" style="--dominant-color: #f3f3f3;" loading="lazy" decoding="async" width="1024" height="832" src="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.10.28-1024x832.png" alt="testing an RSI trading strategy in tradesq" class="has-transparency wp-image-592" srcset="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.10.28-1024x832.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.10.28-300x244.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.10.28-768x624.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.10.28-1536x1248.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.10.28.png 1890w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<h3 class="wp-block-heading" id="results-1"><strong>Results</strong></h3>


<p class="wp-block-paragraph ">After a few hours, we obtained results based on the following criteria:</p>



<figure class="wp-block-image size-large"><img data-dominant-color="f2f4f5" data-has-transparency="true" style="--dominant-color: #f2f4f5;" loading="lazy" decoding="async" width="1024" height="434" src="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.11.18-1024x434.png" alt="" class="has-transparency wp-image-593" srcset="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.11.18-1024x434.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.11.18-300x127.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.11.18-768x325.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.11.18-1536x651.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.11.18.png 1864w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img data-dominant-color="e9eaed" data-has-transparency="true" style="--dominant-color: #e9eaed;" loading="lazy" decoding="async" width="1024" height="183" src="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.11.32-1024x183.png" alt="" class="has-transparency wp-image-594" srcset="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.11.32-1024x183.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.11.32-300x54.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.11.32-768x137.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.11.32-1536x274.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.11.32-2048x365.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<h4 class="wp-block-heading" id="nasdaq-60-min">Nasdaq 60min</h4>


<p class="wp-block-paragraph "><strong>Data1: Nasdaq (@NQ) 60min</strong></p>


<p class="wp-block-paragraph "><strong>Data2: VIX (@VX) 180min</strong></p>



<figure class="wp-block-image size-large"><img data-dominant-color="f6f5f4" data-has-transparency="true" style="--dominant-color: #f6f5f4;" loading="lazy" decoding="async" width="1024" height="368" src="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.12.32-1024x368.png" alt="RSI trading strategy result 1" class="has-transparency wp-image-595" srcset="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.12.32-1024x368.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.12.32-300x108.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.12.32-768x276.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.12.32-1536x552.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.12.32-2048x736.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<h4 class="wp-block-heading" id="es-120-min">ES 120min</h4>


<p class="wp-block-paragraph "><strong>Data1: S&amp;P (@ES) 120min</strong></p>


<p class="wp-block-paragraph "><strong>Data2: VIX (@VX) Daily</strong></p>



<figure class="wp-block-image size-large"><img data-dominant-color="f6f5f4" data-has-transparency="true" style="--dominant-color: #f6f5f4;" loading="lazy" decoding="async" width="1024" height="340" src="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.13.57-1024x340.png" alt="RSI trading strategy result 2" class="has-transparency wp-image-596" srcset="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.13.57-1024x340.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.13.57-300x100.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.13.57-768x255.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.13.57-1536x510.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.13.57-2048x679.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<h4 class="wp-block-heading" id="ym-60-min">YM 60min</h4>


<p class="wp-block-paragraph "><strong>Data1: DOW (@YM) 60min</strong></p>


<p class="wp-block-paragraph "><strong>Data2: VIX (@VX) 60min</strong></p>



<figure class="wp-block-image size-large"><img data-dominant-color="f6f6f4" data-has-transparency="true" style="--dominant-color: #f6f6f4;" loading="lazy" decoding="async" width="1024" height="430" src="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.14.21-1024x430.png" alt="RSI trading strategy result 2" class="has-transparency wp-image-597" srcset="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.14.21-1024x430.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.14.21-300x126.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.14.21-768x322.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.14.21-1536x645.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.14.21-2048x860.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<h4 class="wp-block-heading" id="ym-120-min">YM 120min</h4>


<p class="wp-block-paragraph "><strong>Data1: RTY (@YM) 120min</strong></p>


<p class="wp-block-paragraph "><strong>Data2: VIX (@VX) 1440min</strong></p>



<figure class="wp-block-image size-large"><img data-dominant-color="f6f6f4" data-has-transparency="true" style="--dominant-color: #f6f6f4;" loading="lazy" decoding="async" width="1024" height="391" src="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.14.41-1024x391.png" alt="RSI trading strategy result 3" class="has-transparency wp-image-598" srcset="https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.14.41-1024x391.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.14.41-300x114.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.14.41-768x293.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.14.41-1536x586.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/07/Screenshot-2023-07-25-at-11.14.41-2048x781.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">Note: All results include trading costs, Slippage, and Commission.</p>


<h2 class="wp-block-heading" id="conclusion"><strong>Conclusion</strong></h2>


<p class="wp-block-paragraph ">Incorporating the VIX as a filter has significantly improved the RSI trading strategy&#8217;s performance across different timeframes and Index futures markets. The results show promising potential and further research and testing can be conducted to refine and optimize the strategy.</p>


<p class="wp-block-paragraph "><strong>Author:</strong></p>


<p class="wp-block-paragraph ">Juan Fernando G&oacute;mez</p>


<p class="wp-block-paragraph ">Email: <a href="mailto:jgomezv2@gmail.com">jgomezv2@gmail.com</a></p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/rsi-trading-strategy-using-the-vix-futures-market/">Enhancing the 2-Period RSI2 on Indexes Using the VIX Futures Market &#8211; an RSI trading strategy</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tradesq.net/rsi-trading-strategy-using-the-vix-futures-market/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Introducing Tradesq Seasonal Edges &#8211; free trading system givaway</title>
		<link>https://blog.tradesq.net/seasonal-free-trading-system-giveaway/</link>
					<comments>https://blog.tradesq.net/seasonal-free-trading-system-giveaway/#respond</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Tue, 13 Jun 2023 08:10:46 +0000</pubDate>
				<category><![CDATA[seasonality]]></category>
		<category><![CDATA[Strategy Development]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=569</guid>

					<description><![CDATA[<p>In the dynamic world of trading, staying ahead of the game requires constant innovation and adaptability. We are thrilled to show you an exciting new feature in Tradesq &#8212; Seasonality Edges. As our recent blog post mentioned, Tradesq has introduced a powerful tool that takes advantage of seasonal trends and patterns to enhance your trading &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/seasonal-free-trading-system-giveaway/">Introducing Tradesq Seasonal Edges &#8211; free trading system givaway</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph ">In the dynamic world of trading, staying ahead of the game requires constant innovation and adaptability. We are thrilled to show you an exciting new feature in <a href="https://blog.tradesq.net/best-seasonal-trading-strategies-part-2/" data-type="post" data-id="551">Tradesq &mdash; Seasonality Edges</a>. As our recent blog post mentioned, Tradesq has introduced a <a href="https://blog.tradesq.net/best-seasonal-trading-strategies-part-2/" data-type="post" data-id="551">powerful tool</a> that takes advantage of seasonal trends and patterns to enhance your trading strategies. With Seasonality Edges, you can unlock valuable insights and gain a competitive edge in the market.</p>


<p class="wp-block-paragraph ">This article will focus on one of the edges listed in Tradesq&rsquo;s Seasonality Library. Seasonal Edge based free trading system giveaway.</p>


<p class="wp-block-paragraph "></p>


<h2 class="wp-block-heading" id="the-july-1st-es-sp-500-long-edge">The July 1st ES (S&amp;P 500) long edge</h2>


<p class="wp-block-paragraph ">Browsing the Tradesq seasonality database, one of the upcoming edges is an ES (S5P 500) long edge on July 1st:</p>



<figure class="wp-block-image size-large"><img data-dominant-color="f6f6f6" data-has-transparency="true" style="--dominant-color: #f6f6f6;" loading="lazy" decoding="async" width="1024" height="492" src="https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot-2023-06-12-at-15.21.37-1024x492.png" alt="free trading system" class="has-transparency wp-image-570" srcset="https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot-2023-06-12-at-15.21.37-1024x492.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot-2023-06-12-at-15.21.37-300x144.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot-2023-06-12-at-15.21.37-768x369.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot-2023-06-12-at-15.21.37-1536x737.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot-2023-06-12-at-15.21.37-2048x983.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">What does it mean? Analyzing historical time series data for ES, our Seasonality Engine identified a new seasonal edge formed around <strong>2014</strong>. This edge signifies a strong statistical bias for S&amp;P500 (and related markets) for a successful <strong>long trade</strong>.</p>


<p class="wp-block-paragraph ">How to trade this edge? <strong>Buy</strong> <strong>ES</strong> (S&amp;P 500) on <strong>July 1st</strong> at <strong>market close</strong>. Hold the trade for <strong>17 trading days</strong> and exit the position on the close. Doing this will give you a<strong> 90% statistical chance</strong> of winning the trade. In the past <strong>10 years</strong>, trading this edge, traders could average a <strong>$3,750 average trade size</strong>. This means a total of <strong>$37,500</strong> profit during the last decade.</p>


<p class="wp-block-paragraph ">For algo traders, Tradesq offers a generated EasyLanguage code to utilize this edge quantitatively:</p>



<pre class="wp-block-code"><code>//TO be placed to @ES symbol - free trading system follows
if date >= 1130701 and date &lt;= 1130701 + 2 and marketposition = 0 then Buy this bar at close;
if date >= 1140701 and date &lt;= 1140701 + 2 and marketposition = 0 then Buy this bar at close;
if date >= 1150701 and date &lt;= 1150701 + 2 and marketposition = 0 then Buy this bar at close;
if date >= 1160701 and date &lt;= 1160701 + 2 and marketposition = 0 then Buy this bar at close;
if date >= 1170701 and date &lt;= 1170701 + 2 and marketposition = 0 then Buy this bar at close;
if date >= 1180701 and date &lt;= 1180701 + 2 and marketposition = 0 then Buy this bar at close;
if date >= 1190701 and date &lt;= 1190701 + 2 and marketposition = 0 then Buy this bar at close;
if date >= 1200701 and date &lt;= 1200701 + 2 and marketposition = 0 then Buy this bar at close;
if date >= 1210701 and date &lt;= 1210701 + 2 and marketposition = 0 then Buy this bar at close;
if date >= 1220701 and date &lt;= 1220701 + 2 and marketposition = 0 then Buy this bar at close;

if marketposition &lt;> 0 and Barssinceentry = 17 then Sell this bar at close;
</code></pre>


<h2 class="wp-block-heading" id="multiple-ways-to-trade-a-seasonality-edge">Multiple ways to trade a seasonality edge</h2>


<p class="wp-block-paragraph ">Depending on your trading approach, you can gain an advantage on this edge independently if you are a discretional or quantitative trader.</p>


<ul class="wp-block-list ">
<li>You can trade the <strong>raw edge</strong>: you can enter and exit the trade based on the edge rules without any specific risk management. This reflects a Buy and Hold mentality.</li>



<li>You might define a breakout (or momentum) type of <strong>entry trigger</strong> to potentially increase the average win size.</li>



<li>You can consider introducing <strong>risk management</strong> by adding Stop Loss or Profit Target rules.</li>



<li>If you have a well-established trading system for ES, you might <strong>increase the position size</strong> on July 1st and the coming 17 trading days.</li>
</ul>


<h2 class="wp-block-heading" id="what-is-next">What is next?</h2>


<p class="wp-block-paragraph ">Looking beyond the potential of a great trade, the question of what comes next often arises. Luckily, Tradesq has the answer with its remarkable seasonality edges&mdash;a secret weapon designed to elevate the Profit Factor of your trades, irrespective of your preferred trading style. With over <strong>700 seasonality edges</strong> on various futures symbols housed within Tradesq&#8217;s extensive database, similar to the one highlighted in this very article, you gain access to a wealth of valuable insights.</p>


<p class="wp-block-paragraph ">To unlock this vast edge database, all you need to do is subscribe to our monthly or yearly <a href="https://tradesq.net/futures-seasonality" target="_blank" rel="noopener">Futures Seasonality package</a>, enabling you to commence trading immediately. </p>


<p class="wp-block-paragraph ">As a special introductory offer, we are thrilled to provide you with the exclusive <strong>SEASONAL10</strong> voucher code, granting you a 10% discount on your subscription. Seize this opportunity and harness the power of seasonality to optimize your trading endeavors like never before.</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/seasonal-free-trading-system-giveaway/">Introducing Tradesq Seasonal Edges &#8211; free trading system givaway</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tradesq.net/seasonal-free-trading-system-giveaway/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Best Seasonal Trading Strategies &#8211; Part 2</title>
		<link>https://blog.tradesq.net/best-seasonal-trading-strategies-part-2/</link>
					<comments>https://blog.tradesq.net/best-seasonal-trading-strategies-part-2/#comments</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Thu, 01 Jun 2023 14:25:10 +0000</pubDate>
				<category><![CDATA[seasonality]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=551</guid>

					<description><![CDATA[<p>Introduction Welcome back to the Seasonal Trading Strategies &#8211; Part 2 series! In our previous blog post, we embarked on a journey to explore the fascinating concept of seasonality in trading. We laid the foundation by introducing and defining what seasonal trading is and delved into how it can provide valuable insights for traders. If &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/best-seasonal-trading-strategies-part-2/">Best Seasonal Trading Strategies &#8211; Part 2</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2 class="wp-block-heading" id="introduction">Introduction</h2>


<p class="wp-block-paragraph ">Welcome back to the Seasonal Trading Strategies &#8211; Part 2 series! In our <a href="https://blog.tradesq.net/seasonality-in-trading/" data-type="post" data-id="540">previous blog post</a>, we embarked on a journey to explore the fascinating concept of seasonality in trading. We laid the foundation by introducing and defining what seasonal trading is and delved into how it can provide valuable insights for traders. If you missed it, we highly recommend giving it a read to grasp the fundamentals.</p>


<p class="wp-block-paragraph ">As we progress further in this series, we will shift our focus to the practical aspect of utilizing seasonality in trading. This article will explore how to uncover those elusive seasonality edges that can potentially enhance our trading strategies. By understanding how to find and exploit seasonality patterns, we aim to equip traders with a powerful tool that can inform their decision-making processes.</p>


<p class="wp-block-paragraph ">As we navigate this exploration, it&#8217;s important to remember that seasonality edges are not foolproof predictors of future market behavior. They are merely historical tendencies that may or may not persist in the future. Nevertheless, by combining them with other analytical tools and prudent risk management strategies, traders can gain valuable insights and potentially improve their trading outcomes.</p>


<p class="wp-block-paragraph ">So, without further ado, let&#8217;s embark on the quest to uncover seasonality edges and harness their potential in trading. By the end of this article, you will have a comprehensive understanding of the techniques and approaches that can assist you in identifying and leveraging these patterns effectively.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc" id="rank-math-toc"><h2>Table of Contents</h2><nav><ul><li ><a href="#introduction">Introduction</a></li><li ><a href="#finding-seasonal-trading-strategies-using-data-science-tools">Finding seasonal trading strategies using data science tools</a></li><li ><a href="#finding-seasonality-edges-using-tradesq">Finding seasonality edges using Tradesq</a></li><li ><a href="#example-seasonality-edge">Example seasonality edge</a></li><li ><a href="#what-is-next-or-seasonal-trading">What is next or seasonal trading?</a></li></ul></nav></div>


<h2 class="wp-block-heading" id="finding-seasonal-trading-strategies-using-data-science-tools">Finding seasonal trading strategies using data science tools</h2>


<p class="wp-block-paragraph ">Identifying seasonality edges in time series data is a challenging task. It is more like a data science project than a trading strategy development assignment.</p>


<p class="wp-block-paragraph ">One effective method is to use time series analysis to identify seasonal patterns in the data. This involves breaking down the data into its component parts, including trend, seasonality, and noise. By isolating the seasonal component, we can identify recurring patterns that are specific to certain times of the year.</p>


<p class="wp-block-paragraph ">Another approach is to use machine learning algorithms to predict future market trends based on historical data. These algorithms can be trained to recognize seasonal patterns and use them to make predictions about future market movements. This can be a powerful tool for traders looking to capitalize on seasonality trends.</p>


<h2 class="wp-block-heading" id="finding-seasonality-edges-using-tradesq">Finding seasonality edges using Tradesq</h2>


<p class="wp-block-paragraph "><a href="https://tradesq.net" target="_blank" rel="noopener">Tradesq</a> offers a comprehensive software solution for trading strategy development, monitoring, and evaluation. A recent enhancement to this platform is the introduction of the Market Seasonality Edges module.</p>


<p class="wp-block-paragraph ">With the <a href="https://tradesq.net/futures-seasonality" target="_blank" rel="noopener">Market Seasonality Edges</a> module, traders gain access to a continuous monitoring system that analyzes numerous future markets across various sectors. This module identifies and tracks seasonality edges (seasonal trading strategies) that emerge over time. As of the time of writing, over 450 distinct edges have been identified for futures symbols.</p>


<p class="wp-block-paragraph ">Traders using Tradesq can conveniently view and explore these identified edges. They have the flexibility to list the edges by specific markets or by periods. This feature enables traders to effectively leverage the insights from seasonality analysis to inform their trading strategies.</p>


<p class="wp-block-paragraph "></p>



<figure class="wp-block-image size-large"><img data-dominant-color="f8f9f9" data-has-transparency="false" style="--dominant-color: #f8f9f9;" loading="lazy" decoding="async" width="1024" height="615" src="https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot_2023-05-31_at_15_13_36-1024x615.png" alt="seasonal trading strategies" class="not-transparent wp-image-552" srcset="https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot_2023-05-31_at_15_13_36-1024x615.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot_2023-05-31_at_15_13_36-300x180.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot_2023-05-31_at_15_13_36-768x461.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot_2023-05-31_at_15_13_36-1536x922.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot_2023-05-31_at_15_13_36-2048x1229.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">List of trading strategies &#8211; seasonality edges</figcaption></figure>


<p class="wp-block-paragraph "></p>


<h2 class="wp-block-heading" id="example-seasonality-edge">Example seasonality edge</h2>


<p class="wp-block-paragraph ">Now, let&#8217;s take a look at an illustrative seasonality edge sourced from the database. We have randomly selected a seasonality edge from the Soybean Meal (SM) market to showcase.</p>


<p class="wp-block-paragraph ">As seen in Tradesq, this specific edge has been in existence for the past 15 years and is associated with a trading system that boasts an impressive 86% win rate. Considering its longevity, a trading system aligned with this edge would have executed a total of 15 trades, with an average trade size amounting to $499.</p>


<p class="wp-block-paragraph ">Implementing this trading edge manually is straightforward. Here&#8217;s a simple approach: On January 2nd of each year, initiate a long position at market close. Hold the trade for a duration of 5 days and then exit the position at the closing price. By following this strategy, traders can take advantage of the identified seasonality edge effectively.</p>


<p class="wp-block-paragraph "></p>



<figure class="wp-block-image size-large"><img data-dominant-color="f3f3f3" data-has-transparency="true" style="--dominant-color: #f3f3f3;" loading="lazy" decoding="async" width="1024" height="498" src="https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot-2023-05-31-at-15.24.06-1024x498.png" alt="" class="has-transparency wp-image-553" srcset="https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot-2023-05-31-at-15.24.06-1024x498.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot-2023-05-31-at-15.24.06-300x146.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot-2023-05-31-at-15.24.06-768x373.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot-2023-05-31-at-15.24.06-1536x747.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/06/Screenshot-2023-05-31-at-15.24.06-2048x995.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">For the convenience of the quantitative strategy trader, this edge is built as an Easylanguage strategy. This code can easily be pasted to Tradestation or Multicharts over Soybean Meal (@SM) daily chart:</p>



<pre class="wp-block-code"><code>if date &gt;= 1080102 and date &lt;= 1080102 + 2 and marketposition = 0 then Buy this bar at close;
if date &gt;= 1090102 and date &lt;= 1090102 + 2 and marketposition = 0 then Buy this bar at close;
if date &gt;= 1100102 and date &lt;= 1100102 + 2 and marketposition = 0 then Buy this bar at close;
if date &gt;= 1110102 and date &lt;= 1110102 + 2 and marketposition = 0 then Buy this bar at close;
if date &gt;= 1120102 and date &lt;= 1120102 + 2 and marketposition = 0 then Buy this bar at close;
if date &gt;= 1130102 and date &lt;= 1130102 + 2 and marketposition = 0 then Buy this bar at close;
if date &gt;= 1140102 and date &lt;= 1140102 + 2 and marketposition = 0 then Buy this bar at close;
if date &gt;= 1150102 and date &lt;= 1150102 + 2 and marketposition = 0 then Buy this bar at close;
if date &gt;= 1160102 and date &lt;= 1160102 + 2 and marketposition = 0 then Buy this bar at close;
if date &gt;= 1170102 and date &lt;= 1170102 + 2 and marketposition = 0 then Buy this bar at close;
if date &gt;= 1180102 and date &lt;= 1180102 + 2 and marketposition = 0 then Buy this bar at close;
if date &gt;= 1190102 and date &lt;= 1190102 + 2 and marketposition = 0 then Buy this bar at close;
if date &gt;= 1200102 and date &lt;= 1200102 + 2 and marketposition = 0 then Buy this bar at close;
if date &gt;= 1210102 and date &lt;= 1210102 + 2 and marketposition = 0 then Buy this bar at close;
if date &gt;= 1220102 and date &lt;= 1220102 + 2 and marketposition = 0 then Buy this bar at close;

if marketposition &lt;&gt; 0 and Barssinceentry = 5 then Sell this bar at close;</code></pre>


<p class="wp-block-paragraph ">If you wonder, seasonality edges are spread relatively evenly during the year. For example, Tradesq&#8217;s database contains 38 seasonality-based, statistically proven trading strategies for July.</p>


<h2 class="wp-block-heading" id="what-is-next-or-seasonal-trading">What is next or seasonal trading?</h2>


<p class="wp-block-paragraph ">Thanks to Tradesq, you can access hundreds of seasonality edges in the <a href="https://www.investopedia.com/terms/f/futuresmarket.asp" target="_blank" rel="noopener">futures markets</a>. But what is next? </p>


<ul class="wp-block-list ">
<li>How can you utilize them if you are a discretional or algo trader? </li>



<li>What if you trade stocks? Is a stock seasonality screener available to list seasonal patterns in the stock market?</li>



<li>What is seasonal trading for forex traders? Are there any seasonal trading strategies available for forex pairs?</li>
</ul>


<p class="wp-block-paragraph ">Stay tuned and follow our blog series about seasonal trading strategies.</p>


<p class="wp-block-paragraph "></p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/best-seasonal-trading-strategies-part-2/">Best Seasonal Trading Strategies &#8211; Part 2</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tradesq.net/best-seasonal-trading-strategies-part-2/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Seasonality in Trading &#8211; Unveiling the Super Power of Seasonality</title>
		<link>https://blog.tradesq.net/seasonality-in-trading/</link>
					<comments>https://blog.tradesq.net/seasonality-in-trading/#comments</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Fri, 26 May 2023 14:37:31 +0000</pubDate>
				<category><![CDATA[seasonality]]></category>
		<category><![CDATA[Strategy Development]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=540</guid>

					<description><![CDATA[<p>Welcome to the first installment of our new blog series on seasonality in trading. In this series, we&#8217;ll be exploring the concept of seasonality and how traders can use it to improve their daily strategies. Whether you&#8217;re a seasoned pro or just starting out, understanding the patterns and trends that occur throughout the year can &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/seasonality-in-trading/">Seasonality in Trading &#8211; Unveiling the Super Power of Seasonality</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph ">Welcome to the first installment of our new blog series on seasonality in trading. In this series, we&#8217;ll be exploring the concept of seasonality and how traders can use it to improve their daily strategies. Whether you&#8217;re a seasoned pro or just starting out, understanding the patterns and trends that occur throughout the year can be invaluable when it comes to making profitable trades. So, without further ado, let&#8217;s dive in and explore the world of seasonality in trading!</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc" id="rank-math-toc"><h2>Table of Contents</h2><nav><ul><li ><a href="#introduction">Introduction:</a></li><li ><a href="#understanding-seasonality-in-trading">Understanding Seasonality in Trading:</a></li><li ><a href="#utilizing-seasonality-in-discretionary-trading">Utilizing Seasonality in Discretionary Trading:</a></li><li ><a href="#leveraging-seasonality-in-algorithmic-trading">Leveraging Seasonality in Algorithmic Trading:</a></li><li ><a href="#conclusion">Conclusion:</a></li></ul></nav></div>


<p class="wp-block-paragraph "></p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img data-dominant-color="8a766f" data-has-transparency="true" style="--dominant-color: #8a766f;" loading="lazy" decoding="async" width="1024" height="584" data-id="543" src="https://blog.tradesq.net/wp-content/uploads/2023/05/Screenshot-2023-05-26-at-16.14.05-1024x584.png" alt="seasonality in trading" class="has-transparency wp-image-543" srcset="https://blog.tradesq.net/wp-content/uploads/2023/05/Screenshot-2023-05-26-at-16.14.05-1024x584.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/05/Screenshot-2023-05-26-at-16.14.05-300x171.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/05/Screenshot-2023-05-26-at-16.14.05-768x438.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/05/Screenshot-2023-05-26-at-16.14.05.png 1378w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">Seasonality in trading</figcaption></figure>
</figure>


<h2 class="wp-block-heading" id="introduction">Introduction:</h2>


<p class="wp-block-paragraph ">In the trading realm, where timing is everything, understanding and leveraging seasonality can give traders a distinct advantage. Seasonality refers to the recurring patterns and trends that occur within specific time periods, often influenced by natural or human factors. This blog post explores the significance of seasonality in trading and discusses how it can be harnessed for both discretionary and algorithmic trading strategies.</p>


<h2 class="wp-block-heading" id="understanding-seasonality-in-trading">Understanding Seasonality in Trading:</h2>


<p class="wp-block-paragraph "><a href="https://www.investopedia.com/terms/s/seasonality.asp" data-type="URL" data-id="https://www.investopedia.com/terms/s/seasonality.asp" target="_blank" rel="noopener">Seasonality</a> manifests itself in various ways, influenced by factors such as weather conditions, agricultural cycles, holidays, and human behavior. By analyzing historical data, traders can identify patterns and trends that repeat at particular times each year. These patterns can provide valuable insights into the future performance of commodities.</p>


<p class="wp-block-paragraph ">The Importance of Seasonality in Commodity Trading:<br>Commodity markets are intrinsically linked to the forces of nature and human consumption patterns. Understanding the impact of seasonality is particularly crucial in commodity trading due to the following reasons:</p>


<p class="wp-block-paragraph ">Supply and Demand Imbalance: Seasonality often leads to imbalances between supply and demand. For instance, agricultural commodities like wheat or soybeans are subject to seasonal planting and harvesting cycles. The demand for heating oil surges during winter months, while gasoline consumption increases during summer due to travel and vacation season. By recognizing these patterns, traders can make more informed decisions regarding when to enter or exit positions.</p>


<p class="wp-block-paragraph ">Price Volatility: Seasonal factors can significantly impact commodity prices, leading to increased volatility. Natural disasters, like hurricanes or droughts, can disrupt crop production and affect prices. Similarly, geopolitical events or regulatory changes can influence supply chains, resulting in price fluctuations. Traders who comprehend seasonal trends can navigate these volatile periods more effectively, identifying opportunities for profit or managing risks.</p>


<h2 class="wp-block-heading" id="utilizing-seasonality-in-discretionary-trading">Utilizing Seasonality in Discretionary Trading:</h2>


<p class="wp-block-paragraph ">Discretionary traders can benefit from seasonality by integrating it into their decision-making process. Here are a few key strategies:</p>


<p class="wp-block-paragraph ">News and Fundamental Analysis: As well as fundamental analysis and relevant news, seasonal factors should be considered. By monitoring weather reports, crop reports, or economic calendars, traders can gain insights into potential seasonal impacts on commodity prices.</p>


<p class="wp-block-paragraph ">Seasonal patterns can serve as valuable tools for discretionary traders, allowing them to align their trades with the prevailing seasonal bias. By analyzing historical data and identifying recurring patterns during specific time periods, discretionary traders can make informed decisions about entering trades that are aligned with seasonal trends. This approach enables traders to capitalize on the potential advantages presented by seasonal biases and enhance their overall trading strategies. By selectively trading in the direction of the seasonal bias, traders can increase the probability of successful trades and potentially achieve improved trading performance.</p>


<h2 class="wp-block-heading" id="leveraging-seasonality-in-algorithmic-trading">Leveraging Seasonality in Algorithmic Trading:</h2>


<p class="wp-block-paragraph ">Seasonality can also be harnessed effectively in algorithmic trading strategies. Automated systems can process vast amounts of historical data and execute trades based on predefined rules. Here are a couple of ways to utilize seasonality in algorithmic trading:</p>


<p class="wp-block-paragraph ">Algorithmic trading models can be designed to identify and capitalize on seasonal trends. These algorithms can automatically execute trades when specific conditions related to seasonality are met, optimizing the timing of entry and exit points.</p>


<p class="wp-block-paragraph ">Enhancing Trading Algorithms with Seasonality: Seasonal trends can significantly impact various trading strategies, not limited to just trend-following algorithms. By incorporating seasonality as an entry filter, trading algorithms across different types can be optimized to identify opportune moments for executing trades, improving the timing of entry and exit points.<br></p>


<h2 class="wp-block-heading" id="conclusion">Conclusion:</h2>


<p class="wp-block-paragraph ">Seasonality plays a pivotal role in commodity trading, offering traders valuable insights into future price movements and supply-demand dynamics. By comprehending and leveraging seasonal patterns, both discretionary and algorithmic traders can gain a competitive edge. Whether it&#8217;s through historical analysis, fundamental research, or automated systems, traders who integrate seasonality into their strategies are better equipped to navigate market fluctuations and seize profitable opportunities. Remember, harnessing the power of seasonality is not a crystal ball, but it can undoubtedly increase the odds of success in commodity trading.</p>


<p class="wp-block-paragraph ">I hope this post has provided some valuable insights into the concept of seasonality in trading and how it can be used to gain an edge in the markets. In the next blog post in this series, we will delve deeper into the topic and explore different ways to find seasonality edges on various markets. Stay tuned for more informative content!</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/seasonality-in-trading/">Seasonality in Trading &#8211; Unveiling the Super Power of Seasonality</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tradesq.net/seasonality-in-trading/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Does the Hammer-Hangman Pattern work on Futures markets?</title>
		<link>https://blog.tradesq.net/does-the-hammer-hangman-pattern-work-on-futures-markets/</link>
					<comments>https://blog.tradesq.net/does-the-hammer-hangman-pattern-work-on-futures-markets/#respond</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Fri, 30 Dec 2022 08:45:46 +0000</pubDate>
				<category><![CDATA[Strategy Development]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=430</guid>

					<description><![CDATA[<p>A Tradesq Case Study I want to see that the simple pattern called Hammer or Hanging man works in future markets, but before beginning the test let&#8217;s see what the pattern is all about: Definition: Source https://www.thinkmarkets.com/ How to use it Short trades:&#160;Hammer Pattern and Close are higher than the open.&#160; Long trades:&#160;Hammer Pattern and &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/does-the-hammer-hangman-pattern-work-on-futures-markets/">Does the Hammer-Hangman Pattern work on Futures markets?</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><ul><li ><a href="#a-tradesq-case-study">A Tradesq Case Study</a></li><li ><a href="#strong-how-to-use-it-strong">How to use it</a></li><li ><a href="#some-examples">Some examples</a><ul><li ><a href="#strong-nasdaq-nq-180-min-strong">Nasdaq(@NQ) 180min:</a></li><li ><a href="#strong-vix-vx-15-min-strong">VIX(@VX) 15min</a></li><li ><a href="#strong-wheat-w-480-min-strong">Wheat(@W) 480min</a></li><li ><a href="#strong-high-grade-copper-hg-240-m-strong">High Grade Copper(@HG) 240m</a></li></ul></li><li ><a href="#conclusion">Conclusion</a></li></ul></nav></div>


<h2 class="wp-block-heading" id="a-tradesq-case-study">A Tradesq Case Study</h2>


<p class="wp-block-paragraph ">I want to see that the simple pattern called Hammer or Hanging man works in future markets, but before beginning the test let&rsquo;s see what the pattern is all about:</p>


<p class="wp-block-paragraph "><strong>Definition</strong>: Source https://www.thinkmarkets.com/</p>


<p class="wp-block-paragraph "></p>



<figure class="wp-block-image aligncenter size-full"><img data-dominant-color="f8f7f6" data-has-transparency="true" style="--dominant-color: #f8f7f6;" loading="lazy" decoding="async" width="664" height="529" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-e1672083005807.png" alt="Hammer pchart pattern" class="has-transparency wp-image-431" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-e1672083005807.png 664w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-e1672083005807-300x239.png 300w" sizes="(max-width: 664px) 100vw, 664px" /></figure>


<h2 class="wp-block-heading" id="strong-how-to-use-it-strong"><strong>How to use it</strong></h2>


<p class="wp-block-paragraph "><strong>Short trades:</strong>&nbsp;Hammer Pattern and Close are higher than the open.&nbsp;</p>


<p class="wp-block-paragraph "><strong>Long trades:</strong>&nbsp;Hammer Pattern and Close is lower than the open.</p>


<p class="wp-block-paragraph ">Now that we understand what a hammer pattern is, lets code in TradeStation Easylenguage the signals, the easiest way to do it, is to look at the resources that TradeStation already has:&nbsp;</p>


<p class="wp-block-paragraph ">Within the Prebuilt Studies, ShowMe Section, we can find:&nbsp;<em>C_Hammer_HangingMan</em></p>



<figure class="wp-block-image aligncenter size-full"><img data-dominant-color="e1e5e7" data-has-transparency="true" style="--dominant-color: #e1e5e7;" loading="lazy" decoding="async" width="538" height="450" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-2.png" alt="" class="has-transparency wp-image-433" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-2.png 538w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-2-300x251.png 300w" sizes="(max-width: 538px) 100vw, 538px" /></figure>


<p class="wp-block-paragraph ">And it will show us every hammer (Green and Red dots) on the chart:</p>


<p class="wp-block-paragraph "></p>



<figure class="wp-block-image aligncenter size-full"><img data-dominant-color="f2f2ea" data-has-transparency="true" style="--dominant-color: #f2f2ea;" loading="lazy" decoding="async" width="770" height="414" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-3.png" alt="" class="has-transparency wp-image-434" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-3.png 770w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-3-300x161.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-3-768x413.png 768w" sizes="(max-width: 770px) 100vw, 770px" /></figure>


<p class="wp-block-paragraph ">Let&rsquo;s have a look at the code that TradeStation has already developed:</p>



<figure class="wp-block-image aligncenter size-full"><img data-dominant-color="fafafa" data-has-transparency="true" style="--dominant-color: #fafafa;" loading="lazy" decoding="async" width="754" height="464" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-5.png" alt="" class="has-transparency wp-image-436" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-5.png 754w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-5-300x185.png 300w" sizes="(max-width: 754px) 100vw, 754px" /></figure>


<p class="wp-block-paragraph ">As we can see, there is already a function called&nbsp;<em><a href="https://help.tradestation.com/10_00/eng/tsdevhelp/elword/function/c_hammer_hangingman_function_.htm" target="_blank" rel="noopener">C_Hammer_HangingMan</a>,&nbsp;</em>so let&rsquo;s take advantage and proceed to create our code and implement the entry signals:</p>


<p class="wp-block-paragraph ">Consideration for creating the code:</p>


<ul class="wp-block-list ">
<li>Ability to choose Long only, short only, or both.</li>



<li>Random Stop Loss and Profit Target exits.</li>
</ul>



<figure class="wp-block-image size-full"><img data-dominant-color="f9f9fb" data-has-transparency="true" style="--dominant-color: #f9f9fb;" loading="lazy" decoding="async" width="896" height="598" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-6.png" alt="" class="has-transparency wp-image-437" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-6.png 896w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-6-300x200.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-6-768x513.png 768w" sizes="(max-width: 896px) 100vw, 896px" /></figure>



<figure class="wp-block-image aligncenter size-full"><img data-dominant-color="f6f6fb" data-has-transparency="true" style="--dominant-color: #f6f6fb;" loading="lazy" decoding="async" width="462" height="600" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-7.png" alt="" class="has-transparency wp-image-438" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-7.png 462w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-7-231x300.png 231w" sizes="(max-width: 462px) 100vw, 462px" /></figure>


<p class="wp-block-paragraph ">Let&#8217;s check that our code is working correctly: (Red dot should be a short entry and the green dot a long entry)</p>



<figure class="wp-block-image aligncenter size-full"><img data-dominant-color="f6f5f1" data-has-transparency="true" style="--dominant-color: #f6f5f1;" loading="lazy" decoding="async" width="638" height="358" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-8.png" alt="" class="has-transparency wp-image-439" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-8.png 638w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-8-300x168.png 300w" sizes="(max-width: 638px) 100vw, 638px" /></figure>


<p class="wp-block-paragraph ">We are ready to upload the code into Tradesq and select all 43 futures markets, the 11 timeframes, and the inputs range we want to test.</p>



<figure class="wp-block-image aligncenter size-full"><img data-dominant-color="f4f4f4" data-has-transparency="true" style="--dominant-color: #f4f4f4;" loading="lazy" decoding="async" width="826" height="436" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-9.png" alt="" class="has-transparency wp-image-440" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-9.png 826w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-9-300x158.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-9-768x405.png 768w" sizes="(max-width: 826px) 100vw, 826px" /></figure>


<p class="wp-block-paragraph ">Let&rsquo;s see the results:</p>


<p class="wp-block-paragraph ">We have many edges in the <strong>currency</strong>, <strong>energy</strong>, <strong>grains</strong>, <strong>index</strong>, and <strong>metals</strong> sectors.</p>



<figure class="wp-block-image aligncenter size-full"><img data-dominant-color="eeeef0" data-has-transparency="true" style="--dominant-color: #eeeef0;" loading="lazy" decoding="async" width="844" height="596" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-11.png" alt="" class="has-transparency wp-image-442" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-11.png 844w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-11-300x212.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-11-768x542.png 768w" sizes="(max-width: 844px) 100vw, 844px" /></figure>


<h2 class="wp-block-heading" id="some-examples">Some examples</h2>


<h3 class="wp-block-heading" id="strong-nasdaq-nq-180-min-strong"><strong>Nasdaq(@NQ) 180min:</strong></h3>



<figure class="wp-block-image size-full"><img data-dominant-color="f1f2f4" data-has-transparency="true" style="--dominant-color: #f1f2f4;" loading="lazy" decoding="async" width="882" height="432" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-13.png" alt="" class="has-transparency wp-image-445" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-13.png 882w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-13-300x147.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-13-768x376.png 768w" sizes="(max-width: 882px) 100vw, 882px" /></figure>



<figure class="wp-block-image size-full"><img data-dominant-color="fafafa" data-has-transparency="true" style="--dominant-color: #fafafa;" loading="lazy" decoding="async" width="788" height="434" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-14.png" alt="" class="has-transparency wp-image-446" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-14.png 788w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-14-300x165.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-14-768x423.png 768w" sizes="(max-width: 788px) 100vw, 788px" /></figure>


<h3 class="wp-block-heading" id="strong-vix-vx-15-min-strong"><strong>VIX(@VX) 15min</strong></h3>



<figure class="wp-block-image size-full"><img data-dominant-color="f2f3f6" data-has-transparency="true" style="--dominant-color: #f2f3f6;" loading="lazy" decoding="async" width="874" height="508" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-15.png" alt="" class="has-transparency wp-image-447" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-15.png 874w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-15-300x174.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-15-768x446.png 768w" sizes="(max-width: 874px) 100vw, 874px" /></figure>



<figure class="wp-block-image size-full"><img data-dominant-color="fafbfa" data-has-transparency="true" style="--dominant-color: #fafbfa;" loading="lazy" decoding="async" width="786" height="514" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-16.png" alt="" class="has-transparency wp-image-448" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-16.png 786w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-16-300x196.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-16-768x502.png 768w" sizes="(max-width: 786px) 100vw, 786px" /></figure>


<h3 class="wp-block-heading" id="strong-wheat-w-480-min-strong"><strong>Wheat(@W) 480min</strong></h3>



<figure class="wp-block-image size-full"><img data-dominant-color="f2f4f6" data-has-transparency="true" style="--dominant-color: #f2f4f6;" loading="lazy" decoding="async" width="868" height="480" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-17.png" alt="" class="has-transparency wp-image-449" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-17.png 868w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-17-300x166.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-17-768x425.png 768w" sizes="(max-width: 868px) 100vw, 868px" /></figure>



<figure class="wp-block-image size-full"><img data-dominant-color="fbfbfb" data-has-transparency="true" style="--dominant-color: #fbfbfb;" loading="lazy" decoding="async" width="786" height="482" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-18.png" alt="" class="has-transparency wp-image-450" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-18.png 786w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-18-300x184.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-18-768x471.png 768w" sizes="(max-width: 786px) 100vw, 786px" /></figure>


<h3 class="wp-block-heading" id="strong-high-grade-copper-hg-240-m-strong"><strong>High Grade Copper(@HG) 240m</strong></h3>



<figure class="wp-block-image size-full"><img data-dominant-color="f1f3f6" data-has-transparency="true" style="--dominant-color: #f1f3f6;" loading="lazy" decoding="async" width="854" height="466" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-20.png" alt="" class="has-transparency wp-image-452" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-20.png 854w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-20-300x164.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-20-768x419.png 768w" sizes="(max-width: 854px) 100vw, 854px" /></figure>



<figure class="wp-block-image size-full"><img data-dominant-color="fafafa" data-has-transparency="true" style="--dominant-color: #fafafa;" loading="lazy" decoding="async" width="802" height="476" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-21.png" alt="" class="has-transparency wp-image-453" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-21.png 802w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-21-300x178.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Picture-1-21-768x456.png 768w" sizes="(max-width: 802px) 100vw, 802px" /></figure>


<p class="wp-block-paragraph ">Note: All results include trading costs, slippage and commission.</p>


<h2 class="wp-block-heading" id="conclusion">Conclusion</h2>


<p class="wp-block-paragraph ">This test used a really simple pattern with some random Profit Target and Stop losses, and was only intended to find good edges on the futures markets. Using&nbsp;Tradesq&nbsp;saved us a lot of time and effort in selecting the best results, which found edges on five (5) different sectors of the futures markets. It does not mean these are strategies ready to trade. Additional filters and robustness tests must be applied, but it is a terrific starting point.&nbsp;</p>


<p class="wp-block-paragraph "><strong>Author:</strong><br>Juan Fernando G&oacute;mez (jgomezv2@gmail.com)</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/does-the-hammer-hangman-pattern-work-on-futures-markets/">Does the Hammer-Hangman Pattern work on Futures markets?</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tradesq.net/does-the-hammer-hangman-pattern-work-on-futures-markets/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Testing a Larry Williams Tradestation system</title>
		<link>https://blog.tradesq.net/larry-williams-tradestation/</link>
					<comments>https://blog.tradesq.net/larry-williams-tradestation/#respond</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Fri, 09 Dec 2022 18:09:34 +0000</pubDate>
				<category><![CDATA[Strategy Development]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=277</guid>

					<description><![CDATA[<p>Larry Williams is a well-known trader and author who has been involved in the financial markets for over 50 years. He is perhaps best known for his successful trading system called &#8220;The Ultimate Oscillator,&#8221; which uses moving averages and other technical indicators to identify potential trade opportunities. One of the key principles of Williams&#8217; trading &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/larry-williams-tradestation/">Testing a Larry Williams Tradestation system</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph ">Larry Williams is a well-known trader and author who has been involved in the financial markets for over 50 years. He is perhaps best known for his successful trading system called &#8220;The Ultimate Oscillator,&#8221; which uses moving averages and other technical indicators to identify potential trade opportunities.</p>


<p class="wp-block-paragraph ">One of the key principles of Williams&#8217; trading system is the idea of &#8220;buying low and selling high.&#8221; This means that he looks for opportunities to purchase assets when they are undervalued and then sells them when they reach a higher price. Williams believes that this approach allows him to capitalize on market trends and make consistent profits over the long term.</p>


<p class="wp-block-paragraph has-medium-font-size" style="font-style:normal;font-weight:600">The 3-bar system</p>


<p class="wp-block-paragraph ">Larry Williams&#8217; 3-bar system is a popular technical analysis tool traders use to identify potential trade opportunities. This system uses three consecutive bars on a price chart to signal potential buying or selling opportunities.</p>


<p class="wp-block-paragraph ">The 3-bar system is based on the idea that the market tends to move in trends. When a stock or other asset is in an uptrend, it will often make higher highs and higher lows, which can be identified by looking at a price chart. Similarly, when a stock is in a downtrend, it will often make lower highs and lower lows.</p>


<p class="wp-block-paragraph ">The 3-bar system uses these trends to identify potential trade signals. For example, if a market is in an uptrend and makes three consecutive higher highs, it could be a signal to buy. Similarly, if it is in a downtrend and makes three consecutive lower lows, it could be a signal to sell.</p>


<p class="wp-block-paragraph ">Overall, the 3-bar system is a popular tool used by traders to identify potential trade opportunities based on trends in the market. While it is not a foolproof method and should not be used in isolation, it can be a valuable addition to a trader&#8217;s toolkit.</p>


<p class="wp-block-paragraph has-medium-font-size"><strong>Testing the 3-bar system</strong></p>


<p class="wp-block-paragraph ">In this article, we will see how this simple concept can be implemented in Tradestation&#8217;s EasyLanguage and how it performs when backtesting it across multiple asset sectors. </p>


<p class="wp-block-paragraph ">To start this research project, we used a publicly available EasyLanguage implementation for the 3-bars system:</p>


<p class="wp-block-paragraph has-small-font-size"><a href="https://futures.io/articles/trading/VAR" target="_blank" rel="noreferrer noopener">Var</a>: mal(0), mah(0);<br>mal = Average(Low,3);<br>mah = Average(High,3);</p>


<p class="wp-block-paragraph has-small-font-size">//Trend analyzer:<br>Var: trnd(0), TotalPrice(0);<br>TotalPrice = (O+H+L+C)/4;<br>Trnd = LinearRegSlope(TotalPrice, 3);</p>


<p class="wp-block-paragraph has-small-font-size">//Uptrend VS Downtrend<br>Var: c1(0),c2(0);<br>c1=(Trnd[1]&gt;0);<br>c2=(Ttrnd[1]&lt;0);</p>


<p class="wp-block-paragraph has-small-font-size">// 3-Bar System long orders<br>If Marketposition&lt;=0 and c1 then BUY 1&nbsp;<a href="https://futures.io/articles/trading/Contract" target="_blank" rel="noreferrer noopener">contract</a>&nbsp;at mal[1] limit;<br>If Marketposition=1 and c2 then SELL next bar at mah[1] limit;</p>


<p class="wp-block-paragraph has-small-font-size">// 3-Bar System short orders<br>If Marketposition&gt;=0 and c2 then SELLSHORT 1 contract at mah[1] limit;<br>If Marketposition=-1 and c1 then BuyToCover next bar at mal[1] limit;</p>


<p class="wp-block-paragraph ">The concept is rather simple:</p>


<ul class="wp-block-list ">
<li>We calculate the average bar price (Open + High + Low + Close) / 4</li>



<li>We calculate a 3 days linear regression value based on the average price of the bar</li>



<li>When the linear regression line is on the positive side, we consider an uptrend. When the linear regression line is on the negative side, we consider a downtrend.</li>



<li>We enter the direction of the trend with limit orders. The limit price is the 3-day average of the low for the long and the 3-day average of the high for the short. </li>
</ul>


<p class="wp-block-paragraph ">Before moving on to the backtesting phase, there is an important thing to mention. When backtesting with EasyLanguage, the danger of using limit orders is that they may not have been available at the time and on the exchange where the historical data is from, which could affect the accuracy of the backtest results.</p>


<p class="wp-block-paragraph ">To see how this code performs on different asset sectors and timeframes, let&#8217;s execute a backtest with <a href="https://tradesq.net" target="_blank" rel="noopener">Tradesq</a>. </p>


<p class="wp-block-paragraph "></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="496" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-09-at-14.18.52-1024x496.png" alt="Larry Williams Tradestation system scheduling in Tradesq" class="wp-image-287" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-09-at-14.18.52-1024x496.png 1024w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-09-at-14.18.52-300x145.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-09-at-14.18.52-768x372.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-09-at-14.18.52-1536x744.png 1536w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-09-at-14.18.52-2048x992.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">First, we open the Tradesq scheduler, and we copy and paste the EasyLanguage code to the code editor box. The next step is to define which markets and timeframes to backtest. As I like to run my backtests with at least a year of out-of-sample data, I set the desired &#8216;in-sample backtest to&#8217; date. </p>


<p class="wp-block-paragraph ">This EasyLanguage code contains 2 optimizable input variables: <em>AvgPeriod</em> and <em>LRSlopePeriod</em>. The default variable values are 17 and 12. As we are testing this system on various markets and timeframes, a more comprehensive range of variables was defined (between 5 and 35). </p>


<p class="wp-block-paragraph has-medium-font-size"><strong>Backtesting results across all market sectors</strong></p>


<p class="wp-block-paragraph ">The results are pretty convincing. According to the default screening parameters, good backtesting results were found in the Currency, Energy, Grain, Index and Metal sectors. The distribution of timeframes is also extraordinary. This EasyLanguage system shows promising results at 120, 180, 240, 360, 480, 600 minutes, and 1-day bar size:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="390" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-09-at-14.45.50-1024x390.png" alt="" class="wp-image-291" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-09-at-14.45.50-1024x390.png 1024w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-09-at-14.45.50-300x114.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-09-at-14.45.50-768x292.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-09-at-14.45.50-1536x584.png 1536w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-09-at-14.45.50-2048x779.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">As an example, let&#8217;s inspect the backtesting results for Heating Oil (HO) on 600 minutes time resolution:</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="https://blog.tradesq.net/wp-content/uploads/2022/12/equity_cure_opt.png" alt="Larry Williams Tradestation tests on 3-bars system" class="wp-image-292" width="798" height="599" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/equity_cure_opt.png 640w, https://blog.tradesq.net/wp-content/uploads/2022/12/equity_cure_opt-300x225.png 300w" sizes="(max-width: 798px) 100vw, 798px" /></figure>


<p class="wp-block-paragraph ">As a final warning, I must emphasize that the above-tested code cannot be considered a complete trading system. As a potential point of improvement, an entry filter and a stop-loss logic could be added.</p>


<p class="wp-block-paragraph "></p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/larry-williams-tradestation/">Testing a Larry Williams Tradestation system</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tradesq.net/larry-williams-tradestation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to develop bias-based strategies in EasyLanguage</title>
		<link>https://blog.tradesq.net/how-to-develop-bias-based-strategies-in-easylanguage/</link>
					<comments>https://blog.tradesq.net/how-to-develop-bias-based-strategies-in-easylanguage/#comments</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Tue, 22 Nov 2022 16:12:37 +0000</pubDate>
				<category><![CDATA[Strategy Development]]></category>
		<category><![CDATA[bias]]></category>
		<category><![CDATA[strategy development]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=158</guid>

					<description><![CDATA[<p>The common wisdom of trading strategy development forums and online communities suggests that trading algos can be divided into two major groups: trend-following and mean-reversion-based strategies. Well, this is fundamentally true, but we should not forget about other exciting strategy types as well: Now, let&#8217;s stick a little bit with bias-based strategies. This strategy type &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/how-to-develop-bias-based-strategies-in-easylanguage/">How to develop bias-based strategies in EasyLanguage</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph ">The common wisdom of trading strategy development forums and online communities suggests that trading algos can be divided into two major groups: trend-following and mean-reversion-based strategies. </p>


<p class="wp-block-paragraph ">Well, this is fundamentally true, but we should not forget about other exciting strategy types as well: </p>


<ul class="wp-block-list has-medium-font-size">
<li>pattern-based strategies</li>



<li>seasonality strategies</li>



<li>daily, weekly or monthly bias-based strategies</li>
</ul>


<p class="wp-block-paragraph ">Now, let&#8217;s stick a little bit with bias-based strategies. This strategy type utilizes an important underlying characteristic of the traded market: the average statistical change during a specific time interval over and over again. This time interval can be set during a trading day, a trading week or an entire month. </p>


<p class="wp-block-paragraph "></p>


<p class="wp-block-paragraph is-style-sub-heading has-medium-font-size" style="border-top-color:var(--wp--preset--color--transparent);border-top-width:2em">Bias-based strategIES in EasyLanguage</p>


<p class="wp-block-paragraph ">Let&#8217;s do a small experiment. My goal now is to find a couple of days each month when buying or selling Crude Oil during an average trading month has an edge. To start our research project, I prepared a very simplistic, Easy Language code that enters one long and one short trade each month. Both the entry day and the length of the trade are optimizable parameters (on the long and short side as well):</p>



<figure class="wp-block-image size-large has-custom-border" style="border-top-color:var(--wp--preset--color--transparent);border-top-width:20px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-style:none;border-left-width:0px"><img loading="lazy" decoding="async" width="1024" height="143" src="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.21.37-1024x143.png" alt="" class="wp-image-167" style="border-top-color:var(--wp--preset--color--transparent);border-top-width:20px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-style:none;border-left-width:0px" srcset="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.21.37-1024x143.png 1024w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.21.37-300x42.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.21.37-768x108.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.21.37-1536x215.png 1536w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.21.37.png 1642w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">Our next step is scheduling optimization for long entry dates, long trade lengths, short entry dates and short trade lengths.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="326" src="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.50.08-1024x326.png" alt="" class="wp-image-163" srcset="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.50.08-1024x326.png 1024w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.50.08-300x96.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.50.08-768x245.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.50.08-1536x489.png 1536w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.50.08-2048x652.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">Before analyzing the collected results, there is an important point I&#8217;d like to raise. When performing algo research, I ensure that reasonable slippage and commission are configured for the appropriate market. In this example, we are working with Crude Oil (CL). I set a $30 roundtrip slippage and a $2.5 broker commission per trade. Why is this important? We often find great looking edges with small average trade sizes when working with strategy optimizers, especially with bias-based strategies. When trading these edges in real life, the actual broker commission and the trade execution slippage can easily melt these edges away. A properly configured slippage and commission values can ensure realistic expectations. With all that in mind, let&#8217;s have a look at the optimization results:<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="562" src="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.23.40-1024x562.png" alt="" class="wp-image-171" srcset="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.23.40-1024x562.png 1024w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.23.40-300x165.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.23.40-768x421.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.23.40-1536x843.png 1536w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.23.40-2048x1123.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">As you can see, the optimizer listed many long and short entries using variable trade lengths with positive expectations. Before choosing the optimal parameters, consider the Net-Profit, the Average-Trade, Max-Intraday-Drawdown and Profit factor values. When developing bias-based strategies, I prefer to select one of the largest average trade sizes from the optimizer output list. </p>


<p class="wp-block-paragraph ">In this case, these values represent the following trading system for <strong>Crude Oil (CL)</strong>:</p>


<ul class="wp-block-list ">
<li>go <strong>long</strong> on the <strong>21st</strong> day of each month and let this trade run for <strong>5 days</strong>
</li>



<li>go <strong>short</strong> on the <strong>29th</strong> day of each month and let this trade run for <strong>5 days</strong>
</li>
</ul>


<p class="wp-block-paragraph ">This trading system utilizes an interesting up-down oscillation of Crude Oil close to the end of each month.</p>


<p class="wp-block-paragraph ">Let&#8217;s have a look at the backtesting results of this edge:<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="696" src="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.22.00-1024x696.png" alt="" class="wp-image-173" srcset="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.22.00-1024x696.png 1024w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.22.00-300x204.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.22.00-768x522.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.22.00-1536x1045.png 1536w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.22.00.png 1994w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">We found a very simplistic but steady bias-based edge for Crude. Can we consider it as a trading system or a market-ready algo? Probably not, but we are pretty close to it. If you&#8217;re planning to build your own algo based on this edge, I recommend you add a stop-loss, profit target and perhaps an entry filter rule. In a future article, I will write more about the trading system development steps I would like to follow. </p>


<p class="wp-block-paragraph is-style-sub-heading has-medium-font-size" style="border-top-color:var(--wp--preset--color--transparent);border-top-width:2em">Algo-research on the assembly line</p>


<p class="wp-block-paragraph ">Now let&#8217;s bring our research project to the next level. Why did I pick Crude for my initial research? I&#8217;m not sure. It was a somewhat random idea. Actually, what I really try to find is the top 3 Futures market symbol with the most substantial monthly bias edge. How can we have this information without spending significant time in front of the optimizer? Let&#8217;s use Tradesq to scan multiple Futures markets for similar monthly bias edges.</p>


<p class="wp-block-paragraph "></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="664" src="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.29.42-1024x664.png" alt="" class="wp-image-176" srcset="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.29.42-1024x664.png 1024w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.29.42-300x195.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.29.42-768x498.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.29.42-1536x996.png 1536w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.29.42-2048x1328.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">Logging into Tradesq, let&#8217;s navigate to the Schedule Backtest function in the Smart backtesting menu. In the scheduler screen, we paste our EasyLanguage strategy code to the code editor box, and we choose daily or 1440 minutes timeframe for this experiment. The next step is to specify which symbols to include in the research. Tradesq currently supports 45 future market symbols across multiple sectors (index, currency, metal, interest rates, etc.). For the sake of versatile results, let&#8217;s choose them all. At the bottom of the screen, we can specify the optimization ranges and values of our EasyLanguage variables as we did during our initial research on the desktop. </p>


<p class="wp-block-paragraph ">When Tradesq finishes testing, we see that we received good results from 23 symbols. Based on these results, we can conclude that the <strong>currency</strong>, <strong>energy</strong>, <strong>grain</strong>, <strong>index</strong>, <strong>interest rate</strong>, <strong>metal</strong> and <strong>meat</strong> sectors show solid monthly bias properties. This represents the majority of the futures market.</p>


<p class="wp-block-paragraph "> </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="672" src="https://blog.tradesq.net/wp-content/uploads/2022/11/tradesq_results-1-1024x672.png" alt="" class="wp-image-188" srcset="https://blog.tradesq.net/wp-content/uploads/2022/11/tradesq_results-1-1024x672.png 1024w, https://blog.tradesq.net/wp-content/uploads/2022/11/tradesq_results-1-300x197.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/11/tradesq_results-1-768x504.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/11/tradesq_results-1-1536x1007.png 1536w, https://blog.tradesq.net/wp-content/uploads/2022/11/tradesq_results-1-2048x1343.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">Our last goal is to determine the best 3 symbols for the monthly bias system. Let&#8217;s ask Tradesq&#8217;s help again. Using the Strategy Library / <a href="https://app.tradesq.net/edgemaster/browse" target="_blank" rel="noopener">Strategy Screener</a> function, all search results can be listed ordered by R2 value (smoothness of the equity curve). The top 3 results are:</p>


<ul class="wp-block-list ">
<li>
<strong>Canadian Dollar (CD) </strong>using parameters longentryday=27, longbarsintrade=4, shortentryday=16, shortbarsintrade=4</li>



<li>
<strong>5 Years US Treasury Note (TY)</strong> using parameters longentryday=21, longbarsintrade=3, shortentryday=4, shortbarsintrade=1</li>



<li>
<strong>10 Years US Treasury Note (TS)</strong> using parameters longentryday=20, longbarsintrade=4, shortentryday=3, shortbarsintrade=1 </li>
</ul>


<p class="wp-block-paragraph ">All backtest results produced by tradesq include the market-specific average slippage rates and broker commission fees.</p>


<p class="wp-block-paragraph ">Finally, let&#8217;s look at the results sheet of the best system executed on the Canadian Dollar. It&#8217;s a pretty neat equity curve. </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="570" src="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-22-at-15.34.41-1024x570.png" alt="" class="wp-image-189" srcset="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-22-at-15.34.41-1024x570.png 1024w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-22-at-15.34.41-300x167.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-22-at-15.34.41-768x428.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-22-at-15.34.41-1536x856.png 1536w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-22-at-15.34.41-2048x1141.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/how-to-develop-bias-based-strategies-in-easylanguage/">How to develop bias-based strategies in EasyLanguage</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tradesq.net/how-to-develop-bias-based-strategies-in-easylanguage/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
