Friday, 13 April 2018

Estratégia de negociação de entrada aleatória


Por favor, verifique se você é um humano.
Por favor, clique em "Eu não sou um robô" para continuar.
O acesso a esta página foi negado porque acreditamos que você esteja usando ferramentas de automação para navegar no site.
Isso pode acontecer como resultado do seguinte:
Javascript está desabilitado ou bloqueado por uma extensão (bloqueadores de anúncios, por exemplo) Seu navegador não suporta cookies.
Certifique-se de que o Javascript e os cookies estejam ativados no seu navegador e que você não esteja impedindo o carregamento deles.
ID de referência: # 1ef83ee0-1507-11e8-8046-25c351777d76.

Backtesting uma estratégia de negociação EUR / USD usando uma parada móvel ATR.
Neste artigo mostrarei os resultados do meu backtest de uma estratégia de negociação EUR / USD. O que é interessante sobre este teste é que usei um sinal de entrada aleatório. Eu também usei um trailing stop baseado no ATR para fechar as posições.
Os resultados mostram que uma estratégia de negociação de entrada aleatória pode ser lucrativa usando um stop móvel.
Mercado e Prazo.
Eu estou usando o meu par forex favorito, o EUR / USD, e negociando no prazo de 4 horas. Cada execução da análise é superior a 10.000 períodos de 4 horas. O estudo vai de maio de 2006 a outubro de 2012.
Sinal de entrada.
Boas entradas de negociação são geralmente consideradas uma parte importante da negociação. Eu concordo fortemente com isso, no entanto, diferentes tipos de entradas funcionam bem em diferentes tipos de mercados. Não é possível dizer o que o mercado vai fazer, portanto, as melhores entradas podem resultar em negociações não lucrativas.
Neste teste eu usei um gerador de números aleatórios para acionar as entradas de negociação. O melhor da entrada aleatória é que podemos testá-la repetidamente nos mesmos dados históricos. Por ser uma entrada aleatória, os resultados variam consideravelmente. No entanto, repetindo o teste muitas vezes, obtemos um bom nível de consistência.
Este método de repetir uma análise é muitas vezes referido como um método de Monte Carlo após o famoso cassino. Já gravei um vídeo do YouTube sobre o uso do Excel para criar um simulador de Monte Carlo.
Saia do sinal.
Cada negociação é encerrada usando um stop móvel. Paradas de arrasto tendem a ser associadas à tendência seguindo as estratégias de tipo. Eu não uso uma meta de lucro.
O trailing stop é calculado com base no Average True Range (ATR). O ATR é uma medida da recente volatilidade do mercado. Eu então multiplico o ATR por um fator para calcular a distância de parada à direita. Este método de calcular o stop-loss é muitas vezes chamado de saída do candelabro e foi desenvolvido e popularizado por Chuck LeBeau e Dr. Alexander Alder. Na minha análise estou usando um período de 20 ATR.
Por exemplo: para uma negociação longa com um ponto de entrada é 1.3500, um ATR de 45 pips e um multiplicador de 2. O stop-loss será 1.3500 & # 8211; (0,0045 * 2) = 1,3410. À medida que a posição de negociação se move para o lucro, a parada móvel se moverá com ela para garantir o lucro.
Simulações
Para cada fator ATR, executei a análise 100 vezes.
Para esses resultados, comparei três métricas diferentes. Em primeiro lugar, o lucro médio gerado durante os testes. Em segundo lugar, o fator de lucro, que é o valor absoluto do valor total das negociações vencedoras dividido pelo valor total dos negócios perdidos. Por fim, calculei a porcentagem de testes que eram lucrativos.
Os resultados confirmam que é possível negociar um sistema de negociação de entrada aleatória e ser rentável. Todos os quatro cenários foram lucrativos, mas houve uma grande diferença em termos da consistência dos resultados.
Os resultados indicam que a negociação usando um fator ATR de 3 gerou o maior lucro. Um ATR de 1 teve a maioria dos cenários lucrativos. Curiosamente, um fator ATR de 2 e 4 na verdade teve mais cenários perdedores do que cenários lucrativos, mas ainda assim eram lucrativos no geral.
Você pode conferir o vídeo em anexo no YouTube para obter mais informações e ver a planilha em ação. Por favor, note que eu retestei as análises do vídeo fazendo simulações adicionais.
Conclusões e testes futuros.
Os resultados acima são muito interessantes para mim. Os resultados pressionam contra o & # 8216; passeio aleatório & # 8217; teoria do comportamento de mercado e inclinar-se para os mercados caóticos de mau comportamento & # 8217; teoria.
Com base nesses resultados, ainda não estarei incluindo entradas aleatórias cegas em minha própria negociação. No entanto, podemos ficar bastante claro que as paradas de rastreamento apresentaram resultados muito bons no EUR / USD no passado e devem ser consideradas como parte de qualquer tendência seguindo a estratégia de negociação usando esse par.
Em testes futuros, vou expandir esses testes examinando novamente entradas aleatórias e também verificando se é possível obter mais consistência usando entradas de análise técnica mais tradicionais.
Outros artigos que você pode gostar.
Este post mostra como um modelo de backtest do Excel pode ser usado para calcular um trailing & hellip;
// Esta publicação continua a série de artigos em vídeo sobre como usar o Microsoft Excel para & hellip;
Este artigo é o segundo de uma série que investiga como a entrada aleatória pode estar em & hellip;
Tradinformed.
2 pensamentos sobre & ldquo; Backtesting de uma estratégia de negociação EUR / USD usando uma parada móvel ATR & rdquo;
Você planeja criar um ebook baseado no vídeo Monte Carlo in Excel? Obrigado.
Oi Jack, obrigado pelo comentário. Eu não estou planejando fazer um e-book sobre isso ainda. Mas eu gravei alguns vídeos novos sobre o backtest de sinais aleatórios de entrada. Estes usam o método de Monte Carlo para investigar a lucratividade histórica de várias estratégias. Quando terminar esta série de vídeos e artigos, vou analisar a elaboração de um e-livro sobre o processo e os resultados.
Comentários estão fechados.
Tradinformed está empenhada em ajudar os comerciantes a desenvolver suas habilidades e ficar à frente da concorrência. Veja como você pode aprender a fazer backtest de suas próprias estratégias e obter novas ideias de negociação.
Um simples, rentável Heikin-Ashi Trading System 3 rentável Ichimoku Trading Strategies Como calcular o SuperTrend Indicator usando o Excel Home Como calcular um Trailing Stop-Loss usando o Excel Como calcular o indicador PSAR usando o Excel Como negociar 3 linha quebrar gráficos lucrativamente mais recente Postagens.
Negociação Algorítmica (1) Opções Binárias (2) Padrões Gráficos (1) Criptomoedas (1) Ebook (2) Dados Econômicos (1) Crescimento Econômico (2) Biblioteca de Traders Essenciais (4) Comércio de Excel (6) Planilhas Google (1) Como para o Backtest (2) Entrevistas com Traders (1) Learn to Trade (18) MT4 (5) Trade Ideas (2) Automação de Negociação (3) Trading Book Reviews (1) Carteiras de Negociação (1) Trading Information (10) Trading Psychology ( 2) Estratégias de Negociação (25) Sem categoria (2)
Simulador de Monte Carlo & # 36; 11,99 6 em 1 pacote & # 36; 87,98 & # 36; 70.38 Bitcoin Breakout Trading Strategy & # 36; 21,25 Pacote 10 em 1 & # 36; 167,48 & # 36; 113,05.
21 Indicadores Técnicos & # 36; 5.99 Long-Short Backtest Model usando Excel & # 36; 12,25 Modelo Avançado de Backtest & # 36; 21,25 21 Indicadores Mais Técnicos & # 36; 5,99.
VIX Volatility S & P 500 Entry & # 36; 21,25 Pacote 4 em 1 & # 36; 45,48 & # 36; 38.66 Long-Short Backtest Model usando Excel & # 36; 12,25.
Tradinformed está empenhada em ajudar os comerciantes a desenvolver suas habilidades e ficar à frente da concorrência. Veja como você pode aprender a fazer backtest de suas próprias estratégias e obter novas ideias de negociação.

Blog - Últimas Notícias.
Os analistas técnicos gastam muitas horas agonizando sobre as melhores técnicas de entrada e os melhores sistemas para acompanhamento de tendências. Mas, francamente, todo esforço vale a pena? Meu teste não prova; entradas aleatórias são tão boas quanto qualquer outra.
"Whipsaw Song", de Ed Seykota, contém suas regras de negociação em suas letras:
Montar seus vencedores Cortar suas perdas Gerenciar seu risco Usar paradas Atenha-se ao sistema Arquive as notícias.
E se um sistema de acompanhamento de tendências seguir todas as seis regras, mas usar entradas aleatórias para entrar em uma negociação? Tal método pode ser lucrativo?
Se as entradas aleatórias podem produzir um lucro, então deve dar aos profissionais uma tendência de grande confiança nos princípios básicos da boa negociação estabelecidos acima. E certamente é muito mais difícil ajustar demais esse sistema aos dados.
O sistema: Eu configurei um sistema simples de acompanhamento de tendências para testar entradas aleatórias como segue.
Entrada: Se não houver posição em um determinado instrumento, faça um: seja longo ou curto em uma base aleatória. Os números aleatórios são produzidos de 1 a 20: se 1 é produzido pelo gerador de números aleatórios, então uma posição longa é tomada, se 2, então uma posição curta. Para qualquer outro número, nenhuma ação é executada.
Embora não haja posição em um instrumento, esse processo é repetido diariamente até que uma posição seja tomada. Assim, há períodos em que não há posição em determinado instrumento. Como pode ser apreciado, aumentando o intervalo de números aleatórios (entre 1 e 50, por exemplo), você pode forçar períodos mais longos de abstinência e menos negociações gerais no portfólio.
Saída: Uma parada ATR de 5 à direita baseada em uma ATR média simples de 20 dias. Quando uma posição é interrompida, ela eventualmente será reinserida longa ou curta conforme as regras de entrada acima. ATR é o intervalo médio verdadeiro - uma medida da recente volatilidade de um instrumento.
Gerenciamento de risco: consistia em limitar o tamanho da posição inicial na entrada. Na entrada 0,375% por valor da carteira será arriscado (volatilidade ajustado, dimensionamento fixo de posição fracionária baseado na distância até a parada). Nenhuma outra tentativa será feita para limitar o risco.
Carteira: A carteira consistia num sortido equilibrado de mais de 25 futuros, 3 obrigações, 3 moedas, 3 energia, 4 cereais, 3 taxas de juro, 3 metais, 2 macios e 3 índices de acções.
Execuções de teste: executei 1000 testes. Eu poderia ter executado 5000 ou 500.000, mas suspeito que as estatísticas gerais seriam pouco.
Não há juros ganhos em saldos de caixa não utilizados. Desistência: 7% Comissão por contrato: US $ 7 Data de início: 1º de janeiro de 1990 Data de término: 1º de fevereiro de 2013 Capital inicial: US $ 40.000.000.
A média de estatísticas nos 1.000 testes realizados foi a seguinte:
Percentagem de testes rentáveis: 100% CAGR (taxa de crescimento anual composta - ou seja, este é o retorno): 2.42% MAR (CAGR médio dividido por empate médio - uma relação dor / ganho): 0.19 Max Peak to Valley Draw Down ( maior perda no valor da carteira em qualquer período): 14,11% Número de negócios: 1.995 R Squar (suavidade dos retornos): 83 Desvio padrão (mensal anualizado): 5 Duração comercial vencedora (dias): 145 Perder duração comercial (dias): 52 .
Conclusão.
A conclusão é que quase qualquer forma de seguir a tendência funcionou muito bem nas últimas décadas. Eu pareço ter demonstrado que, desde que as tendências realmente existam, quase qualquer método de entrada funcionará, desde que combinado com uma saída que permita que os lucros corram e reduzam as perdas.
Outros testes mostraram como os resultados podem ser melhorados através de medidas como a adição de um filtro de longo prazo, de modo que as negociações sejam realizadas apenas na direção da tendência de longo prazo. Quando tal filtro é aplicado, os resultados agregados se assemelham muito aos índices históricos de retorno e risco-recompensa da tendência seguindo a comunidade CTA como um todo, enfatizando que os métodos exatos de entrada não são importantes. A indústria como um todo não é melhor em escolher pontos de entrada do que meu sistema aleatório.
O jogo, sem dúvida, tornou-se mais difícil ao longo dos anos por uma série de razões, incluindo o crescente número de jogadores nos mercados. Os anos de 2001 e 2012 provaram ser excepcionalmente difíceis e poucos sistemas seguindo a tendência (entrada aleatória ou não) foram capazes de lucrar em mercados tão agitados e sem tendências.
O que o futuro guarda? Quem sabe, mas é bom estar preparado. Se surgirem tendências fortes e duradouras, esses sistemas voltarão a lucrar. Se não, eles não vão. É tão simples quanto isso.
Meu objetivo ao testar entradas aleatórias juntamente com uma saída que segue a tendência era muito deliberada. Para testar se a tendência segue os dados de mercado que eu tenho ao meu comando.
Meu objetivo não era testar a eficácia de entradas aleatórias juntamente com saídas aleatórias, que, mesmo intuitivamente, percebi que seria um jogo de soma zero. Tampouco foi para testar se entradas aleatórias (com ou sem paradas) seriam lucrativas ou de outra forma em um mercado paralelo - novamente, mesmo intuitivamente, percebi que elas não seriam.
O experimento consistiu em testar tendências seguindo em uma ampla base de mercados, onde quase por definição haveria períodos de tendência e períodos de movimento de ligar / desligar lateralmente, seguindo a tendência de mortal a longo prazo.

