{"id":121360,"date":"2022-01-28T11:26:20","date_gmt":"2022-01-28T16:26:20","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=121360"},"modified":"2022-11-21T09:51:16","modified_gmt":"2022-11-21T14:51:16","slug":"python-for-trading-an-introduction-part-v","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-v\/","title":{"rendered":"Python For Trading \u2013 An Introduction \u2013 Part V"},"content":{"rendered":"\n<p><em><em>See&nbsp;<a href=\"\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-i\/\">Part I<\/a>&nbsp;and&nbsp;<a href=\"\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-ii\/\">Part II<\/a>&nbsp;for an overview.<\/em><\/em>&nbsp;<em>Learn about the Benefits and Drawbacks of Python in Algorithmic Trading in&nbsp;<a href=\"\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-iii\/\">Part III<\/a>.<\/em> <em>Explore Python vs. C++ vs. R in <a href=\"\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-iv\/\">Part IV<\/a>.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"coding-in-python-for-trading\"><strong>Coding in Python for Trading<\/strong><\/h2>\n\n\n\n<p>After going through the advantages of using Python, let\u2019s understand how you can actually start using it. Let&#8217;s talk about the various components of Python.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"anaconda\">Anaconda<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.anaconda.com\/download\/\" target=\"_blank\" rel=\"noreferrer noopener\">Anaconda<\/a>&nbsp;is a distribution of Python, which means that it consists of all the tools and libraries required for the execution of our Python code.<\/li><li>Downloading &amp; installing libraries and tools individually can be a tedious task, which is why we install Anaconda.<\/li><li>Anaconda consists of a majority of the Python packages which can be directly loaded to the IDE to use them.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"spyder-ide\">Spyder IDE<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>IDE or Integrated Development Environment, is a software platform for Python where we can write and execute our codes.<\/li><li>It basically consists of a code editor, to write codes, a compiler or interpreter to convert our code into machine-readable language.<\/li><li>It has a debugger to identify any bugs or errors in your code.<\/li><li><a href=\"https:\/\/www.spyder-ide.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Spyder IDE<\/a>&nbsp;can be used to create multiple projects of Python.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"jupyter-notebook\">Jupyter Notebook<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/blog.quantinsti.com\/jupyter-notebook-tutorial-installation-components-magic-commands\/\">Jupyter<\/a>&nbsp;is an open-source application for Python that allows us to create, write and implement codes in a more interactive format.<\/li><li>It can be used to test small chunks of code, whereas we can use the Spyder IDE to implement bigger projects.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"conda\">Conda<\/h3>\n\n\n\n<p><a href=\"https:\/\/anaconda.org\/anaconda\/conda\" target=\"_blank\" rel=\"noreferrer noopener\">Conda<\/a>&nbsp;is a package management system for Python which can be used to install, run and update Python libraries.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-cyan-bluish-gray-background-color has-background\"><strong>Note:<\/strong> Spyder IDE and Jupyter Notebook are a part of the Anaconda distribution; hence they need not be installed separately.<a><\/a><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installation-guide-for-python\">Installation Guide for Python<\/h2>\n\n\n\n<p>To understand how to install Python packages and resolve frequent issues which users face during installation, you can check out our article on\u00a0<a href=\"https:\/\/blog.quantinsti.com\/installing-python-packages\/\">How To Install Python Packages<\/a>. It will also cover Pip install, dir() function and PyPi.<\/p>\n\n\n\n<p>Let us now begin with the installation process of Anaconda. Follow the steps below to install and set up Anaconda on your Windows system:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-1\">Step 1<\/h3>\n\n\n\n<p>Visit the&nbsp;<a href=\"https:\/\/www.anaconda.com\/download\/\" target=\"_blank\" rel=\"noreferrer noopener\">Anaconda website<\/a>&nbsp;to download Anaconda. Click on the version you want to download according to your system specifications (64-bit or 32-bit).<\/p>\n\n\n\n<figure class=\"wp-block-image img-twothird\"><img decoding=\"async\" width=\"550\" height=\"341\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-1-python-quantinsti.png\" alt=\"\" class=\"wp-image-121421 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-1-python-quantinsti.png 550w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-1-python-quantinsti-300x186.png 300w\" data-sizes=\"(max-width: 550px) 100vw, 550px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 550px; aspect-ratio: 550\/341;\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-2\">Step 2<\/h3>\n\n\n\n<p>Run the downloaded file and click \u201cNext\u201d and accept the agreement by clicking \u201cI agree\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image img-twothird\"><img decoding=\"async\" width=\"414\" height=\"310\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-2-python-quantinsti.png\" alt=\"\" class=\"wp-image-121422 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-2-python-quantinsti.png 414w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-2-python-quantinsti-300x225.png 300w\" data-sizes=\"(max-width: 414px) 100vw, 414px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 414px; aspect-ratio: 414\/310;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image img-twothird\"><img decoding=\"async\" width=\"402\" height=\"311\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-2b-python-quantinsti.png\" alt=\"\" class=\"wp-image-121424 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-2b-python-quantinsti.png 402w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-2b-python-quantinsti-300x232.png 300w\" data-sizes=\"(max-width: 402px) 100vw, 402px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 402px; aspect-ratio: 402\/311;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image img-twothird\"><img decoding=\"async\" width=\"392\" height=\"303\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-2c-python-quantinsti.png\" alt=\"\" class=\"wp-image-121425 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-2c-python-quantinsti.png 392w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-2c-python-quantinsti-300x232.png 300w\" data-sizes=\"(max-width: 392px) 100vw, 392px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 392px; aspect-ratio: 392\/303;\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-3\">Step 3<\/h3>\n\n\n\n<p>In select installation type, choose \u201cJust Me (Recommended)\u201d and choose the location where you wish to save Anaconda and click on Next.<\/p>\n\n\n\n<figure class=\"wp-block-image img-twothird\"><img decoding=\"async\" width=\"402\" height=\"311\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-3a-python-quantinsti.png\" alt=\"\" class=\"wp-image-121426 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-3a-python-quantinsti.png 402w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-3a-python-quantinsti-300x232.png 300w\" data-sizes=\"(max-width: 402px) 100vw, 402px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 402px; aspect-ratio: 402\/311;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image img-twothird\"><img decoding=\"async\" width=\"407\" height=\"315\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-3b-python-quantinsti.png\" alt=\"\" class=\"wp-image-121427 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-3b-python-quantinsti.png 407w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-3b-python-quantinsti-300x232.png 300w\" data-sizes=\"(max-width: 407px) 100vw, 407px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 407px; aspect-ratio: 407\/315;\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-4\">Step 4<\/h3>\n\n\n\n<p>In Advanced Options, checkmark both the boxes and click on Install. Once it is installed, click \u201cFinish\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image img-twothird\"><img decoding=\"async\" width=\"428\" height=\"331\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-4a-python-quantinsti.png\" alt=\"\" class=\"wp-image-121428 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-4a-python-quantinsti.png 428w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-4a-python-quantinsti-300x232.png 300w\" data-sizes=\"(max-width: 428px) 100vw, 428px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 428px; aspect-ratio: 428\/331;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image img-twothird\"><img decoding=\"async\" width=\"433\" height=\"335\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-4b-python-quantinsti.png\" alt=\"\" class=\"wp-image-121429 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-4b-python-quantinsti.png 433w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-4b-python-quantinsti-300x232.png 300w\" data-sizes=\"(max-width: 433px) 100vw, 433px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 433px; aspect-ratio: 433\/335;\" \/><\/figure>\n\n\n\n<p>Now, you have successfully installed Anaconda on your system and it is ready to run. You can open the Anaconda Navigator and find other tools like&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/jupyter-notebook-tutorial-installation-components-magic-commands\/\">Jupyter Notebook<\/a>&nbsp;and Spyder IDE.<\/p>\n\n\n\n<figure class=\"wp-block-image img-twothird\"><img decoding=\"async\" width=\"601\" height=\"340\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-4c-python-quantinsti.png\" alt=\"\" class=\"wp-image-121430 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-4c-python-quantinsti.png 601w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/01\/step-4c-python-quantinsti-300x170.png 300w\" data-sizes=\"(max-width: 601px) 100vw, 601px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 601px; aspect-ratio: 601\/340;\" \/><\/figure>\n\n\n\n<p>Once we have installed Anaconda, we will now move on to one of the most important components of the Python landscape, i.e. Python Libraries.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-cyan-bluish-gray-background-color has-background\"><strong>Note:<\/strong> Anaconda provides support for <a href=\"https:\/\/docs.anaconda.com\/anaconda\/install\/linux\/\" target=\"_blank\" rel=\"noreferrer noopener\">Linux<\/a> as well as <a href=\"https:\/\/docs.anaconda.com\/anaconda\/install\/mac-os\/\" target=\"_blank\" rel=\"noreferrer noopener\">macOS<\/a>. The installation details for the OS are provided on the official website in <a href=\"https:\/\/docs.anaconda.com\/anaconda\/install\/\" target=\"_blank\" rel=\"noreferrer noopener\">detail<\/a>.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"popular-python-libraries-aka-python-packages\">Popular Python Libraries aka Python Packages<\/h2>\n\n\n\n<p>Libraries are a collection of reusable modules or functions which can be directly used in our code to perform a certain function without the necessity to write a code for the function.<br><br>As mentioned earlier, Python has a huge collection of libraries which can be used for various functionalities like computing,&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/trading-using-machine-learning-python-part-2\/\">machine learning<\/a>, visualizations, etc. However, we will talk about the most relevant Python libraries required for coding trading strategies before actually getting started with Python.<br><br>We will be required to:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>import financial data,<\/li><li>perform numerical analysis,<\/li><li>build trading strategies,<\/li><li>plot graphs, and<\/li><li>perform&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/backtesting\/\">backtesting<\/a>&nbsp;on data.<\/li><\/ul>\n\n\n\n<p>For all these functions, here are a few most widely used Python libraries for trading:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"numpy\">NumPy<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/blog.quantinsti.com\/python-numpy-tutorial-installation-arrays-random-sampling\/\">NumPy<\/a>&nbsp;or NumericalPy, is a Python library mostly used to perform numerical computing on arrays of data.<\/li><li>The array is an element which contains a group of elements.<\/li><li>One can perform different operations on it using the functions of NumPy.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"pandas\">Pandas<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/blog.quantinsti.com\/python-pandas-tutorial\/\">Pandas<\/a>&nbsp;is a Python library mostly used with DataFrame, which is a tabular or a spreadsheet format where data is stored in rows and columns.<\/li><li>Pandas can be used to import data from Excel and CSV files directly into the Python code.<\/li><li>Pandas can also be used to perform data analysis and manipulation of the tabular data.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"matplotlib\">Matplotlib<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/matplotlib.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Matplotlib<\/a>&nbsp;is a Python library used to plot 2D graphs like bar charts, scatter plots, histograms etc.<\/li><li>It consists of various functions to modify the graph according to our requirements too.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"ta-lib\">TA-Lib<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.ta-lib.org\/function.html\" target=\"_blank\" rel=\"noreferrer noopener\">TA-Lib<\/a>&nbsp;or Technical Analysis library is an open-source Python library and is extensively used to perform technical analysis on financial data using technical indicators such as&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/rsi-indicator\/\">RSI (Relative Strength Index)<\/a>, Bollinger bands, MACD etc.<\/li><li>It not only works with Python but also with other programming languages such as C\/C++, Java, Perl etc.<\/li><\/ul>\n\n\n\n<p>Here are some of the functions available in &nbsp;TA-Lib:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>BBANDS &#8211; For&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/bollinger-bands\/\">Bollinger Bands<\/a>,<\/li><li>AROONOSC &#8211; For&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/aroon-indicator-cryptocurrency-trading\/\">Aroon Oscillator<\/a>,<\/li><li><a href=\"https:\/\/blog.quantinsti.com\/indicators-build-trend-following-strategy\/#MACD\">MACD<\/a>&nbsp;&#8211; For Moving Average Convergence\/Divergence,<\/li><li><a href=\"https:\/\/blog.quantinsti.com\/rsi-indicator\/\">RSI<\/a>&nbsp;&#8211; For Relative Strength Index.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"zipline\">Zipline<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/blog.quantinsti.com\/introduction-zipline-python\/\">Zipline<\/a>\u00a0is a Python library for trading applications.<\/li><li>It is an event-driven system that supports both backtesting and live trading.<\/li><li>Zipline is well documented, has a great community, supports Interactive Brokers and Pandas integration.<\/li><\/ul>\n\n\n\n<p>These are but a few of the libraries which you will be using as you start using Python to perfect your trading strategy.<br><br>To know about the myriad number of Python libraries in more detail, you can browse through this blog on&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/python-trading-library\/\">Popular Python Trading platforms<\/a>.<\/p>\n\n\n\n<p><em>Stay tuned for the next installment for insight on Working with data in Python<\/em>.<\/p>\n\n\n\n<p><em>Visit QuantInsti to learn more about Python&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/python-trading\/\">https:\/\/blog.quantinsti.com\/python-trading\/<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let us now begin with the installation process of Anaconda. Follow the steps below to install and set up Anaconda on your Windows system.<\/p>\n","protected":false},"author":727,"featured_media":99378,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,343,349,338],"tags":[7257,6922,7091,806,1006,6614,4659,10882,1225,1224,595,10991,9863,9418],"contributors-categories":[13654],"class_list":{"0":"post-121360","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-data-science","8":"category-programing-languages","9":"category-python-development","10":"category-ibkr-quant-news","11":"tag-algorithmic-trading","12":"tag-anaconda","13":"tag-conda","14":"tag-data-science","15":"tag-fintech","16":"tag-jupyter-notebook","17":"tag-matplotlib","18":"tag-ml","19":"tag-numpy","20":"tag-pandas","21":"tag-python","22":"tag-spyder-ide","23":"tag-ta-lib","24":"tag-zipline","25":"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.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Python For Trading \u2013 An Introduction \u2013 Part V<\/title>\n<meta name=\"description\" content=\"Let us now begin with the installation process of Anaconda. Follow the steps below to install and set up Anaconda on your Windows system.\" \/>\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\/121360\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python For Trading \u2013 An Introduction \u2013 Part V | IBKR Quant Blog\" \/>\n<meta property=\"og:description\" content=\"Let us now begin with the installation process of Anaconda. Follow the steps below to install and set up Anaconda on your Windows system.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-v\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-28T16:26:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-21T14:51:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/08\/python-blocks.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Viraj Bhagat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Viraj Bhagat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 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\\\/python-for-trading-an-introduction-part-v\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/python-for-trading-an-introduction-part-v\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Viraj Bhagat\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/37fd59d28855f9dd642c3a764433764d\"\n\t            },\n\t            \"headline\": \"Python For Trading \u2013 An Introduction \u2013 Part V\",\n\t            \"datePublished\": \"2022-01-28T16:26:20+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:51:16+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/python-for-trading-an-introduction-part-v\\\/\"\n\t            },\n\t            \"wordCount\": 939,\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\\\/python-for-trading-an-introduction-part-v\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/08\\\/python-blocks.jpg\",\n\t            \"keywords\": [\n\t                \"Algorithmic Trading\",\n\t                \"Anaconda\",\n\t                \"conda\",\n\t                \"Data Science\",\n\t                \"fintech\",\n\t                \"Jupyter Notebook\",\n\t                \"Matplotlib\",\n\t                \"ML\",\n\t                \"NumPy\",\n\t                \"Pandas\",\n\t                \"Python\",\n\t                \"Spyder IDE\",\n\t                \"Ta-Lib\",\n\t                \"zipline\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Programming Languages\",\n\t                \"Python Development\",\n\t                \"Quant\"\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\\\/python-for-trading-an-introduction-part-v\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/python-for-trading-an-introduction-part-v\\\/\",\n\t            \"name\": \"Python For Trading \u2013 An Introduction \u2013 Part V | IBKR Quant Blog\",\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\\\/python-for-trading-an-introduction-part-v\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/python-for-trading-an-introduction-part-v\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/08\\\/python-blocks.jpg\",\n\t            \"datePublished\": \"2022-01-28T16:26:20+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:51:16+00:00\",\n\t            \"description\": \"Let us now begin with the installation process of Anaconda. Follow the steps below to install and set up Anaconda on your Windows system.\",\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\\\/python-for-trading-an-introduction-part-v\\\/\"\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\\\/python-for-trading-an-introduction-part-v\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/08\\\/python-blocks.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/08\\\/python-blocks.jpg\",\n\t            \"width\": 900,\n\t            \"height\": 550,\n\t            \"caption\": \"Python\"\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\\\/37fd59d28855f9dd642c3a764433764d\",\n\t            \"name\": \"Viraj Bhagat\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/virajbhagat\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python For Trading \u2013 An Introduction \u2013 Part V","description":"Let us now begin with the installation process of Anaconda. Follow the steps below to install and set up Anaconda on your Windows system.","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\/121360\/","og_locale":"en_US","og_type":"article","og_title":"Python For Trading \u2013 An Introduction \u2013 Part V | IBKR Quant Blog","og_description":"Let us now begin with the installation process of Anaconda. Follow the steps below to install and set up Anaconda on your Windows system.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-v\/","og_site_name":"IBKR Campus US","article_published_time":"2022-01-28T16:26:20+00:00","article_modified_time":"2022-11-21T14:51:16+00:00","og_image":[{"width":900,"height":550,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/08\/python-blocks.jpg","type":"image\/jpeg"}],"author":"Viraj Bhagat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Viraj Bhagat","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-v\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-v\/"},"author":{"name":"Viraj Bhagat","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/37fd59d28855f9dd642c3a764433764d"},"headline":"Python For Trading \u2013 An Introduction \u2013 Part V","datePublished":"2022-01-28T16:26:20+00:00","dateModified":"2022-11-21T14:51:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-v\/"},"wordCount":939,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-v\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/08\/python-blocks.jpg","keywords":["Algorithmic Trading","Anaconda","conda","Data Science","fintech","Jupyter Notebook","Matplotlib","ML","NumPy","Pandas","Python","Spyder IDE","Ta-Lib","zipline"],"articleSection":["Data Science","Programming Languages","Python Development","Quant"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-v\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-v\/","name":"Python For Trading \u2013 An Introduction \u2013 Part V | IBKR Quant Blog","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-v\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-v\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/08\/python-blocks.jpg","datePublished":"2022-01-28T16:26:20+00:00","dateModified":"2022-11-21T14:51:16+00:00","description":"Let us now begin with the installation process of Anaconda. Follow the steps below to install and set up Anaconda on your Windows system.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-v\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-v\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/08\/python-blocks.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/08\/python-blocks.jpg","width":900,"height":550,"caption":"Python"},{"@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\/37fd59d28855f9dd642c3a764433764d","name":"Viraj Bhagat","url":"https:\/\/www.interactivebrokers.com\/campus\/author\/virajbhagat\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/08\/python-blocks.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/121360","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\/727"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=121360"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/121360\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/99378"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=121360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=121360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=121360"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=121360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}