{"id":3774,"date":"2025-08-04T11:34:49","date_gmt":"2025-08-04T06:04:49","guid":{"rendered":"https:\/\/www.rangakrish.com\/?p=3774"},"modified":"2025-08-04T11:34:49","modified_gmt":"2025-08-04T06:04:49","slug":"stock-analysis-using-wolfram-mathematica","status":"publish","type":"post","link":"https:\/\/www.rangakrish.com\/index.php\/2025\/08\/04\/stock-analysis-using-wolfram-mathematica\/","title":{"rendered":"Stock Analysis Using Wolfram Mathematica"},"content":{"rendered":"<p>I have my own toolkit for analyzing stocks, but occasionally I use <em><strong>Mathematica<\/strong><\/em> as well. Given Mathematica\u2019s extensive support for numerical computation including Machine Learning, it can be a valuable resource for deep analysis of the stock market. In today\u2019s article, let me give an overview of some of the features that are helpful for a beginner trader.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>The starting point, of course, is downloading stock-specific data. <em><strong>Mathematica<\/strong><\/em> supports a variety of exchanges for this pupose. The function <em><strong>\u201cFinancialData[]\u201d<\/strong><\/em> is used for downloading data.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>Let us first find out what exchanges are supported:<\/p>\n<figure id=\"attachment_3775\" aria-describedby=\"caption-attachment-3775\" style=\"width: 550px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/exchanges.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"3775\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2025\/08\/04\/stock-analysis-using-wolfram-mathematica\/exchanges\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/exchanges.png\" data-orig-size=\"1950,184\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Supported Exchanges\" data-image-description=\"&lt;p&gt;Supported Exchanges&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Supported Exchanges&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/exchanges-1024x97.png\" class=\"wp-image-3775\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/exchanges.png?resize=550%2C52&#038;ssl=1\" alt=\"Supported Exchanges\" width=\"550\" height=\"52\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/exchanges.png?resize=300%2C28&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/exchanges.png?resize=1024%2C97&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/exchanges.png?resize=768%2C72&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/exchanges.png?resize=1536%2C145&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/exchanges.png?w=1950&amp;ssl=1 1950w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><figcaption id=\"caption-attachment-3775\" class=\"wp-caption-text\"><strong>Supported Exchanges<\/strong><\/figcaption><\/figure>\n<p><span class=\"Apple-converted-space\">\u00a0<\/span>We see that <em><strong>BSE<\/strong><\/em> is supported, but not <em><strong>NSE<\/strong><\/em>. That is OK for our discussion.<\/p>\n<p>How to find out the <em><strong>ticker symbols<\/strong><\/em> in <em><strong>BSE<\/strong><\/em>?<\/p>\n<figure id=\"attachment_3776\" aria-describedby=\"caption-attachment-3776\" style=\"width: 550px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/bse-symbols.png?ssl=1\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" data-attachment-id=\"3776\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2025\/08\/04\/stock-analysis-using-wolfram-mathematica\/bse-symbols\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/bse-symbols.png\" data-orig-size=\"1776,310\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"BSE Ticker Symbols\" data-image-description=\"&lt;p&gt;BSE Ticker Symbols&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;BSE Ticker Symbols&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/bse-symbols-1024x179.png\" class=\"wp-image-3776\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/bse-symbols.png?resize=550%2C96&#038;ssl=1\" alt=\"BSE Ticker Symbols\" width=\"550\" height=\"96\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/bse-symbols.png?resize=300%2C52&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/bse-symbols.png?resize=1024%2C179&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/bse-symbols.png?resize=768%2C134&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/bse-symbols.png?resize=1536%2C268&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/bse-symbols.png?w=1776&amp;ssl=1 1776w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><figcaption id=\"caption-attachment-3776\" class=\"wp-caption-text\"><strong>BSE Ticker Symbols<\/strong><\/figcaption><\/figure>\n<p>This list quite large, so I am not showing all the symbols. Let us check how many symbols are supported in <em><strong>BSE<\/strong><\/em>.<\/p>\n<figure id=\"attachment_3777\" aria-describedby=\"caption-attachment-3777\" style=\"width: 500px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/num-symbols.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"3777\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2025\/08\/04\/stock-analysis-using-wolfram-mathematica\/num-symbols\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/num-symbols.png\" data-orig-size=\"1422,138\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Count of Supported Symbols\" data-image-description=\"&lt;p&gt;Count of Supported Symbols&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Count of Supported Symbols&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/num-symbols-1024x99.png\" class=\"wp-image-3777\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/num-symbols.png?resize=500%2C49&#038;ssl=1\" alt=\"Count of Supported Symbols\" width=\"500\" height=\"49\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/num-symbols.png?resize=300%2C29&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/num-symbols.png?resize=1024%2C99&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/num-symbols.png?resize=768%2C75&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/num-symbols.png?w=1422&amp;ssl=1 1422w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><figcaption id=\"caption-attachment-3777\" class=\"wp-caption-text\"><strong>Count of Supported Symbols<\/strong><\/figcaption><\/figure>\n<p>That is good, a total of 3980 entities in <em><strong>BSE<\/strong><\/em>. But how to find out which symbol stands for which company? We can use the same <em><strong>FinancialData[]<\/strong><\/em> function for this:<\/p>\n<figure id=\"attachment_3778\" aria-describedby=\"caption-attachment-3778\" style=\"width: 500px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/symbol-name.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3778\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2025\/08\/04\/stock-analysis-using-wolfram-mathematica\/symbol-name\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/symbol-name.png\" data-orig-size=\"1426,122\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Finding Name from Symbol\" data-image-description=\"&lt;p&gt;Finding Name from Symbol&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Finding Name from Symbol&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/symbol-name-1024x88.png\" class=\"wp-image-3778\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/symbol-name.png?resize=500%2C43&#038;ssl=1\" alt=\"Finding Name from Symbol\" width=\"500\" height=\"43\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/symbol-name.png?resize=300%2C26&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/symbol-name.png?resize=1024%2C88&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/symbol-name.png?resize=768%2C66&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/symbol-name.png?w=1426&amp;ssl=1 1426w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><figcaption id=\"caption-attachment-3778\" class=\"wp-caption-text\"><strong>Finding Name from Symbol<\/strong><\/figcaption><\/figure>\n<p>For our convenience, let us randomly select 50 companies from <em><strong>BSE<\/strong><\/em>.<\/p>\n<figure id=\"attachment_3779\" aria-describedby=\"caption-attachment-3779\" style=\"width: 550px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/sample-symbols.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3779\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2025\/08\/04\/stock-analysis-using-wolfram-mathematica\/sample-symbols\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/sample-symbols.png\" data-orig-size=\"1638,674\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Randomly Picking Symbols\" data-image-description=\"&lt;p&gt;Randomly Picking Symbols&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Randomly Picking Symbols&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/sample-symbols-1024x421.png\" class=\"wp-image-3779\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/sample-symbols.png?resize=550%2C226&#038;ssl=1\" alt=\"Randomly Picking Symbols\" width=\"550\" height=\"226\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/sample-symbols.png?resize=300%2C123&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/sample-symbols.png?resize=1024%2C421&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/sample-symbols.png?resize=768%2C316&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/sample-symbols.png?resize=1536%2C632&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/sample-symbols.png?w=1638&amp;ssl=1 1638w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><figcaption id=\"caption-attachment-3779\" class=\"wp-caption-text\"><strong>Randomly Picking Symbols<\/strong><\/figcaption><\/figure>\n<p>Next, let us display this in the form of a <em><strong>Table<\/strong><\/em>, showing the <em><strong>Name<\/strong><\/em> and its <em><strong>Symbol<\/strong><\/em>.<\/p>\n<figure id=\"attachment_3780\" aria-describedby=\"caption-attachment-3780\" style=\"width: 550px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/table-view.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3780\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2025\/08\/04\/stock-analysis-using-wolfram-mathematica\/table-view\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/table-view.png\" data-orig-size=\"1646,848\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Partial List of Ticker Symbols and Names\" data-image-description=\"&lt;p&gt;Partial List of Ticker Symbols and Names&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Partial List of Ticker Symbols and Names&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/table-view-1024x528.png\" class=\"wp-image-3780\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/table-view.png?resize=550%2C283&#038;ssl=1\" alt=\"Partial List of Ticker Symbols and Names\" width=\"550\" height=\"283\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/table-view.png?resize=300%2C155&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/table-view.png?resize=1024%2C528&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/table-view.png?resize=768%2C396&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/table-view.png?resize=1536%2C791&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/table-view.png?w=1646&amp;ssl=1 1646w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><figcaption id=\"caption-attachment-3780\" class=\"wp-caption-text\"><strong>Partial List of Ticker Symbols and Names<\/strong><\/figcaption><\/figure>\n<p>How to display the chart for any symbol? Let us download the actual <em><strong>Open-High-Low-Close (OHLC) EOD<\/strong><\/em> data for a specific symbol and render it in the form of a <em><strong>Candle Stick<\/strong> <\/em>chart:<\/p>\n<figure id=\"attachment_3781\" aria-describedby=\"caption-attachment-3781\" style=\"width: 550px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/candlestick-chart.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3781\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2025\/08\/04\/stock-analysis-using-wolfram-mathematica\/candlestick-chart\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/candlestick-chart.png\" data-orig-size=\"1652,978\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Candle Stick Chart\" data-image-description=\"&lt;p&gt;Candle Stick Chart&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Candle Stick Chart&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/candlestick-chart-1024x606.png\" class=\"wp-image-3781\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/candlestick-chart.png?resize=550%2C326&#038;ssl=1\" alt=\"Candle Stick Chart\" width=\"550\" height=\"326\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/candlestick-chart.png?resize=300%2C178&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/candlestick-chart.png?resize=1024%2C606&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/candlestick-chart.png?resize=768%2C455&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/candlestick-chart.png?resize=1536%2C909&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/candlestick-chart.png?w=1652&amp;ssl=1 1652w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><figcaption id=\"caption-attachment-3781\" class=\"wp-caption-text\"><strong>Candle Stick Chart<\/strong><\/figcaption><\/figure>\n<p>The chart shows <em><strong>EOD<\/strong><\/em> data from <em><strong>Jan 1, 2025<\/strong><\/em> to <em><strong>Aug 1, 2025<\/strong><\/em>.<\/p>\n<p>There is a variant of <em><strong>CandleStickChart[]<\/strong><\/em> function, called <em><strong>TradingChart[]<\/strong><\/em> that displays <em><strong>Volume<\/strong><\/em> data as well.<\/p>\n<figure id=\"attachment_3782\" aria-describedby=\"caption-attachment-3782\" style=\"width: 550px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/trading-chart.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3782\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2025\/08\/04\/stock-analysis-using-wolfram-mathematica\/trading-chart\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/trading-chart.png\" data-orig-size=\"1696,1088\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"TradingChart with Volume\" data-image-description=\"&lt;p&gt;TradingChart with Volume&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;TradingChart with Volume&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/trading-chart-1024x657.png\" class=\"wp-image-3782\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/trading-chart.png?resize=550%2C353&#038;ssl=1\" alt=\"TradingChart with Volume\" width=\"550\" height=\"353\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/trading-chart.png?resize=300%2C192&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/trading-chart.png?resize=1024%2C657&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/trading-chart.png?resize=768%2C493&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/trading-chart.png?resize=1536%2C985&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/trading-chart.png?resize=140%2C90&amp;ssl=1 140w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/trading-chart.png?w=1696&amp;ssl=1 1696w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><figcaption id=\"caption-attachment-3782\" class=\"wp-caption-text\"><strong>TradingChart with Volume<\/strong><\/figcaption><\/figure>\n<p>Note that I have downloaded <em><strong>Volume<\/strong><\/em> as well using <em><strong>\u201cOHLCV\u201d<\/strong><\/em> parameter.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>For comparison, here is the chart as rendered in <a href=\"https:\/\/www.tradingview.com\/\" target=\"_blank\" rel=\"noopener\"><em><strong>TradingView<\/strong><\/em><\/a>.<\/p>\n<figure id=\"attachment_3783\" aria-describedby=\"caption-attachment-3783\" style=\"width: 550px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/With-Volume.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3783\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2025\/08\/04\/stock-analysis-using-wolfram-mathematica\/with-volume\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/With-Volume.png\" data-orig-size=\"2024,1054\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"TradingView Chart\" data-image-description=\"&lt;p&gt;TradingView Chart&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;TradingView Chart&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/With-Volume-1024x533.png\" class=\"wp-image-3783\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/With-Volume.png?resize=550%2C286&#038;ssl=1\" alt=\"TradingView Chart\" width=\"550\" height=\"286\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/With-Volume.png?resize=300%2C156&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/With-Volume.png?resize=1024%2C533&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/With-Volume.png?resize=768%2C400&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/With-Volume.png?resize=1536%2C800&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/With-Volume.png?w=2024&amp;ssl=1 2024w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><figcaption id=\"caption-attachment-3783\" class=\"wp-caption-text\"><strong>TradingView Chart<\/strong><\/figcaption><\/figure>\n<p>We can make the chart interactive and add needed indicators too. For this, let us use <em><strong>InteractiveTradingChart[]<\/strong><\/em> function and add indicators to it. This adds significant value to the analysis.<\/p>\n<figure id=\"attachment_3784\" aria-describedby=\"caption-attachment-3784\" style=\"width: 550px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/keltner-channel.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3784\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2025\/08\/04\/stock-analysis-using-wolfram-mathematica\/keltner-channel\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/keltner-channel.png\" data-orig-size=\"1328,1742\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"InteractiveChart\" data-image-description=\"&lt;p&gt;InteractiveChart&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;InteractiveChart&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/keltner-channel-781x1024.png\" class=\"wp-image-3784\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/keltner-channel.png?resize=550%2C721&#038;ssl=1\" alt=\"InteractiveChart\" width=\"550\" height=\"721\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/keltner-channel.png?resize=229%2C300&amp;ssl=1 229w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/keltner-channel.png?resize=781%2C1024&amp;ssl=1 781w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/keltner-channel.png?resize=768%2C1007&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/keltner-channel.png?resize=1171%2C1536&amp;ssl=1 1171w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/keltner-channel.png?w=1328&amp;ssl=1 1328w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><figcaption id=\"caption-attachment-3784\" class=\"wp-caption-text\"><strong>InteractiveChart<\/strong><\/figcaption><\/figure>\n<p>The above chart displays, in addition to <em><strong>Volume<\/strong><\/em>, <em><strong>Commodity Channel Index (20)<\/strong><\/em> and <em><strong>Keltner Channels (20, 10, 2)<\/strong><\/em>. What is also interesting is that when you hover the mouse over the chart, the corresponding candle is highlighted and the relevant indicator values are shown.<\/p>\n<p>Nice, isn\u2019t it? The function <em><strong>FinancialData[]<\/strong><\/em> can also give us <em><strong>Fundamental<\/strong><\/em> data pertaining to the company, for example, <em><strong>P\/E Ratio<\/strong><\/em>, <em><strong>MarketCap<\/strong><\/em>, <em><strong>EBITDA<\/strong><\/em>, etc. It is not limited to <em><strong>Technical<\/strong><\/em> data alone.<\/p>\n<p>Let us dive into other interesting aspects of stock analysis using <em><strong>Mathematica<\/strong><\/em> in a future article.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>I have used <em><strong>Wolfram Mathematica<\/strong><\/em> ver <em><strong>14.2<\/strong><\/em> for this article. You can download my notebook <a href=\"https:\/\/www.rangakrish.com\/downloads\/StockMarketStudy.nb\" target=\"_blank\" rel=\"noopener\"><em><strong>here<\/strong><\/em><\/a>.<\/p>\n<p>Have a great week ahead!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have my own toolkit for analyzing stocks, but occasionally I use Mathematica as well. Given Mathematica\u2019s extensive support for numerical computation including Machine Learning, it can be a valuable resource for deep analysis of the stock market. In today\u2019s article, let me give an overview of some of the features that are helpful for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[72,17],"tags":[433,430],"class_list":["post-3774","post","type-post","status-publish","format-standard","hentry","category-mathematica","category-programming","tag-stock-market","tag-tradingview"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9OLnF-YS","jetpack-related-posts":[{"id":3794,"url":"https:\/\/www.rangakrish.com\/index.php\/2025\/08\/19\/stock-analysis-with-wolfram-mathematica-part-2\/","url_meta":{"origin":3774,"position":0},"title":"Stock Analysis with Wolfram Mathematica &#8211; Part 2","author":"admin","date":"August 19, 2025","format":false,"excerpt":"In the previous article, I had explained how to get started using Wolfram Mathematica\u2019s stock analysis features. The focus was on working with the exchanges supported by Mathematica, for example BSE India. What if we have stock data from a different source and want to analyze it in Mathematica? In\u2026","rel":"","context":"In &quot;Mathematica&quot;","block_context":{"text":"Mathematica","link":"https:\/\/www.rangakrish.com\/index.php\/category\/mathematica\/"},"img":{"alt_text":"Loading the CSV Data","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/processdata-fn-300x149.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/processdata-fn-300x149.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/08\/processdata-fn-300x149.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":328,"url":"https:\/\/www.rangakrish.com\/index.php\/2016\/09\/11\/natural-language-processing-in-mathematica\/","url_meta":{"origin":3774,"position":1},"title":"Natural Language Processing in Mathematica","author":"admin","date":"September 11, 2016","format":false,"excerpt":"Welcome back. Today I am going to share with you some of the nice capabilities of Mathematica in the area of Natural Language Processing (NLP). Let us start with words. What if we wish to know\u00a0the various definitions of the word image?\u00a0Here is the answer. Mathematica gives the various senses\u2026","rel":"","context":"In &quot;Mathematica&quot;","block_context":{"text":"Mathematica","link":"https:\/\/www.rangakrish.com\/index.php\/category\/mathematica\/"},"img":{"alt_text":"Word Definition","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/09\/word-data1-1024x238.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/09\/word-data1-1024x238.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/09\/word-data1-1024x238.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/09\/word-data1-1024x238.png?resize=700%2C400 2x"},"classes":[]},{"id":364,"url":"https:\/\/www.rangakrish.com\/index.php\/2016\/10\/11\/cloud-computing-with-mathematica\/","url_meta":{"origin":3774,"position":2},"title":"Cloud Computing with Mathematica","author":"admin","date":"October 11, 2016","format":false,"excerpt":"Mathematica provides excellent support for cloud computation, and most of the time, it is a very simple and intuitive process. Today, let us look at some examples of cloud deployment. For using Mathematica\u2019s cloud capabilities, you need an appropriate subscription. I use Mathematica Desktop, which comes with some free cloud\u2026","rel":"","context":"In &quot;Mathematica&quot;","block_context":{"text":"Mathematica","link":"https:\/\/www.rangakrish.com\/index.php\/category\/mathematica\/"},"img":{"alt_text":"FormFunction","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/10\/FormFunction1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/10\/FormFunction1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/10\/FormFunction1.png?resize=525%2C300 1.5x"},"classes":[]},{"id":348,"url":"https:\/\/www.rangakrish.com\/index.php\/2016\/09\/26\/computer-vision-with-mathematica\/","url_meta":{"origin":3774,"position":3},"title":"Computer Vision with Mathematica","author":"admin","date":"September 26, 2016","format":false,"excerpt":"Over the past several weeks, I have been discussing many interesting features of Mathematica. As a continuation, today, I would like to show some cool functionality in the domain of computer vision and machine learning. The function ImageIdentify[] tries to identify the object in the given image. According to the\u2026","rel":"","context":"In &quot;Machine Learning&quot;","block_context":{"text":"Machine Learning","link":"https:\/\/www.rangakrish.com\/index.php\/category\/machine-learning\/"},"img":{"alt_text":"A Truck","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/09\/truck-fig.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3830,"url":"https:\/\/www.rangakrish.com\/index.php\/2025\/10\/31\/analysing-weather-data-using-wolfram-mathematica\/","url_meta":{"origin":3774,"position":4},"title":"Analysing Weather Data Using Wolfram Mathematica","author":"admin","date":"October 31, 2025","format":false,"excerpt":"If you are interested in analysing weather data and making predictions such as rainfall, storm, etc., then Mathematica has nice functionality that you can use. In this article, let me cover a few basic functions in this category. Let us start by getting the coordinates of the place for which\u2026","rel":"","context":"In &quot;Mathematica&quot;","block_context":{"text":"Mathematica","link":"https:\/\/www.rangakrish.com\/index.php\/category\/mathematica\/"},"img":{"alt_text":"Getting Location Coordinates","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/10\/coord-300x50.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":285,"url":"https:\/\/www.rangakrish.com\/index.php\/2016\/07\/22\/using-julia-to-interact-with-mathematica\/","url_meta":{"origin":3774,"position":5},"title":"Using Julia to Interact with Mathematica","author":"admin","date":"July 22, 2016","format":false,"excerpt":"Mathematica is a powerful environment for symbolic and numerical computation. I have been using it for many years now. In this post\u00a0I had explained how we can use Mathematica bundled with Raspberry distribution to control littleBits devices. When I saw that there is support in Julia for interacting with Mathematica,\u2026","rel":"","context":"In &quot;Julia&quot;","block_context":{"text":"Julia","link":"https:\/\/www.rangakrish.com\/index.php\/category\/julia\/"},"img":{"alt_text":"Julia Session","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/07\/Julia-1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/07\/Julia-1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/07\/Julia-1.png?resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts\/3774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/comments?post=3774"}],"version-history":[{"count":6,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts\/3774\/revisions"}],"predecessor-version":[{"id":3790,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts\/3774\/revisions\/3790"}],"wp:attachment":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/media?parent=3774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/categories?post=3774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/tags?post=3774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}