{"id":891,"date":"2024-08-30T11:50:00","date_gmt":"2024-08-30T11:50:00","guid":{"rendered":"https:\/\/henryov.com\/ian\/?p=891"},"modified":"2024-10-06T12:00:23","modified_gmt":"2024-10-06T12:00:23","slug":"backtesting-py","status":"publish","type":"post","link":"https:\/\/henryov.com\/ian\/backtesting-py\/","title":{"rendered":"Backtesting.py"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"891\" class=\"elementor elementor-891\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3a115e8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3a115e8\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d31af0e\" data-id=\"d31af0e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-49e873c elementor-widget elementor-widget-heading\" data-id=\"49e873c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Backtesting<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0340326 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0340326\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-67f9905\" data-id=\"67f9905\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a53f954 elementor-widget elementor-widget-text-editor\" data-id=\"a53f954\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Backtesting is like testing a strategy in a video game, but instead of trying it out in a live game, you rewind time and see how well it would have worked in past games. In finance, it means you take a trading strategy (like when to buy or sell stocks) and check how it would have performed using historical data. If it worked well in the past, you might feel more confident using it in the future. If it didn&#8217;t, you might adjust or scrap the strategy.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-61b644f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"61b644f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-346375d\" data-id=\"346375d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3e3186d elementor-widget elementor-widget-heading\" data-id=\"3e3186d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Python<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9bf2cd5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9bf2cd5\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-12286d3\" data-id=\"12286d3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f60c02f elementor-widget elementor-widget-text-editor\" data-id=\"f60c02f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Backtesting.py is a python framework that helps you test trading strategies. It&#8217;s popular because it&#8217;s powerful but so easy it can learned in one afternoon.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-37c6c21 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"37c6c21\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bf0d5f2\" data-id=\"bf0d5f2\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ec51197 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ec51197\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-116378b\" data-id=\"116378b\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5e36dcb elementor-widget elementor-widget-image\" data-id=\"5e36dcb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/kernc.github.io\/backtesting.py\/\">\n\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"426\" src=\"https:\/\/i0.wp.com\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting.png?fit=1024%2C426&amp;ssl=1\" class=\"attachment-large size-large wp-image-894\" alt=\"\" srcset=\"https:\/\/i0.wp.com\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting.png?w=1947&amp;ssl=1 1947w, https:\/\/i0.wp.com\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting.png?resize=300%2C125&amp;ssl=1 300w, https:\/\/i0.wp.com\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting.png?resize=1024%2C426&amp;ssl=1 1024w, https:\/\/i0.wp.com\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting.png?resize=768%2C320&amp;ssl=1 768w, https:\/\/i0.wp.com\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting.png?resize=1536%2C639&amp;ssl=1 1536w, https:\/\/i0.wp.com\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting.png?resize=150%2C62&amp;ssl=1 150w, https:\/\/i0.wp.com\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting.png?resize=350%2C146&amp;ssl=1 350w, https:\/\/i0.wp.com\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting.png?resize=1320%2C549&amp;ssl=1 1320w, https:\/\/i0.wp.com\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting.png?resize=600%2C250&amp;ssl=1 600w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4f4b130 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4f4b130\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4b9d6e6\" data-id=\"4b9d6e6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cacc1f9 elementor-widget elementor-widget-text-editor\" data-id=\"cacc1f9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>With backtesting.py you can:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7592faa elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7592faa\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b4be3a6\" data-id=\"b4be3a6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0fe2679 elementor-widget elementor-widget-text-editor\" data-id=\"0fe2679\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li>Create Strategies: Define your buy\/sell logic in python.<\/li><li>Run Simulations: Apply your strategy to historical data to see how it would have behaved.<\/li><li>Analyze Results: View performance metrics like profit, drawdowns, and other statistics.<\/li><li>Visualize: Plot the results.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-541d250 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"541d250\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8d262f0\" data-id=\"8d262f0\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-32c091d elementor-widget elementor-widget-text-editor\" data-id=\"32c091d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Improved upon the vision of\u00a0<a href=\"https:\/\/www.backtrader.com\/\" rel=\"nofollow noreferrer noopener\"><cite>Backtrader<\/cite><\/a>, and by all means surpassingly comparable to other accessible alternatives,\u00a0<cite>Backtesting.py<\/cite>\u00a0is lightweight, fast, user-friendly, intuitive, interactive, intelligent and, hopefully, future-proof. It is also documented well, including a handful of tutorials.<\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ba55ee0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ba55ee0\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-616f5da\" data-id=\"616f5da\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-72fc55f elementor-widget elementor-widget-heading\" data-id=\"72fc55f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">YouTube<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c09ddb6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c09ddb6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-59b0125\" data-id=\"59b0125\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e30bee9 elementor-widget elementor-widget-video\" data-id=\"e30bee9\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=e4ytbIm2Xg0&amp;list=PLnSVMZC68_e48lA4aRYL1yHYZ9nEq9AiH&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Backtesting Backtesting is like testing a strategy in a video game, but instead of trying it out in a live game, you rewind time and see how well it would have worked in past games. In finance, it means you take a trading strategy (like when to buy or sell stocks) and check how it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[31],"tags":[],"class_list":["post-891","post","type-post","status-publish","format-standard","hentry","category-coding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Backtesting.py - I.A.N.<\/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:\/\/henryov.com\/ian\/backtesting-py\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Backtesting.py - I.A.N.\" \/>\n<meta property=\"og:description\" content=\"Backtesting Backtesting is like testing a strategy in a video game, but instead of trying it out in a live game, you rewind time and see how well it would have worked in past games. In finance, it means you take a trading strategy (like when to buy or sell stocks) and check how it [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/henryov.com\/ian\/backtesting-py\/\" \/>\n<meta property=\"og:site_name\" content=\"I.A.N.\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-30T11:50:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-06T12:00:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting-1024x426.png\" \/>\n<meta name=\"author\" content=\"henryoviedo93\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"henryoviedo93\" \/>\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\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/backtesting-py\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/backtesting-py\\\/\"},\"author\":{\"name\":\"henryoviedo93\",\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/#\\\/schema\\\/person\\\/d600d28f4c5b331b316fde4ecc63b511\"},\"headline\":\"Backtesting.py\",\"datePublished\":\"2024-08-30T11:50:00+00:00\",\"dateModified\":\"2024-10-06T12:00:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/backtesting-py\\\/\"},\"wordCount\":220,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/backtesting-py\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/henryov.com\\\/ian\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/backtesting-1024x426.png\",\"articleSection\":[\"coding\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/henryov.com\\\/ian\\\/backtesting-py\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/backtesting-py\\\/\",\"url\":\"https:\\\/\\\/henryov.com\\\/ian\\\/backtesting-py\\\/\",\"name\":\"Backtesting.py - I.A.N.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/backtesting-py\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/backtesting-py\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/henryov.com\\\/ian\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/backtesting-1024x426.png\",\"datePublished\":\"2024-08-30T11:50:00+00:00\",\"dateModified\":\"2024-10-06T12:00:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/backtesting-py\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/henryov.com\\\/ian\\\/backtesting-py\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/backtesting-py\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/henryov.com\\\/ian\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/backtesting.png?fit=1947%2C810&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/henryov.com\\\/ian\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/backtesting.png?fit=1947%2C810&ssl=1\",\"width\":1947,\"height\":810},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/backtesting-py\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/henryov.com\\\/ian\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Backtesting.py\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/#website\",\"url\":\"https:\\\/\\\/henryov.com\\\/ian\\\/\",\"name\":\"I.A.N.\",\"description\":\"Independent analytical network\",\"publisher\":{\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/henryov.com\\\/ian\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/#organization\",\"name\":\"I.A.N.\",\"url\":\"https:\\\/\\\/henryov.com\\\/ian\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/henryov.com\\\/ian\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/cropped-signature-red-gray-background.png?fit=1415%2C511&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/henryov.com\\\/ian\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/cropped-signature-red-gray-background.png?fit=1415%2C511&ssl=1\",\"width\":1415,\"height\":511,\"caption\":\"I.A.N.\"},\"image\":{\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/henryov.com\\\/ian\\\/#\\\/schema\\\/person\\\/d600d28f4c5b331b316fde4ecc63b511\",\"name\":\"henryoviedo93\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c97993610e494f0be5e96cd079c87672609aac53dbba616d4c71afdec877ff94?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c97993610e494f0be5e96cd079c87672609aac53dbba616d4c71afdec877ff94?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c97993610e494f0be5e96cd079c87672609aac53dbba616d4c71afdec877ff94?s=96&d=retro&r=g\",\"caption\":\"henryoviedo93\"},\"url\":\"https:\\\/\\\/henryov.com\\\/ian\\\/author\\\/henryoviedo93\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Backtesting.py - I.A.N.","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:\/\/henryov.com\/ian\/backtesting-py\/","og_locale":"en_US","og_type":"article","og_title":"Backtesting.py - I.A.N.","og_description":"Backtesting Backtesting is like testing a strategy in a video game, but instead of trying it out in a live game, you rewind time and see how well it would have worked in past games. In finance, it means you take a trading strategy (like when to buy or sell stocks) and check how it [&hellip;]","og_url":"https:\/\/henryov.com\/ian\/backtesting-py\/","og_site_name":"I.A.N.","article_published_time":"2024-08-30T11:50:00+00:00","article_modified_time":"2024-10-06T12:00:23+00:00","og_image":[{"url":"https:\/\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting-1024x426.png","type":"","width":"","height":""}],"author":"henryoviedo93","twitter_card":"summary_large_image","twitter_misc":{"Written by":"henryoviedo93","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/henryov.com\/ian\/backtesting-py\/#article","isPartOf":{"@id":"https:\/\/henryov.com\/ian\/backtesting-py\/"},"author":{"name":"henryoviedo93","@id":"https:\/\/henryov.com\/ian\/#\/schema\/person\/d600d28f4c5b331b316fde4ecc63b511"},"headline":"Backtesting.py","datePublished":"2024-08-30T11:50:00+00:00","dateModified":"2024-10-06T12:00:23+00:00","mainEntityOfPage":{"@id":"https:\/\/henryov.com\/ian\/backtesting-py\/"},"wordCount":220,"commentCount":0,"publisher":{"@id":"https:\/\/henryov.com\/ian\/#organization"},"image":{"@id":"https:\/\/henryov.com\/ian\/backtesting-py\/#primaryimage"},"thumbnailUrl":"https:\/\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting-1024x426.png","articleSection":["coding"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/henryov.com\/ian\/backtesting-py\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/henryov.com\/ian\/backtesting-py\/","url":"https:\/\/henryov.com\/ian\/backtesting-py\/","name":"Backtesting.py - I.A.N.","isPartOf":{"@id":"https:\/\/henryov.com\/ian\/#website"},"primaryImageOfPage":{"@id":"https:\/\/henryov.com\/ian\/backtesting-py\/#primaryimage"},"image":{"@id":"https:\/\/henryov.com\/ian\/backtesting-py\/#primaryimage"},"thumbnailUrl":"https:\/\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting-1024x426.png","datePublished":"2024-08-30T11:50:00+00:00","dateModified":"2024-10-06T12:00:23+00:00","breadcrumb":{"@id":"https:\/\/henryov.com\/ian\/backtesting-py\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/henryov.com\/ian\/backtesting-py\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/henryov.com\/ian\/backtesting-py\/#primaryimage","url":"https:\/\/i0.wp.com\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting.png?fit=1947%2C810&ssl=1","contentUrl":"https:\/\/i0.wp.com\/henryov.com\/ian\/wp-content\/uploads\/2024\/10\/backtesting.png?fit=1947%2C810&ssl=1","width":1947,"height":810},{"@type":"BreadcrumbList","@id":"https:\/\/henryov.com\/ian\/backtesting-py\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/henryov.com\/ian\/"},{"@type":"ListItem","position":2,"name":"Backtesting.py"}]},{"@type":"WebSite","@id":"https:\/\/henryov.com\/ian\/#website","url":"https:\/\/henryov.com\/ian\/","name":"I.A.N.","description":"Independent analytical network","publisher":{"@id":"https:\/\/henryov.com\/ian\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/henryov.com\/ian\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/henryov.com\/ian\/#organization","name":"I.A.N.","url":"https:\/\/henryov.com\/ian\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/henryov.com\/ian\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/henryov.com\/ian\/wp-content\/uploads\/2023\/08\/cropped-signature-red-gray-background.png?fit=1415%2C511&ssl=1","contentUrl":"https:\/\/i0.wp.com\/henryov.com\/ian\/wp-content\/uploads\/2023\/08\/cropped-signature-red-gray-background.png?fit=1415%2C511&ssl=1","width":1415,"height":511,"caption":"I.A.N."},"image":{"@id":"https:\/\/henryov.com\/ian\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/henryov.com\/ian\/#\/schema\/person\/d600d28f4c5b331b316fde4ecc63b511","name":"henryoviedo93","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c97993610e494f0be5e96cd079c87672609aac53dbba616d4c71afdec877ff94?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c97993610e494f0be5e96cd079c87672609aac53dbba616d4c71afdec877ff94?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c97993610e494f0be5e96cd079c87672609aac53dbba616d4c71afdec877ff94?s=96&d=retro&r=g","caption":"henryoviedo93"},"url":"https:\/\/henryov.com\/ian\/author\/henryoviedo93\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/henryov.com\/ian\/wp-json\/wp\/v2\/posts\/891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/henryov.com\/ian\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/henryov.com\/ian\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/henryov.com\/ian\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/henryov.com\/ian\/wp-json\/wp\/v2\/comments?post=891"}],"version-history":[{"count":7,"href":"https:\/\/henryov.com\/ian\/wp-json\/wp\/v2\/posts\/891\/revisions"}],"predecessor-version":[{"id":901,"href":"https:\/\/henryov.com\/ian\/wp-json\/wp\/v2\/posts\/891\/revisions\/901"}],"wp:attachment":[{"href":"https:\/\/henryov.com\/ian\/wp-json\/wp\/v2\/media?parent=891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/henryov.com\/ian\/wp-json\/wp\/v2\/categories?post=891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/henryov.com\/ian\/wp-json\/wp\/v2\/tags?post=891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}