{"id":6439,"date":"2026-10-09T20:09:05","date_gmt":"2026-10-09T18:09:05","guid":{"rendered":"https:\/\/propaccount.com\/?post_type=glossary&#038;p=6439"},"modified":"2026-10-09T20:09:05","modified_gmt":"2026-10-09T18:09:05","slug":"what-is-backtesting","status":"publish","type":"glossary","link":"https:\/\/propaccount.com\/pt\/resources\/glossary\/what-is-backtesting\/","title":{"rendered":"O que \u00e9 backtesting?"},"content":{"rendered":"<p><b>Backtesting<\/b><span style=\"font-weight: 400;\"> \u00e9 o processo de testar uma estrat\u00e9gia de negocia\u00e7\u00e3o em rela\u00e7\u00e3o a dados hist\u00f3ricos de mercado para ver como ela teria se comportado no passado. Os traders definem um conjunto de regras de entrada e sa\u00edda, aplicam-nas a um bloco de dados hist\u00f3ricos de pre\u00e7os e registram as opera\u00e7\u00f5es que a estrat\u00e9gia teria realizado. O resultado \u00e9 um relat\u00f3rio de desempenho que mostra a taxa de acerto, o lucro m\u00e9dio por opera\u00e7\u00e3o, o drawdown m\u00e1ximo e outras m\u00e9tricas que ajudam o trader a avaliar se vale a pena implementar a estrat\u00e9gia com capital real.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">O backtesting pode ser feito manualmente, navegando por gr\u00e1ficos hist\u00f3ricos e marcando opera\u00e7\u00f5es hipot\u00e9ticas, ou automaticamente por meio de softwares que simulam milhares de opera\u00e7\u00f5es em anos de dados em quest\u00e3o de minutos. O backtesting automatizado \u00e9 a abordagem mais comum, especialmente para traders que usam EAs, rob\u00f4s de IA ou qualquer estrat\u00e9gia com regras precisamente definidas. A qualidade do backtest depende muito da qualidade dos dados hist\u00f3ricos, da inclus\u00e3o de condi\u00e7\u00f5es realistas, como spread e slippage, e de qu\u00e3o pr\u00f3ximo o ambiente simulado est\u00e1 da negocia\u00e7\u00e3o em tempo real.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Uma estrat\u00e9gia testada que parece lucrativa em dados hist\u00f3ricos ainda pode ter um desempenho inferior em mercados reais. As condi\u00e7\u00f5es hist\u00f3ricas nem sempre se repetem; as estrat\u00e9gias podem sofrer de overfitting aos dados espec\u00edficos em que foram testadas, e a execu\u00e7\u00e3o em tempo real introduz slippage, varia\u00e7\u00e3o de spread e decis\u00f5es emocionais que os backtests costumam ignorar. Para traders de mesas propriet\u00e1rias (prop firms), o backtesting \u00e9 \u00fatil como um primeiro filtro para a sele\u00e7\u00e3o de estrat\u00e9gias, mas n\u00e3o \u00e9 um indicador confi\u00e1vel do desempenho em desafios ou contas financiadas. A maioria dos traders de mesas propriet\u00e1rias consistentemente bem-sucedidos usa o backtesting juntamente com o forward testing em contas de demonstra\u00e7\u00e3o antes de se comprometerem com um desafio real.<\/span><\/p>","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}}},"glossary-category":[131],"class_list":["post-6439","glossary","type-glossary","status-publish","hentry","glossary-category-trader-glossary"],"acf":{"target_keyword":"backtesting","glossary_post_image":"","key_takeaway":"Key Takeaway","key_takeaway_description":"Backtesting is the process of testing a trading strategy against historical market data to evaluate how it would have performed. It is useful as a first filter for strategy selection but has significant limits, including hindsight bias, overfitting, and the gap between simulated and live execution.","faq":"<b>What metrics does a backtest typically report?<\/b>\r\n\r\n<span style=\"font-weight: 400;\">Common metrics include win rate, average profit per winning trade, average loss per losing trade, maximum drawdown, profit factor, number of trades, and the overall return across the backtest period. More advanced reports also include risk-adjusted metrics such as the Sharpe ratio and expectancy per trade.<\/span>\r\n\r\n<b>Why do backtested strategies often underperform in live trading?<\/b>\r\n\r\n<span style=\"font-weight: 400;\">Several reasons. Backtests can be overfitted to specific historical conditions that do not repeat. They often exclude or underestimate real-world execution factors such as slippage, spread variation, and partial fills. And emotional decisions during live trading can cause traders to deviate from the rules the strategy was tested on. The gap between backtested results and live performance is one of the most common reasons new prop firm traders fail challenges.<\/span>\r\n\r\n<b>Is backtesting worth doing before a prop firm challenge?<\/b>\r\n\r\n<span style=\"font-weight: 400;\">Yes, as a first filter. A strategy that fails to produce profit in backtesting is unlikely to produce it in live markets. But passing a backtest does not guarantee passing a challenge. Most consistently successful prop firm traders combine backtesting with forward testing on a demo account before deploying the strategy on a live challenge.<\/span>"},"_links":{"self":[{"href":"https:\/\/propaccount.com\/pt\/wp-json\/wp\/v2\/glossary\/6439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/propaccount.com\/pt\/wp-json\/wp\/v2\/glossary"}],"about":[{"href":"https:\/\/propaccount.com\/pt\/wp-json\/wp\/v2\/types\/glossary"}],"wp:attachment":[{"href":"https:\/\/propaccount.com\/pt\/wp-json\/wp\/v2\/media?parent=6439"}],"wp:term":[{"taxonomy":"glossary-category","embeddable":true,"href":"https:\/\/propaccount.com\/pt\/wp-json\/wp\/v2\/glossary-category?post=6439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}