<?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>General &#8211; Tradesq Blog</title>
	<atom:link href="https://blog.tradesq.net/category/general/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.1</generator>

<image>
	<url>https://blog.tradesq.net/wp-content/uploads/2022/11/cropped-tradesq_big-32x32.png</url>
	<title>General &#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>Money Flow Trading System</title>
		<link>https://blog.tradesq.net/money-flow-trading-system/</link>
					<comments>https://blog.tradesq.net/money-flow-trading-system/#respond</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Thu, 16 Feb 2023 08:37:51 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[strategy development]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=499</guid>

					<description><![CDATA[<p>When we talk about oscillators in trading, it is easy to relate to the most known ones, such as Relative Strength Index (RSI), the Stochastic Oscillator, or the Commodity Channel Index (CCI). There is one in particular that I have not tested, called Money Flow (MFI), and I would like to see in this article &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/money-flow-trading-system/">Money Flow Trading 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 ">When we talk about oscillators in trading, it is easy to relate to the most known ones, such as Relative Strength Index (RSI), the Stochastic Oscillator, or the Commodity Channel Index (CCI). There is one in particular that I have not tested, called Money Flow (MFI), and I would like to see in this article if it works on the futures markets.&nbsp;</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><ul><li ><a href="#money-flow-index-calculation">Money Flow index calculation</a></li><li ><a href="#strong-how-it-looks-strong">How it looks</a></li><li ><a href="#strong-code-considerations-strong">Code Considerations</a></li><li ><a href="#strong-easylanguage-code-strong">Easylanguage code</a></li><li ><a href="#strong-results-strong">Results</a><ul><li ><a href="#strong-nasdaq-nq-30-min-strong">Nasdaq (@NQ) 30min</a></li><li ><a href="#strong-nasdaq-day-session-only-nq-d-60-min-strong">Nasdaq day session only (@NQ.D) 60min</a></li><li ><a href="#strong-vix-vx-15-min-strong">VIX(@VX) 15min</a></li></ul></li><li ><a href="#strong-conclusion-strong">Conclusion</a></li></ul></nav></div>


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


<h2 class="wp-block-heading" id="money-flow-index-calculation">Money Flow index calculation</h2>



<blockquote class="wp-block-quote"><p class="wp-block-paragraph ">Money flow is calculated by averaging the high, low&nbsp;and&nbsp;<a href="https://www.investopedia.com/terms/c/closingprice.asp" target="_blank" rel="noopener">closing prices</a>, and multiplying by the daily volume. Comparing that result with the number for the previous day tells traders whether money flow was positive or negative for the current day. Positive money flow indicates that prices are likely to move higher, while negative money flow suggests prices are about to fall.&nbsp;</p>


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



<figure class="wp-block-image size-full is-resized"><img data-dominant-color="f4f4f4" data-has-transparency="false" style="--dominant-color: #f4f4f4;" loading="lazy" decoding="async" src="https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-15-at-17.21.37.png" alt="Moneyflow index calculation
" class="not-transparent wp-image-515" width="349" height="360" srcset="https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-15-at-17.21.37.png 854w, https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-15-at-17.21.37-291x300.png 291w, https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-15-at-17.21.37-768x791.png 768w" sizes="(max-width: 349px) 100vw, 349px" /></figure>


<p class="wp-block-paragraph "></p>
<cite><a href="https://www.investopedia.com/terms/m/moneyflow.asp" target="_blank" rel="noopener">https://www.investopedia.com/terms/m/moneyflow.asp</a><br></cite></blockquote>


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



<figure class="wp-block-image size-full"><img data-dominant-color="383881" data-has-transparency="true" style="--dominant-color: #383881;" loading="lazy" decoding="async" width="780" height="340" src="https://blog.tradesq.net/wp-content/uploads/2023/02/Picture-1-1.png" alt="Money flow index examples
" class="has-transparency wp-image-501" srcset="https://blog.tradesq.net/wp-content/uploads/2023/02/Picture-1-1.png 780w, https://blog.tradesq.net/wp-content/uploads/2023/02/Picture-1-1-300x131.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/02/Picture-1-1-768x335.png 768w" sizes="(max-width: 780px) 100vw, 780px" /></figure>


<p class="wp-block-paragraph ">It&#8217;s relevant to see that it also has an Overbought and Oversold that we can use for entries and exits.</p>


<p class="wp-block-paragraph ">For the test, I will use the following:</p>


<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>Future Markets Research:</strong>&nbsp;<a href="https://tradesq.net/" target="_blank" rel="noopener">https://tradesq.net/</a></p>


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


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



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



<li>
<strong>Exits:</strong><ul><li>Stop Loss</li></ul>
<ul class="wp-block-list ">
<li>Profit Target: Stop Loss * 1.25</li>
</ul>
</li>



<li>
<strong>Trigger:</strong><ul><li>Mean Reversion:<ul><li>Long when Close crosses below oversold.</li></ul>
<ul><li>Short when Close crosses above Overbought</li></ul>
</li></ul>
<ul class="wp-block-list ">
<li>Trend Following:<ul><li>Long when Close crosses above oversold.</li></ul>
<ul class="wp-block-list ">
<li>Short when Close crosses below Overbought</li>
</ul>
</li>
</ul>
</li>



<li>
<strong>Values</strong><ul><li>
<strong>Overbought:</strong>&nbsp;70</li></ul>
<ul class="wp-block-list ">
<li>
<strong>Oversold:</strong>&nbsp;30</li>
</ul>
</li>
</ul>


<h2 class="wp-block-heading" id="strong-easylanguage-code-strong"><strong>Easylanguage code</strong></h2>


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



<figure class="wp-block-image size-full is-resized"><img data-dominant-color="f8f8fa" data-has-transparency="true" style="--dominant-color: #f8f8fa;" loading="lazy" decoding="async" src="https://blog.tradesq.net/wp-content/uploads/2023/02/Picture-1-2.png" alt="Money flow easylanguage code" class="has-transparency wp-image-502" width="644" height="422" srcset="https://blog.tradesq.net/wp-content/uploads/2023/02/Picture-1-2.png 644w, https://blog.tradesq.net/wp-content/uploads/2023/02/Picture-1-2-300x197.png 300w" sizes="(max-width: 644px) 100vw, 644px" /></figure>


<p class="wp-block-paragraph ">In order to make sure that&nbsp;<strong>Tradesq</strong>&nbsp;has my custom MoneyFlow function, I<a href="https://blog.tradesq.net/easylanguage-functions-in-tradesq/" data-type="post" data-id="493"> request it to be added to Function Library</a>.</p>


<p class="wp-block-paragraph ">Now let&#8217;s proceed to upload the code into Tradesq and select the parameters, Markets, and Timeframe that we want to test:</p>


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



<figure class="wp-block-image size-full"><img data-dominant-color="f4f4f4" data-has-transparency="true" style="--dominant-color: #f4f4f4;" loading="lazy" decoding="async" width="920" height="702" src="https://blog.tradesq.net/wp-content/uploads/2023/02/Picture-1-5.png" alt="Money flow system - Tradesq backtest" class="has-transparency wp-image-505" srcset="https://blog.tradesq.net/wp-content/uploads/2023/02/Picture-1-5.png 920w, https://blog.tradesq.net/wp-content/uploads/2023/02/Picture-1-5-300x229.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/02/Picture-1-5-768x586.png 768w" sizes="(max-width: 920px) 100vw, 920px" /></figure>


<p class="wp-block-paragraph "><strong>Note: I like to leave the last six months of unseen data, so tradesq will calculate until 06/01/2022.&nbsp;</strong></p>


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


<p class="wp-block-paragraph ">We have a good number of edges on Indexes and very few on the other sectors.</p>


<p class="wp-block-paragraph "></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="666" height="446" src="https://blog.tradesq.net/wp-content/uploads/2023/02/Picture-1-6.png" alt="Moneyflow system backtest results
" class="has-transparency wp-image-506" srcset="https://blog.tradesq.net/wp-content/uploads/2023/02/Picture-1-6.png 666w, https://blog.tradesq.net/wp-content/uploads/2023/02/Picture-1-6-300x201.png 300w" sizes="(max-width: 666px) 100vw, 666px" /><figcaption class="wp-element-caption">Results filtered by (NP/DD&gt;4, Number of trades above 200)</figcaption></figure>


<p class="wp-block-paragraph ">Let&rsquo;s have a look at Some results:</p>


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



<figure class="wp-block-image size-large"><img data-dominant-color="f7f7f5" data-has-transparency="true" style="--dominant-color: #f7f7f5;" loading="lazy" decoding="async" width="1024" height="337" src="https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-16-at-9.18.24-1024x337.png" alt="Money flow system Nasdaq results
" class="has-transparency wp-image-522" srcset="https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-16-at-9.18.24-1024x337.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-16-at-9.18.24-300x99.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-16-at-9.18.24-768x253.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-16-at-9.18.24-1536x506.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-16-at-9.18.24-2048x675.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


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


<h3 class="wp-block-heading" id="strong-nasdaq-day-session-only-nq-d-60-min-strong"><strong>Nasdaq day session only (@NQ.D) 60min</strong></h3>



<figure class="wp-block-image size-large"><img data-dominant-color="f6f6f5" data-has-transparency="true" style="--dominant-color: #f6f6f5;" loading="lazy" decoding="async" width="1024" height="324" src="https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-16-at-9.15.34-1024x324.png" alt="Many flow system results - Nasdaq daily session only
" class="has-transparency wp-image-520" srcset="https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-16-at-9.15.34-1024x324.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-16-at-9.15.34-300x95.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-16-at-9.15.34-768x243.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-16-at-9.15.34-1536x486.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-16-at-9.15.34-2048x648.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


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


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



<figure class="wp-block-image size-large"><img decoding="async" src="https://blog.tradesq.net/wp-content/uploads/2023/02/Screenshot-2023-02-16-at-9.12.19-1024x307.png" alt="Money flow system VIX results
" class="wp-image-518"/></figure>


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


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


<p class="wp-block-paragraph ">It&rsquo;s nice to find that we have other Oscillator options within trading. It could help us diversify and have an edge on the most common ones, as mentioned in the introduction RSI, CCI, ROC, etc. The Money Flow Index Oscillator showed outstanding opportunities in the Index Markets on the long-only positions and short on the VIX. It might need another filter to see if&nbsp;we could have opportunities in the other future sectors.</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/money-flow-trading-system/">Money Flow Trading 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/money-flow-trading-system/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Now you can use EasyLanguage functions in Tradesq</title>
		<link>https://blog.tradesq.net/easylanguage-functions-in-tradesq/</link>
					<comments>https://blog.tradesq.net/easylanguage-functions-in-tradesq/#comments</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Thu, 16 Feb 2023 08:35:49 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=493</guid>

					<description><![CDATA[<p>Functions in programming are a way to group together a set of instructions that perform a specific task. They are often used to perform repetitive tasks or to organize code in a logical and modular way. In EasyLanguage, functions are used to perform specific tasks, such as displaying information on the screen, making calculations, or &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/easylanguage-functions-in-tradesq/">Now you can use EasyLanguage functions in Tradesq</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 ">Functions in programming are a way to group together a set of instructions that perform a specific task. They are often used to perform repetitive tasks or to organize code in a logical and modular way. In EasyLanguage, functions are used to perform specific tasks, such as displaying information on the screen, making calculations, or manipulating data.</p>


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


<h2 class="wp-block-heading" id="using-functions-in-easylanguage-is-good-for-several-reasons">Using functions in EasyLanguage is good for several reasons</h2>


<ol class="wp-block-list ">
<li>Code organization: Functions allow you to organize your code into smaller, modular chunks, making it easier to understand and maintain.</li>



<li>Reusability: Functions can be called multiple times, which makes your code more reusable and reduces the need to copy and paste the same code multiple times.</li>



<li>Readability: Functions can improve the readability of your code by giving meaningful names to the blocks of code, making it easier to understand what each part of your program does.</li>



<li>Error reduction: By breaking down your code into smaller, modular chunks, you can reduce the likelihood of errors and make finding and fixing bugs easier.</li>



<li>Efficiency: Functions can also make your code more efficient by reducing the amount of memory and processing power that your program uses.</li>



<li>Collaboration: Functions make it easier for others to understand your code and for you to collaborate with other developers, as you can work on different parts of the code independently.</li>
</ol>


<p class="wp-block-paragraph ">In summary, functions in EasyLanguage can help you to write clean, maintainable, and efficient code that is easy to understand, collaborate and debug. They are powerful tools that can help you to develop high-quality software.</p>


<h2 class="wp-block-heading" id="tradesq-function-library">Tradesq Function Library</h2>


<p class="wp-block-paragraph ">A new feature has been released to Tradesq: Function Library. Function Library stands as a central collection of all EasyLanguage custom functions used in Tradesq strategies. </p>



<figure class="wp-block-image size-large"><img data-dominant-color="eef0f2" data-has-transparency="true" style="--dominant-color: #eef0f2;" loading="lazy" decoding="async" width="1024" height="548" src="https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-27-at-10.18.20-1024x548.png" alt="Tradesq function library" class="has-transparency wp-image-495" srcset="https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-27-at-10.18.20-1024x548.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-27-at-10.18.20-300x161.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-27-at-10.18.20-768x411.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-27-at-10.18.20-1536x822.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-27-at-10.18.20-2048x1096.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<h2 class="wp-block-heading" id="request-your-custom-function-to-be-added-to-tradesq-cloud">Request your custom function to be added to Tradesq Cloud.</h2>


<p class="wp-block-paragraph ">Requesting to add a new EasyLanguage function to the Tradesq cloud is easy. Just press the <strong>Request Easylanguage Function</strong> button at the bottom of the Function Library screen and fill the form with a strategy name and the code of the custom function. </p>



<figure class="wp-block-image size-large"><img data-dominant-color="fbfafa" data-has-transparency="true" style="--dominant-color: #fbfafa;" loading="lazy" decoding="async" width="1024" height="607" src="https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-27-at-10.18.27-1024x607.png" alt="Tradesq request new function
" class="has-transparency wp-image-496" srcset="https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-27-at-10.18.27-1024x607.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-27-at-10.18.27-300x178.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-27-at-10.18.27-768x455.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-27-at-10.18.27-1536x910.png 1536w, https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-27-at-10.18.27-2048x1213.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">Once the requested code is approved and enabled in the cloud, you can start using it in your new strategies. </p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/easylanguage-functions-in-tradesq/">Now you can use EasyLanguage functions in Tradesq</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tradesq.net/easylanguage-functions-in-tradesq/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Bull Flag on futures markets?</title>
		<link>https://blog.tradesq.net/bull-flag-on-futures/</link>
					<comments>https://blog.tradesq.net/bull-flag-on-futures/#respond</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Tue, 17 Jan 2023 16:33:31 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=467</guid>

					<description><![CDATA[<p>Recently someone asked on an Easylanguage forum if anyone had coded a Bull flag / Bear flag pattern recognition to use on a futures index strategy. I realized that I did not know the pattern, so I went and looked for it. Bull flag pattern A bull flag is a technical chart pattern that is &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/bull-flag-on-futures/">Bull Flag on futures markets?</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 ">Recently someone asked on an Easylanguage forum if anyone had coded a Bull flag / Bear flag pattern recognition to use on a futures index strategy. I realized that I did not know the pattern, so I went and looked for it.</p>


<h2 class="wp-block-heading" id="bull-flag-pattern">Bull flag pattern</h2>


<p class="wp-block-paragraph ">A bull flag is a technical chart pattern that is often used by traders to identify potential bullish market movements. The pattern is characterized by a strong upward move, followed by a period of consolidation, or &#8220;flag,&#8221; that is usually parallel to the trendline of the initial move.</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="f8f8f8" data-has-transparency="true" style="--dominant-color: #f8f8f8;" loading="lazy" decoding="async" width="1024" height="773" data-id="489" src="https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-17-at-17.32.52-1024x773.png" alt="" class="has-transparency wp-image-489" srcset="https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-17-at-17.32.52-1024x773.png 1024w, https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-17-at-17.32.52-300x226.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-17-at-17.32.52-768x580.png 768w, https://blog.tradesq.net/wp-content/uploads/2023/01/Screenshot-2023-01-17-at-17.32.52.png 1518w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</figure>


<p class="wp-block-paragraph ">The bull flag pattern is considered a continuation pattern, as it indicates that the current bullish trend will likely continue after the consolidation period. This can be a valuable signal for traders looking to enter long positions or add to existing ones.</p>


<p class="wp-block-paragraph ">The pattern typically forms after a strong upward move, which is known as the &#8220;flagpole.&#8221; This initial move can be caused by a number of factors, such as positive earnings reports, strong economic data, or other market-moving news. During the consolidation period, the price of the security will generally move sideways, forming a &#8220;flag&#8221; shape on the chart.</p>


<p class="wp-block-paragraph ">Traders typically look for a breakout above the resistance level of the flag to confirm the continuation of the bullish trend. Additionally, traders may use a stop-loss order below the support level of the flag to protect their position in case the trend does not continue.</p>


<h2 class="wp-block-heading" id="bull-flag-in-quantitative-tading">Bull flag in quantitative tading</h2>


<p class="wp-block-paragraph ">We can get as fancy as we want with Easylenguage, but I wanted to take a straightforward approach:</p>


<p class="wp-block-paragraph "><strong>Flagpole</strong>: Two simple moving average (SMA).</p>


<ul class="wp-block-list ">
<li>
<strong>Bullish flagpole</strong>&nbsp;SMA based on the&nbsp;<strong>low</strong>&nbsp;price, and current SMA bigger than the previous two SMA&acute;s.</li>



<li>
<strong>Bearish flagpole</strong>&nbsp;SMA based on the&nbsp;<strong>high</strong>&nbsp;price, and current SMA lover then the previous two SMA&acute;s.</li>
</ul>


<p class="wp-block-paragraph "><strong>Breakout</strong>: RSI2 that breaks over limit on the direction on the trend.</p>


<p class="wp-block-paragraph "><strong>Exits:</strong>&nbsp;Stop loss and profit target.</p>


<p class="wp-block-paragraph "><strong>Long and Shorts:</strong>&nbsp;The ability to test only long, only short or both.&nbsp;&nbsp;</p>


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


<p class="wp-block-paragraph "><strong>Code development:</strong>&nbsp;Easylenguage 10</p>


<p class="wp-block-paragraph "><strong>Research platform:</strong>&nbsp;<a href="https://tradesq.net/" target="_blank" rel="noopener">https://tradesq.net/</a></p>


<h2 class="wp-block-heading" id="bull-flag-on-futures-markets-easylanguage-code">Bull Flag on futures markets?  &#8211;<strong>Easylanguage code</strong>
</h2>



<figure class="wp-block-image size-full"><img data-dominant-color="fafafb" data-has-transparency="true" style="--dominant-color: #fafafb;" loading="lazy" decoding="async" width="944" height="402" src="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-1-5.png" alt="Bull flag pattern easylanguage code" class="has-transparency wp-image-473" srcset="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-1-5.png 944w, https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-1-5-300x128.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-1-5-768x327.png 768w" sizes="(max-width: 944px) 100vw, 944px" /></figure>


<p class="wp-block-paragraph ">Let&rsquo;s see how it works on a chart:</p>


<h2 class="wp-block-heading" id="long-entries-on-bull-flag-on-a-cl-1440m-chart">Long entries on Bull flag on a @CL 1440m chart</h2>



<figure class="wp-block-image size-full"><img data-dominant-color="1a1a1a" data-has-transparency="true" style="--dominant-color: #1a1a1a;" loading="lazy" decoding="async" width="840" height="536" src="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-2.png" alt="Long entries on Bull flag on a @CL 1440m chart" class="has-transparency wp-image-474" srcset="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-2.png 840w, https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-2-300x191.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-2-768x490.png 768w" sizes="(max-width: 840px) 100vw, 840px" /></figure>


<h2 class="wp-block-heading" id="short-entries-on-bear-flag-on-a-cl-1440m-chart">Short entries on bear flag on a @CL 1440m chart</h2>



<figure class="wp-block-image size-full"><img data-dominant-color="1b1a1a" data-has-transparency="true" style="--dominant-color: #1b1a1a;" loading="lazy" decoding="async" width="826" height="534" src="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-3.png" alt="Short entries on bear flag on a @CL 1440m chart" class="has-transparency wp-image-475" srcset="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-3.png 826w, https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-3-300x194.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-3-768x497.png 768w" sizes="(max-width: 826px) 100vw, 826px" /></figure>


<p class="wp-block-paragraph ">Its not perfect &ldquo;flag&rdquo; shape, but the concept of entering after the breakout of the retracement works pretty well.</p>


<p class="wp-block-paragraph ">Now that we have the code and the strategy let&rsquo;s see if it would work in future markets. For the study,&nbsp;<strong>Tradesq</strong>&nbsp;will test it for us on 43 Future markets and 11 timeframes in a matter of hours. Can you imagine how much time would take to perform the test manually?</p>



<figure class="wp-block-image size-full"><img data-dominant-color="f3f3f3" data-has-transparency="true" style="--dominant-color: #f3f3f3;" loading="lazy" decoding="async" width="622" height="438" src="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-5.png" alt="Tradesq strategy scheduler screen screenshot" class="has-transparency wp-image-476" srcset="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-5.png 622w, https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-5-300x211.png 300w" sizes="(max-width: 622px) 100vw, 622px" /></figure>


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


<p class="wp-block-paragraph ">We have many edges on currencies, energies, grains, Indexes, and interest sectors.</p>



<figure class="wp-block-image size-full"><img data-dominant-color="eeeff0" data-has-transparency="true" style="--dominant-color: #eeeff0;" loading="lazy" decoding="async" width="920" height="748" src="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-6.png" alt="Tradesq result screen" class="has-transparency wp-image-477" srcset="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-6.png 920w, https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-6-300x244.png 300w, https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-6-768x624.png 768w" sizes="(max-width: 920px) 100vw, 920px" /></figure>


<p class="wp-block-paragraph ">Results filtered by (NP/DD&gt;4, Number of trades above 200)</p>


<p class="wp-block-paragraph ">Let&rsquo;s have a look at Some results from every sector.</p>


<h2 class="wp-block-heading" id="30yr-bondsus-240min"><strong>30Yr Bonds(@US) 240min</strong></h2>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img data-dominant-color="f1f2f4" data-has-transparency="true" style="--dominant-color: #f1f2f4;" loading="lazy" decoding="async" width="546" height="272" data-id="479" src="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-7.png" alt="strategy results - 30Yr Bonds(@US) 240min" class="has-transparency wp-image-479" srcset="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-7.png 546w, https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-7-300x149.png 300w" sizes="(max-width: 546px) 100vw, 546px" /></figure>
</figure>


<h2 class="wp-block-heading" id="heating-oilho-360min"><strong>Heating Oil(@HO) 360min</strong></h2>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img data-dominant-color="f2f3f5" data-has-transparency="true" style="--dominant-color: #f2f3f5;" loading="lazy" decoding="async" width="546" height="256" data-id="480" src="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-8.png" alt="strategy results - Heating Oil(@HO) 360min" class="has-transparency wp-image-480" srcset="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-8.png 546w, https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-8-300x141.png 300w" sizes="(max-width: 546px) 100vw, 546px" /></figure>
</figure>


<h2 class="wp-block-heading" id="british-poundbp-240min"><strong>British Pound(@BP) 240min</strong></h2>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img data-dominant-color="f1f2f5" data-has-transparency="true" style="--dominant-color: #f1f2f5;" loading="lazy" decoding="async" width="506" height="248" data-id="481" src="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-9.png" alt="British Pound(@BP) 240min" class="has-transparency wp-image-481" srcset="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-9.png 506w, https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-9-300x147.png 300w" sizes="(max-width: 506px) 100vw, 506px" /></figure>
</figure>


<h2 class="wp-block-heading" id="spring-wheatmw-360min"><strong>Spring Wheat(@MW) 360min</strong></h2>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img data-dominant-color="f1f3f5" data-has-transparency="true" style="--dominant-color: #f1f3f5;" loading="lazy" decoding="async" width="522" height="260" data-id="482" src="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-10.png" alt="Spring Wheat(@MW) 360min" class="has-transparency wp-image-482" srcset="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-10.png 522w, https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-10-300x149.png 300w" sizes="(max-width: 522px) 100vw, 522px" /></figure>
</figure>


<h2 class="wp-block-heading" id="nasdaqnq-30min"><strong>Nasdaq(@NQ) 30min</strong></h2>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-6 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img data-dominant-color="f2f3f5" data-has-transparency="true" style="--dominant-color: #f2f3f5;" loading="lazy" decoding="async" width="546" height="262" data-id="483" src="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-11.png" alt="Nasdaq(@NQ) 30min" class="has-transparency wp-image-483" srcset="https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-11.png 546w, https://blog.tradesq.net/wp-content/uploads/2023/01/Picture-11-300x144.png 300w" sizes="(max-width: 546px) 100vw, 546px" /></figure>
</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 ">I don&rsquo;t know if the code developed will resolve the poster question on the Bull Bear Flag pattern, but certainly did find really good edges.</p>


<p class="wp-block-paragraph ">The study was intended to show how we can start from a simple idea and use tools like Tradesq and Easylanguage / Powerlanguage to build strategies. As a result, we found firm edges through five (5) different future market sectors.&nbsp;</p>


<p class="wp-block-paragraph ">It does not mean this are strategies ready to trade, additional filters and robustness tests must be applied, but is a terrific starting point.&nbsp;</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@jgomezv2</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/bull-flag-on-futures/">Bull Flag 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/bull-flag-on-futures/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>4 steps to build a robust trading system</title>
		<link>https://blog.tradesq.net/4-steps-to-build-a-robust-trading-system/</link>
					<comments>https://blog.tradesq.net/4-steps-to-build-a-robust-trading-system/#respond</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Tue, 20 Dec 2022 18:15:37 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=335</guid>

					<description><![CDATA[<p>What are the benefits of a robust trading system? Let me start with a practical example. I guess this situation is not unfamiliar to you: You get an excellent trading algo idea. You draft the code in the editor of your favorite trading platform, and you see an equity curve with positive expectancy. It&#8217;s great, &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/4-steps-to-build-a-robust-trading-system/">4 steps to build a robust trading 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 ">What are the benefits of a robust trading system? Let me start with a practical example. I guess this situation is not unfamiliar to you: </p>


<p class="wp-block-paragraph ">You get an excellent trading algo idea. You draft the code in the editor of your favorite trading platform, and you see an equity curve with positive expectancy. It&#8217;s great, but you want better. You add optimizable parameters and keep tuning and tweaking the system until you get a smooth equity curve. Once you get the perfect slope, you declare your algo ready. </p>


<p class="wp-block-paragraph ">It is time to trade. You enable live trading execution on your platform and lean back to enjoy the show. Do I need to continue? You can probably guess the end of the story. In the best case, your trading strategy will show some good trades, but once the market sentiment changes, your strategy will start losing money. Perhaps you think the current drawdown is worse than the backtested average, so you turn off the strategy execution. </p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><ul><li ><a href="#what-is-robustness-testing">What is robustness testing?</a></li><li ><a href="#how-we-build-a-robust-trading-system">How we build a robust trading system?</a></li><li ><a href="#step-1-use-a-maximum-of-4-optimizable-input-parameters">Step 1 &#8211; Use a maximum of 4 optimizable input parameters</a></li><li ><a href="#step-2-do-not-tweak">Step 2 &#8211; Do not tweak</a></li><li ><a href="#step-3-check-the-performance-of-your-algo-on-different-markets-and-timeframes">Step 3 &#8211; Check the performance of your algo on different markets and timeframes</a></li><li ><a href="#step-4-forward-test-your-algo">Step 4 &#8211; Forward test your algo</a></li><li ><a href="#conclusion">Conclusion</a></li></ul></nav></div>


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


<p class="wp-block-paragraph ">In the context of algorithmic trading, robustness testing refers to evaluating a trading strategy&#8217;s performance and reliability under different market conditions and scenarios. This testing is typically done to ensure that a trading strategy is reliable, stable, and able to generate consistent returns over time, regardless of market conditions.</p>


<p class="wp-block-paragraph ">In general, robustness testing is essential in developing and evaluating any trading strategy, as it helps identify potential weaknesses or vulnerabilities that may impact the strategy&#8217;s performance and reliability. By thoroughly testing a strategy&#8217;s robustness, traders can gain confidence in its ability to generate consistent returns and make informed decisions about when and how to use it in their trading activities.</p>



<figure class="wp-block-image size-large"><img data-dominant-color="7e7f8c" data-has-transparency="false" style="--dominant-color: #7e7f8c;" loading="lazy" decoding="async" width="1024" height="441" src="https://blog.tradesq.net/wp-content/uploads/2022/12/triple-screen-trading-system-1155198083-1024x441.png" alt="Robust trading system" class="not-transparent wp-image-339" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/triple-screen-trading-system-1155198083-1024x441.png 1024w, https://blog.tradesq.net/wp-content/uploads/2022/12/triple-screen-trading-system-1155198083-300x129.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/triple-screen-trading-system-1155198083-768x331.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/12/triple-screen-trading-system-1155198083.png 1160w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<h2 class="wp-block-heading" id="how-we-build-a-robust-trading-system">How we build a robust trading system?</h2>


<p class="wp-block-paragraph ">To increase the robustness of your trading strategies, follow our 4 steps framework to make your them more bulletproof. Add these steps to your trading algorithm development or system evaluation procedure, and you will experience their positive effect in less than 6 months&#8217; time. </p>


<h2 class="wp-block-heading" id="step-1-use-a-maximum-of-4-optimizable-input-parameters">Step 1 &#8211; Use a maximum of 4 optimizable input parameters</h2>


<p class="wp-block-paragraph ">Beginner system developers like to add optimizable parameters to each quantifiable property of an algo. Maybe this seems like a good idea, but the practice shows that each parameter exponentially increases your strategy&#8217;s chance of being over-optimized.</p>


<p class="wp-block-paragraph ">I recommend using a maximum of 4 input parameters when optimizing and developing your algo. </p>


<h2 class="wp-block-heading" id="step-2-do-not-tweak">Step 2 &#8211; Do not tweak</h2>


<p class="wp-block-paragraph ">Most algo strategy developers dream of a linear and upwards-pointing equity curve. They draft their initial algo idea, add some optimizable input parameters and run an optimized backtest. The resulting system performance chart looks alright, but it could be better. What&#8217;s next? They start adding extra rules:</p>


<ul class="wp-block-list ">
<li>What if this strategy does not trade on certain days of the week?</li>



<li>Skipping every other trade.</li>



<li>Change the <a href="https://www.investopedia.com/terms/e/ema.asp" target="_blank" rel="noopener">exponential moving</a> average to <a href="https://www.investopedia.com/terms/s/sma.asp" target="_blank" rel="noopener">simple</a> MA. </li>



<li>Adding a new exit type which will help remove a couple of terrible trades from the year 2022 backtest</li>
</ul>


<p class="wp-block-paragraph ">Do not add tweaking optimization cycles to your development process! You will not only cheat yourself but also mislead your risk management calculation. <strong>Never change the strategy logic after running a backtest. </strong></p>


<p class="wp-block-paragraph ">My rule of thumb: feel free to implement every trading decision rule, inclusive or exclusive conditions, at the beginning of the system development. After you carry out a backtest, consider the trading algo is sealed. Does the strategy look bad? Discard it and try again.</p>


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


<h2 class="wp-block-heading" id="step-3-check-the-performance-of-your-algo-on-different-markets-and-timeframes">Step 3 &#8211; Check the performance of your algo on different markets and timeframes</h2>


<p class="wp-block-paragraph ">Would you trust an algo that works only on 120 minutes Soybean bars but nowhere else? Wouldn&#8217;t it be ensuring to know that your trading strategy produces fine results in multiple sectors and timeframes? So why don&#8217;t you check it?</p>


<p class="wp-block-paragraph ">Take your strategy and optimize it on as many different markets as possible. For the optimization, use the same range for input parameters you used when developing the original system. </p>


<p class="wp-block-paragraph ">Does it seem like a lot of work? Try it with <a href="https://tradesq.net" target="_blank" rel="noopener">Tradesq</a>. You can automatize the whole process with Tradesq&#8217;s Smart Backtesting. On the Schedule Smart Backtesting page, you</p>


<ul class="wp-block-list ">
<li>Insert your EasyLanguage algo code.</li>



<li>Choose your target markets (currently, 40+ futures markets are supported across multiple sectors)</li>



<li>Choose timeframes.</li>



<li>Specify your input parameters&#8217; optimization ranges</li>
</ul>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-7 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="664" data-id="176" src="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-14.29.42-1024x664.png" alt="Backtest scheduling screen in Tradesq" 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>
</figure>


<p class="wp-block-paragraph ">When you click the Backtest Strategy button, Tradesq&#8217;s whole cloud infrastructure will come into motion. In a couple of hours, a backtesting report will be generated: </p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-8 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="390" data-id="291" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-09-at-14.45.50-1024x390.png" alt="Performance report of a Larry Williams system optimized" 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>
</figure>


<p class="wp-block-paragraph ">The report will clearly show the markets and timeframes where your strategy produced good results. The definition of a sound system can be configured under the <em>Settings / Screening Parameters</em> menu.  </p>


<p class="wp-block-paragraph ">The above sample shows backtesting results of a system that is showing promising results using Currency, Energy, Grain, Index, and Metal markets. Is this an ensuring result? Partially, maybe. We want to see a strong presence of good results in a sector: multiple markets of the same sector should show hits across more than one timeframes. </p>


<h2 class="wp-block-heading" id="step-4-forward-test-your-algo">Step 4 &#8211; Forward test your algo</h2>


<p class="wp-block-paragraph ">Forward testing (or Out of Sample Testing) is probably the most crucial step of the robustness check. You can be the most cautious system developer using the best practices, but only the future will tell how stable is the system you have built. </p>


<p class="wp-block-paragraph ">To pass the forward testing phase of your strategy evaluation, we recommend waiting for at least a 3 months period after the algo is developed. Once the forward testing period is over, backtest your strategy using the input parameters you chose at development time. Take a closer look at the end of the equity cure, which was built since you started the forward testing. What does it look like? Does it show similar characteristics to the previous parts? </p>


<p class="wp-block-paragraph ">This is another area where Tradesq can help. There are two ways your strategy can be forward-tested in Tradesq:</p>


<ol class="wp-block-list ">
<li>Automatically: when you use the <strong>Smart Backtesting</strong> feature to test your algo various markets and timeframe, Tradesq&#8217;s algorithm will automatically pick up the best outcomes and please them to forward testing.</li>



<li>Manually: you can add an algo for Forward testing using the <strong>Schedule Forward Test</strong> function in the Forward Testing menu. </li>
</ol>



<figure class="wp-block-image size-large"><img data-dominant-color="e9eaec" data-has-transparency="true" style="--dominant-color: #e9eaec;" loading="lazy" decoding="async" width="1024" height="516" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-20-at-14.44.45-1024x516.png" alt="Schedule Forward Testing screen in Tradesq" class="has-transparency wp-image-366" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-20-at-14.44.45-1024x516.png 1024w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-20-at-14.44.45-300x151.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-20-at-14.44.45-768x387.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-20-at-14.44.45-1536x774.png 1536w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-20-at-14.44.45-2048x1032.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">Once a strategy is added to the list of Forward Tested strategies, Tradesq will keep monitoring its performance week by week. As the Forward Testing goes on, the performance chart of your algo will be updated weekly:</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-9 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img data-dominant-color="f5f3f1" data-has-transparency="true" style="--dominant-color: #f5f3f1;" loading="lazy" decoding="async" width="1024" height="781" data-id="362" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-19-at-18.53.46-1024x781.png" alt="Forward testing a strategy with Tradesq" class="has-transparency wp-image-362"/></figure>
</figure>


<p class="wp-block-paragraph ">And that is not all. You continuously track the performance of all Forward Tested strategies in Tradesq, <a href="https://blog.tradesq.net/how-to-get-easylanguage-strategies/">including thousands </a>built by the community and your private ones. </p>


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



<figure class="wp-block-image size-large"><img data-dominant-color="faf9fa" data-has-transparency="true" style="--dominant-color: #faf9fa;" loading="lazy" decoding="async" width="1024" height="578" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-20-at-14.53.57-1024x578.png" alt="Forward Tested Strategies in Tradesq" class="has-transparency wp-image-367" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-20-at-14.53.57-1024x578.png 1024w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-20-at-14.53.57-300x169.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-20-at-14.53.57-768x433.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-20-at-14.53.57-1536x866.png 1536w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-20-at-14.53.57-2048x1155.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


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


<p class="wp-block-paragraph ">Robustness testing is vital in algorithmic trading because it helps ensure that a trading algorithm will perform well in various market conditions. This is critical because the financial markets are constantly changing and can be volatile, and an algorithm that is not robust may produce inaccurate or suboptimal results under certain circumstances. By thoroughly testing an algorithm for robustness, traders can have confidence that it will function properly and make profitable trades even in challenging market environments. In addition, robustness testing can help identify and fix potential vulnerabilities or weaknesses in an algorithm, which can help prevent costly mistakes or losses. Overall, robustness testing is a vital part of the algorithmic trading process and helps ensure the success and reliability of trading systems.</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/4-steps-to-build-a-robust-trading-system/">4 steps to build a robust trading 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/4-steps-to-build-a-robust-trading-system/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Algo programming with ChatGPT</title>
		<link>https://blog.tradesq.net/algo-programming-with-chatgpt/</link>
					<comments>https://blog.tradesq.net/algo-programming-with-chatgpt/#respond</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Thu, 15 Dec 2022 12:53:37 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=308</guid>

					<description><![CDATA[<p>ChatGPT has been out there for a couple of weeks, but it seems everybody is obsessed with its capabilities in the various fields of computer programming. We gave it a try and tested its competencies on trading algo programming. ChatGPT ChatGPT is a state-of-the-art chatbot based on the powerful GPT-3 language model developed by OpenAI. &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/algo-programming-with-chatgpt/">Algo programming with ChatGPT</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 "><a href="https://openai.com/blog/chatgpt/" target="_blank" rel="noopener">ChatGPT</a> has been out there for a couple of weeks, but it seems everybody is obsessed with its capabilities in the various fields of computer programming. We gave it a try and tested its competencies on trading algo programming.</p>


<h2 class="wp-block-heading" id="chatgpt">ChatGPT</h2>


<p class="wp-block-paragraph ">ChatGPT is a state-of-the-art chatbot based on the powerful GPT-3 language model developed by OpenAI. It can carry out natural and engaging conversations with users on a wide range of topics.</p>


<p class="wp-block-paragraph ">One of the standout features of ChatGPT is its ability to understand and generate human-like language. This allows it to have more natural and engaging conversations with users, making it a valuable tool for customer service, virtual assistants, and even social media.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://blog.tradesq.net/wp-content/uploads/2022/12/chatgpt-1024x576.png" alt="" class="wp-image-309" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/chatgpt-1024x576.png 1024w, https://blog.tradesq.net/wp-content/uploads/2022/12/chatgpt-300x169.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/chatgpt-768x432.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/12/chatgpt-1536x864.png 1536w, https://blog.tradesq.net/wp-content/uploads/2022/12/chatgpt.png 1600w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">In terms of performance, ChatGPT has been shown to be highly effective in carrying out its tasks. In tests, it has demonstrated an impressive ability to understand and respond to user input, even in complex and nuanced situations. This makes it a valuable tool for businesses looking to improve their customer service and reduce the workload on their human employees.</p>


<p class="wp-block-paragraph ">While ChatGPT is not specifically designed for programming, its capabilities make it a potentially valuable tool for assisting with various aspects of the software development process. It could provide real-time analysis, automate certain tasks, and improve the overall efficiency of the programming process.</p>


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


<h2 class="wp-block-heading" id="lets-give-it-a-try"><strong>Let&#8217;s give it a try</strong></h2>


<p class="wp-block-paragraph ">As it was promised, we started communicating with the chatbot with simple English sentences. Our requests were straightforward, and we gave different tasks regarding trading strategy development. </p>


<p class="wp-block-paragraph ">As the main scope of this blog is EasyLange-based algo development our first command was:</p>


<p class="wp-block-paragraph has-text-align-center"><em>Write a trend following EasyLanguage strategy for ES</em></p>


<p class="wp-block-paragraph ">ChatGPT got it absolutely right. It understood the context: we want a trading strategy written on EasyLanguage. This strategy should follow trend-following principles. In other words, it should be based on price breakout entries. Finally, this strategy should work on the SP500 market.</p>


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



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-11-at-20.19.35-607x1024.png" alt="" class="wp-image-311" width="797" height="1345" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-11-at-20.19.35-607x1024.png 607w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-11-at-20.19.35-178x300.png 178w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-11-at-20.19.35-768x1295.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-11-at-20.19.35-911x1536.png 911w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-11-at-20.19.35-1214x2048.png 1214w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-11-at-20.19.35.png 1308w" sizes="(max-width: 797px) 100vw, 797px" /></figure>


<p class="wp-block-paragraph ">The generated strategy code looks like a fine EasyLanguage code. After a quick validation, we found that this code can be compiled by Tradestation and Multicharts. </p>


<p class="wp-block-paragraph ">The generated code comes with 3 input parameters: <em>EntryLength</em> and <em>Exitlength</em> are typical trend-following system properties. And here comes the first flaw of this generated system. The StopLoss variable name indicates that this variable is implementing an exit rule, but it is just an optimizable offset for calculating the entry stop price. An experienced strategy developer with human intelligence would probably never choose a variable name like this.</p>


<p class="wp-block-paragraph ">Anyways, we wanted to see what this piece of algo is capable of? What is the big picture and how robust is this strategy?</p>


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


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


<p class="wp-block-paragraph ">We used Tradesq to optimize the strategy for all supported future markets and sectors. Scheduling optimization is easy in Tradesq. Check <a href="https://blog.tradesq.net/how-to-develop-bias-based-strategies-in-easylanguage/">this article</a> for an example. </p>


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



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="221" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-14-at-15.44.55-1024x221.png" alt="" class="wp-image-317" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-14-at-15.44.55-1024x221.png 1024w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-14-at-15.44.55-300x65.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-14-at-15.44.55-768x166.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-14-at-15.44.55-1536x332.png 1536w, https://blog.tradesq.net/wp-content/uploads/2022/12/Screenshot-2022-12-14-at-15.44.55-2048x442.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">The filtered results table indicates good results for the Currency, Index, and Meat markets. These results are fine enough and typical for trend-following. </p>


<p class="wp-block-paragraph ">Finally, let&#8217;s look at the best equity curve provided by this research. According to the performance metrics that are the 30 minutes XBI (S&amp;P biotech sector ETF):</p>



<figure class="wp-block-image size-full is-style-default"><img loading="lazy" decoding="async" width="640" height="480" src="https://blog.tradesq.net/wp-content/uploads/2022/12/Unknown.png" alt="" class="wp-image-318" srcset="https://blog.tradesq.net/wp-content/uploads/2022/12/Unknown.png 640w, https://blog.tradesq.net/wp-content/uploads/2022/12/Unknown-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" /></figure>


<p class="wp-block-paragraph ">Beautiful equity curve indeed. Is this a robust system or just an over-optimized equity curve? Time will tell. One thing is sure: Tradesq&#8217;s Forward Testing module will pick this system up and follow its performance in the coming months and years. <a href="https://blog.tradesq.net/how-to-get-easylanguage-strategies/">Read our article</a> about how hundreds of trading algos are forward-tested in Tradesq. We will follow up on the performance results of this system in 6 months&#8217; time. </p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/algo-programming-with-chatgpt/">Algo programming with ChatGPT</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tradesq.net/algo-programming-with-chatgpt/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Starting with Easy Language programming</title>
		<link>https://blog.tradesq.net/starting-with-easy-language-programming/</link>
					<comments>https://blog.tradesq.net/starting-with-easy-language-programming/#respond</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Mon, 12 Dec 2022 21:33:09 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=299</guid>

					<description><![CDATA[<p>Learning Easy Language programming, the programming language of TradeStation, can open up a world of possibilities for traders and investors. Whether you want to create custom indicators and strategies or simply automate your trading process, mastering EasyLanguage is a valuable skill. Here are some tips to help you get started on your EasyLanguage journey: Learning &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/starting-with-easy-language-programming/">Starting with Easy Language programming</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 ">Learning Easy Language programming, the programming language of TradeStation, can open up a world of possibilities for traders and investors. Whether you want to create custom indicators and strategies or simply automate your trading process, mastering EasyLanguage is a valuable skill.</p>


<p class="wp-block-paragraph ">Here are some tips to help you get started on your EasyLanguage journey:</p>


<ol class="wp-block-list ">
<li>Familiarize yourself with the TradeStation platform. EasyLanguage is a unique language, and it is specifically designed to work with TradeStation. Therefore, it is essential to have a basic understanding of how the platform functions before diving into EasyLanguage. EasyLanguage is also very similar to Multichart&#8217;s PowerLanguage. </li>



<li>Take advantage of TradeStation&rsquo;s educational resources. TradeStation offers various educational materials, including webinars, tutorials, and online courses. These resources can provide an excellent foundation for learning EasyLanguage and help you understand the basics of the language.</li>



<li>Practice, practice, practice. As with any skill, the more you practice, the better you will become. Set aside dedicated time each day to work on EasyLanguage projects, and save your work so you can refer to it later.</li>



<li>Join online forums and communities. There are numerous online forums and communities dedicated to EasyLanguage and TradeStation. Joining these groups can provide valuable support and resources, as well as the opportunity to connect with other learners and experts.</li>



<li>Experiment with sample code. TradeStation provides a wealth of sample code that can be used to test out EasyLanguage concepts and strategies. Use this sample code as a starting point and modify it to see what happens. This is a great way to learn by doing and gain a better understanding of how EasyLanguage works.</li>



<li>Study and analyze more complex EasyLanguage codes written by professionals. <a href="http://tradesq.net" target="_blank" rel="noopener">Tradesq</a> gives you access to the most extensive strategy library written in EasyLanguage. Browse amongst these algos and learn programming approaches and best practices. Also, use these strategies for your trading to have diversified portfolios. </li>
</ol>


<p class="wp-block-paragraph ">Learning EasyLanguage may seem daunting at first, but with dedication and practice, you can master this powerful language and unlock new possibilities for your trading. By taking advantage of the resources available and staying committed to your learning journey, you can become a proficient EasyLanguage programmer and take your trading to the next level.</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/starting-with-easy-language-programming/">Starting with Easy Language programming</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tradesq.net/starting-with-easy-language-programming/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Get a free EasyLanguage strategy</title>
		<link>https://blog.tradesq.net/get-a-free-easylanguage-strategy/</link>
					<comments>https://blog.tradesq.net/get-a-free-easylanguage-strategy/#respond</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Wed, 07 Dec 2022 16:22:04 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=261</guid>

					<description><![CDATA[<p>Follow this link and download this free EasyLanguage strategy today. Mandalore EL is an excellent algo developed using Tradesq. It can be traded on multiple futures sectors, such as Currency, Energy, Grain, Index, Interest, Meat, Metal, Softs, and some ETFs. If you are interested in getting EasyLanguage strategies to your algo portfolio, check out our &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/get-a-free-easylanguage-strategy/">Get a free EasyLanguage strategy</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 ">Follow <a href="https://blog.tradesq.net/downloads/easylanguage-strategy-giveaway/">this link </a>and download this free EasyLanguage strategy today. </p>


<p class="wp-block-paragraph "><a href="https://app.tradesq.net/edgemaster/backtest/1014" target="_blank" rel="noopener">Mandalore EL</a> is an excellent algo developed using <a href="http://app.tradesq.net" target="_blank" rel="noopener">Tradesq</a>. It can be traded on multiple futures sectors, such as Currency, Energy, Grain, Index, Interest, Meat, Metal, Softs, and some ETFs. </p>


<p class="wp-block-paragraph ">If you are interested in getting EasyLanguage strategies to your algo portfolio, check out <a href="https://blog.tradesq.net/downloads/easylanguage-strategy-giveaway/">our article.</a></p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/get-a-free-easylanguage-strategy/">Get a free EasyLanguage 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/get-a-free-easylanguage-strategy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to get EasyLanguage strategies for Tradestation and Multicharts</title>
		<link>https://blog.tradesq.net/how-to-get-easylanguage-strategies/</link>
					<comments>https://blog.tradesq.net/how-to-get-easylanguage-strategies/#comments</comments>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Wed, 30 Nov 2022 13:33:38 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=213</guid>

					<description><![CDATA[<p>Developing trading strategies is not easy. If that were easy, the whole world would make a living from trading income. You can spend days or weeks building one and then forward-test it for a couple of months to see if it&#8217;s viable. If you are lucky, your algo gets validated, and you can start trading &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/how-to-get-easylanguage-strategies/">How to get EasyLanguage strategies for Tradestation and Multicharts</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 ">Developing trading strategies is not easy. If that were easy, the whole world would make a living from trading income. You can spend days or weeks building one and then forward-test it for a couple of months to see if it&#8217;s viable. If you are lucky, your algo gets validated, and you can start trading it. Then what&#8217;s next? Will you trade a single strategy or you rather have a portfolio of diversified algos? </p>


<p class="wp-block-paragraph ">It is very challenging to enter this space as a beginner trader. You want a handful of reliable algos to start but where can you find such strategies? </p>


<p class="wp-block-paragraph is-style-sub-heading has-medium-font-size"><br>Option 1: Purchase strategy from professional algo developers</p>


<p class="wp-block-paragraph ">This is the obvious first choice for many traders. There are numerous places to buy algos. You google &#8220;trading strategies to buy&#8221; and browse the beautiful equity curves on various landing pages. What is the catch so? Various things. </p>


<p class="wp-block-paragraph ">First of all, these strategies are mostly expensive. Generally, these algos are priced somewhere between $90 and $900.  The more significant problem is that you don&#8217;t know anything about the lifecycle of these strategies. How can you know know what time where these strategies developed? Is the creator continuously re-optimizing it to keep the equity curves nice? Is it robust or perhaps overoptimized? These are not easy questions to answer.</p>


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


<p class="wp-block-paragraph is-style-sub-heading has-medium-font-size">Option 2: user forward tested strategies created by tradesq community</p>


<p class="wp-block-paragraph "><a href="http://tradesq.net" target="_blank" rel="noopener">Tradesq</a> is a potent strategy builder and robustness tester tool. In my <a href="https://blog.tradesq.net/how-to-develop-bias-based-strategies-in-easylanguage/">previous article</a>, I showed how you could bring your classic EasyLanguage strategy development to the next level using Smart Backtesting. This time I want to highlight Tradesq&#8217;s strategy-sharing capabilities amongst users. </p>


<p class="wp-block-paragraph ">As a <a href="https://tradesq.net/futures1" target="_blank" rel="noopener">premium package</a> subscriber, you gain access to hundreds of EasyLanguage strategies created by the Tradesq Community. And here comes the best part. These strategies are continuously forward tested in Tradesq Cloud since the day they got developed. </p>


<p class="wp-block-paragraph ">What does it mean in practice? When a good algo is developed by a community member, the strategy will be automatically picked by Tradesq and continuous forward testing will be performed every week.  You can browse Tradesq&#8217;s forward tested strategies <a href="https://app.tradesq.net/oos/" target="_blank" rel="noopener">here</a>, even if you&#8217;re not a subscriber. </p>


<p class="wp-block-paragraph ">Let&#8217;s say you want algos for Nasdaq (NQ) with at least nine months of forward-tested results with a minimum of 40 out of sample trades.</p>


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



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="569" src="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-29-at-17.21.21-1024x569.png" alt="" class="wp-image-230" srcset="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-29-at-17.21.21-1024x569.png 1024w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-29-at-17.21.21-300x167.png 300w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-29-at-17.21.21-768x427.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-29-at-17.21.21-1536x854.png 1536w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-29-at-17.21.21-2048x1139.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


<p class="wp-block-paragraph ">As you see, Tradesq has many of them. You can sort and filter them by different out-of-sample parameters, R2 and return to drawdown ratio. When you click on a strategy a detailed <a href="https://app.tradesq.net/oos/display/13192" target="_blank" rel="noopener">forward testing data-sheet </a>will appear. </p>


<p class="wp-block-paragraph ">Probably the most interesting part of the data-sheet are the Strategy Performance charts.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="662" height="1024" src="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-29-at-17.22.46-662x1024.png" alt="" class="wp-image-231" srcset="https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-29-at-17.22.46-662x1024.png 662w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-29-at-17.22.46-194x300.png 194w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-29-at-17.22.46-768x1188.png 768w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-29-at-17.22.46-993x1536.png 993w, https://blog.tradesq.net/wp-content/uploads/2022/11/Screenshot-2022-11-29-at-17.22.46.png 1202w" sizes="(max-width: 662px) 100vw, 662px" /></figure>


<p class="wp-block-paragraph ">As you see, this strategy was developed in mid-2020. The creator of this algo used a one-year-long out-of-sample period (marked with yellow) for backtesting and optimization. </p>


<p class="wp-block-paragraph ">Since then, this strategy has been forward-tested live. Every week, Tradesq grabs this algo and backtests it repeatedly.  Its result is the forward-tested equity curve (red line).</p>


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


<p class="wp-block-paragraph is-style-sub-heading has-medium-font-size">Traders need reliable and robust strategies</p>


<p class="wp-block-paragraph ">Tradesq is a great place to get EasyLanguage-based strategies for a beginner trader to kick off or for an experienced trader to diversify their portfolio. As a <a href="https://tradesq.net/futures1" target="_blank" rel="noopener">Premium package</a> subscriber, you can browse hundreds of robustness-tested strategies with forward testing records. </p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/how-to-get-easylanguage-strategies/">How to get EasyLanguage strategies for Tradestation and Multicharts</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-get-easylanguage-strategies/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Welcome to Tradesq algo trading Blog!</title>
		<link>https://blog.tradesq.net/welcome-to-tradesq-blog/</link>
		
		<dc:creator><![CDATA[krisz]]></dc:creator>
		<pubDate>Thu, 17 Nov 2022 16:15:59 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[welcome]]></category>
		<guid isPermaLink="false">https://blog.tradesq.net/?p=87</guid>

					<description><![CDATA[<p>Hello, and welcome to our new trading blog! I&#8217;m Kris, co-founder and system architect of Tradesq. I&#8217;m also an Algo-trader, and I love building quantitative strategies on Tradestation and Multicharts platforms with on EasyLanguage. Algo trading can be fun, but it also requires much work. Also, it is a continuous struggle. On one side is &#8230;</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/welcome-to-tradesq-blog/">Welcome to Tradesq algo trading Blog!</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 ">Hello, and welcome to our new trading blog! I&#8217;m Kris, co-founder and system architect of Tradesq. I&#8217;m also an Algo-trader, and I love building quantitative strategies on Tradestation and Multicharts platforms with on EasyLanguage.</p>


<p class="wp-block-paragraph ">Algo trading can be fun, but it also requires much work. Also, it is a continuous struggle.</p>


<p class="wp-block-paragraph ">On one side is your chosen trading platform with its strategy development language and environment. You must learn the language and the common pitfalls and get daily practice in trade execution and performance analysis.</p>


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



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="682" src="https://blog.tradesq.net/wp-content/uploads/2022/11/stock-1863880_1280-1024x682.jpg" alt="" class="wp-image-91" srcset="https://blog.tradesq.net/wp-content/uploads/2022/11/stock-1863880_1280-1024x682.jpg 1024w, https://blog.tradesq.net/wp-content/uploads/2022/11/stock-1863880_1280-300x200.jpg 300w, https://blog.tradesq.net/wp-content/uploads/2022/11/stock-1863880_1280-768x512.jpg 768w, https://blog.tradesq.net/wp-content/uploads/2022/11/stock-1863880_1280.jpg 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>


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


<p class="wp-block-paragraph ">On the other hand &#8211; and probably this gives the most incredible difficulty in algo trading &#8211; there is strategy development. To be successful in this space, you need good quality and bullet-proof automated trading strategies &mdash; a lot of them. And planning, designing and implementing algos is pretty challenging.&nbsp;</p>


<p class="wp-block-paragraph ">Some time ago, I was also facing this challenge. Then, I built my mental and technical strategy development framework to make my trading life more manageable. Today this framework is publicly available for all EasyLanguage-based algo traders worldwide on tradesq.net. What Tradesq consists of, and how can you use it to supercharge your strategy development? Well, that is the story of other blog posts coming soon.</p>


<p class="wp-block-paragraph ">In this blog, I&#8217;m going to mostly write about the following:</p>


<ul class="wp-block-list ">
<li>Quantitative trading strategy development</li>



<li>Different markets and algo-types fitting with them</li>



<li>Easylanguage tips and tricks</li>
</ul>


<p class="wp-block-paragraph ">&#8230;and many other topics about algo-trading</p>
<p>The post <a rel="nofollow" href="https://blog.tradesq.net/welcome-to-tradesq-blog/">Welcome to Tradesq algo trading Blog!</a> appeared first on <a rel="nofollow" href="https://blog.tradesq.net">Tradesq Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
