<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8189322796931668863</id><updated>2024-09-09T07:01:06.641-07:00</updated><category term="backtest"/><category term="python"/><title type='text'>Back Tests</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://backtest.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8189322796931668863/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://backtest.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Bolívar</name><uri>http://www.blogger.com/profile/14443525584671291654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8189322796931668863.post-7359288816774558708</id><published>2023-02-20T11:10:00.004-08:00</published><updated>2023-02-20T11:10:42.793-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="backtest"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Backtest com Python</title><content type='html'>&lt;p&gt;&amp;nbsp;Olá gente inteligente!&lt;/p&gt;&lt;p&gt;Essa semana vi um video do Regito no youtube fazendo vários backtests usando Python na plataforma do Google, que é online e pelo visto é grátis.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Pra encurtar a história, eu consegui copiar alguns trechos do código através do video e não é que o negócio funciona mesmo, baixou cotações dos ativos, até do CDI do site do BC, acho que vou estudar um pouco disso futuramente.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Confiram o código que adaptei:&lt;/p&gt;&lt;div style=&quot;background-color: #fffffe; font-family: monospace, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;!&lt;/span&gt;pip&amp;nbsp;install&amp;nbsp;bt&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;!&lt;/span&gt;pip&amp;nbsp;-q&amp;nbsp;install&amp;nbsp;yfinance&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;yfinance&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;as&lt;/span&gt;&amp;nbsp;yf&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;pandas&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;as&lt;/span&gt;&amp;nbsp;pd&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;numpy&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;as&lt;/span&gt;&amp;nbsp;np&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;plotly.express&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;as&lt;/span&gt;&amp;nbsp;px&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;datetime&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;date&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;bt&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;matplotlib&lt;/div&gt;&lt;div&gt;matplotlib.style.use(&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;seaborn-darkgrid&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;%matplotlib&amp;nbsp;&lt;/span&gt;inline&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;#baixar&amp;nbsp;dados&amp;nbsp;cdi&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;def&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;consulta_bc&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;codigo_bcb&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;url&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;http://api.bcb.gov.br/dados/serie/bcda.sgs.{}/dados?formato=json&#39;&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;format&lt;/span&gt;(codigo_bcb)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;df&amp;nbsp;=&amp;nbsp;pd.read_json(url)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;df[&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;data&#39;&lt;/span&gt;]&amp;nbsp;=&amp;nbsp;pd.to_datetime(df[&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;data&#39;&lt;/span&gt;],&amp;nbsp;dayfirst=&lt;span style=&quot;color: blue;&quot;&gt;True&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;df.set_index(&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;data&#39;&lt;/span&gt;,&amp;nbsp;inplace=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;True&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;df&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;def&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;cdi_acumulado&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #001080;&quot;&gt;data_inicio&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;data_fim&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;cdi&amp;nbsp;=&amp;nbsp;consulta_bc(&lt;span style=&quot;color: #098156;&quot;&gt;12&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;cdi_acumulado&amp;nbsp;=&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #098156;&quot;&gt;1&lt;/span&gt;+cdi[data_inicio&amp;nbsp;:&amp;nbsp;data_fim]/&lt;span style=&quot;color: #098156;&quot;&gt;100&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;).cumprod()&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;cdi_acumulado.iloc[&lt;span style=&quot;color: #098156;&quot;&gt;0&lt;/span&gt;]&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #098156;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;cdi_acumulado&lt;/div&gt;&lt;br /&gt;&lt;div&gt;data_inicio&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;2021-01-20&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;data_fim&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;2023-01-20&#39;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;cdi&amp;nbsp;=&amp;nbsp;cdi_acumulado(data_inicio&amp;nbsp;=&amp;nbsp;data_inicio,&amp;nbsp;data_fim&amp;nbsp;=&amp;nbsp;data_fim)&lt;/div&gt;&lt;br /&gt;&lt;div&gt;cdi&lt;/div&gt;&lt;br /&gt;&lt;div&gt;tickers_carteira_acoes&amp;nbsp;=&amp;nbsp;[&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;PIBB11.SA&#39;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;IVVB11.SA&#39;&lt;/span&gt;]&lt;/div&gt;&lt;br /&gt;&lt;div&gt;carteira_acoes&amp;nbsp;=&amp;nbsp;yf.download(tickers_carteira_acoes,&amp;nbsp;start&amp;nbsp;=&amp;nbsp;data_inicio,&amp;nbsp;end=data_fim)[&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;Adj&amp;nbsp;Close&#39;&lt;/span&gt;]&lt;/div&gt;&lt;br /&gt;&lt;div&gt;carteira_acoes&lt;/div&gt;&lt;br /&gt;&lt;div&gt;carteira_acoes[&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;renda_fixa&#39;&lt;/span&gt;]&amp;nbsp;=&amp;nbsp;cdi&lt;/div&gt;&lt;br /&gt;&lt;div&gt;carteira_acoes&lt;/div&gt;&lt;br /&gt;&lt;div&gt;rebalanceamento_acoes&amp;nbsp;=&amp;nbsp;bt.Strategy(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;rebalanceamento_acoes&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[bt.algos.RunMonthly(run_on_end_of_period=&lt;span style=&quot;color: blue;&quot;&gt;True&lt;/span&gt;),&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bt.algos.SelectAll(),&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bt.algos.WeighEqually(),&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bt.algos.Rebalance()]&lt;/div&gt;&lt;div&gt;)&lt;/div&gt;&lt;br /&gt;&lt;div&gt;buy_and_hold&amp;nbsp;=&amp;nbsp;bt.Strategy(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;Buy&amp;amp;Hold&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[bt.algos.RunOnce(),&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bt.algos.SelectAll(),&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bt.algos.WeighEqually(),&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bt.algos.Rebalance()&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;]&lt;/div&gt;&lt;div&gt;)&lt;/div&gt;&lt;br /&gt;&lt;div&gt;bt_acoes_1&amp;nbsp;=&amp;nbsp;bt.Backtest(rebalanceamento_acoes,&amp;nbsp;carteira_acoes)&lt;/div&gt;&lt;div&gt;bt_acoes_2&amp;nbsp;=&amp;nbsp;bt.Backtest(buy_and_hold,&amp;nbsp;carteira_acoes)&lt;/div&gt;&lt;br /&gt;&lt;div&gt;resultados_acoes&amp;nbsp;=&amp;nbsp;bt.run(&amp;nbsp;bt_acoes_1,&amp;nbsp;bt_acoes_2)&lt;/div&gt;&lt;br /&gt;&lt;div&gt;resultados_acoes.display()&lt;/div&gt;&lt;br /&gt;&lt;div&gt;resultados_acoes.display_monthly_returns()&lt;/div&gt;&lt;br /&gt;&lt;div&gt;resultados_acoes.plot()&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcRc3qpipxIFl2IB0Xq1CeAbuxofk8bf3vs9NwNW_UGCB2kostYojH5kLZNm4wVux86qdMh1yrhWrYKq3Rqf0dMjPJpjenNfTwSCe2lG6bcsRqZODGY-ygpp78mm3O_X3CBJrAT0hOcozbehFtW9iupAhx08QvLgiA3ax2b0ZdfSu--86abBDazbIY/s550/results.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;550&quot; data-original-width=&quot;492&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcRc3qpipxIFl2IB0Xq1CeAbuxofk8bf3vs9NwNW_UGCB2kostYojH5kLZNm4wVux86qdMh1yrhWrYKq3Rqf0dMjPJpjenNfTwSCe2lG6bcsRqZODGY-ygpp78mm3O_X3CBJrAT0hOcozbehFtW9iupAhx08QvLgiA3ax2b0ZdfSu--86abBDazbIY/w572-h640/results.PNG&quot; width=&quot;572&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUphB8CmpZBOz7k1Ui4YOyzY0sUdltfvdfV_RGNBhyr0s3SVWCBIxrITrzkR7v36CRZ7QFlpUcL31LWLoRWrL7-EPer1WpEd3hqKBAfmDNOoNeS5Sg8rP29_EeH-mdMeo50-Ikt0WUknu2fPZE0It6gLMkrpAUObBA3bMaoui5WSLPILOQOHDLhLbN/s926/r2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;689&quot; data-original-width=&quot;926&quot; height=&quot;476&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUphB8CmpZBOz7k1Ui4YOyzY0sUdltfvdfV_RGNBhyr0s3SVWCBIxrITrzkR7v36CRZ7QFlpUcL31LWLoRWrL7-EPer1WpEd3hqKBAfmDNOoNeS5Sg8rP29_EeH-mdMeo50-Ikt0WUknu2fPZE0It6gLMkrpAUObBA3bMaoui5WSLPILOQOHDLhLbN/w640-h476/r2.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Resultados&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div&gt;Então, interessante né?! Compartilhei esse código no link&amp;nbsp;&lt;a href=&quot;https://colab.research.google.com/drive/1NaR28o0J_4dvQ_y3siZ3b7VD9OIPS5Ad?usp=sharing&quot;&gt;https://colab.research.google.com/drive/1NaR28o0J_4dvQ_y3siZ3b7VD9OIPS5Ad?usp=sharing&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://backtest.blogspot.com/feeds/7359288816774558708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://backtest.blogspot.com/2023/02/backtest-com-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8189322796931668863/posts/default/7359288816774558708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8189322796931668863/posts/default/7359288816774558708'/><link rel='alternate' type='text/html' href='http://backtest.blogspot.com/2023/02/backtest-com-python.html' title='Backtest com Python'/><author><name>Bolívar</name><uri>http://www.blogger.com/profile/14443525584671291654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcRc3qpipxIFl2IB0Xq1CeAbuxofk8bf3vs9NwNW_UGCB2kostYojH5kLZNm4wVux86qdMh1yrhWrYKq3Rqf0dMjPJpjenNfTwSCe2lG6bcsRqZODGY-ygpp78mm3O_X3CBJrAT0hOcozbehFtW9iupAhx08QvLgiA3ax2b0ZdfSu--86abBDazbIY/s72-w572-h640-c/results.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8189322796931668863.post-8204330621836858854</id><published>2019-10-24T08:39:00.004-07:00</published><updated>2019-10-24T08:39:50.051-07:00</updated><title type='text'>Wealth Lab - Software para backtests </title><content type='html'>Olá, venho hoje com essa dica para fazer backtests, o Wealth lab é muito bom, foi um software que usei por muito tempo e criei algumas boas estratégias nele.&lt;br /&gt;
&lt;br /&gt;
Site:&amp;nbsp;&lt;a href=&quot;https://www.wealth-lab.com/&quot;&gt;https://www.wealth-lab.com/&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;
Como criar uma estratégia?
&lt;br /&gt;
&lt;iframe allow=&quot;accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/gF7JZZvNPaY&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Importar dados de ativos para testes&lt;br /&gt;
&lt;iframe allow=&quot;accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/pFRFVMnxdPo&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://backtest.blogspot.com/feeds/8204330621836858854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://backtest.blogspot.com/2019/10/wealth-lab-software-para-backtests.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8189322796931668863/posts/default/8204330621836858854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8189322796931668863/posts/default/8204330621836858854'/><link rel='alternate' type='text/html' href='http://backtest.blogspot.com/2019/10/wealth-lab-software-para-backtests.html' title='Wealth Lab - Software para backtests '/><author><name>Bolívar</name><uri>http://www.blogger.com/profile/14443525584671291654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/gF7JZZvNPaY/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8189322796931668863.post-348676844386274425</id><published>2011-05-30T10:52:00.000-07:00</published><updated>2011-05-30T10:52:32.239-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="backtest"/><title type='text'>O que é backtest?</title><content type='html'>&lt;i&gt;Backtesting (or back-testing) is the process of evaluating a strategy, theory, or model by applying it to historical data. Backtesting can be used in situations like studying how a trading method would have performed in past stock markets or how a model of climate and weather patterns would have matched past measurements. A key element of backtesting that differentiates it from other forms of historical testing is that backtesting calculates how a strategy would have performed if it had actually been applied in the past. This requires the backtest to replicate the conditions of the time in question in order to get an accurate result. Backtesting is a common and methodologically accepted approach to research, however a high or successful correlation between a backtested strategy and historical results can never prove a theory correct, since past results do not necessarily indicate future results. In other words, things are always changing, but in a world where yesterday bears some resemblance to today, backtesting can be a useful tool of analysis and prediction.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;From Wikipedia, the free encyclopedia&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://backtest.blogspot.com/feeds/348676844386274425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://backtest.blogspot.com/2011/05/o-que-e-backtest.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8189322796931668863/posts/default/348676844386274425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8189322796931668863/posts/default/348676844386274425'/><link rel='alternate' type='text/html' href='http://backtest.blogspot.com/2011/05/o-que-e-backtest.html' title='O que é backtest?'/><author><name>Bolívar</name><uri>http://www.blogger.com/profile/14443525584671291654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8189322796931668863.post-4884041350676266484</id><published>2010-11-12T15:09:00.001-08:00</published><updated>2019-10-24T08:53:19.442-07:00</updated><title type='text'>Estratégias</title><content type='html'>&lt;a href=&quot;https://winstrategyclub.blogspot.com/&quot;&gt;https://winstrategyclub.blogspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://backtest.blogspot.com/feeds/4884041350676266484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://backtest.blogspot.com/2010/11/estrategias.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8189322796931668863/posts/default/4884041350676266484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8189322796931668863/posts/default/4884041350676266484'/><link rel='alternate' type='text/html' href='http://backtest.blogspot.com/2010/11/estrategias.html' title='Estratégias'/><author><name>Bolívar</name><uri>http://www.blogger.com/profile/14443525584671291654</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>