PLUS ONE.
Submissões Primeiros Passos Submissão Diretrizes Números Tabelas Informações de Apoio LaTeX Revisando Seu Manuscrito Submeta Políticas Melhores Práticas em Pesquisa Reportando Humanos Pesquisando Animais Pesquisando Interesses Compulsando Divulgação de Fontes de Financiamento Licenças e Direitos Autorais Dados Disponíveis Compartilhamento de Materiais e Softwares Práticas Éticas de Publicação Autoria Downloads e Traduções Revisão de Manuscritos e Critérios de Publicação para Editorial de Publicação e Processo de Revisão por Pares Diretrizes para Revisores Aceitos Manuscritos Correções e Retratações Comentários Métricas de Nível de Artigo.
Envie seu manuscrito.
Descubra um caminho mais rápido e mais simples para publicar em um diário de alta qualidade. O PLOS ONE promete uma revisão por pares justa e rigorosa, amplo escopo e ampla audiência - um ajuste perfeito para a sua pesquisa sempre.
Clique na taxonomia do PLOS para encontrar artigos no seu campo.
Para mais informações sobre as Áreas de Assunto do PLOS, clique aqui.
Estratégias de negociação aleatória são mais bem-sucedidas que as técnicas?
Afiliação Dipartimento di Economia e Impresa, Universitá di Catania, Catania, Itália.
Afiliações Dipartimento di Fisica e Astronomia, Università di Catania, Catania, Itália, INFN sezione di Catania, Catania, Itália.
Afiliações Dipartimento di Fisica e Astronomia, Università di Catania, Catania, Itália, INFN sezione di Catania, Catania, Itália.
Afiliação ETH Zurich, Zurique, Suíça.
Estratégias de negociação aleatória são mais bem-sucedidas que as técnicas?
Alessio Emanuele Biondo, Alessandro Pluchino, Andrea Rapisarda, Dirk Helbing.
Publicado em: 11 de julho de 2013 doi / 10.1371 / journal. pone.0068344.
Abstrato.
Neste artigo, exploramos o papel específico da aleatoriedade nos mercados financeiros, inspirados pelo papel benéfico do ruído em muitos sistemas físicos e em aplicações anteriores a sistemas socioeconômicos complexos. Após uma breve introdução, estudamos o desempenho de algumas das estratégias de negociação mais utilizadas na previsão da dinâmica dos mercados financeiros para diferentes índices internacionais de bolsa de valores, com o objetivo de compará-las ao desempenho de uma estratégia completamente aleatória. A este respeito, os dados históricos para FTSE-UK, FTSE-MIB, DAX e S & amp; Os índices P500 são levados em conta por um período de cerca de 15 a 20 anos (desde sua criação até hoje).
Citação: Biondo AE, Pluchino A, Rapisarda A, Helbing D (2013) As estratégias de negociação aleatória são mais bem-sucedidas que as técnicas? PLoS ONE 8 (7): e68344. doi / 10.1371 / journal. pone.0068344.
Editor: Alejandro Raul Hernandez Montoya, Universidade Veracruzana, México.
Direitos autorais: © 2013 Biondo et al. Este é um artigo de acesso aberto distribuído sob os termos da Licença de Atribuição da Creative Commons, que permite uso, distribuição e reprodução irrestritos em qualquer meio, desde que o autor e a fonte originais sejam creditados.
Financiamento: Os autores não têm apoio ou financiamento para relatar.
Interesses concorrentes: Os autores declararam que não existem interesses concorrentes.
Introdução.
Na física, tanto no nível clássico quanto quântico, muitos sistemas reais funcionam bem e mais eficientemente devido ao papel útil de um ruído fraco aleatório [1] - [6]. Mas não apenas os sistemas físicos se beneficiam da desordem. De fato, o ruído tem uma grande influência na dinâmica de células, neurônios e outras entidades biológicas, mas também em sistemas ecológicos, geofísicos e socioeconômicos. Seguindo essa linha de pesquisa, investigamos recentemente como estratégias aleatórias podem ajudar a melhorar a eficiência de um grupo hierárquico para enfrentar o princípio de Peter [7] - [9] ou uma instituição pública como um Parlamento [10]. Outros grupos exploraram com sucesso estratégias semelhantes em jogos de minorias e Parrondo [11], [12], na avaliação de desempenho de portfólio [13] e no contexto do leilão duplo contínuo [14].
Recentemente Taleb foi brilhantemente discutido em seus livros de sucesso, como o acaso e os cisnes negros governam nossa vida, mas também o comportamento da economia e do mercado financeiro além de nossas expectativas ou controle pessoal e racional. Na verdade, a aleatoriedade entra em nossa vida cotidiana, embora dificilmente a reconheçamos. Portanto, mesmo sem ser cético tanto quanto Taleb, pode-se facilmente afirmar que muitas vezes entendemos mal os fenômenos que nos rodeiam e somos enganados por aparentes conexões que são apenas devido à fortuna. Os sistemas econômicos são inevitavelmente afetados pelas expectativas, presentes e passadas, já que as crenças dos agentes influenciam fortemente sua dinâmica futura. Se hoje surgiu uma expectativa muito boa sobre o desempenho de qualquer segurança, todos tentariam comprá-la e essa ocorrência implicaria um aumento em seu preço. Então, amanhã, essa garantia teria um preço maior do que hoje, e esse fato seria apenas a consequência da própria expectativa do mercado. Essa profunda dependência das expectativas fez com que economistas financeiros tentassem construir mecanismos para prever os preços futuros dos ativos. O objetivo deste estudo é precisamente verificar se esses mecanismos, que serão descritos em detalhes nas próximas seções, são mais eficazes para prever a dinâmica do mercado em comparação com uma estratégia completamente aleatória.
Em um artigo anterior [17], motivado também por alguns experimentos intrigantes em que uma criança, um chimpanzé e dardos foram utilizados com sucesso para investimentos remunerativos [18], [19], já encontramos algumas evidências em favor de estratégias aleatórias para o FTSE - Mercado de ações do Reino Unido. Aqui vamos estender esta investigação para outros mercados financeiros e para novas estratégias de negociação. O artigo está organizado da seguinte forma. A seção 2 apresenta uma breve introdução ao debate sobre a previsibilidade nos mercados financeiros. Na Seção 3, introduzimos a série histórica financeira considerada em nosso estudo e realizamos uma análise de retificação em busca de possíveis correlações de algum tipo. Na Seção 4, definimos as estratégias de negociação usadas em nossas simulações, enquanto na Seção 5 discutimos os principais resultados obtidos. Finalmente, na Seção 6, extraímos nossas conclusões, sugerindo também algumas implicações políticas contraintuitivas.
Expectativas e Previsibilidade nos Mercados Financeiros.
Como Simon [20] apontou, os indivíduos assumem sua decisão com base em um conhecimento limitado sobre seu ambiente e, assim, enfrentam altos custos de busca para obter informações necessárias. No entanto, normalmente, eles não podem reunir todas as informações que deveriam. Portanto, os agentes agem com base na racionalidade limitada, o que leva a vieses significativos na maximização da utilidade esperada que eles buscam. Em contraste, Friedman [21] defendeu a abordagem do agente racional, que considera que o comportamento dos agentes pode ser melhor descrito assumindo sua racionalidade, uma vez que os agentes não-racionais não sobrevivem à competição no mercado e são expulsos dele. Portanto, nem os vieses sistemáticos na utilidade esperada, nem a racionalidade limitada podem ser usados ​​para descrever os comportamentos dos agentes e suas expectativas.
Sem qualquer receio de contradição, pode-se dizer que hoje em dia dois modelos principais de referência de expectativas foram amplamente estabelecidos na literatura econômica: o modelo de expectativas adaptativas e o modelo de expectativa racional. Aqui não daremos nenhuma definição formal desses paradigmas. Para os nossos propósitos, é suficiente recordar sua justificativa. O modelo de expectativas adaptativas baseia-se em uma série ponderada de valores retrospectivos (de modo que o valor esperado de uma variável é o resultado da combinação de seus valores passados). Em contraste, o modelo de expectativas racionais hipotetiza que todos os agentes têm acesso a toda a informação disponível e, portanto, sabem exatamente o modelo que descreve o sistema econômico (o valor esperado de uma variável é a previsão objetiva fornecida pela teoria). Essas duas teorias remontam a contribuições muito relevantes, entre as quais apenas nos referimos a Friedman [21], [22], Phelps [23] e Cagan [24] para expectativas adaptativas (vale a pena notar que a noção de “ expectativas adaptativas ”foi introduzido pela primeira vez por Arrow e Nerlove [25]). Para expectativas racionais, nos referimos a Muth [26], Lucas [27] e Sargent-Wallace [28].
Os mercados financeiros são frequentemente tomados como exemplo de dinâmicas complexas e volatilidade perigosa. Isso de alguma forma sugere a ideia de imprevisibilidade. No entanto, devido ao papel relevante desses mercados no sistema econômico, um amplo corpo de literatura foi desenvolvido para obter algumas previsões confiáveis. De fato, a previsão é o ponto chave dos mercados financeiros. Desde Fama [29], dizemos que um mercado é eficiente se ocorrer uma arbitragem perfeita. Isso significa que o caso de ineficiência implica a existência de oportunidades para lucros inexplorados e, é claro, os operadores operariam imediatamente posições longas ou curtas até que qualquer outra possibilidade de lucro desaparecesse. Jensen [30] afirma precisamente que um mercado deve ser considerado eficiente em relação a um conjunto de informações, se for impossível obter lucros por negociação com base nesse conjunto de informações. Isso é consistente com Malkiel [31], que argumenta que um mercado eficiente reflete perfeitamente todas as informações na determinação dos preços dos ativos. Como o leitor pode entender facilmente, a parte mais importante dessa definição de eficiência depende da integridade do conjunto de informações. De fato, Fama [29] distingue três formas de eficiência de mercado, de acordo com o grau de completude do conjunto informativo (ou seja, “fraco”, “semiforte” e “forte”). Assim, traders e analistas financeiros buscam continuamente expandir seu conjunto de informações para obter a oportunidade de escolher a melhor estratégia: esse processo envolve tanto agentes em flutuações de preços que, ao final do dia, pode-se dizer que sua atividade é reduzida a um palpite sistemático. A globalização completa dos mercados financeiros ampliou esse processo e, com o tempo, estamos experimentando décadas de extrema variabilidade e alta volatilidade.
Keynes argumentou, há muitos anos, que a racionalidade dos agentes e da psicologia de massa (os chamados "espíritos animais") não devem ser interpretados como se fossem a mesma coisa. O Autor apresentou o famoso exemplo do concurso de beleza para explicar a lógica subjacente aos mercados financeiros. Em sua Teoria Geral [32] ele escreveu que “o investimento baseado em expectativas genuínas de longo prazo é tão difícil que dificilmente é praticável. Aquele que o tenta certamente deve levar dias muito mais trabalhosos e correr riscos maiores do que aquele que tenta adivinhar melhor do que a multidão como a multidão se comportará; e, dada inteligência igual, ele pode cometer erros mais desastrosos. Em outras palavras, a fim de prever o vencedor do concurso de beleza, deve-se tentar interpretar a beleza preferida do júri, em vez de prestar atenção no ideal da beleza objetiva. Nos mercados financeiros é exatamente a mesma coisa. Parece impossível prever preços de ações sem erros. A razão é que nenhum investidor pode saber de antemão a opinião “do júri”, ou seja, de uma massa de investidores ampla, heterogênea e muito substancial, que reduz qualquer previsão possível a apenas um palpite.
Apesar de considerações como essas, a chamada Hipótese dos Mercados Eficientes (cuja principal fundamentação teórica é a teoria das expectativas racionais), descreve o caso de mercados perfeitamente competitivos e agentes perfeitamente racionais, dotados de toda informação disponível, que escolhem as melhores estratégias ( já que, de outra forma, o mecanismo competitivo de compensação os colocaria fora do mercado). Há evidências de que essa interpretação de um mecanismo de arbitragem perfeito em pleno funcionamento não é adequada para analisar os mercados financeiros, como, por exemplo: Cutler et al. [33], que mostra que grandes movimentos de preços ocorrem mesmo quando pouca ou nenhuma nova informação está disponível; Engle [34], que relatou que a volatilidade dos preços está fortemente correlacionada temporalmente; Mandelbrot [35], [36], Lux [37], Mantegna e Stanley [38], que argumentam que as flutuações de curto prazo dos preços não são normais; ou por último, mas não menos importante, Campbell e Shiller [39], que explicam que os preços podem não refletir com precisão as avaliações racionais.
Muito interessante, uma infinidade de modelos de agentes heterogêneos foram introduzidos no campo da literatura financeira. Nesses modelos, diferentes grupos de comerciantes coexistem, com diferentes expectativas, influenciando-se mutuamente por meio das conseqüências de seus comportamentos. Mais uma vez, nossa discussão não pode ser exaustiva aqui, mas podemos mencionar proveitosamente pelo menos contribuições de Brock [40], [41], Brock e Hommes [42], Chiarella [43], Chiarella e He [44], DeGrauwe e cols. . [45], Frankel e Froot [46], Lux [47], Wang [48] e Zeeman [49].
Parte dessa literatura refere-se à abordagem, denominada “sistemas de crenças adaptativas”, que tenta aplicar a não-linearidade e o ruído aos modelos de mercado financeiro. A incerteza intrínseca sobre fundamentos econômicos, juntamente com erros e heterogeneidade, leva à ideia de que, além do valor fundamental (ou seja, o valor atual descontado dos fluxos esperados de dividendos), os preços das ações flutuam de forma imprevisível devido a fases de otimismo ou pessimismo. para as fases correspondentes de tendência de alta e tendência de baixa que causam crises de mercado. Como esse tipo de comportamento errático pode ser gerenciado para otimizar uma estratégia de investimento? A fim de explicar a atitude muito diferente adotada pelos agentes para escolher estratégias ao negociar nos mercados financeiros, uma distinção é feita entre fundamentalistas e cartistas. Os primeiros baseiam suas expectativas sobre os preços dos ativos futuros sobre os fundamentos do mercado e fatores econômicos (isto é, variáveis ​​micro e macroeconômicas, como dividendos, lucros, crescimento econômico, taxas de desemprego, etc.). Por outro lado, os últimos tentam extrapolar tendências ou características estatisticamente relevantes de séries passadas de dados, a fim de prever os caminhos futuros dos preços dos ativos (também conhecidos como análise técnica).
Dado que a interação destes dois grupos de agentes determina a evolução do mercado, escolhemos aqui focar no comportamento dos grafistas (uma vez que uma análise qualitativa dos fundamentos macroeconômicos é absolutamente subjetiva e difícil de avaliar), tentando avaliar a ex-investidora individual capacidade preditiva - ante. Assumindo a falta de informação completa, a aleatoriedade desempenha um papel fundamental, uma vez que a eficiência é impossível de ser alcançada. Isto é particularmente importante para sublinhar que a nossa abordagem não depende de qualquer forma do paradigma da Hipótese dos Mercados Eficientes acima mencionado. Mais precisamente, estamos buscando a resposta para a seguinte questão: se um trader assumir a falta de informação completa em todo o mercado (isto é, a imprevisibilidade da dinâmica dos preços das ações [50] - [53]), seria estratégia de negociação executar, em média, tão bem como estratégias de negociação bem conhecidas? Passamos da evidência de que, como cada agente depende de um conjunto de informações diferente para construir suas estratégias de negociação, nenhum mecanismo eficiente pode ser invocado. Em vez disso, uma rede complexa de comportamento de auto-influência, devido à circulação assimétrica de informações, desenvolve suas ligações e gera comportamentos de manada para seguir alguns sinais cuja credibilidade é aceita.
Crises financeiras mostram que os mercados financeiros não estão imunes a falhas. Seu sucesso periódico não é gratuito: eventos catastróficos queimam valores enormes em dólares e os sistemas econômicos em grave perigo. Os comerciantes estão tão certos de que estratégias elaboradas se encaixam na dinâmica dos mercados? A nossa simulação simples irá realizar uma análise comparativa do desempenho de diferentes estratégias de negociação: os nossos traders terão que prever, dia a dia, se o mercado irá subir (tendência 'alta') ou para baixo (tendência 'bearish'). As estratégias testadas são: o Momentum, o RSI, o UPD, o MACD e um completamente aleatório.
Os teóricos das expectativas racionais imediatamente apostariam que a estratégia aleatória perderia a concorrência, pois não está fazendo uso de nenhuma informação, mas, como mostraremos, nossos resultados são bastante surpreendentes.
Análise Detectada da Série de Índices.
Consideramos quatro índices muito populares de mercados financeiros e, em particular, analisamos as seguintes séries temporais correspondentes, mostradas na Figura 1:
De cima para baixo, mostramos o índice FTSE UK All-Share, o índice FTSE MIB All-Share, o índice DAX All-Share e o índice S & amp; Índice P 500. Veja o texto para mais detalhes.
Índice FTSE UK All-Share, de 1 de janeiro de 1998 a 3 de agosto de 2012, para um total de T = 3714 dias; Índice FTSE MIB All-Share, de 31 de dezembro de 1997 a 29 de junho de 2012, para um total de T = 3684 dias; Índice DAX All-Share, de 26 de novembro de 1990 a 09 de agosto de 2012, totalizando T = 5493 dias; S & amp; Índice P 500, de 11 de setembro de 1989 a 29 de junho de 2012, totalizando T = 5750 dias;
Em geral, a possibilidade de prever séries temporais financeiras tem sido estimulada pelo achado de algum tipo de comportamento persistente em alguns deles [38], [54], [55]. O principal objetivo da presente seção é investigar a possível presença de correlações nas quatro séries financeiras anteriores do mercado de ações da Europa e dos EUA todos os índices de ações. Neste contexto, calcularemos o expoente de Hurst dependente do tempo usando a técnica de média móvel desviada (DMA) [56]. Vamos começar com um resumo do algoritmo DMA. O procedimento computacional é baseado no cálculo do desvio padrão ao longo de uma determinada série temporal definida como (1) onde é a média calculada em cada janela de tempo de tamanho. Para determinar o expoente de Hurst, a função é calculada para valores crescentes dentro do intervalo, sendo o comprimento da série temporal, e os valores obtidos são reportados como uma função de um gráfico log-log. Em geral, exibe uma dependência da lei de potência com o expoente, ou seja,
(2) Em particular, se, um tem uma correlação negativa ou um comportamento anti-persistente, enquanto se tem uma correlação positiva ou um comportamento persistente. O caso de corresponde a um processo browniano não correlacionado. No nosso caso, como primeiro passo, calculamos o expoente de Hurst considerando a série completa. Esta análise é ilustrada nas quatro parcelas da Fig. 2. Aqui, um ajuste linear aos gráficos log-log revela que todos os valores do índice H de H obtidos desta maneira para as séries temporais estudadas são, em média, muito próximos. para 0,5. Este resultado parece indicar uma ausência de correlações em grandes escalas de tempo e uma consistência com um processo aleatório.
O comportamento da lei de potência do desvio padrão de DMA permite derivar um índice de Hurst que, em todos os quatro casos, oscila em torno de 0,5, indicando uma ausência de correlações, em média, ao longo de grandes períodos de tempo. Veja o texto.
Por outro lado, é interessante calcular o expoente de Hurst localmente no tempo. Para realizar esta análise, consideramos subconjuntos da série completa por meio de janelas deslizantes de tamanho, que se movem ao longo da série com o intervalo de tempo. Isso significa que, a cada vez, calculamos o interior da janela deslizante mudando com a Eq. (1). Assim, seguindo o mesmo procedimento descrito acima, uma sequência de valores de expoente de Hurst é obtida em função do tempo. Na Fig. 3 mostramos os resultados obtidos para os parâmetros,. Neste caso, os valores obtidos para o expoente de Hurst diferem muito localmente de 0,5, indicando assim a presença de correlações locais significativas.
Esta investigação, que está de acordo com o que foi encontrado anteriormente na Ref. [56] para o índice Dax, parece sugerir que as correlações são importantes apenas em uma escala temporal local, enquanto elas cancelam a média em períodos de longo prazo. Como veremos nas próximas seções, esse recurso afetará o desempenho das estratégias de negociação consideradas.
Descrição das Estratégias de Negociação.
No presente estudo, consideramos cinco estratégias de negociação definidas da seguinte forma:
Estratégia Aleatória (RND) Esta estratégia é a mais simples, já que o trader correspondente faz sua previsão no tempo completamente ao acaso (com distribuição uniforme). Momentum (MOM) Strategy Esta estratégia é baseada no chamado indicador de momentum, ou seja, a diferença entre o valor e o valor, onde é um dado intervalo de negociação (em dias). Então, se, o comerciante prevê um incremento do índice de fechamento para o dia seguinte (ou seja, ele prevê isso) e vice-versa. Nas seguintes simulações, consideraremos dias, já que este é um dos mais utilizados para o indicador de momento. Veja ref. [57] Estratégia do Índice de Força Relativa (RSI) Esta estratégia é baseada em um indicador mais complexo chamado "RSI". É considerada uma medida da força de negociação recente da ação e sua definição é:, onde está a relação entre a soma dos retornos positivos e a soma dos retornos negativos ocorridos nos últimos dias anteriores. Uma vez calculado o índice RSI para todos os dias incluídos em uma janela de tempo imediatamente anterior à hora, o trader que segue a estratégia RSI faz sua previsão com base em uma possível reversão da tendência de mercado, revelada pelo a chamada 'divergência' entre a série temporal original e a nova série RSI. Uma divergência pode ser definida referindo-se a uma comparação entre a série de dados original e a série RSI gerada, e é o sinal de negociação mais significativo fornecido por qualquer indicador de estilo do oscilador. É o caso quando a tendência significativa entre dois extremos locais mostrada pela tendência do RSI é orientada na direção oposta à tendência significativa entre dois extremos (no mesmo intervalo de tempo) mostrados pela série original. Quando a linha RSI se inclina de maneira diferente da linha da série original, ocorre uma divergência. Veja o exemplo na Fig. 4: dois máximos locais seguem duas tendências diferentes inclinadas de forma oposta. No caso mostrado, o analista interpretará essa divergência como uma expectativa de alta (já que o oscilador RSI diverge da série original: ela começa a aumentar quando a série original ainda está diminuindo). Em nosso modelo simplificado, a presença de tal divergência se traduz em uma mudança na previsão do sinal, dependendo da tendência de alta ou baixa dos dias anteriores. Nas simulações seguintes, escolheremos dias, uma vez que - mais uma vez - este valor é um dos mais utilizados nas estratégias de negociação reais baseadas no RSI. Veja ref. [57] Estratégia de Up and Down Persistency (UPD) Esta estratégia determinista não vem da análise técnica. No entanto, decidimos considerá-lo porque parece seguir o aparentemente alternativo comportamento alternativo de séries de mercado que qualquer observador pode ver à primeira vista. A estratégia é baseada na seguinte regra muito simples: a previsão para o comportamento do mercado amanhã é exatamente o oposto do que aconteceu no dia anterior. Se, por exemplo, um tiver, a expectativa no momento para o período será de alta: e vice-versa. Estratégia de Divergência de Convergência Média Móvel (MACD) A 'MACD' é uma série construída por meio da diferença entre duas Médias Móveis Exponenciais (EMA, doravante) do preço de mercado, referindo-se a duas janelas de tempo diferentes, uma menor e uma maior. Em qualquer momento t. Em particular, a primeira é a média móvel exponencial de doze dias, enquanto a segunda refere-se a vinte e seis dias. O cálculo desses EMAs em um intervalo de tempo pré-determinado, x, dado um peso de proporcionalidade, é executado pela seguinte fórmula recursiva: com, onde. Uma vez calculada a série MACD, obtém-se a média móvel exponencial de 9 dias e, finalmente, a estratégia de negociação para a previsão dinâmica do mercado pode ser definida: a expectativa para o mercado é de alta (baixa) se (). Veja ref. [57]
Uma divergência é um desacordo entre o indicador (RSI) e o preço subjacente. Por meio de linhas de tendência, o analista verifica se as inclinações de ambas as séries estão de acordo. Quando a divergência ocorre, uma inversão da dinâmica de preços é esperada. No exemplo, um período de alta é esperado.
Resultados de Simulações Baseadas em Empiricamente.
Para cada uma de nossas quatro séries temporais financeiras (em dias), o objetivo era simplesmente prever, dia a dia e para cada estratégia, o movimento ascendente (alta) ou descendente (baixa) do índice em um determinado dia com em relação ao valor de fechamento um dia antes: se a previsão estiver correta, o negociador ganha, caso contrário ele perde. Neste sentido, estamos interessados ​​apenas em avaliar a porcentagem de ganhos obtidos por cada estratégia, assumindo que - a cada passo - os operadores conhecem perfeitamente a história passada dos índices, mas não possuem nenhuma outra informação e não podem exercer nenhuma influência sobre os mesmos. mercado, nem receber qualquer informação sobre movimentos futuros.
A seguir, testamos o desempenho das cinco estratégias dividindo cada uma das quatro séries temporais em uma sequência de janelas de negociação de tamanho igual (em dias) e avaliando a porcentagem média de vitórias para cada estratégia dentro de cada janela enquanto os operadores se movem. ao longo da série dia a dia, de para. Este procedimento, quando aplicado, permite explorar o desempenho das várias estratégias para várias escalas de tempo (variando, de forma aproximada, de meses a anos).
A motivação por trás dessa escolha está ligada ao fato de que a evolução temporal de cada índice alterna claramente entre períodos calmos e voláteis, que em uma resolução mais precisa revelaria uma alternância mais autosemelhante de comportamento intermitente e regular em escalas de tempo menores. uma característica dos mercados financeiros turbulentos [35], [36], [38], [58]. Tal característica torna qualquer previsão a longo prazo de seu comportamento muito difícil ou mesmo impossível com instrumentos de análise financeira padrão. The point is that, due to the presence of correlations over small temporal scales (as confirmed by the analysis of the time dependent Hurst exponent in Fig. 3), one might expect that a given standard trading strategy, based on the past history of the indexes, could perform better than the others inside a given time window. But this could depend much more on chance than on the real effectiveness of the adopted algorithm. On the other hand, if on a very large temporal scale the financial market time evolution is an uncorrelated Brownian process (as indicated by the average Hurst exponent, which result to be around for all the financial time series considered), one might also expect that the performance of the standard trading strategies on a large time scale becomes comparable to random ones. In fact, this is exactly what we found as explained in the following.
In Figs. 5–8, we report the results of our simulations for the four stock indexes considered (FTSE-UK, FTSE-MIB, DAX, S & P 500). In each figure, from top to bottom, we plot: the market time series as a function of time; the correspondent ‘returns’ series, determined as the ratio ; the volatility of the returns, i. e. the variance of the previous series, calculated inside each window for increasing values of the trading window size (equal to, from left to right, , , and respectively); the average percentage of wins for the five trading strategies considered, calculated for the same four kinds of windows (the average is performed over all the windows in each configuration, considering different simulation runs inside each window); the corresponding standard deviations for the wins of the five strategies.
From top to bottom, we report the index time series, the corresponding returns time series, the volatility, the percentages of wins for the five strategies over all the windows and the corresponding standard deviations. The last two quantities are averaged over 10 different runs (events) inside each window.
From top to bottom, we report the index time series, the corresponding returns time series, the volatility, the percentages of wins for the five strategies over all the windows and the corresponding standard deviations. The last two quantities are averaged over 10 different runs (events) inside each window.
From top to bottom, we report the index time series, the corresponding returns time series, the volatility, the percentages of wins for the five strategies over all the windows and the corresponding standard deviations. The last two quantities are averaged over 10 different runs (events) inside each window.
From top to bottom, we report the index time series, the corresponding returns time series, the volatility, the percentages of wins for the five strategies over all the windows and the corresponding standard deviations. The last two quantities are averaged over 10 different runs (events) inside each window.
Observing the last two panels in each figure, two main results are evident:
The average percentages of wins for the five strategies are always comparable and oscillate around , with small random differences which depend on the financial index considered. The performance of of wins for all the strategies may seem paradoxical, but it depends on the averaging procedure over all the windows along each time series. In Fig. 9 we show, for comparison, the behavior of the various strategies for the four financial indexes considered and for the case (the score in each window is averaged over different events): as one can see, within a given trading window each single strategy may randomly perform much better or worse than , but on average the global performance of the different strategies is very similar. Moreover, referring again to Figs. 5–8, it is worth to notice that the strategy with the highest average percentage of wins (for most of the windows configurations) changes from one index to another one: for FTSE-UK, the MOM strategy seems to have a little advantage; for FTSE-MIB, the UPD seems to be the best one; for DAX, the RSI, and for the S & P 500, the UPD performs slightly better than the others. In any case the advantage of a strategy seems purely coincidental. The second important result is that the fluctuations of the random strategy are always smaller than those of the other strategies (as it is also visible in Fig. 9 for the case ): this means that the random strategy is less risky than the considered standard trading strategies, while the average performance is almost identical. This implies that, when attempting to optimize the performance, standard traders are fooled by the “illusion of control” phenomenon [11], [12], reinforced by a lucky sequence of wins in a given time window. However, the first big loss may drive them out of the market. On the other hand, the effectiveness of random strategies can be probably related to the turbulent and erratic character of the financial markets: it is true that a random trader is likely to win less in a given time window, but he/she is likely also to loose less. Therefore his/her strategy implies less risk, as he/she has a lower probability to be thrown out of the game.
As visible, the performances of the strategies can be very different one from the others inside a single time window, but averaging over the whole series these differences tend to disappear and one recovers the common outcome shown in the previous figures.
Conclusions and Policy Implications.
In this paper we have explored the role of random strategies in financial systems from a micro-economic point of view. In particular, we simulated the performance of five trading strategies, including a completely random one, applied to four very popular financial markets indexes, in order to compare their predictive capacity. Our main result, which is independent of the market considered, is that standard trading strategies and their algorithms, based on the past history of the time series, although have occasionally the chance to be successful inside small temporal windows, on a large temporal scale perform on average not better than the purely random strategy, which, on the other hand, is also much less volatile. In this respect, for the individual trader, a purely random strategy represents a costless alternative to expensive professional financial consulting, being at the same time also much less risky, if compared to the other trading strategies.
This result, obtained at a micro-level, could have many implications for real markets also at the macro-level, where other important phenomena, like herding, asymmetric information, rational bubbles occur. In fact, one might expect that a widespread adoption of a random approach for financial transactions would result in a more stable market with lower volatility. In this connection, random strategies could play the role of reducing herding behavior over the whole market since, if agents knew that financial transactions do not necessarily carry an information role, bandwagon effects could probably fade. On the other hand, as recently suggested by one of us [59], if the policy-maker (Central Banks) intervened by randomly buying and selling financial assets, two results could be simultaneously obtained. From an individual point of view, agents would suffer less for asymmetric or insider information, due to the consciousness of a “fog of uncertainty” created by the random investments. From a systemic point of view, again the herding behavior would be consequently reduced and eventual bubbles would burst when they are still small and are less dangerous; thus, the entire financial system would be less prone to the speculative behavior of credible “guru” traders, as explained also in [60]. Of course, this has to be explored in detail as well as the feedback effect of a global reaction of the market to the application of these actions. This topic is however beyond the goal of the present paper and it will be investigated in a future work.
Agradecimentos
We thank H. Trummer for DAX historical series and the other institutions for the respective data sets.
Author Contributions.
Conceived and designed the experiments: AEB AP AR DH. Performed the experiments: AEB AP AR. Analyzed the data: AEB AP AR. Wrote the paper: AEB AP AR DH.
Referências.
1. Kirkpatrick S, Gelatt CD, Vecchi MP (1983) Optimization by Simulated Annealing. Science 220: 671–680. View Article PubMed/NCBI Google Scholar 2. Benzi R, Parisi G, Sutera A, Vulpiani A (1982) Stochastic resonance in climatic change. Tellus 34: 10–16. View Article PubMed/NCBI Google Scholar 3. Gammaitoni L, Hanggi P, Jung P, Marchesoni F (1989) Stochastic Resonance. Reviews of Modern Physics, 70 (1): 223–287. View Article PubMed/NCBI Google Scholar 4. Mantegna R, Spagnolo B (1996) Noise enhanced stability in an unstable system. Phys. Rev. Lett. 76: 563–566. View Article PubMed/NCBI Google Scholar 5. Caruso F, Huelga SF, Plenio MB (2010) Noise-Enhanced Classical and Quantum Capacities in Communication Networks. Phys. Rev. Lett. 105(198): 190501. View Article PubMed/NCBI Google Scholar 6. Van den Broeck C, Parrondo JMR, Toral R (1994) Noise-Induced Non-equilibrium Phase Transition. Physical Review Letters 73: 3395. View Article PubMed/NCBI Google Scholar 7. Peter LJ, Hull R (1969) The Peter Principle: Why Things Always Go Wrong. New York: William Morrow and Company. 8. Pluchino A, Rapisarda A, Garofalo C (2010) The Peter Principle revisited: a computational study. Physica A 389: 467–472 Available: oldweb. ct. infn. it/cactus/peter-links. html. View Article PubMed/NCBI Google Scholar 9. Pluchino A, Rapisarda A, Garofalo C (2011) Efficient promotion strategies in hierarchical organizations. Physica A 390: 3496–3511. View Article PubMed/NCBI Google Scholar 10. Pluchino A, Rapisarda A, Garofalo C, Spagano S, Caserta M (2011) Accidental Politicians: How Randomly Selected Legislators Can improve Parliament Efficiency. Physica A, 2011 390: 3944–3954 Available: pluchino. it/Parliament. html. View Article PubMed/NCBI Google Scholar 11. Satinover JB, Sornette D (2007) ‘Illusion of control’ in Time-Horizon Minority and Parrondo Games. EUR. Phys. J. B 60: 369–384. View Article PubMed/NCBI Google Scholar 12. Satinover JB, Sornette D (2009) Illusory versus Genuine Control in Agent-Based Games. EUR. Phys. J. B. 67: 357–367. View Article PubMed/NCBI Google Scholar 13. Gilles D, Sornette D, Woehrmann P (2009) Look-Ahead Benchmark Bias in Portfolio Performance Evaluation. Journal of Portfolio Management 36(1): 121–130. View Article PubMed/NCBI Google Scholar 14. Farmer JD, Patelli P, Zovko II (2005) The predictive power of zero intelligence in financial markets, PNAS. 102: 2254–2259. View Article PubMed/NCBI Google Scholar 15. Taleb NN (2005) Fooled by Randomness: The Hidden Role of Chance in the Markets and in Life. New York: Random House. 16. Taleb NN (2007) The Black Swan: The Impact of the Highly Improbable. New York: Random House. 17. Biondo AE, Pluchino A, Rapisarda A (2013) The Beneficial Role of Random Strategies in Social and Financial Systems. Journal of Statistical Physics 151: 607–622 View Article PubMed/NCBI Google Scholar 18. Wiseman R (2007) Quirkology. London: Macmillan. 19. Porter GE (2004) The long term value of analysts advice in the Wall Street Journals investment dartboard contest. J. Appl. Finance 14: 720. View Article PubMed/NCBI Google Scholar 20. Simon HA (1957) Models of Man. New York: Wiley. 21. Friedman M (1956) A Theory of the Consumption Function. Princeton, NJ: Princeton University Press. 22. Friedman M (1968) The Role of Monetary Policy. The American Economic Review 58(1): 1–17. View Article PubMed/NCBI Google Scholar 23. Phelps E (1967) Phillips Curve Expectations of Ination, and Output Unemployment Over Time. Economica 34(135): 254–281. View Article PubMed/NCBI Google Scholar 24. Cagan P (1956) The Monetary Dynamics of Hyperination. In Friedman M, editor. Studies in the Quantity Theory of Money. Chicago: University of Chicago Press. 25. Arrow KJ, Nerlove M (1958) A Note on Expectations and Stability. Econometrica 26: 297–305. View Article PubMed/NCBI Google Scholar 26. Muth JF (1961) Rational Expectation and the Theory of Price Movements. Econometrica 29: 315–335. View Article PubMed/NCBI Google Scholar 27. Lucas RE (1972) Expectations and the Neutrality of Money. Journal of Economic Theory 4: 103–124. View Article PubMed/NCBI Google Scholar 28. Sargent TJ, Wallace N (1975) Rational Expectations, the Optimal Monetary Instrument, and the Optimal Money Supply Rule. Journal of Political Economy 83(2): 241–254. View Article PubMed/NCBI Google Scholar 29. Fama EF (1970) Efficient Capital Markets: a Review of Theory and Empirical Work. Journal of Finance 25: 383–423. View Article PubMed/NCBI Google Scholar 30. Jensen M (1978) Some anomalous evidence regarding market efficiency. Journal of Financial Economics 6: 95–101. View Article PubMed/NCBI Google Scholar 31. Malkiel B (1992) Efficient market hypothesis. New Palgrave Dictionary of Money and Finance. London: Macmillan. 32. Keynes JM (1936) The General Theory of Unemployment, Interest, and Money. London: Macmillan. 157 p. 33. Cutler DM, Poterba JM, Summers LH (1989) What moves stock prices? Journal of Portfolio Management 15(3): 4–12. View Article PubMed/NCBI Google Scholar 34. Engle R (1982) Autoregressive conditional heteroscedasticity with estimates of the variance of UK ination, Econometrica. 50: 987–1008. View Article PubMed/NCBI Google Scholar 35. Mandelbrot BB (1963) The variation of certain speculative prices. Journal of Business 36: 394–419. View Article PubMed/NCBI Google Scholar 36. Mandelbrot BB (1997) Fractals and Scaling in Finance. New York: Springer. 37. Lux T (1996) The stable Paretian hypothesis and the frequency of large returns: an examination of major German stocks. Applied Financial Economics 6: 463–475. View Article PubMed/NCBI Google Scholar 38. Mantegna RN, Stanley HE (1996) Introduction to Econophysics: Correlations and Complexity in Finance. Cambridge: Cambridge University Press. 39. Campbell JY, Shiller R (1998) The Dividend-Price Ratio and Expectations of Future Dividends and Discount Factors. Review of Financial Studies 1: 195–227. View Article PubMed/NCBI Google Scholar 40. Brock WA (1993) Pathways to Randomness in the Economy: Emergent Non-Linearity and Chaos in Economics and Finance. Estudios Económicos 8: 3–55. View Article PubMed/NCBI Google Scholar 41. Brock WA (1997) Asset Prices Behavior in Complex Environments. In: Arthur WB, Durlauf SN, Lane DA, editors. The Economy as an Evolving Complex System II. Reading, MA: Addison-Wesley. 385–423 p. 42. Brock WA, Hommes CH (1997) A Rational Route to Randomness. Econometrica 65: 1059–1095. View Article PubMed/NCBI Google Scholar 43. Chiarella C (1992) The Dinamics of Speculative Behavior. Annals of Operations Research 37: 101–123. View Article PubMed/NCBI Google Scholar 44. Chiarella C, He T (2002) Heterogeneous Beliefs, Risk and Learning in a Simple Asset Pricing Model. Computational Economics - Special issue: Evolutionary processes in economics 19(1): 95–132. View Article PubMed/NCBI Google Scholar 45. DeGrauwe P, DeWachter H, Embrechts M, (1993) Exchange Rate Theory. Chaotic Models of Foreign Exchange Markets. Blackwell. 46. Frankel JA, Froot KA (1988) Chartists, Fundamentalists and the Demand for Dollars. Greek Economic Review 10: 49–102. View Article PubMed/NCBI Google Scholar 47. Lux T (1995) Herd Behavior, Bubbles and Crashes. The Economic Journal 105: 881–896. View Article PubMed/NCBI Google Scholar 48. Wang J (1994) A Model of Competitive Stock Trading Volume. Journal of Political Economy 102: 127–168. View Article PubMed/NCBI Google Scholar 49. Zeeman EC (1974) The Unstable Behavior of Stock Exchange. Journal of Mathematical Economics 1: 39–49. View Article PubMed/NCBI Google Scholar 50. Black F, Scholes M (1973) The Valuation of Options and Corporate Liabilities, Journal of Political Economy. 81: 637–654. View Article PubMed/NCBI Google Scholar 51. Merton RC (1973) Theory of Rational Option Pricing. Bell Journal of Economics and Management Science 4: 141–183. View Article PubMed/NCBI Google Scholar 52. Cox JC, Ingersoll JE, Ross SA (1985) A Theory of the Term Structure of Interest Rates, Econometrica. 53: 385–408. View Article PubMed/NCBI Google Scholar 53. Hull JC, White A (1987) The Pricing of Options on Assets with Stochastic Volatilities. Journal of Finance 42: 281–300. View Article PubMed/NCBI Google Scholar 54. Gabaix X, Gopikrishnan P, Plerou V, Stanley HE (2003) A theory of power-law distributions in financial market uctuations. Nature 423: 267–72. View Article PubMed/NCBI Google Scholar 55. Livan G, Inoue J, Scalas E (2012) On the non-stationarity of financial time series: impact on optimal portfolio selection. Journal of Statistical Mechanics. doi:10.1088/1742-5468/2012/07/P07025. 56. Carbone A, Castelli G, Stanley HE (2004) Time dependent Hurst exponent in financial time series. Physica A 344: 267–271. View Article PubMed/NCBI Google Scholar 57. Murphy JJ (1999) Technical Analysis of the Financial Markets: A Comprehensive Guide to Trading Methods and Applications. Instituto de Finanças de Nova York. 58. Krawiecki A, Holyst JA, Helbing D (2002) Volatility clustering and scaling for financial time series due to attractor bubbling. Physical Review Letters 89, 158701. 59. Helbing D, Christen M (2011) Physics for Financial Markets. Available: tinyurl/d3j5bgs. 60. Tedeschi G, Iori G, Gallegati M (2012) Herding effects in order driven markets: The rise and fall of gurus. Journal of Economic Behavior & Organization 81: 82–96 View Article PubMed/NCBI Google Scholar.
Subject Areas.
For more information about PLOS Subject Areas, click here.
We want your feedback. Do these Subject Areas make sense for this article? Click the target next to the incorrect Subject Area and let us know. Obrigado pela ajuda!
Is the Subject Area "Financial markets" applicable to this article? Sim não.
Obrigado pelo seu feedback!
Is the Subject Area "Finance" applicable to this article? Sim não.
Obrigado pelo seu feedback!
Is the Subject Area "Economic agents" applicable to this article? Sim não.
Obrigado pelo seu feedback!
Is the Subject Area "Economics" applicable to this article? Sim não.
Obrigado pelo seu feedback!
Is the Subject Area "Analysts" applicable to this article? Sim não.
Obrigado pelo seu feedback!
Is the Subject Area "Behavior" applicable to this article? Sim não.
Obrigado pelo seu feedback!
Is the Subject Area "Marketing" applicable to this article? Sim não.
Obrigado pelo seu feedback!
Is the Subject Area "Resource management (economics)" applicable to this article? Sim não.
Obrigado pelo seu feedback!
Archived Tweets.
PLOS is a nonprofit 501(c)(3) corporation, #C2354500, and is based in San Francisco, California, US.

