{"id":20480,"date":"2024-01-25T10:00:00","date_gmt":"2024-01-25T02:00:00","guid":{"rendered":"https:\/\/www.tejwin.com\/insight\/rsi-%e5%9d%87%e7%b7%9a%e7%ad%96%e7%95%a5\/"},"modified":"2026-03-02T10:22:48","modified_gmt":"2026-03-02T02:22:48","slug":"rsi-moving-average","status":"publish","type":"insight","link":"https:\/\/www.tejwin.com\/en\/insight\/rsi-moving-average\/","title":{"rendered":"TQuant Lab RSI Moving Average Strategy \u2013 Identifying Reversals in Oversold Conditions"},"content":{"rendered":"\n<figure class=\"wp-block-image aligncenter size-large caption-align-center\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/\/alex-radelich-2gYsZUmockw-unsplash-1024x683.jpg\" alt=\"rsi moving average\" class=\"wp-image-20364\" style=\"aspect-ratio:1.5;object-fit:cover\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/alex-radelich-2gYsZUmockw-unsplash-1024x683.jpg 1024w, https:\/\/www.tejwin.com\/wp-content\/uploads\/alex-radelich-2gYsZUmockw-unsplash-300x200.jpg 300w, https:\/\/www.tejwin.com\/wp-content\/uploads\/alex-radelich-2gYsZUmockw-unsplash-150x100.jpg 150w, https:\/\/www.tejwin.com\/wp-content\/uploads\/alex-radelich-2gYsZUmockw-unsplash-768x512.jpg 768w, https:\/\/www.tejwin.com\/wp-content\/uploads\/alex-radelich-2gYsZUmockw-unsplash-1536x1024.jpg 1536w, https:\/\/www.tejwin.com\/wp-content\/uploads\/alex-radelich-2gYsZUmockw-unsplash-2048x1365.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Photo by <a href=\"https:\/\/unsplash.com\/@alexradelich?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash\" class=\"ek-link\" target=\"_blank\" rel=\"noopener\">Alex Radelich<\/a> on <a href=\"https:\/\/unsplash.com\/photos\/man-jumping-on-rock-formation-2gYsZUmockw?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash\" class=\"ek-link\" target=\"_blank\" rel=\"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-69f5dff308dc4\" 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-69f5dff308dc4\"  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\/rsi-moving-average\/#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\/rsi-moving-average\/#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\/rsi-moving-average\/#Coding_Environment\" >Coding Environment<\/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\/rsi-moving-average\/#Data_Import\" >Data Import<\/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\/rsi-moving-average\/#Trading_Rules_for_RSI_Moving_Average_Strategy\" >Trading Rules for RSI Moving Average Strategy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.tejwin.com\/en\/insight\/rsi-moving-average\/#Execute_the_Trading_Strategy\" >Execute the Trading Strategy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.tejwin.com\/en\/insight\/rsi-moving-average\/#Using_Pyfolio_for_Performance_Evaluation\" >Using Pyfolio for Performance Evaluation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.tejwin.com\/en\/insight\/rsi-moving-average\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.tejwin.com\/en\/insight\/rsi-moving-average\/#Source_Code\" >Source Code<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.tejwin.com\/en\/insight\/rsi-moving-average\/#Extended_Reading\" >Extended Reading<\/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>Article Difficulty\uff1a\u2605\u2605\u2606\u2606\u2606<\/li>\n\n\n\n<li>This article focuses on developing a trading strategy (RSI Moving Average Strategy) using the Relative Strength Index (RSI) divergence and simple moving averages to determine entry and exit points.<\/li>\n\n\n\n<li>Utilizing the TQuant Lab backtesting platform to formulate trading strategies and assess the associated risks and performance.<\/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>The Relative Strength Index (RSI) is a widely popular oscillating technical indicator that calculates the relative strength between buyers and sellers. When the RSI is above 50, it indicates more substantial buying power; when the RSI is below 50, it signals more substantial selling power. In technical analysis, an RSI exceeding 70 is generally considered overbought, while an RSI below 30 is considered oversold. Moreover, RSI is a leading indicator, often anticipating price highs\/lows, enabling early detection of market reversals and facilitating contrarian trading strategies.<\/p>\n\n\n\n<p>In addition, since RSI itself lacks directional information, we can complement it with moving averages to determine the market as illustrated bellow:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full caption-align-center\"><img decoding=\"async\" width=\"684\" height=\"608\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-17-\u4e0b\u53484.50.04.png\" alt=\"rsi moving average\" class=\"wp-image-20376\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-17-\u4e0b\u53484.50.04.png 684w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-17-\u4e0b\u53484.50.04-300x267.png 300w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-17-\u4e0b\u53484.50.04-150x133.png 150w\" sizes=\"(max-width: 684px) 100vw, 684px\" \/><figcaption class=\"wp-element-caption\">RSI Divergence<\/figcaption><\/figure>\n\n\n\n<p>We can observe that the stock price increases when the moving average declines and the RSI rises above the low point in the oversold zone. Similarly, when the moving average ascends, and the RSI falls below the low point in the overbought zone, the stock price declines shortly afterward. J. W. Wilder, the developer of RSI, once mentioned that displaying divergence is the &#8220;greatest strength&#8221; of RSI.<\/p>\n\n\n\n<p>The key to identifying the divergence lies in first drawing support\/resistance lines on the RSI and then doing the same for the price. Look for the two troughs for the support line and the two peaks for the resistance line. If the direction of the lines is different, it indicates divergence, signaling a potential market reversal in the direction indicated by the RSI.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Coding_Environment\"><\/span>Coding Environment<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>This article is composed in MacOS, utilizing Jupyter Notebook as the primary editor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Data_Import\"><\/span>Data Import<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>import os\nos.environ&#91;'TEJAPI_KEY'] = \"your key\" \nos.environ&#91;'TEJAPI_BASE'] = \"https:\/\/api.tej.com.tw\"\nimport pandas as pd\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nfrom zipline.data import bundles\nfrom zipline.utils.calendar_utils import get_calendar\nfrom zipline.sources.TEJ_Api_Data import get_Benchmark_Return<\/code><\/pre>\n\n\n\n<p>Data Period: January 1, 2021, to December 31, 2023<\/p>\n\n\n\n<p>Using the <code>get_universe<\/code> function, obtain <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Chemical Biotechnology and Medical Care sectors stock pool<\/mark>. Additionally, the Chemical Biotechnology and Medical Care Return Index (<em>IX0019<\/em>) was included as a benchmark for market comparison.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from zipline.sources.TEJ_Api_Data import get_universe\nstart = '2021-01-01'\nend = '2023-12-31'\npool = get_universe(start, end, mkt = 'TWSE', stktp_e = 'Common Stock', main_ind_e = 'M1700 Chemical Biotechnology &amp; Medical Care')\nprint(f'total stock: {len(pool)}\uff1a\\n', pool)\n\nstart_dt, end_dt = pd.Timestamp(start, tz='utc'), pd.Timestamp(end, tz='utc')\ntickers = ' '.join(pool)\nos.environ&#91;'ticker'] = tickers+' IX0019'\nos.environ&#91;'mdate'] = start+' '+end\n!zipline ingest -b tquant\n\nbundle = bundles.load('tquant')\nbenchmark_asset = bundle.asset_finder.lookup_symbol('IX0019',as_of_date = None)<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full caption-align-center\"><img decoding=\"async\" width=\"2210\" height=\"190\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-26-\u4e0a\u53489.25.52.png\" alt=\"rsi moving average\" class=\"wp-image-20482\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-26-\u4e0a\u53489.25.52.png 2210w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-26-\u4e0a\u53489.25.52-300x26.png 300w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-26-\u4e0a\u53489.25.52-1024x88.png 1024w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-26-\u4e0a\u53489.25.52-150x13.png 150w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-26-\u4e0a\u53489.25.52-768x66.png 768w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-26-\u4e0a\u53489.25.52-1536x132.png 1536w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-26-\u4e0a\u53489.25.52-2048x176.png 2048w\" sizes=\"(max-width: 2210px) 100vw, 2210px\" \/><figcaption class=\"wp-element-caption\">Selected Stock Pool<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Trading_Rules_for_RSI_Moving_Average_Strategy\"><\/span>Trading Rules for RSI Moving Average Strategy<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Buy Signal:<\/strong>\n<ul class=\"wp-block-list\">\n<li>When the RSI is below 30, the RSI slope is positive, and the stock&#8217;s price moving average is declining, which indicates a strengthening of buyers and a low point in the stock price. In this scenario, initiate a purchase of 1000 shares.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Add-on Buy Signal:<\/strong>\n<ul class=\"wp-block-list\">\n<li>When the RSI is between 45 and 55, the RSI slope is positive, and the stock&#8217;s price moving average is ascending, suggesting a continued bullish market with expectations of further price increases. In this situation, add 1000 shares to the existing position.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Sell Signal:<\/strong>\n<ul class=\"wp-block-list\">\n<li>When the RSI is above 70, the RSI slope is negative, and the stock&#8217;s price moving average is ascending, which indicates a strengthening of sellers and a high stock price. We sell all existing shares at this point.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Execute_the_Trading_Strategy\"><\/span>Execute the Trading Strategy<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Execute the RSI Moving Average strategy with the <code>run_algorithm()<\/code> function, setting the trading period from <code>start_time<\/code> (2021-01-01) to <code>end_time<\/code> (2023-12-31). Utilize the dataset <em>tquant<\/em> and initialize the <code>starting_cash<\/code> to 5,000,000 NTD. The output,  or <code>results<\/code>, will represent the daily performance and detailed transaction records.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from zipline import run_algorithm\nresults = run_algorithm(\n    start = start_dt,\n    end = end_dt,\n    initialize=initialize,\n    bundle='tquant',\n    analyze=analyze,\n    capital_base=5e6,\n    handle_data = handle_data\n)\nresults<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large caption-align-center\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"487\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/\/\u622a\u5716-2024-01-24-\u4e0a\u534811.51.45-1024x487.png\" alt=\"rsi moving average\" class=\"wp-image-20459\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-24-\u4e0a\u534811.51.45-1024x487.png 1024w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-24-\u4e0a\u534811.51.45-300x143.png 300w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-24-\u4e0a\u534811.51.45-150x71.png 150w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-24-\u4e0a\u534811.51.45-768x366.png 768w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-24-\u4e0a\u534811.51.45-1536x731.png 1536w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-24-\u4e0a\u534811.51.45-2048x975.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Transaction Details<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Using_Pyfolio_for_Performance_Evaluation\"><\/span>Using Pyfolio for Performance Evaluation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>import pyfolio as pf\nfrom pyfolio.utils import extract_rets_pos_txn_from_zipline\n\nreturns, positions, transactions = pf.utils.extract_rets_pos_txn_from_zipline(results)\nbenchmark_rets = results.benchmark_return\n\n# Creating a Full Tear Sheet\npf.create_full_tear_sheet(returns, positions = positions, transactions = transactions,\n                          benchmark_rets = benchmark_rets,\n                          round_trips=False)<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full caption-align-center\"><img loading=\"lazy\" decoding=\"async\" width=\"2834\" height=\"1464\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/\u8cc7\u7522-2.png\" alt=\"rsi moving average\" class=\"wp-image-20400\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/\u8cc7\u7522-2.png 2834w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u8cc7\u7522-2-300x155.png 300w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u8cc7\u7522-2-1024x529.png 1024w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u8cc7\u7522-2-150x77.png 150w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u8cc7\u7522-2-768x397.png 768w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u8cc7\u7522-2-1536x793.png 1536w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u8cc7\u7522-2-2048x1058.png 2048w\" sizes=\"(max-width: 2834px) 100vw, 2834px\" \/><figcaption class=\"wp-element-caption\">Backtest Performance Comparison Chart with the Market<\/figcaption><\/figure>\n\n\n\n<p>With the RSI Moving Average strategy, we observe an annualized return of approximately 12.32% over these 34 months, accumulating a total return close to 40%. The overall performance surpasses the market benchmark. However, the strategy&#8217;s reliance on reverse operations based on stock price fluctuations results in higher volatility, reaching around 17%. Regarding the Max Drawdown, it is noticeable that the overall market exhibited poor performance in Q3 and Q4 of 2022 due to factors such as the Fed&#8217;s interest rate hikes and the impact of the COVID-19 pandemic. As a consequence, the return rate of the RSI Moving Average strategy experienced a slight decline during this period.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full caption-align-center\"><img loading=\"lazy\" decoding=\"async\" width=\"2062\" height=\"710\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-18-\u4e0b\u53483.35.33.png\" alt=\"rsi moving average\" class=\"wp-image-20402\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-18-\u4e0b\u53483.35.33.png 2062w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-18-\u4e0b\u53483.35.33-300x103.png 300w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-18-\u4e0b\u53483.35.33-1024x353.png 1024w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-18-\u4e0b\u53483.35.33-150x52.png 150w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-18-\u4e0b\u53483.35.33-768x264.png 768w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-18-\u4e0b\u53483.35.33-1536x529.png 1536w, https:\/\/www.tejwin.com\/wp-content\/uploads\/\u622a\u5716-2024-01-18-\u4e0b\u53483.35.33-2048x705.png 2048w\" sizes=\"(max-width: 2062px) 100vw, 2062px\" \/><figcaption class=\"wp-element-caption\">Monthly Return Rate<\/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>This strategy utilizes RSI Divergence to anticipate stock price lows in advance, combining it with the directional guidance provided by simple moving averages for contrarian operations. Similarly, employing the RSI Moving Average strategy for short positions is also feasible, and investors are welcome to consider these approaches. In the future, we will continue to introduce the construction of various indicators using the TEJ database and backtest indicator performance. Therefore, for readers interested in multiple trading backtests, explore solutions offered by <strong><a href=\"https:\/\/www.tejwin.com\/en\/databank-solution\/market-data\/\" class=\"ek-link\">TEJ Databank<\/a><\/strong>! Utilize high-quality databases to construct trading strategies tailored to your preferences.<\/p>\n\n\n\n<p>As a friendly reminder, <strong>this strategy is provided for reference only and does not refer to any product or investment advice.<\/strong><\/p>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\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:19px;background:linear-gradient(135deg,rgb(240,215,106) 0%,rgb(75,209,200) 50%,rgb(76,132,205) 100%)\"><strong>Learn More about the High-Quality Investment Database by TEJ!<br>Construct Trading Strategies With Market Data.<\/strong><\/a><\/div>\n<\/div>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Source_Code\"><\/span>Source Code<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/tejtw\/TEJAPI_Python_Medium_Quant\/blob\/782934438f434dde367ffb17fc3ccdbabfbae3b4\/RSI%2B%E5%9D%87%E7%B7%9A%E7%AD%96%E7%95%A5.ipynb\" class=\"ek-link\" target=\"_blank\" rel=\"noopener\">Click Here to Github<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Extended_Reading\"><\/span>Extended Reading<span class=\"ez-toc-section-end\"><\/span><\/h2>\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-vertically-aligned-top 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=\"BgIdiEWIhv\"><a href=\"https:\/\/www.tejwin.com\/insight\/tquant-lab-atr%e6%90%8d%e5%a4%b1%e8%a6%8f%e9%81%bf%e7%ad%96%e7%95%a5\/\">TQuant Lab \u640d\u5931\u898f\u907f\u7b56\u7565 \u2014 \u771f\u5be6\u6ce2\u52d5\u5e45\u5ea6\u5747\u503c<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"TQuant Lab \u640d\u5931\u898f\u907f\u7b56\u7565 \u2014 \u771f\u5be6\u6ce2\u52d5\u5e45\u5ea6\u5747\u503c &#8212; TEJ\" src=\"https:\/\/www.tejwin.com\/insight\/tquant-lab-atr%e6%90%8d%e5%a4%b1%e8%a6%8f%e9%81%bf%e7%ad%96%e7%95%a5\/embed\/#?secret=XN8Xpom3pe#?secret=BgIdiEWIhv\" data-secret=\"BgIdiEWIhv\" 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=\"iaGY0rvfO9\"><a href=\"https:\/\/www.tejwin.com\/insight\/%e3%80%90%e9%87%8f%e5%8c%96%e5%88%86%e6%9e%90%e3%80%91rsi%e6%8c%87%e6%a8%99%e5%9b%9e%e6%b8%ac%e5%af%a6%e6%88%b0\/\">RSI\u6307\u6a19\u56de\u6e2c\u5be6\u6230<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"RSI\u6307\u6a19\u56de\u6e2c\u5be6\u6230 &#8212; TEJ\" src=\"https:\/\/www.tejwin.com\/insight\/%e3%80%90%e9%87%8f%e5%8c%96%e5%88%86%e6%9e%90%e3%80%91rsi%e6%8c%87%e6%a8%99%e5%9b%9e%e6%b8%ac%e5%af%a6%e6%88%b0\/embed\/#?secret=vIAd6UNwuJ#?secret=iaGY0rvfO9\" data-secret=\"iaGY0rvfO9\" 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>Creating a convergence strategy with the RSI moving average strategy. The RSI is an oscillating technical indicator representing the comparative strength between buyers and sellers in the market. <\/p>\n","protected":false},"featured_media":20365,"template":"","tags":[3582,2987,2989,2990],"insight-category":[690,50,1356],"class_list":["post-20480","insight","type-insight","status-publish","has-post-thumbnail","hentry","tag-indicator","tag-quant","tag-quantitive-analysis","tag-quantitive-trading","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\/20480","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":18,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight\/20480\/revisions"}],"predecessor-version":[{"id":44010,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight\/20480\/revisions\/44010"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/media\/20365"}],"wp:attachment":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/media?parent=20480"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/tags?post=20480"},{"taxonomy":"insight-category","embeddable":true,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight-category?post=20480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}