{"id":6217,"date":"2025-12-09T16:07:51","date_gmt":"2025-12-09T22:07:51","guid":{"rendered":"https:\/\/librarytestdev.wpenginepowered.com\/?post_type=doc&#038;p=6217"},"modified":"2026-01-23T11:50:54","modified_gmt":"2026-01-23T17:50:54","slug":"running-a-backtest","status":"publish","type":"doc","link":"https:\/\/library-staging.tradingtechnologies.com\/tt-backtesting\/backtesting-algos\/running-a-backtest\/","title":{"rendered":"Running a backtest"},"content":{"rendered":"\n<p>This section explains how to:<\/p>\n<ul>\n\t<li>\n\t\t<a href=\"#backtest-algos\">Backtest an algo<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#monitor-tests\">Monitor the status of a backtest<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#stop-test\">Stop a backtest<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#delete-tests\">Delete backtests<\/a>\n\t<\/li>\n<\/ul>\n\n<section id=\"backtest-algo\">\n\t<h2>Backtesting an algo<\/h2>\n\t<p>When setting up a new backtest, you need to: <\/p>\n\t<ul>\n\t\t<li>\n\t\t\t<a href=\"#create-backtest\">Create and configure the backtest<\/a>.\n\t\t<\/li>\n\t\t<li>\n\t\t\t<a href=\"#add-instances\">Add and configure algo instances to the backtest<\/a>.\n\t\t<\/li>\n\t\t<li>\n\t\t\t<a href=\"#start-backtest\">Start the backtest<\/a>.\n\t\t<\/li>\n\t<\/ul>\n\n\t<section id=\"create-backtest\">\n\t\t<h3>Creating and configuring a backtest<\/h3>\n\t\t<p>To create and run a new backtest:<\/p>\n\t\t<ol>\n\t\t\t<li>\n\t\t\t\tIn the main <strong>Backtests<\/strong> window, click <strong>Add New<\/strong>.\n\t\t\t\t<p><\/p>\n\n\t\t\t\tThe <strong>Add New Backtest<\/strong> window displays the user-defined algo parameters you can set and creates an instance of the parameters with the algo&#8217;s default values.\n\t\t\t\t<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/01\/bt-setup-1-scaled.png\" alt=\"\"><\/p>\n\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\tFrom the <strong>Algo<\/strong> dropdown, select an algo you want to backtest.\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\tIn the <strong>Speed<\/strong> field, enter the replay speed.\n\t\t\t\t<p><\/p>\n\t\t\t\t<strong>Note<\/strong>: Increasing the replay speed can significantly reduce the time it takes to backtest the algo. However, higher replay speeds also increase the conflation of market data. For more information about how replay speed can affect a backtest, see <a href=\"br-backtesting-considerations.html#replay-speeds\">About replay speeds<\/a>.\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\tIn the <strong>Range<\/strong> field, select the date and time range for the replay. The historical period set by the <strong>Range<\/strong> field is always set using the user&#8217;s time zone.\n\t\t\t\t<br>\n\t\t\t\t<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2025\/12\/bt-setup-4.png\" alt=\"\"><\/p>\n\t\t\t\t<strong>Note<\/strong>: Currently, a backtest&#8217;s range cannot be greater than one trading day. Also, if you select a date and range for which no market data is available for the instrument, an error dialog is displayed when you start the backtest.\n\t\t\t\t\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<\/section>\n\n\t<section id=\"add-instances\">\n\t\t<h3>Adding and configuring algo instances to the backtest<\/h3>\n\t\t<p>TT Backtesting lets you explore the effects of using different values for your algo variables. For each backtest, you can create up to ten instances of the algo so you can run backtests for different configurations and compare the results.<\/p>\n\t\t<p>To configure one or more algo instances:<\/p>\n\t\t<ol>\n\t\t\t<li>\n\t\t\t\tIn the <strong>Add Mew Backtest<\/strong> window, specify the desired <strong>Instance 1<\/strong> algo parameters.\n\t\t\t\t<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2025\/12\/bt-add-instance-1.png\" alt=\"\"><\/p>\n\t\t\t\t<strong>Note<\/strong>: If the ADL algo uses default values for a parameter, they will appear in their respective fields.\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\tIf you would like to backtest the algo with different input parameters, click <strong>Add Instance<\/strong>.\n\t\t\t\t<p><\/p>\n\t\t\t\tNote: You can backtest a maximum of ten instances.\n\t\t\t\t<p><\/p>\n\t\t\t\tA new instance is added.\n\t\t\t\t<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2025\/12\/bt-add-instance-2.png\" alt=\"Add image with new instance\"><\/p>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\tSpecify the desired values for the new algo instance.\n\t\t\t\t<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2025\/12\/bt-add-instance-3.png\" alt=\"Add image with values in new instance\"><\/p>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\tContinue adding and configuring instances as desired.\n\t\t\t\t<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/01\/bt-add-instance-4.png\" alt=\"Add image with a few more instances\"><\/p>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<\/section>\n\n\t<section id=\"start-backtest\">\n\t\t<h3>Starting a backtest<\/h3>\n\t\t<p>When you have finished configuring the algo backtest:<\/p>\n\t\t<ol>\n\t\t\t<li>\n\t\t\t\tClick <strong>Start Test<\/strong>.\n\t\t\t\t<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/01\/bt-setup-6.png\" alt=\"\"><\/p>\n\t\t\t\t<p><\/p>\n\t\t\t\tTT Backtesting prepares the backtest and calculates an estimated run time based on your backtest configuration.\n\t\t\t\t<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/01\/bt-setup-7.png\" alt=\"\"><\/p>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\tIn the confirmation dialog, click <strong>START TEST<\/strong> to start the backtest, or click <strong>Cancel<\/strong> to cancel the backtest.\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<\/section>\n\n<section id=\"monitor-tests\">\n\t<h2>Monitoring the progress of a backtest<\/h2>\n\t<p>After you start a backtest, you can monitor the <strong>Status<\/strong> column to track its progress. A backtest will progress through the following statuses:<\/p>\n\t<ul>\n\t\t<li>\n\t\t\t<strong>New<\/strong>: The backtest has yet to be started.\n\t\t<\/li>\n\t\t<li>\n\t\t\t<strong>Pending<\/strong>: The backtest is validating its inputs.\n\t\t<\/li>\n\t\t<li>\n\t\t\t<strong>Launching<\/strong>: The backtest starts its execution.\n\t\t<\/li>\n\t\t<li>\n\t\t\t<strong>Price Download<\/strong>: The backtest is downloading the historical market data for the specified range.\n\t\t<\/li>\n\t\t<li>\n\t\t\t<strong>Initialization<\/strong>: The backtest is initializing the ADL algo.\n\t\t<\/li>\n\t\t<li>\n\t\t\t<strong>Running<\/strong>: The backtest is running the algo with the historical market data.\n\t\t<\/li>\n\t\t<li>\n\t\t\t<strong>Finished<\/strong>: The backtest completed successfully.\n\t\t<\/li>\n\t\t<li>\n\t\t\t<strong>Failed<\/strong>: Some error occurred during the backtest. Contact <a href=\"https:\/\/www.tradingtechnologies.com\/resources\/support\/\" target=\"_blank\">TT Support<\/a>.\n\t\t<\/li>\n\t<\/ul>\n\t<p>When a backtest is completed, you can display the <a href=\"rb-displaying-backtest-results.html\">test results<\/a> for backtests that finished successfully or <a href=\"rb-troubleshooting-failed-tests.html\">troubleshoot<\/a> backtests that failed.<\/p>\n<\/section>\n\n<section id=\"stop-test\">\n\t<h2>Stopping a backtest<\/h2>\n\t<p>Once a backtest reaches the <strong>Price Download<\/strong> status, you can manually stop the backtest.<\/p>\n\t<p><strong>Note<\/strong>: You will be still be charged for the time a backtest ran if you stop a backtest manually.<\/p>\n\t<p>To stop a backtest:<\/p>\n\t<ol>\n\t\t<li>\n\t\t\tSelect the backtest you want to stop.\n\t\t<\/li>\n\t\t<li>\n\t\t\tClick <strong>Stop Test<\/strong>.\n\t\t\t<p><\/p>\n\t\t\tThe <strong>Status<\/strong> field changes to <strong>ABORTING<\/strong> and then to <strong>ABORTED<\/strong> when the backtest stops successfully.\n\t\t<\/li>\n\t<\/ol>\n\t\n<\/section>\n\n<section id=\"delete-tests\">\n\t<h2>Deleting backtests<\/h2>\n\t<p>To delete an instance you are currently configuring, click the checkbox next to the instance&#8217;s name and press the <strong>Delete<\/strong> button. <\/p>\n\t\n\t<p>You can also delete a backtest after you no longer want to keep the results. To delete a completed backtest:<\/p>\n\t<ol>\n\t\t<li>\n\t\t\tSelect the backtest you want to delete.\n\t\t<\/li>\n\t\t<li>\n\t\t\tClick <strong>Delete Test<\/strong>.\n\t\t\t<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/01\/rb-delete-results.png\" alt=\"\"><\/p>\n\t\t<\/li>\n\t<\/ol>\n\n\n<\/section>\n\n\t<\/section>\n","protected":false},"excerpt":{"rendered":"<p>This section explains how to:<\/p>\n<ul>\n<li>\n\t\t<a href=\"#backtest-algos\">Backtest an algo<\/a>\n\t<\/li>\n<li>\n\t\t<a href=\"#monitor-tests\">Monitor the status of a backtest<\/a>\n\t<\/li>\n<li>\n\t\t<a href=\"#stop-test\">Stop a backtest<\/a>\n\t<\/li>\n<li>\n\t\t<a href=\"#delete-tests\">Delete backtests<\/a>\n\t<\/li>\n<\/ul>\n<section id=\"backtest-algo\">\n<h2>Backtesting an algo<\/h2>\n<p>When setting up a new backtest, you need to: <\/p>\n<ul>\n<li>\n\t\t\t<a href=\"#create-backtest\">Create and configure the backtest<\/a>.\n\t\t<\/li>\n<li>\n\t\t\t<a href=\"#add-instances\">Add and configure algo instances to the backtest<\/a>.\n\t\t<\/li>\n<li>\n\t\t\t<a href=\"#start-backtest\">Start the backtest<\/a>.\n\t\t<\/li>\n<\/ul>\n<section id=\"create-backtest\">\n<h3>Creating and configuring a backtest<\/h3>\n<p>To create and run a new backtest:<\/p>\n<ol>\n<li>\n\t\t\t\tIn the main <strong>Backtests<\/strong> window, click <strong>Add New<\/strong>.<\/p>\n<p>\t\t\t\tThe <strong>Add New Backtest<\/strong> window displays the user-defined algo parameters you can set and creates an instance of the parameters with the algo&#8217;s default values.<\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/01\/bt-setup-1-scaled.png\" alt=\"\"><\/p>\n<\/li>\n<li>\n\t\t\t\tFrom the <strong>Algo<\/strong> dropdown, select an algo you want to backtest.\n\t\t\t<\/li>\n<li>\n\t\t\t\tIn the <strong>Speed<\/strong> field, enter the replay speed.<\/p>\n<p>\t\t\t\t<strong>Note<\/strong>: Increasing the replay speed can significantly reduce the time it takes to backtest the algo. However, higher replay speeds also increase the conflation of market data. For more information about how replay speed can affect a backtest, see <a href=\"br-backtesting-considerations.html#replay-speeds\">About replay speeds<\/a>.\n\t\t\t<\/li>\n<li>\n\t\t\t\tIn the <strong>Range<\/strong> field, select the date and time range for the replay. The historical period set by the <strong>Range<\/strong> field is always set using the user&#8217;s time zone.\n\t\t\t\t<\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2025\/12\/bt-setup-4.png\" alt=\"\"><\/p>\n<p>\t\t\t\t<strong>Note<\/strong>: Currently, a backtest&#8217;s range cannot be greater than one trading day. Also, if you select a date and range for which no market data is available for the instrument, an error dialog is displayed when you start the backtest.<\/p>\n<\/li>\n<\/ol>\n<\/section>\n<section id=\"add-instances\">\n<h3>Adding and configuring algo instances to the backtest<\/h3>\n<p>TT Backtesting lets you explore the effects of using different values for your algo variables. For each backtest, you can create up to ten instances of the algo so you can run backtests for different configurations and compare the results.<\/p>\n<p>To configure one or more algo instances:<\/p>\n<ol>\n<li>\n\t\t\t\tIn the <strong>Add Mew Backtest<\/strong> window, specify the desired <strong>Instance 1<\/strong> algo parameters.<\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2025\/12\/bt-add-instance-1.png\" alt=\"\"><\/p>\n<p>\t\t\t\t<strong>Note<\/strong>: If the ADL algo uses default values for a parameter, they will appear in their respective fields.\n\t\t\t<\/li>\n<li>\n\t\t\t\tIf you would like to backtest the algo with different input parameters, click <strong>Add Instance<\/strong>.<\/p>\n<p>\t\t\t\tNote: You can backtest a maximum of ten instances.<\/p>\n<p>\t\t\t\tA new instance is added.<\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2025\/12\/bt-add-instance-2.png\" alt=\"Add image with new instance\"><\/p>\n<\/li>\n<li>\n\t\t\t\tSpecify the desired values for the new algo instance.<\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2025\/12\/bt-add-instance-3.png\" alt=\"Add image with values in new instance\"><\/p>\n<\/li>\n<li>\n\t\t\t\tContinue adding and configuring instances as desired.<\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/01\/bt-add-instance-4.png\" alt=\"Add image with a few more instances\"><\/p>\n<\/li>\n<\/ol>\n<\/section>\n<section id=\"start-backtest\">\n<h3>Starting a backtest<\/h3>\n<p>When you have finished configuring the algo backtest:<\/p>\n<ol>\n<li>\n\t\t\t\tClick <strong>Start Test<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/01\/bt-setup-6.png\" alt=\"\"><\/p>\n<\/p>\n<p>\t\t\t\tTT Backtesting prepares the backtest and calculates an estimated run time based on your backtest configuration.<\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/01\/bt-setup-7.png\" alt=\"\"><\/p>\n<\/li>\n<li>\n\t\t\t\tIn the confirmation dialog, click <strong>START TEST<\/strong> to start the backtest, or click <strong>Cancel<\/strong> to cancel the backtest.\n\t\t\t<\/li>\n<\/ol>\n<\/section>\n<section id=\"monitor-tests\">\n<h2>Monitoring the progress of a backtest<\/h2>\n<p>After you start a backtest, you can monitor the <strong>Status<\/strong> column to track its progress. A backtest will progress through the following statuses:<\/p>\n<ul>\n<li>\n\t\t\t<strong>New<\/strong>: The backtest has yet to be started.\n\t\t<\/li>\n<li>\n\t\t\t<strong>Pending<\/strong>: The backtest is validating its inputs.\n\t\t<\/li>\n<li>\n\t\t\t<strong>Launching<\/strong>: The backtest starts its execution.\n\t\t<\/li>\n<li>\n\t\t\t<strong>Price Download<\/strong>: The backtest is downloading the historical market data for the specified range.\n\t\t<\/li>\n<li>\n\t\t\t<strong>Initialization<\/strong>: The backtest is initializing the ADL algo.\n\t\t<\/li>\n<li>\n\t\t\t<strong>Running<\/strong>: The backtest is running the algo with the historical market data.\n\t\t<\/li>\n<li>\n\t\t\t<strong>Finished<\/strong>: The backtest completed successfully.\n\t\t<\/li>\n<li>\n\t\t\t<strong>Failed<\/strong>: Some error occurred during the backtest. Contact <a href=\"https:\/\/www.tradingtechnologies.com\/resources\/support\/\" target=\"_blank\">TT Support<\/a>.\n\t\t<\/li>\n<\/ul>\n<p>When a backtest is completed, you can display the <a href=\"rb-displaying-backtest-results.html\">test results<\/a> for backtests that finished successfully or <a href=\"rb-troubleshooting-failed-tests.html\">troubleshoot<\/a> backtests that failed.<\/p>\n<\/section>\n<section id=\"stop-test\">\n<h2>Stopping a backtest<\/h2>\n<p>Once a backtest reaches the <strong>Price Download<\/strong> status, you can manually stop the backtest.<\/p>\n<p><strong>Note<\/strong>: You will be still be charged for the time a backtest ran if you stop a backtest manually.<\/p>\n<p>To stop a backtest:<\/p>\n<ol>\n<li>\n\t\t\tSelect the backtest you want to stop.\n\t\t<\/li>\n<li>\n\t\t\tClick <strong>Stop Test<\/strong>.<\/p>\n<p>\t\t\tThe <strong>Status<\/strong> field changes to <strong>ABORTING<\/strong> and then to <strong>ABORTED<\/strong> when the backtest stops successfully.\n\t\t<\/li>\n<\/ol>\n<\/section>\n<section id=\"delete-tests\">\n<h2>Deleting backtests<\/h2>\n<p>To delete an instance you are currently configuring, click the checkbox next to the instance&#8217;s name and press the <strong>Delete<\/strong> button. <\/p>\n<p>You can also delete a backtest after you no longer want to keep the results. To delete a completed backtest:<\/p>\n<ol>\n<li>\n\t\t\tSelect the backtest you want to delete.\n\t\t<\/li>\n<li>\n\t\t\tClick <strong>Delete Test<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/01\/rb-delete-results.png\" alt=\"\"><\/p>\n<\/li>\n<\/ol>\n<\/section>\n<\/section>\n","protected":false},"author":2,"template":"","meta":{"_acf_changed":false,"footnotes":""},"docs-category":[243],"class_list":["post-6217","doc","type-doc","status-publish","hentry","docs-category-backtesting-algos"],"acf":[],"_links":{"self":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/6217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":0,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/6217\/revisions"}],"wp:attachment":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/media?parent=6217"}],"wp:term":[{"taxonomy":"docs-category","embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/docs-category?post=6217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}