The Essentials of Trading.
Information and resources to learn about trading and the markets.
Looking at Random Trading.
Every once in a while, the topic of random trading comes up. Normally, it’s part of a discussion about whether you could go long or short based on a coin toss and trade profitably because of a good exit and money management strategy. Let’s take a look and see if there’s any truth to that assertion by running some tests on EUR/USD daily data going back to when the euro was launched in 1999.
As a base line, I’m going to start with a totally random system – one which uses a coin toss to get into a trade and a coin toss as to whether to exit an existing position. As regras são muito simples. Start with the coin toss to figure out long/short at the end of the first day’s trading. At the end of Day 2, we do a coin toss to see if we’re going to stay in the position we put on Day 1, or close it out. If we stay, we do the coin toss again the next day. If we exit, we start the process over at the end of that next day (so if we exit on Day 2, we do a coin toss as to whether to get long or short at the end of Day 3).
I ran 1000 tests on the data set to get enough information to make a reasonable conclusion. The results were pretty predictable. On average, the test resulted in a 26 pip loss, which is basically the same as being flat over more than 10 years of data. The standard deviation was 3668 pips, giving you an idea of how wide the distribution of results was over the 1000 test sample.
The totally random system didn’t cut it, so let’s look at a random entry system that has a non-random set of rules for exit. I used the same coin toss entry as noted above, but for the exit I tested a reverse break approach. Specifically, the rule was that longs would be exited if the current day’s close was lower than the close from N days prior, and shorts would be exited on a close higher than the one from N days prior. I tested a range of look-back periods of 1 to 10 days. Here’s what it produced.
What the chart shows is the average result (the tick on the bar) and the range containing results one standard deviation above and below the average. So in the first bar we’re looking at an exit strategy which says get out of a position if today’s close is lower/higher (if we’re long/short) than yesterday’s. The average outcome was a loss of 3602 pips, with a standard deviation of 1846 pips. That means the 1-day test was a losing one in all or nearly all cases, and by a pretty sizable amount, generally speaking.
It is clear from this data that a random entry system can be profitable, though. We need look no further than the middle of the chart to see the performance of the longer look-back periods. The 6-day look-back provided the best result with a 5446 pip average gain and a 1236 pip standard deviation. Eyeballing the 1000 sample test results, I don’t see any negatives among them.
Maybe we’re looking at things backwards.
Looking at these numbers, it’s hard not to think that maybe traders need to look at things the opposite way around from how they usually do – to think about exit first, rather than the entry. OK, I’m not really suggesting that we all just start trading random entry systems, but it certainly does provide fodder for further testing and analysis. We can use random entries to test the performance of different exit strategies. One caveat there, though. You have to make sure when you do something like that that you’re getting the same entries for each different exit approach, otherwise the results won’t be comparable.

