{"id":3576,"date":"2019-05-15T11:09:43","date_gmt":"2019-05-15T15:09:43","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=3576"},"modified":"2023-03-29T17:01:44","modified_gmt":"2023-03-29T21:01:44","slug":"rsi-indicator-part-i","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/rsi-indicator-part-i\/","title":{"rendered":"RSI Indicator &#8211; Part I"},"content":{"rendered":"\n<p>The Relative Strength Index (RSI) indicator, as the name suggests, tells us the relative strength of the asset. RSI is counted as a robust technical indicator.<\/p>\n\n\n\n<p><strong>RSI calculation with the help of an example<\/strong><\/p>\n\n\n\n<p>Let\u2019s understand how to calculate and graph the RSI indicator. While you can easily calculate the RSI indicator value with the Python code, for explanation purposes we will do it manually.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"323\" height=\"503\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2023\/03\/RSI-Indicator-1.png\" alt=\"\" class=\"wp-image-187638 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/03\/RSI-Indicator-1.png 323w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/03\/RSI-Indicator-1-300x467.png 300w\" data-sizes=\"(max-width: 323px) 100vw, 323px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 323px; aspect-ratio: 323\/503;\" \/><\/figure>\n\n\n\n<p><strong>Step 1: Closing Price<\/strong><\/p>\n\n\n\n<p>We will take the closing price of the stock for 30 days. The closing price is mentioned in column (1).<\/p>\n\n\n\n<p><strong>Step 2: Changes in Closing Price<\/strong><\/p>\n\n\n\n<p>We then compare the closing price of the current day with the previous day\u2019s closing price and note them down. Thus, from the table, for 25-04, we get the change in price as (280.69 \u2013 283.46) = -2.77.<\/p>\n\n\n\n<p>Similarly, for 26-04, Change in price = (Current closing price \u2013 Previous closing price) = (285.48 \u2013 280.6) = 4.79. We will then tabulate the results in the column mentioned as \u201cChange (2)\u201d. In this manner, we calculated the change in price.<\/p>\n\n\n\n<p><strong>Step 3: Gain and Loss<\/strong><\/p>\n\n\n\n<p>We will now create two sections depending on whether the price increased or decreased, with respect to the previous day\u2019s closing price.<\/p>\n\n\n\n<p>If the price has increased, we note down the difference in the \u201cGain\u201d column, and if it\u2019s a loss, then we note it down in the \u201cLoss\u201d column.<\/p>\n\n\n\n<p>For example, on 26-04, the price had increased by 4.79. Thus, this value would be noted in the \u201cGain\u201d column.<\/p>\n\n\n\n<p>If you look at the data for 25-04, there was a decrease in the price by 2.77. Now, while the value is written as negative in the \u201cchange\u201d column, we do not mention the negative sign in the \u201cLoss\u201d column. And only write it as 2.77. In this manner, the table for the columns \u201cGain (3)\u201d and \u201cLoss (4)\u201d is updated.<\/p>\n\n\n\n<p><em>In the next article, Rekhit will discuss Average Gain and Loss<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Relative Strength Index (RSI) indicator, as the name suggests, tells us the relative strength of the asset. RSI is counted as a robust technical indicator.<\/p>\n","protected":false},"author":91,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,349,338,350,341,344],"tags":[595,445],"contributors-categories":[13654],"class_list":{"0":"post-3576","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-data-science","7":"category-python-development","8":"category-ibkr-quant-news","9":"category-quant-asia-pacific","10":"category-quant-development","11":"category-quant-regions","12":"tag-python","13":"tag-rsi","14":"contributors-categories-quantinsti"},"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>RSI Indicator &#8211; Part I | IBKR Quant<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/3576\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RSI Indicator - Part I | IBKR Campus US\" \/>\n<meta property=\"og:description\" content=\"The Relative Strength Index (RSI) indicator, as the name suggests, tells us the relative strength of the asset. RSI is counted as a robust technical indicator.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/rsi-indicator-part-i\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-15T15:09:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-29T21:01:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ibkrcampusdev.wpengine.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/03\/RSI-Indicator-1.png\" \/>\n<meta name=\"author\" content=\"Rekhit Pachanekar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rekhit Pachanekar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\\\/\\\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"NewsArticle\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/rsi-indicator-part-i\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/rsi-indicator-part-i\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Rekhit Pachanekar\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/8ab08253f8958ae9552fd7d7b5697370\"\n\t            },\n\t            \"headline\": \"RSI Indicator &#8211; Part I\",\n\t            \"datePublished\": \"2019-05-15T15:09:43+00:00\",\n\t            \"dateModified\": \"2023-03-29T21:01:44+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/rsi-indicator-part-i\\\/\"\n\t            },\n\t            \"wordCount\": 308,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/rsi-indicator-part-i\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.ibkrcampusdev.wpengine.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/03\\\/RSI-Indicator-1.png\",\n\t            \"keywords\": [\n\t                \"Python\",\n\t                \"rsi\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Python Development\",\n\t                \"Quant\",\n\t                \"Quant Asia Pacific\",\n\t                \"Quant Development\",\n\t                \"Quant Regions\"\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/rsi-indicator-part-i\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/rsi-indicator-part-i\\\/\",\n\t            \"name\": \"RSI Indicator - Part I | IBKR Campus US\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/rsi-indicator-part-i\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/rsi-indicator-part-i\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.ibkrcampusdev.wpengine.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/03\\\/RSI-Indicator-1.png\",\n\t            \"datePublished\": \"2019-05-15T15:09:43+00:00\",\n\t            \"dateModified\": \"2023-03-29T21:01:44+00:00\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/rsi-indicator-part-i\\\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/rsi-indicator-part-i\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.ibkrcampusdev.wpengine.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/03\\\/RSI-Indicator-1.png\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.ibkrcampusdev.wpengine.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/03\\\/RSI-Indicator-1.png\"\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"name\": \"IBKR Campus US\",\n\t            \"description\": \"Financial Education from Interactive Brokers\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\",\n\t            \"name\": \"Interactive Brokers\",\n\t            \"alternateName\": \"IBKR\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\",\n\t                \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"width\": 669,\n\t                \"height\": 669,\n\t                \"caption\": \"Interactive Brokers\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\"\n\t            },\n\t            \"publishingPrinciples\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/about-ibkr-campus\\\/\",\n\t            \"ethicsPolicy\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/cyber-security-notice\\\/\"\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/8ab08253f8958ae9552fd7d7b5697370\",\n\t            \"name\": \"Rekhit Pachanekar\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/rekhit\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"RSI Indicator &#8211; Part I | IBKR Quant","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/3576\/","og_locale":"en_US","og_type":"article","og_title":"RSI Indicator - Part I | IBKR Campus US","og_description":"The Relative Strength Index (RSI) indicator, as the name suggests, tells us the relative strength of the asset. RSI is counted as a robust technical indicator.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/rsi-indicator-part-i\/","og_site_name":"IBKR Campus US","article_published_time":"2019-05-15T15:09:43+00:00","article_modified_time":"2023-03-29T21:01:44+00:00","og_image":[{"url":"https:\/\/www.ibkrcampusdev.wpengine.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/03\/RSI-Indicator-1.png","type":"","width":"","height":""}],"author":"Rekhit Pachanekar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rekhit Pachanekar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/rsi-indicator-part-i\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/rsi-indicator-part-i\/"},"author":{"name":"Rekhit Pachanekar","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/8ab08253f8958ae9552fd7d7b5697370"},"headline":"RSI Indicator &#8211; Part I","datePublished":"2019-05-15T15:09:43+00:00","dateModified":"2023-03-29T21:01:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/rsi-indicator-part-i\/"},"wordCount":308,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/rsi-indicator-part-i\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ibkrcampusdev.wpengine.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/03\/RSI-Indicator-1.png","keywords":["Python","rsi"],"articleSection":["Data Science","Python Development","Quant","Quant Asia Pacific","Quant Development","Quant Regions"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/rsi-indicator-part-i\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/rsi-indicator-part-i\/","name":"RSI Indicator - Part I | IBKR Campus US","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/rsi-indicator-part-i\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/rsi-indicator-part-i\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ibkrcampusdev.wpengine.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/03\/RSI-Indicator-1.png","datePublished":"2019-05-15T15:09:43+00:00","dateModified":"2023-03-29T21:01:44+00:00","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/rsi-indicator-part-i\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/rsi-indicator-part-i\/#primaryimage","url":"https:\/\/www.ibkrcampusdev.wpengine.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/03\/RSI-Indicator-1.png","contentUrl":"https:\/\/www.ibkrcampusdev.wpengine.com\/campus\/wp-content\/uploads\/sites\/2\/2023\/03\/RSI-Indicator-1.png"},{"@type":"WebSite","@id":"https:\/\/ibkrcampus.com\/campus\/#website","url":"https:\/\/ibkrcampus.com\/campus\/","name":"IBKR Campus US","description":"Financial Education from Interactive Brokers","publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ibkrcampus.com\/campus\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ibkrcampus.com\/campus\/#organization","name":"Interactive Brokers","alternateName":"IBKR","url":"https:\/\/ibkrcampus.com\/campus\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","width":669,"height":669,"caption":"Interactive Brokers"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/"},"publishingPrinciples":"https:\/\/www.interactivebrokers.com\/campus\/about-ibkr-campus\/","ethicsPolicy":"https:\/\/www.interactivebrokers.com\/campus\/cyber-security-notice\/"},{"@type":"Person","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/8ab08253f8958ae9552fd7d7b5697370","name":"Rekhit Pachanekar","url":"https:\/\/www.interactivebrokers.com\/campus\/author\/rekhit\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/3576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/users\/91"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=3576"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/3576\/revisions"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=3576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=3576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=3576"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=3576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}