{"id":17725,"date":"2023-09-12T14:00:00","date_gmt":"2023-09-12T06:00:00","guid":{"rendered":"https:\/\/www.tejwin.com\/?post_type=insight&#038;p=17725"},"modified":"2026-03-03T11:49:29","modified_gmt":"2026-03-03T03:49:29","slug":"tquant-lab-bollinger-bands-trading-strategy","status":"publish","type":"insight","link":"https:\/\/www.tejwin.com\/en\/insight\/tquant-lab-bollinger-bands-trading-strategy\/","title":{"rendered":"TQuant Lab Bollinger Bands Trading Strategy"},"content":{"rendered":"\n<figure class=\"wp-block-image aligncenter size-full is-resized caption-align-center\" id=\"b576\"><img fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"533\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/image-20.jpeg\" alt=\"TQuant Lab \u5e03\u6797\u901a\u9053\u4ea4\u6613\u7b56\u7565\" class=\"wp-image-15413\" style=\"width:800px;height:533px\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/image-20.jpeg 800w, https:\/\/www.tejwin.com\/wp-content\/uploads\/image-20-300x200.jpeg 300w, https:\/\/www.tejwin.com\/wp-content\/uploads\/image-20-150x100.jpeg 150w, https:\/\/www.tejwin.com\/wp-content\/uploads\/image-20-768x512.jpeg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Photo by <a class=\"ek-link markup--anchor markup--figure-anchor\" data-href=\"https:\/\/unsplash.com\/@nampoh?utm_source=medium&amp;utm_medium=referral\" href=\"https:\/\/unsplash.com\/@nampoh?utm_source=medium&amp;utm_medium=referral\" target=\"_blank\" rel=\"photo-creator noopener\">Maxim Hopman<\/a> on&nbsp;<a class=\"markup--anchor markup--figure-anchor\" data-href=\"https:\/\/unsplash.com?utm_source=medium&amp;utm_medium=referral\" href=\"https:\/\/unsplash.com?utm_source=medium&amp;utm_medium=referral\" target=\"_blank\" rel=\"photo-source noopener\">Unsplash<\/a><\/figcaption><\/figure>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_81 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f5f13f108a3\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f5f13f108a3\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.tejwin.com\/en\/insight\/tquant-lab-bollinger-bands-trading-strategy\/#Highlight\" >Highlight<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.tejwin.com\/en\/insight\/tquant-lab-bollinger-bands-trading-strategy\/#Preface\" >Preface<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.tejwin.com\/en\/insight\/tquant-lab-bollinger-bands-trading-strategy\/#Trading_Strategy\" >Trading Strategy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.tejwin.com\/en\/insight\/tquant-lab-bollinger-bands-trading-strategy\/#Performance_Analysis\" >Performance Analysis<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.tejwin.com\/en\/insight\/tquant-lab-bollinger-bands-trading-strategy\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Highlight\"><\/span>Highlight<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Difficulty: \u2605\u2606\u2606\u2606\u2606<\/li>\n\n\n\n<li>Bollinger band consists mainly of the stock price moving average and its positive, and negative standard deviation.  With the above three lines, we can draw the upper, lower, and middle bounds for determining when to long or short stocks.<\/li>\n\n\n\n<li>This article is revised from <a href=\"https:\/\/www.tejwin.com\/en\/insight\/bollinger-bands-trading-strategy\/\" class=\"ek-link\">Bollinger Band Trading Strategy <\/a>via TQuant Lab.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Preface\"><\/span>Preface<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"e085\">Bollinger Band is a technical indicator that John Bollinger invented in the 1980s. Bollinger Band consists of the concepts of statistics and moving averages. The moving Average(MA) is the average closing price of a past period. Usually, the period of MA in Bollinger Band is 20 days, and Standard Deviation(SD) is usually represented by \u03c3 in mathematical sign, which is used to evaluate the data\u2019s degree of discrete<em>.<\/em><\/p>\n\n\n\n<p id=\"b19e\">Bollinger Band is composed of three tracks:<br>\u25cf The upper track\uff1a20 MA\uff0bdouble standard deviation<br>\u25cf The middle track\uff1a20 MA<br>\u25cf The lower track\uff1a20 MA\uff0bdouble standard deviation<\/p>\n\n\n\n<p id=\"5802\">The investment target price distribution during the long-term observation period will be Normal Distribution. According to statistics, there is a 95% probability that the price will present between \u03bc \u2212 2\u03c3 and \u03bc + 2\u03c3, which is also called a 95% Confidence Interval(CI). Bollinger Band is the technical indicator based on the theories above.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Trading_Strategy\"><\/span>Trading Strategy<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When today&#8217;s close price touches the upper bound and currently holds the position, sell the asset tomorrow.<\/li>\n\n\n\n<li>When today&#8217;s close price touches the lower bound and the cash position is positive, buy the asset tomorrow.<\/li>\n\n\n\n<li>When today&#8217;s close price touches the lower bound, the cash position is positive, and the current close price is lower than the last buy price, buy the asset tomorrow.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">The Editing Environment and Module Required<\/h3>\n\n\n\n<p id=\"9d53\">This article uses Windows 11 as a system and jupyter notebook as an editor.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Data and Module Import<\/h3>\n\n\n\n<p>The backtesting time period is between 2021\/04\/01 to 2022\/12\/31, and we take AUO(2409), Taiwan\u2019s leading panel manufacturers, as an example in this study.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Create Functions<\/h3>\n\n\n\n<p>First, we created Pipeline dunction. <code>Pipeline()<\/code>, a function in TQuant Lab, enables users to process multiple assets&#8217; trading-related data quickly. In today&#8217;s article, we use it to process:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Upper bound for Bollinger Bands in 20 days duration.<\/li>\n\n\n\n<li>Middle bound for Bollinger Bands in 20 days duration.<\/li>\n\n\n\n<li>Lower bound for Bollinger Bands in 20 days duration.\n<ul class=\"wp-block-list\">\n<li>Current close price.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Next, we used <code>Initialize()<\/code>, a function users can set up the trading environment at the beginning of the backtest period. In this article, we set up :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Slippage<\/li>\n\n\n\n<li>Commission<\/li>\n\n\n\n<li>Set the return of buying and holding AUO as the benchmark<\/li>\n\n\n\n<li>Attach <code>Pipline()<\/code> function into backtesting.<\/li>\n\n\n\n<li>Last buy price<\/li>\n<\/ul>\n\n\n\n<p>In addition, we created <code>handle_data()<\/code> function to process data and make orders daily and obtain the upper, lower, and middle bounds lines for each day&#8217;s pipeline.<\/p>\n\n\n\n<p>For visualization, we apply <code>matplotlib.pyplot<\/code> for observing the trading signals and the portfolio value visualization in our study.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Run Algorithms<\/h3>\n\n\n\n<p>Via <code>run_algorithm()<\/code>, we can execute the strategy we built above. The backtesting time period is set between 2021-06-01 to 2022-12-31. We assume the initial capital base is 500,000. The output of <code>run_algorithm()<\/code>, which is <em>result<\/em>s, contains information on daily performance and trading receipts. <\/p>\n\n\n\n<p>By observing the following graph, we can discover that there is an upper trend between 2021\/11 to 2021\/12. Since the close prices were not able to hit the lower bound, there was no buying transaction in this time period, so that made us fail to earn a profit.<\/p>\n\n\n\n<p>The same issue has happened in the continuously lower trend. A sharp lower trend occurred from 2022-04, which led to consistently touching the lower bound. That means we have bought a bunch of stocks in this time zone. However, after the price recovered shortly, the close price touched the upper bound immediately. As a result, we sell the holding positions and earn a net loss during this time period.<\/p>\n\n\n\n<p>As a matter of fact, due to the latency of 20 days Bollinger band, the band has difficulty reflecting the short-term high volatility price movement. If your target asset is more volatile, we suggested shortening the duration of the Bollinger band or adding trend-related indicators to fine-tune your strategy.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full caption-align-center\"><img decoding=\"async\" width=\"797\" height=\"544\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-162911.png\" alt=\"\" class=\"wp-image-15407\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-162911.png 797w, https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-162911-300x205.png 300w, https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-162911-150x102.png 150w, https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-162911-768x524.png 768w\" sizes=\"(max-width: 797px) 100vw, 797px\" \/><figcaption class=\"wp-element-caption\">Portfolio value, trading time point, and trading records<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Performance_Analysis\"><\/span>Performance Analysis<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Then, we used <code>Pyfolio <\/code>module which came with TQuant Lab to analyze strategy&#8217;s performance and risk. First, we can calculate returns, positions, and trading records, the following is the results. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Daily Returns<\/h3>\n\n\n\n<p>Calculating daily portfolio return.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full caption-align-center\"><img decoding=\"async\" width=\"333\" height=\"112\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/returns.png\" alt=\"\" class=\"wp-image-15401\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/returns.png 333w, https:\/\/www.tejwin.com\/wp-content\/uploads\/returns-300x101.png 300w, https:\/\/www.tejwin.com\/wp-content\/uploads\/returns-150x50.png 150w\" sizes=\"(max-width: 333px) 100vw, 333px\" \/><figcaption class=\"wp-element-caption\">Daily portfolio return<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Holding Positions<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Equity(0 [2406]): hoding AUO positions<\/li>\n\n\n\n<li>Cash: Cash positions<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full caption-align-center\"><img loading=\"lazy\" decoding=\"async\" width=\"386\" height=\"208\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-155031.png\" alt=\"\" class=\"wp-image-15403\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-155031.png 386w, https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-155031-300x162.png 300w, https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-155031-150x81.png 150w\" sizes=\"(max-width: 386px) 100vw, 386px\" \/><figcaption class=\"wp-element-caption\">Holding position record<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Transaction Record<\/h3>\n\n\n\n<p>Following is the descriptions of each colums:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>sid: index<\/li>\n\n\n\n<li>symbol: ticker symbol<\/li>\n\n\n\n<li>price: buy\/sell price<\/li>\n\n\n\n<li>order_id: order number<\/li>\n\n\n\n<li>amount: trading amount<\/li>\n\n\n\n<li>commission: commission cost<\/li>\n\n\n\n<li>dt: trading date<\/li>\n\n\n\n<li>txn_dollar: trading dollar volume<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large caption-align-center\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"248\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/\/Screenshot-2023-08-01-160506-1024x248.png\" alt=\"\" class=\"wp-image-15405\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-160506-1024x248.png 1024w, https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-160506-300x73.png 300w, https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-160506-150x36.png 150w, https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-160506-768x186.png 768w, https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-160506.png 1099w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Trading record<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Plot Accumulated Return and Benchmark Return<\/h3>\n\n\n\n<p>After organized all the data above, we can plot the figure and compare Accumulated Return and Benchmark Return.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full caption-align-center\"><img loading=\"lazy\" decoding=\"async\" width=\"412\" height=\"244\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-164018.png\" alt=\"\" class=\"wp-image-15409\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-164018.png 412w, https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-164018-300x178.png 300w, https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-164018-150x89.png 150w\" sizes=\"(max-width: 412px) 100vw, 412px\" \/><figcaption class=\"wp-element-caption\">Figure for strategy returns<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Making Performance Table<\/h3>\n\n\n\n<p>With <code>show_perf_stats()<\/code> this function, we can easily showcase the performance and risk analysis table. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full caption-align-center\"><img loading=\"lazy\" decoding=\"async\" width=\"183\" height=\"480\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-164302.png\" alt=\"\" class=\"wp-image-15411\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-164302.png 183w, https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-164302-114x300.png 114w, https:\/\/www.tejwin.com\/wp-content\/uploads\/Screenshot-2023-08-01-164302-57x150.png 57w\" sizes=\"(max-width: 183px) 100vw, 183px\" \/><figcaption class=\"wp-element-caption\">Performance Table<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>From late 2021 to 2022, the stock price of AUO is clearly in a downward spiral. if choosing buy and hold strategy, the accumulated return would turn out to be -40% to -50%. On the contrary, with Bollinger band strategy, the performance is way better than the buy and hold strategy. <\/p>\n\n\n\n<p>However, the pure Bollinger Bands strategy tends to have the disadvantage of exiting prematurely during the rebound phase after a significant downward trend and the predicament of entering very rarely during the upward phase. Therefore, for stocks with significant price fluctuations, it is recommended to use other indicators to assess trend strength and optimize their strategy.<\/p>\n\n\n\n<p>Please note that this strategy and the underlying assets are for reference only and do not constitute any recommendations for commodities or investments. In the future, we will also introduce the use of TEJ database to construct various indicators and backtest indicator performance. So, readers interested in various trading backtesting can choose relevant solutions from <a href=\"https:\/\/eshop.tej.com.tw\/E-Shop\/index\" class=\"ek-link\" target=\"_blank\" rel=\"noopener\">TEJ Solutions<\/a> to build their own trading strategies with high-quality databases.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size is-style-fill\" style=\"font-size:20px\"><a class=\"wp-block-button__link has-background wp-element-button\" href=\"https:\/\/www.tejwin.com\/en\/databank-solution\/market-data\/\" style=\"border-radius:17px;background:linear-gradient(135deg,rgb(240,215,106) 0%,rgb(75,209,200) 50%,rgb(76,132,205) 100%)\"><strong>Optimize your investment workflow with TEJ Back-testing Platform.<br>Explore Comprehensive Databank Today!<\/strong><\/a><\/div>\n<\/div>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p style=\"font-size:28px\"><strong>Source Code<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/gist.github.com\/tej87681088\/3632a6c2987cc6fdd99805b87e34b950\" class=\"ek-link\" target=\"_blank\" rel=\"noopener\">Click here to Github<\/a><\/li>\n<\/ul>\n\n\n\n<p style=\"font-size:28px\"><strong>Extended Reading<\/strong><\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-tej wp-block-embed-tej\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"j6hYeiZ0kX\"><a href=\"https:\/\/www.tejwin.com\/en\/insight\/tquant-lab-rookie-manual\/\">TQuant Lab Rookie Manual<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;TQuant Lab Rookie Manual&#8221; &#8212; TEJ\" src=\"https:\/\/www.tejwin.com\/en\/insight\/tquant-lab-rookie-manual\/embed\/#?secret=fxSguYfFvX#?secret=j6hYeiZ0kX\" data-secret=\"j6hYeiZ0kX\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-tej wp-block-embed-tej\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"s1cVsyWHGf\"><a href=\"https:\/\/www.tejwin.com\/en\/insight\/%e3%80%90quant%e3%80%91aroon-up-down-strategy\/\">Aroon Up Down\u00a0Strategy<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Aroon Up Down\u00a0Strategy&#8221; &#8212; TEJ\" src=\"https:\/\/www.tejwin.com\/en\/insight\/%e3%80%90quant%e3%80%91aroon-up-down-strategy\/embed\/#?secret=Uc3SXNCryD#?secret=s1cVsyWHGf\" data-secret=\"s1cVsyWHGf\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Bollinger Bands is a technical indicator invented by John Bollinger in the 1980s. It combines the concepts of moving averages and statistical standard deviation to construct a trading strategy based on statistical analysis. This article will demonstrate how to deploy this strategy on the TQuant Lab back testing platform.<\/p>\n","protected":false},"featured_media":15414,"template":"","tags":[3063,2987,3199,3166],"insight-category":[690,50,1356],"class_list":["post-17725","insight","type-insight","status-publish","has-post-thumbnail","hentry","tag-backtesting-2","tag-quant","tag-tej-database","tag-tquant-lab-2","insight-category-data-analysis","insight-category-fintech","insight-category-tquant-lab-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight\/17725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight"}],"about":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/types\/insight"}],"version-history":[{"count":15,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight\/17725\/revisions"}],"predecessor-version":[{"id":44061,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight\/17725\/revisions\/44061"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/media\/15414"}],"wp:attachment":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/media?parent=17725"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/tags?post=17725"},{"taxonomy":"insight-category","embeddable":true,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight-category?post=17725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}