Random entry trading strategy


A while ago, I used a quote from Winton manager and trend Follower David Harding (found in this interview) saying:
If you put in stops and run your profits and trade randomly you make money; and if you put in targets and no stops, and you trade randomly you lose money. So the old saw about cutting losses and running profits has some truth to it.
The quote was used to illustrate a post stating that a large driver of Trend Following returns is based on the mechanics of those systems (“ cut your losses short, let your winners run “) which therefore benefit from the right tail of market return distributions – which are “fatter” than the usually assumed normal distribution – and avoid the left tail.
“Trade randomly” ? Like the proverbial dart-throwing monkey ? It seems so…
In effect, Harding is saying that entry points do not matter so much: a random entry coupled with a smart exit strategy would make money.
Random Trading To the Test.
I once met with a fund manager, who described his strategy as very similar to that random system in the Harding quote. What was really important to them was the position sizing for each new signal, as well as the exit strategy. The entry signal direction was “irrelevant” .
I found this puzzling at the time and have been wanting to test this idea since then, to verify whether a “random trading” system could indeed be profitable.
The system tested here is composed of random entries with additional “classic” components: a volatility-based fixed fractional money management and volatility-based trailing stop exits.
The system first “tosses a coin” to decide whether to go long or short the market. An initial stop is set below/above the entry price at a distance equal to a fixed multiple of the volatility measure. That entry-stop distance is used to calculate the position size, so that the risk per trade (amount lost if trade gets stopped out) is equal to the fixed percentage of account equity. Every day, the trailing stop is adjused so that it is never further than the fixed multiple of the volatility measure. The stop always gets closer to the market and never gets adjusted further away from the market (i. e. if the market turns back toward the stop, the stop level does not change). When the position hits the trailing stop level, it gets closed and a new position is open. The direction of that new position is again determined by a new coin-toss.
Test Parameters and Results.
For this test, I used fairly standard parameter values:
Volatility Measure: 39-day (exponential) ATR Stop Distance: 2 ATR Risk per Trade: 1% of Account Equity.
The portfolio used for this test is a subset of the one used in the State of Trend Following report, basically all those instruments that I have data for going back to the start of the test: in January 1990 (click for the exact list).
Since this is a random experiment, I generated multiple test outputs (200), all based on the same parameters, and averaged their monthly returns to create a composite equity curve, which performance summary statistics can be seen below:
The 2-ATR stop level is somehow an arbitrary choice and I wanted to check whether this bore an impact on the test results.
I ran a further test, stepping the ATR-multiple for stop calculation from 2 to 10. Each ATR-multiple set was run 200 times again and averaged to give a composite equity curve.
Normalizing these 9 composite equity curves (for equal monthly standard deviation) and averaging them produced a “super-composite” equity curve composed of 2000 random tests (equally split between ATR-multiples ranging from 2 to 10).
The performance summary statistics of this “super-random-composite” equity curve are below:
Note how the diversification and rebalancing over several ATR-multiple stop levels have a substantial impact on the Max Drawdown and volatility.
Both equity curves are charted below:
All in all, not too bad for “monkey-style” negociação! It goes to show that signal entries, which most beginning traders/system developers focus so much on, are not so important after all…
Update: follow-up post tackling other aspects of randomness in trading systems and clarifying subjects such as averaging and commissions/slippage: Further Musings on Randomness.
Credits/Additional Reading : The concept of random entries with trailing stops has actually been discussed before. It seems like it was introduced by Van Tharp in his Trade your Way to Financial Freedom book, and mentioned on this article by Chuck Le Beau, where he expands on the concept of “Chandelier Exit” (name for volatility-based trailing stops).
Thanks and credits also to user “sluggo” on the Trading Blox forum, who published a similar study four years ago, and some code which I reused most of for this study. Note that his study found an opposite result, showing a turn in profitability (downwards) of random systems after 1997 (portfolio and parameter values are different though), so you might want to run your own test to verify this concept for yourself…
43 Comments so far ↓
Ótimo post. Obrigado pelo seu esforço.
Uma questão. Is the ATR value used for the trailing stop fixed at the time of entry or updated while the position is open?
docdan – The ATR value is re-calculated every day.
Excellent post as usual. I get exactly the same feeling about entries, they explain a very small part of a TF system profitability. I think that trading with the trend is more than enough. I understood that when I read Mandelbrot.
Exits, position sizing and (most importantly) learning to deal with DD is what counts. I have had the pleasure to speak with a few of the Market Wizards, they have given me some very useful advice….absolute none about entries though. It is also curious to know that in the seminars I have attended, entries are among the first and most asked questions.
Indeed great post as usual. I came to the same conclusion during one of my back testing analysis. I fixed the entry point and tested several exit strategies. Then I fixed the exit strategy; and tested several entry points.
The excellent exit strategy will always result into a profitable system. Unlike poor exit; it will mostly destroy any entry point strategy.
By the way; MFE and the MAE are a very good tool to find/modify the system stop or exit point.
What were the parameters for trailing stop? Thanx
Thanks for the post. Did your system consider pyramiding entries ? That might change results a bit though I guess the overall takeaway will remain the same.
This is interesting but not enough information is provided to come to a conclusion. I would like that you kindly provide the following:
(2) commission rate.
(3) Buy&hold performance for the combined set.
I highly doubt it that after inclusion of commission and slippage this system can beat buy & aguarde.
I can’t fully agree exit is more important than entry. Take simple channel breakout for example. If you fix the breakout days, and change exit days to 15 days, 20 days, or 30 days, you will see the performance difference is not that dramatic. But if you change the breakout days from 20 days, 50 days, 100 days, and fix the exit days, you will see huge performance difference. Your article only show random entry can have profit. But it can’t show exit is more important than entry. In my opinion, if want to design an excellent system, the entry is the key, just use simple 20-days low as exit and some exit filter (high volatility exit), this simple exit is better than ATR trailing stop most of the time at least from my testing because it does a better job to make profit fly.
@Mirec – trailing stops are based on 2-ATR for the first study and a range of 2 to 10 ATR for the composite curve.
I did not compute the exact Win rate as I only output the equity curves, due to the high number of tests and trades. However, I just re-ran a dozen random tests and all of them show a Win rate of roughly 36% – quite typical of a Trend Following (obviously the Win/Loss ratio is > 1).
Simulation was friction-less (no commission, no slippage)
Not sure if Buy-and-Hold is the best benchmark for this strategy since it goes both long and short, but it would be worth the comparison. I’ll try and see what I can come up with.
@Jing, Agree that entries are not completely irrelevant. The goal of the post was not to show that exits were more or less important than entries. It was merely to illustrate Harding’s argument with a test, and yes, it seems random entries can be profitable when adding stops and no profit targets…
But I do not think that entries are “the key”. As Pretorian was saying, not many Market Wizards give advice regarding entries, but rather on position sizing and money management, which – to me – also includes letting profits run (as your 20-day exit would).
Yes, I fully agree position sizing, money management and make profit fly is more important because these concept is the most “robust”. For entries, you can optimize it to fit historical curve, but no one can guarantee this entry will work excellent in future, so excellent entry may be susceptible to curve fitting. But position sizing, money management and make profit fly are more robust and universal, not matter how markets change, these concepts are very robust. After 20 years, a previous excellent entry rule may not work well but money management and make profit fly always work.
I ran a quick test with simple Buy-and-Hold of the same 22 instruments.
I normalized the results with the curves in the post for equal monthly returns standard deviation and the CAGR is 5.29% with a MaxDD of 80.34%.
Of course the comparison is not 100% realistic as the strategies in the post are tested without friction (whereas a real-life strategy like this would be subject to commissions and slippage unlike a simple Buy and Hold).
One more question. So actually you have just one stop? (the initial stoploss is the same as the trailing stop?).
Isnt the standart ATR 14 days not 39?
Is it so difficult to include commissions in your test? If you can backtest, it should be easy to include a fixed commission rate. Most backtesters have the option already, no need to do anything.
There is no way for us to know how realistic are these tests unless there is commission included.
How many trades were there on the average per run?
Totally agree that the money management is the key….It is funny concept but indeed the money management is the CEO of multiple trading system. So let’s make sure the best CEO is always on our side ;)
But going back to entries and exit strategies. In the post; random entry represented multiple entry strategies (Note that different strategies not changing only parameters) while fixing the exit point. And indeed the result was a profitable system.
Now let’s consider the other way around; testing fixed entry (even basket of proven entry point’s strategies like in the state of trend following report) and work out random exit strategies. Meaning selling or holding randomly! The system will just result into losses for sure, which confirms the point of this post.
Trend following is based on the concept of letting profit run and cutting losses short; and the only way to do that is by controlling the exit not the entry!
But definitely; I would give importance to both entry and exit (in live trading) to give me as much as possible of positive mathematically expectancy. And then design a money management system that can give me as much as possible of geometric mean of return.
I hope everything is fine with your website now.
Your analysis is impressive but it only tells the average performance of “monkey style” trading for a large number of instruments. It does not tell what the percentage of traders is who will underperform this average and more importantly the percentage of those who will fail. This is because, what you calculated is not the performance of a specific system but an average of many systems trading many futures contracts.
I have seen similar discussions in several forums recently and I have prepared an analysis to illustrate the issues involved:
Apart from a few teething issues, website seems to be running fine now – obrigado.
@Mirec: 14-day is a standard value indeed. Note that the exponential moving average smoothing constant in Trading Blox is calculated in a different way from the more specific Wilder ATR moving average such that:
TB/classic EMA Days = (Wilder Days x 2) – 1
Wilder Days = (Normal EMA Days + 1) / 2.
So, a 39-day TB ATR is equal to a 20-day Wilder ATR, which is a fairly standard value also.
@Rick: not difficult at all to include friction costs (with Trading Blox anyway). This (omission) is actually a choice to avoid making assumptions on commissions and slippage amounts, which is variable for every trader based on size, broker, market, etc. (and which can definitely have a non-negligible impact as previously discussed in here and here).
So, I usually prefer to leave this out of the equation (at the risk of making the “raw” results less realistic) and let the readers interpret the results based on their friction costs assumptions. I agree that not much information was provided to do this, though. Number of trades and round-turns per million would be a good starter and I’ll check these for the test above.
For this specific study though, I simply wanted to test whether random entries + money management with volatility-based sizing and trailing stops could exhibit a positive tendency (which they do), as opposed to a fully random system, which should exhibit random results (i. e. neutral tendency of it goes long as frequently as it goes short). This does not mean that the system is profitable/tradeable in real-life though.
I was actually thinking of writing a follow-up post that will address some of these issues. Stay tuned…
@Ali, random exits, I’ll probably test in the follow-up post.
@Michael: I purposely ran many tests to calculate an average to detect the tendency of such systems. The performance of an individual system/trader is not statistically representative of the underlying process at play. Same concept goes for the use of multiple instruments – as I was saying in a diversification post:
Every trade/instrument can be seen as a particle composed of a (large) random element and a smaller edge that we try to extract via a mechanical system.
This is the way I see diversification: by adding a large number of mostly random elements, you can ensure that random moves have some cancelling effect on each other. All that is left is to collect the small edge from all the instruments via your preferred trading strategy(ies).
I do think that entries have their importance in system design but I would tend to believe – As David Harding does – that they have less impact on overall system returns, in the context of Trend Following systems at least – something I’ll try to test out in a follow-up post.
Hi Jez, excellent post. Obrigado por postar.
Since you posted the average returns of the multiple tests in both cases, I was wondering if you could give some numbers on what were the worst cases, and best cases, or a chart with all the various performances of each run, for each case, in order to see how consistent is the return over time with a single test and an average. Alternatively, just to understand what is the worst and best drawdown and returns you found in your tests would be also useful.
Obrigado novamente por seu trabalho!
“I do think that entries have their importance in system design but I would tend to believe – As David Harding does – that they have less impact on overall system returns, in the context of Trend Following systems at least – something I’ll try to test out in a follow-up post.”
This is a very interesting statement but it needs to be proven, I think you have already agreed to that. My point is that, IMO of course, this cannot be proved by diversification and/or random entries because these are “many systems methods” and performance results are averages.
I also think, as others have already commented, that you should include commissions in your studies. You can use IB commission levels as representative. This is important because as I have demonstrated recently in a response to an article by Bespoke Group about the performance of a simple system based on buying on the close – selling on the open of next day, for SPY, total ruin is possible due to commissions only, although studies without commissions show spectacular returns. You can find the study here: bit. ly/ib69sQ.
I am looking forward to more of your tests regarding trend-following entries.
I do not understand your point about averaging. To me, averaging a random process is absolutely necessary to squeeze out the randomness and detect the central tendency (and other aspects such as dispersion, etc.).
Without averaging many random runs, but instead relying on one random run, there is no way to understand how much randomness played a part in the results achieved, just by looking at the results.
This is why I think it is vital to average when running random tests.
If you think about it, this is exactly the same concept as when you run a test of a strategy on one single instrument: you still want to generate many trades for that market-system in order to detect a tendency and not be mis-led by the (mostly random) outcome of one trade only. A back-test on many trades will allow to determine the tendency of that market-system.
I do not see the difference with running many back-tests and averaging their results to detect the tendency of the strategy, ie instead of “averaging” the partly-random outcomes of many trades on one instrument, I “average” the partly-random outcomes of many systems (which happen to be trading multiple instruments because this is the style of trading I want to test – but I do not see how this impacts the overall concept of “averaging a large number of random test”).
I didn’t say that averaging is not useful. I just said it may be misleading in some context. Eu vou dar um exemplo:
Let us say that in a possible parallel universe there are only 4 fund managers with the following average yearly returns:
What is the meaning of saying that the average yearly return of managers in that world is 3.5%? Even if we state the standard deviation of 11.03?
A more informative statement would be to say that 75% of advisors, or 1 out of 4 have failed.
Now as far as my specific comment maybe you didn’t read my blog ( bit. ly/goBvuF).
Along with the good tests you did I believe you should also calculate the number of systems that fail on the average because when you use random entries, you get many possible systems based on the tossing sequences obtained. Should we assume that the returns are normally distributed? I have not seen such study. What about if the distribution is skewed and a large percentage of those systems fail? Maybe systems that were lucky enough to have the right tossing sequence were profitable. That depends on the size of trades and of stop-losses.
I do not know the answers. This is why I asked. I did not question the use of averages and standard deviations. I question the shape of the distribution of the returns of the many possible systems the tossing a coin generate for the specific data you used.
The same burst of activity at the Trading Blox Forum 4 years ago, which created the code you ran for this blog entry, actually tested THREE hypotheses:
H1 (Random entries) + (trailing stop exits) are profitable, even after $100/contract slippage and commission are charged.
H2. (Trend following entries) + (random exits) are profitable after C&S are charged.
H3. (random entry timing) + (random exit timing) but not random direction-of-trade, is profitable after C&S. On randomly chosen entry date, enter in the direction of a classical trend detection indicator such as MACD etc. Then exit at a random exit date. This is profitable.
All three of them were found profitable, even with $100/contract C&S, when the trend following parameters / trailing stop parameters are set to very long term trading, and the stop widths are commensurately wide.
These three test results suggest some conclusions:
C1 “Good entries” are not required for profitability.
C2. “Good exits” are not required for profitability.
C3. Neither “good entries” nor “good exits” are required for profitability.
By the way, some of the charts of these results on the Blox Forum are awesome! bit. ly/i5LTNH ; bit. ly/dLMD2y.
In the first link you gave only the exists are random. The entries are rule-based.
In the second link, they are talking about a trade direction filter.
Unless I missed something, there are no cases of random entry.
None of your 4 conclusions appear to be derivatives of those links.
@Pumpernickel: Thanks for the pointer on these TB threads. Seems I only caught the first instalment of what became a “randomness mini-series” on the TB forum (I had not seen these additional 2 posts, only an earlier one, which I linked to in the Credits section of the post, and where only random entries where discussed.
Shame I did not find it earlier though, as the number of comments and questions on this post pushed me to prepare a follow-up post with more random logic testing, and that study/code could have been useful to look at/reuse the code. Well, the code for these other random systems was not too difficult to write and it is good in a way though, as this additional testing will not have been impacted by the hindsight knowledge of the results from my predecessors.
My next tests are also slightly different (#1: random entries and profit targets, #2: random entries (direction) and random exits, #3: MA cross-over entries and random exits, #4: MA cross-over entries and target profits), so hopefully they will complement the findings on these TB threads.
The one that seems to overlap is MA entries with random exits, but in my test the return is so small compared to the volatility that I cannot see much statistical significance in the results.
The other difference is that I did not consider any commission/slippage, as discussed in comments above…
@Rick: check the other thread (linked to in credits section of the post) for the study by sluggo on random entries.
Rick, there were three conclusions (not 4 as you typed). Among the many useful Blox Forum posts on the topic, here are three specific messages by 3 different authors, that contain test results which support the three conclusions above.
Please take a few minutes to surf around the Forum, looking at old threads and old topics. There is quite a bit of great stuff there, waiting to be (re)discovered. Heck, you may even decide to join.
Note that H3/C3 use random entry *timing* and random exit *timing*, but on the randomly chosen entry date, they always trade in the *direction* of the (long term) trend. They use a bullish-or-bearish indicator to suggest whether it’s best to enter long or enter short on that date.
C1: One guy claims the system lost money 100% of the time and another claims it made money 100% of the time but CAGR is very small.
I think the positive bias some people got may be attributed to several factors, including not properly rolling contracts.
In C1 I do not see any conclusive evidence of random-entry/ATR exit making money. I see conflicting reports and low returns.
In C2, it is claimed that pure random entry exits were profitable only 2 times out of 50. They used an ADX burst and other entry methods to fix that.
In C3, I think the claims are wired. The input data are first filtered using moving averages.
As a conclusion, I don’t see where you got your conclusions. These posts prove nothing, save the fact that in most cases exhibit a wrong approach. I also sense some desperate attempts to prove something is working the reason for which are not very clear.
Neither C1 – C2 nor the posts by Jez have proved that random entry/ATR exit is a profitable trend-following system. Jez did not use commissions and never stated how many runs are unprofitable out of the 200 he ran.
Hello Jez, Good study. The take away is valid.
However, I would like to emphasize one defect in the study as already pointed out by Michael.
Your choice of averaging monthly returns over multiple random realizations actually BIAS the volatility (and hence the drawdown statistic) DOWNWARD significantly. This is just simple statistical artifact.
As an illustration, I performed a simple simulation. Let’s say we have a strategy with monthly return which TRULY follows Normal distribution with mean 1.5% and standard deviation of 10%. We sample it for 100 months. Then we repeat the sampling 200 times. What you did basically was to average the each month return based on 200 sampling. This gives 100 averaged monthly returns. This averaged return, will still have the same mean value of the strategy. However, the volatility is greatly reduced by the averaging process. Consequently, the drawdown figure is reduced also.
The picture shown in the following link highlight my point. The black bold line is the resulting equity curve from the averaged monthly return.
If you are into R programming, you can replicate the simple study with the following codes:
Indeed, for the averaged monthly return, the sample average is 1.509% and the volatility is greatly reduced to 0.77%.
Of course, the strategy you are testing do not produce monthly returns that is normally distributed. However, the impact of averaging randomly produced monthly returns on BIASING the drawdown downward is still valid.
In light of that issue, I think the Performance Stats which remain valid are CAGR and Average Monthly Rtn.
For the risks measure, I suggest you calculate the average of maximum drawdowns of each sampling. It will also be useful to get the distribution of the drawdowns, e. g. 10% percentile, 25% percentile, median, etc.
I wanted to clarify something about bet sizing technique.
When I came across this post I went back to my copy of the complete turtle trader and looked up the mechanics of this technique.
When you are using this ATR (or “N”) technique on futures, as I understand it, you are taking the cost of buying the future on a per point basis and multiplying it by the number of points that make up the ATR.
Then you multiply that number by the size you want your stop loss (let’s say 2ATR’s) to be and then divide by the amount by % of your total portfolio that you want to risk.
But what if you wanted to use this strategy on a stock instead?
Would you just divide the amount of equity you are willing to risk (say 1%) by the 2ATR stop number or would it require some other calculation?
Great post – look forward to hearing from you.
In essence, this is how you would do it to “translate” the rule directly to stocks instead of futures.
Coincidentally, a post was created on the TB forum a few days ago, discussing a very similar issue (maybe started by you under a different avatar):
which highlights potential problems linked to the fact that stocks do not have embedded leverage and this position sizing technique “could” result in total allocation going over the available equity.
Making averages could be misleading. Sometimes it is best to visualize all 200-500 colored equity curves in one picture to see the robustness. Do you have something of this sort.
Agree, averages could be the tree that hides the forest (although I really wanted to test for a central tendency here) – unfortunately I do not have these multiple equity curves available – desculpa.
It appears that the trailing stop distance of 2 x ATR was arbitary. The comparison against the mix of stop distances shows that 2 x ATR is better than a mix between 2 and 10 x ATR. However, it doesn’t show whether 2 x ATR is optimal.
Has anyone run the same test with suitable sample sizes to compare the performance of 1 x ATR vs 2 x ATR vs 3 x ATR etc to try to pinpoint the optimal trailing stop distance?
Not that I am aware of, but that would be a good idea for a next post! I did do something similar with Profit Targets a while back though: automated-trading-system/profit-targets-trend-following/
I was wondering if you would be able to supply a simple bell curve of CAGR and MAXDD. I would like to see where the range and majority of the CAGR and MAXDD lies.
The methodology I used for this test was actually to average all the random simulation iterations on a monthly basis (ie to simulate re-balancing) instead of running all simulations on their own and averaging their end results. As such, I do not have such CAGR/MaxDD data… But if you are interested you might want to check that post: automated-trading-system/trading-diversification-free-lunch/
which shows the spread of CAGR/MaxDD for another randomized test (to do with portfolio selection that one).
Hi, I am having trouble working out how you use the ATR. When I look at an ATR indicator, the figure is something like 0.0019, so how do you convert this into the number of pips for the stoploss?
Usually an ATR-based stop is just a way to place the stop price N number of ATRs from the entry price.
& # 8211; Buy Long EURUSD at 1.31 (this is not a recommendation! ;-)
& # 8211; Calculate the ATR, maybe get a value like 0.01.
& # 8211; Set the stop so that stop price is Buy_Price – N x ATR: if N = 1, stop price = 1.30 (1.31 – 0.01), if N = 3, stop price = 1.28, etc. (note that for Short Positions you’d have Sell_Price + N x ATR)
This is a fairly neat way to adjust the stop taking into consideration the recent volatility of the instrument (as opposed to a fixed % amount, etc.)
Thanks for the reply Jez. So, right now EUR/USD is 1.32338. ATR is 0.00092. Assim:
Stop price = 1.32338 – (2 x 0.00092)
Stop price = 1.32338 – 0.00184.
Stop price = 1.32154.
That’s a stop loss of just 18.4 pips I think?
It doesn’t seem enough… Or is it just that the ATR is low right now?
ATR value sounds low but it depends on the period used to calculate it (ie an ATR(5) on 1-min bar will be much slower than an ATR(20) on daily bars).
Otherwise calc looks good.
Being new to trading i am a bit puzzled with these stops. Does adapting the trailing stop daily mean setting a new order each day with a new trailing stop? Doesn’t this mean that the trailing stop will only be met if the intraday change exceeds f. e. 2 ATR? So, you create each day a new high from which to the trailing is done. Is this meaningfull?
I suppose the stop and trailing stop also meant in this text is always 2 ATR? Or is this only the initial stop?
Obrigado pela ajuda.
Newone, the trailing stops typically do not “go down” (ie it basically trails the price by being at most 2/3/5 ATRs away: every time the price makes a new high – for a long position – the stop is placed 2/3/5 ATRs away but when the price goes back down, the stop does not)
Jez, thank you very much for this information. I understand u probably place new orders daily, but keep the stops in place in case the price dropped, and u raise the stops in case the prise rose. How about doing this on a monthly basis? Isn’t this more safe in order to prevent unnessasarry stop-out due to whipsawwing?
I’m trying to follow trends using turbo’s. Do you know turbo’s or speeders? We have them in europe, it’s basically following for example a stock using a hedge (leverage). I think this is more understandeable then options and futures. You can never loose more than you invested either. What is your idea about trading such products? I don’t find much information on the net about opinions on trading these.
Obrigado pela sua informação. I think your site is very informative and inspiring to people new to the business like myself :)
Deixe um comentário (Cancelar)
Atualizações gratuitas.
Posts populares.
Procure no blog Au. Tra. Sy.
Global Futures Broker.
Blog Au. Tra. Sy, pesquisa e desenvolvimento de Trading Sistemático, com um sabor de Trend Following.
Disclaimer: O desempenho passado não é necessariamente indicativo de resultados futuros. A negociação de futuros é complexa e apresenta o risco de perdas substanciais; como tal, pode não ser adequado para todos os investidores. O conteúdo deste site é fornecido apenas como informação geral e não deve ser considerado como recomendação de investimento. Todo o conteúdo do site, não deve ser interpretado como uma recomendação para comprar ou vender qualquer título ou instrumento financeiro, ou para participar de qualquer estratégia específica de negociação ou investimento. As idéias expressas neste site são unicamente as opiniões do autor. O autor pode ou não ter uma posição em qualquer instrumento financeiro ou estratégia citada acima. Qualquer ação que você tome como resultado de informações ou análises neste site é, em última instância, de sua exclusiva responsabilidade.
OS RESULTADOS DE DESEMPENHO HIPOTÉTICOS TÊM MUITAS LIMITAÇÕES INERENTES, ALGUNS DOS QUAIS SÃO DESCRITOS ABAIXO. NENHUMA REPRESENTAÇÃO ESTÁ SENDO FEITA QUE QUALQUER CONTA PODERÁ OU POSSIBILITAR LUCROS OU PERDAS SEMELHANTES AOS MOSTRADOS; DE FATO, HÁ DIFERENÇAS FREQUENTEMENTE NÍVEIS ENTRE OS RESULTADOS DE DESEMPENHO HIPOTÉTICOS E OS RESULTADOS REALIZADOS SUBSEQÜENTEMENTE ATINGIDOS POR QUALQUER PROGRAMA DE NEGOCIAÇÃO PARTICULAR. UMA DAS LIMITAÇÕES DOS RESULTADOS DE DESEMPENHO HIPOTÉTICOS É QUE SÃO GENERALMENTE PREPARADOS COM O BENEFÍCIO DE HINDSIGHT. ALÉM DISSO, A NEGOCIAÇÃO HIPOTÉTICA NÃO ENVOLVE O RISCO FINANCEIRO, E NENHUM REGISTRO DE NEGOCIAÇÃO HIPOTÉTICA PODE COMPLETAMENTE CONTA PARA O IMPACTO DO RISCO FINANCEIRO DE NEGOCIAÇÃO REAL. POR EXEMPLO, A CAPACIDADE PARA SUPORTAR PERDAS OU ADERIR A UM PROGRAMA DE NEGOCIAÇÃO EM PARTICULAR DENTRO DA NEGOCIAÇÃO DE PERDAS SÃO PONTOS MATERIAIS QUE TAMBÉM PODEM AFETAR DE ACORDO, DE FORMA ALTA, OS RESULTADOS DA NEGOCIAÇÃO. EXISTEM NUMEROSOS OUTROS FATORES RELACIONADOS COM OS MERCADOS EM GERAL OU PARA A IMPLEMENTAÇÃO DE QUALQUER PROGRAMA DE NEGOCIAÇÃO ESPECÍFICO QUE NÃO PODE SER TOTALMENTE CONSIDERADO PARA A ELABORAÇÃO DE RESULTADOS DE DESEMPENHO HIPOTÉTICOS E TODOS OS QUE PODEM AFETAREM ADEUSAMENTE OS RESULTADOS DA NEGOCIAÇÃO.
ESTAS TABELAS DE DESEMPENHO E RESULTADOS SÃO HIPOTÉTICOS NA NATUREZA E NÃO REPRESENTAM A NEGOCIAÇÃO EM CONTAS REAIS.

No comments:

Post a Comment