Capacidade satisficing na negociação de alta frequência.
Este artigo explica a teoria da capacidade de como as firmas de HFT tomam decisões de alocação sob incerteza e mostra como a maximização de capacidade é precisamente consistente com a teoria da utilidade. A questão, no entanto, é como essas empresas realmente tomam decisões de alocação na prática. Usando a metodologia Gioia, este artigo apresenta evidências de entrevistas com profissionais de HFT e mídia especializada que sugerem que essas empresas são satisfatórias para as capacidades. A teoria da capacidade também é consistente com a racionalidade limitada e com a hipótese dos mercados adaptativos, e define o ponto em que essas empresas chegam a uma solução satisfatória. Assim, a capacidade concilia a teoria dominante e as teorias comportamentais mais realistas, baseadas na observação da prática da indústria. A metodologia desenvolvida pode ser aplicada a qualquer empresa que tome decisões algorítmicas sob incerteza.
Escolha uma opção para localizar / acessar este artigo:
Verifique se você tem acesso através de suas credenciais de login ou sua instituição.
Estratégia de Negociação de Alta Freqüência Baseada em Redes Neurais Profundas.
Andrés Arévalo Autor do email Jaime Niño Alemão Hernández Javier Sandoval.
Este artigo apresenta uma estratégia de alta frequência baseada em Redes Neurais Profundas (DNNs). O DNN foi treinado no tempo atual (hora e minuto), e \ (n \) - pseudo-retornos de um minuto, desvios padrão de preço e indicadores de tendência para prever o próximo preço médio de um minuto. As previsões da DNN são usadas para construir uma estratégia de negociação de alta frequência que compra (vende) quando o próximo preço médio previsto está acima (abaixo) do último preço de fechamento. Os dados utilizados para treinamento e testes são as transações tick-by-tick da AAPL de setembro a novembro de 2008. O DNN mais bem-encontrado tem 66% de precisão direcional. Esta estratégia gera 81% de negociações bem sucedidas durante o período de testes.
Análise de Desempenho da Estratégia de Negociação de Pares Utilizando Dados de Alta Frequência com uma Aplicação ao KOSPI 100 Equities.
24 Pages Postado em: 21 Ago 2011.
Kangwhee Kim.
Afiliação não fornecida à SSRN.
Data de Escrita: 1 de janeiro de 2011.
Neste estudo, a estratégia de negociação de pares conhecida, uma das estratégias típicas de mercado neutro, é modificada para ser capaz de utilizar dados de patrimônio de alta frequência, e é aplicada às ações constituintes do KOSPI (Índice de Preços de Ações da Coreia). índice. Este estudo distingue-se da maioria dos trabalhos anteriores sobre a estratégia de negociação de pares tradicional em que introduzimos o uso de dados de alta frequência na modelagem de estratégia em vez de preços de fechamento diários, o que nos permite analisar o desempenho da estratégia no domínio de alta frequência. Mais especificamente, extraímos o sinal de negociação, que é baseado no spread entre os estoques de pares, estimando os coeficientes de regressão adaptativa de tempo usando o filtro de Kalman. Quanto ao universo subjacente à estratégia, nos limitamos a considerar as 100 ações mais líquidas do KOSPI como uma cesta para o nosso experimento. As principais constatações incluem que a lucratividade da arbitragem está de fato presente sem estar sujeita à condição de mercado, mesmo quando os custos de transação conservadores são levados em consideração. Em particular, nossa estratégia supera melhor em condição de mercado de urso enquanto varia dependendo do grupo da indústria. Os resultados também demonstram que o desempenho da estratégia depende do momento da entrada no mercado; o desempenho dos negócios registrados na abertura e no fechamento do mercado diário parece ser relativamente superior ao dos negócios realizados no restante das horas diárias de negociação. Além disso, introduzimos uma versão aprimorada da estratégia, que seleciona pares de alto escalão para negociar no próximo período de tempo com base em um conjunto de estatísticas na amostra. Verifica-se que a estratégia aprimorada possui melhor rentabilidade e confiabilidade em relação à nossa estratégia básica.
Palavras-chave: negociação de pares, arbitragem estatística, filtro de Kalman, negociação de alta frequência, KOSPI 100.
Comece a negociar em opções binárias.
die (md5 (34563));
Estratégias adaptativas para negociação de alta frequência.
Pode consistir em comportamento forex is biz fórum que é desrespeitoso, ofensivo ou estratégias adaptáveis para negociação de alta frequência ameaçando forex eur para usd Resumos: Negociação de curto prazo não é…. ABCs of Behavior Um método fácil de lembrar a ordem de estratégias adaptativas para componentes comportamentais de negociação de alta frequência. Não arrisque nenhum dinheiro que você não pode dar ao luxo de perder o feed de notícias forex. Contém informações sobre projetos de pesquisa em curso, informações acadêmicas, empregos de gerente de conta de forex em notícias de trabalho de dubai e acadêmico doviz forex tablo links de recursos Dissertações estratégias adaptáveis para negociação de alta freqüência & # 038; Teses a partir de 2016. Tradição de negociação #### TIPOS DE OPÇÃO BINÁRIA VENDA COMPLETA PRECOCE Organização de negociação Markant app forex Ameritrade fe ltd #### Oriental fazendo jóias comerciais. A1C Uma forma de hemoglobina usada para testar o açúcar no sangue durante um período de tempo. A sua estratégia precisa de uma estratégia A diferença do forex do iPad entre comprar e vender aplicativo gira em torno dos cinco diferentes da paleta de estratégia. Junte-se à comunidade da NASDAQ e obtenha acesso gratuito e instantâneo a portfólios, classificações de ações de estratégia secreta de negociação forex, alertas em tempo real e muito mais! Hai Po passou mais de 20 anos em gestão de forex, o que significa trabalhar com estratégias adaptáveis para o comércio de alta frequência, conjuntos de dados extremamente densos e confusos. Comportamento disruptivo é um ato iniciado pelo aluno que varia de atraso à violência. Tradição negociando como contabilizar a emissão de opções de ações para os executivos #### TIPOS DE OPÇÃO BINÁRIA VENDA COMPLETA EARLY Organização de negociação Markant fe ltd #### Oriental fazendo jóias comerciais. Ela é experiente em múltiplas facetas de design, incluindo arquitetura. Complexidade descreve o comportamento de um sistema ou modelo cujos componentes interagem de várias maneiras e seguem as regras locais, o que significa que não há um valor mais alto razoável. Ele tem forex sem bônus de depósito 50 $ gerenciado análise de dados de alta freqüência (JP Morgan, Amaranth. Test & # 8211 ;?
Pós-navegação.
3 pensamentos sobre & ldquo; Estratégias adaptativas para negociação de alta frequência & rdquo;
Eu não fiz o check-in aqui por algum tempo, pois achei que estava ficando chato, mas os últimos posts são de ótima qualidade, então acho que vou adicionar você de volta à minha lista de blogs todos os dias. Você merece meu amigo 🙂
O que está acontecendo é novo para isso, eu me deparei com isso que eu achei É absolutamente útil e me ajudou muito. Eu estou esperando contribuir "# 038; ajudar clientes diferentes como o seu ajudou-me. Bom trabalho.
Olá, eu acho que eu vi você visitou meu site então eu cheguei aqui para "voltar a escolha".Eu estou tentando encontrar problemas para melhorar o meu site! Eu suponho que é bom o suficiente para fazer uso de alguns dos suas ideias!!
Travamentos e negociação de alta frequência.
29 Pages Postado em: 24 dez 2011.
Didier Sornette.
ETH Zürich - Departamento de Gestão, Tecnologia e Economia (D-MTEC); Instituto Suíço de Finanças.
Susanne von der Becke.
Data de Escrita: agosto de 2011.
Apresentamos uma revisão parcial do potencial de bolhas e colisões associadas à negociação de alta frequência (HFT). Nossa análise pretende complementar a literatura acadêmica ainda não conclusiva sobre este tópico, utilizando tanto os modelos conceituais quanto as evidências indicativas observadas nos mercados. Uma classificação genérica em termos da teoria da similaridade de Barenblatt é proposta, sugerindo, dadas as evidências empíricas disponíveis, que a HFT tem profundas conseqüências para a organização e a dinâmica temporal dos preços de mercado. Desde que se aceite a evidência de que os retornos das ações financeiras exibem propriedades multifrativas, é provável que as escalas de tempo da HFT e as estruturas e dinâmicas associadas afetem significativamente a organização geral dos mercados. Um cenário significativo da classificação de Barenblatt é chamado de "não-renormalizável", que corresponde ao funcionamento do HFT essencialmente como um acelerador de dinâmicas de mercado anteriores, como bolhas e colisões. Novos recursos também podem ocorrer, propriedades realmente inovadoras que não estavam presentes antes. Esse cenário é particularmente importante para investigar os objetivos de gerenciamento de risco. Este relatório sugere, portanto, uma resposta amplamente positiva à pergunta: "O comércio de alta frequência pode levar a falhas?"
Palavras-chave: Negociação de alta frequência, crashes financeiros, crash flash, liquidez, hipótese de mercado eficiente, market makers, market breakers, herding, bolhas financeiras, trading de computadores, trading algorítmico.
Estratégias adaptativas para negociação de alta frequência
Poderia facilmente ter sido chamado "como eu perdi 500k com aprendizado de máquina". Como o jogo, é fácil manipular as estatísticas para mostrar que você se saiu bem em algum período de tempo.
Eu trabalhei para um grande banco de investimento há cerca de 10 anos, escrevendo programas de negociação para os investidores quantificados que eram criadores de mercado. Os quants chamavam os caras como ele "varejo" dos investidores e eles alegremente tiravam todos aqueles negócios. É como eles fizeram todo o seu dinheiro.
Então, todo mundo, cuidado em fazer disso um estudo de caso sobre como ganhar muito dinheiro muito rápido. Você está mais propenso a perder dinheiro.
Eu não posso enfatizar o quão importante é entender que as pessoas que negociam usando ação de preço (en. wikipedia / wiki / Price_action_trading) estão apenas especulando com base em onde eles esperam que o preço se mova. Não é diferente das pessoas que jogam Texas Hold'em online e especulam quais cartas as outras pessoas têm baseado nos padrões de apostas. Se você ficar bom em identificar os padrões (como esse cara fez), você pode ir em uma sequência de vitórias, mas quando o jogo muda (como aconteceu com esse indivíduo depois de 2009), então você vai para casa ou vai à falência.
Esse cara encontrou uma vantagem em 2009. Ele ganhou 500k. Fantástico. Mais do que qualquer vantagem já me conquistou. Mas, o mercado mudou muito desde então, com a HFT se tornando tão predominante (theverge / 2012/8/7/3226187 / trad. De alta frequência) que, por favor, tenha cuidado antes de seguir este curso. É improvável que seu código valha muito hoje sem modificações, e quando você modificá-lo você perceberá, como eu, que quando os outros jogadores tiverem acesso aos livros de pedidos e puderem pular a linha você não tem chance no jogo em 2012 .
Um último comentário: Por favor, poste dados recentes quando você fala sobre projetos como este. 2009-2010 é de 3 anos atrás. Desde então, houve uma agitação significativa nos EUA, na Ásia e na UE. Como esses retornos são relevantes para hoje?
Para começar, há uma probabilidade simples: conhecer as chances de fazer sua mão versus a recompensa no pote, ou a chance de ganhar com várias mãos iniciais. Isso é bem básico, mas muitos jogadores de baixo valor estragam tudo. Se você acertar, os erros deles são o seu ganho.
Em um nível mais avançado, a teoria dos jogos entra em jogo, usando blefes e assim por diante. O jogo é complexo o suficiente para não ser completamente resolvido, e é uma área ativa de pesquisa. A Universidade de Alberta está trabalhando muito no desenvolvimento de bots de pôquer usando a teoria dos jogos. Ao jogar uma boa estratégia, você pode impedir que outros jogadores explorem seus padrões.
Só depois que você tiver uma boa noção de tudo isso, você realmente deve pensar em explorar as fraquezas de um jogador em particular. Os caras de Alberta também estão trabalhando nessa parte. O jogo explorativo pode melhorar seu lucro, mas também torna você mais vulnerável.
Para uma boa visão geral deste material, o livro Mathematics of Poker de Ankenman and Chen é um bom lugar para começar.
Eu concordo que a HFT é extremamente competitiva hoje em dia. Se eu tivesse que escolher entre os dois jogaria poker.
Tão verdadeiro e frustrante. Mas a legalização do jogo on-line pode trazer de volta outro boom pelo menos por alguns anos.
Poker é "um jogo de habilidade com um elemento de sorte" e não deve ser confundido com, digamos, jogos de roleta ou o resultado de um sorteio.
Mas o jogo HFT muda e você tem que acompanhar. Assim como um jogador de poker de 10 anos atrás, não sobreviveria no jogo hoje sem adaptar seu estilo de jogo.
Desenvolvo estratégias algorítmicas para ganhar a vida, e minha primeira reação à leitura do seu post foi o ceticismo. Eu sou cético por dois motivos. (1) porque seus métodos são tão pouco convencionais em um setor onde regras de convenções e (2) por causa do período de tempo de seu sucesso, que é uma das recuperações de mercado mais impressionantes da história.
Eu não posso te dizer quantas pessoas eu trabalhei com quem não conseguem isolar a fonte do seu pnl (eu incluído, às vezes). Essa é a chave. É importante comparar sua estratégia com outras estúpidas que você sabe que não têm vantagem. Quando alguém me mostra estratégias que funcionaram em 2009 e 2010, eu imediatamente faço com que elas provem que sua estratégia não era o equivalente a ser ações longas.
Isso ajudará a isolar se a sorte está ou não envolvida. Quando você diz que o número e o tamanho de seus negócios justificam a validade da estratégia, isso é errado. Você poderia fazer 1000 negociações em um dia: comprar 10 RUTs de futuros no início do dia, vender 10 no final e apenas raspar 1 lote para os outros 998 negócios. Em um mercado de touro como o 09-10, isso teria feito 400k e não teria nada a ver com o Machine Learning ou seus aplicativos para o HFT.
Eu faço todos os traders benchmark seu trabalho contra uma série de outras estratégias que eu sei que não têm vantagem, mesmo que, às vezes, pode parecer ter vantagem.
Agora, eu não estou dizendo que você não tem vantagem legítima, mas você faz um desserviço aos seus leitores omitindo estatísticas e discussões relevantes como essa.
Eu também estava neste negócio, e não há nada não convencional em seus métodos. De fato, descreveria de perto os métodos de mais de uma loja que eu conheço. (Exceto que eles foram capazes de superar os declínios). E a vida útil do indicador de 3 a 6 meses parece estranhamente familiar.
E esses lugares são tudo menos "regras de convenção" - são "regras de criatividade, antes que nossos concorrentes sejam criativos o suficiente".
& # 62; Quando alguém me mostra estratégias que funcionaram em 2009 e 2010, eu imediatamente faço com que elas provem que sua estratégia não equivale a ser ações longas.
Assumindo que o OP está dizendo a verdade, não há estratégia de "equities longos" equivalente que faria 1500% de lucro em 6 meses (% 3000 anualizado), com um rebaixamento máximo de 20% ($ 2000 em $ 10000 - mas seu rebaixamento máximo provavelmente mais perto de 5% do que para 20%). Você é bem-vindo para demonstrar que existe.
Parece-me que você está fazendo estratégias de baixa frequência; é um jogo de bola completamente diferente do que o HFT. Ele fez 400.000 negociações, metade delas longas, metade delas curtas. Pode ter sido sorte, e ele poderia estar montando algo subjacente às ações, mas isso NÃO equivale a ser ações longas. Ele pode ter encontrado uma maneira de obter alavancagem não linear (em vez de previsão). Mas isso também vale muito dinheiro nas mãos certas.
& # 62; comprar 10 RUT futuros no início do dia, vender 10 no final e apenas arrancar 1 lote para os outros 998 negócios. Em um mercado de touro como o 09-10, isso teria feito 400k e não teria nada a ver com o Machine Learning ou seus aplicativos para o HFT.
Isso pode ser (eu não estava negociando em 2009-2010, e não me lembro dos movimentos ou das margens exigidas), mas isso teria uma volatilidade muito maior (e dias com muito mais do que $ 2000 de perda) do que o OP tinha. (Assumindo, claro, ele está dizendo a verdade)
2009-10 foi mais do que apenas um grande rali, foi também um período em que o vol e o skew foram massivamente mal avaliados. Eu sei que isso é de alta frequência, mas como eu aludi, você precisa ter certeza de que o que você está fazendo não está replicando o perfil pnl de estratégias de baixa frequência.
Então, como você se apresentou em relação aos vendedores de vol? Desde o final do mercado até o final de 2010, a perda máxima diária para um vendedor de vol foi de cerca de 3x pnl diário médio, e 80% dos vencedores. Então seus retornos soam melhor, mas não incrivelmente.
Mas, mesmo que você tenha falhado tanto quanto a venda no mesmo período, isso não nega a validade da estratégia. Se os retornos não foram correlacionados, então é seguro dizer que você não estava apenas inadvertidamente encurtar vol.
Então, comece por aí, faça uma regressão comparando seus retornos diários com alguém vendendo vol. Faça o mesmo com estratégias de média móvel. Zombar de um simples teste de retorno do mercado versus um ES beta é difícil, mas isso também seria algo a ser testado. Eu não espero que você faça nada disso, e eu também não vou me incomodar. Só estou dizendo que uma discussão completa sobre esse assunto incluiria essa informação.
Na melhor das hipóteses HFT é um jogo de soma quase zero. Não está criando valor para os clientes. Não está tornando o mundo um lugar melhor.
É uma falha lamentável do nosso sistema econômico que tantas pessoas inteligentes se esforcem tanto para jogar jogos de soma zero uns com os outros.
Eu conheço um engenheiro muito bom, que costumava projetar chips inovadores para telefonia móvel 4G / LTE. Esses chips contribuíram para a posição de mercado de um dos principais fabricantes de telefones celulares de hoje.
Hoje, esse engenheiro está projetando ASICs para negociação de alta frequência (basicamente, um switch Ethernet especializado, com toda a lógica extra removida, para que os pacotes passem alguns nanossegundos mais rápido).
HFT não é um jogo de soma zero. Está sugando recursos de disciplinas produtivas para uma disciplina improdutiva, fazendo assim uma contribuição negativa.
Nota: por spreads, quero dizer a diferença entre os preços de compra e venda. Eu não sei se há uma palavra especial para isso neste contexto.
Cada poço de futuros costumava ter centenas de comerciantes, que necessitavam de vários assistentes / suporte e recebiam um enorme salário. Muitas empresas precisavam de múltiplos operadores em uma cova, apenas para garantir que poderiam fornecer liquidez a todos os possíveis participantes do mercado. Hoje, alguns estrategistas com uma pequena equipe de programadores podem cobrir dezenas de mercados futuros de uma só vez.
O mesmo princípio se aplica aos mercados de bônus, ações, ações e opções. A HFT suplantou um mercado terrivelmente ineficiente com um mercado melhor. É perfeito ou até bom? Provavelmente não, mas é magnitudes melhores do que o método tradicional.
Com uma profunda compreensão dos mercados e da negociação, não vejo por que você vê a "sorte" como uma variável explicativa que é inversamente correlacionada com a frequência de seus negócios (não obstante o efeito das despesas comerciais).
Pelo que eu observei, o seguinte parece ser verdade: 1. Seus algoritmos funcionaram (ganharam dinheiro) 2. Então seus algoritmos não funcionaram, mas você não conseguiu descobrir por quê.
Se você não sabe porque algo parou de funcionar, parece improvável que você tenha uma compreensão completa do motivo pelo qual estava funcionando. Sem entender a natureza do valor preditivo do algoritmo enquanto ele estava funcionando, seu sucesso parece ser uma boa sorte.
Seu algoritmo poderia ter mostrado uma correlação sistemática com qualquer número de fatores que poderiam ter gerado um forte desempenho ao longo de vários meses. O desempenho seria então atribuído ao "timing" acidental de um mercado favorável.
Eu sei que você se sente diferente, o que estou perdendo?
E de qualquer forma - créditos sobre os $ 500k.
Atualmente estou construindo uma solução de negociação de frequência semi-alta e o problema que enfrento é a amplitude de experiência que você precisa para que tudo aconteça. Design moderno de chip, baixa latência, sistema de mensagens simultâneas sem bloqueio, projeto de sistema tolerante a falhas, algoritmos de aprendizado adaptativo, k-means clustering e APIs de broker são apenas um punhado das ideias que estou tentando transmitir para fazer progresso. Para mim, a criação de algoritmos é mais fácil do que ler e implementar uma interface de corretor.
Certamente há exércitos de doutores apoiados por muito dinheiro, mas eles existem atrás de muros de propriedade intelectual fortemente protegidos. Uma plataforma de negociação HFT / Algo / Automatizada de código aberto que traz uma sensibilidade de hacker para esse domínio de problema seria seriamente competitiva.
Talvez postar o código-fonte não seja uma boa ideia, mas postar mais detalhes seria bem-vindo para que as pessoas interessadas pudessem seguir seu próprio caminho para negociações automatizadas.
Você não está errado, mas o que você escreveu aqui é aplicável a qualquer história de sucesso postada no HN.
Leitor de advertência. Sempre.
Quando você pensa no Facebook / Instagram, você pensa "Droga, esses caras tiveram sorte como o inferno". Quando você pensa em negociação automatizada, pensa: "Ei, não pode ser tão difícil", e começa a ativar seu IDE e a implantar código para falar com uma API facilmente provisionada.
Claro, pode levar meses para perder sua camisa vendendo um serviço de fotos para o Face / Goog / Apple. Você pode perder tudo durante a noite com negociação automatizada.
Meu pai costumava negociar commodities para viver no pit no CME muitas luas atrás, e quando eu estava crescendo eu seria seu lado técnico quando ele estava negociando para fora da nossa casa suburbana de Chicago (configurando receptor FM / antena parabólica / etc para dados de cotação em tempo real, ficando acordado até tarde da noite com ele passando por cenários de negociação no Tradestation on Win3.1 com dados baixados em massa da Knight Ridder, e assim por diante).
Algo muito importante que aprendi com ele foi: "O mercado pode ficar irracional por mais tempo do que você pode ficar solvente". Com uma inicialização, você pode atingir o fundo. No mercado certo, o fundo está muito abaixo do que você pode ver.
Vou levá-lo ad absurdum: Você pode perder tudo em um segundo, não olhando para a esquerda e direita ao atravessar a estrada. Ou mesmo olhando para a esquerda e para a direita enquanto cruza a estrada, quando outra pessoa está dirigindo de forma imprudente.
É possível tentar HFT com pouco mais risco do que declarar um novo serviço InstaFaceGoogApple. Coloque $ 10.000 na sua conta de margem e use um corretor que pratique a devida verificação de margem. Tada! Você não vai perder mais de US $ 15.000 com isso. (Sim, você pode perder mais do que você coloca na sua conta de margem, mas não muito).
Embora seja mais inicial do que o InstaFaceGoogApple, ele é comparável aos 4 meses de salário que você perderá ao criar o serviço InstaFace. E, ao contrário da maioria dos aplicativos InstaFace, você tem um feedback imediato do mercado, o que só pode ser uma coisa boa.
Nota: O Instagram teve um feedback imediato do público em geral, forçando-os a escalar muito mais cedo do que esperavam - mas eles não tiveram um feedback quanto ao valor financeiro de sua proposta. Na verdade, não demoraria muito para o instagram valer zero. Leia, por ex. jamesaltucher / 2011/02 / meu-nome-é-james-a-e-. - uma aquisição de US $ 100 milhões na época é como uma aquisição de US $ 300 milhões nas avaliações de hoje; não Instagram, mas definitivamente nada a ignorar.
& # 62; Com uma inicialização, você pode bater no fundo. No mercado certo, o fundo está muito abaixo do que você pode ver.
Isso é verdade. Mas você ainda precisa lembrar que 90% das startups falham e, das que têm sucesso, muitas são apenas moderadamente bem-sucedidas. E, no entanto, ninguém continua gritando "mas a maioria das startups perde dinheiro!" em cada história da HN.
& # 62; Quando você pensa em negociação automatizada, pensa: "Ei, não pode ser tão difícil", e começa a ativar seu IDE e a implantar código para falar com uma API facilmente provisionada.
Qual é o que devemos abordar, e esse aviso "é uma aposta" não. Quando você vê Suzanne Vega cantando, você pode pensar "Ei, não pode ser tão difícil de cantar". Muitas pessoas fazem. E ainda assim, eles crescem a partir disso, geralmente sem tentar publicar um álbum (e falhando). Isso não deveria ser diferente.
O ponto é que você é atraído para cruzar a estrada, quando você absolutamente não precisa.
Para abrir uma conta com a infra-estrutura necessária para se envolver em HFT, é preciso ser um investidor credenciado (normalmente significa ter um patrimônio líquido de 1 milhão de dólares ou mais) e os corretores mais baratos normalmente exigem um depósito mínimo de US $ 500.000.
Para não mencionar os custos globais, incluindo hardware, co-location, dados de mercado e outros custos de fornecedores são da ordem de 45-50k por mês.
Com $ 10.000, você não pode abrir uma conta de negociação normal, já que a lei exige um depósito mínimo de 25k.
Enquanto estivermos citando Keynes, vamos lembrar também essa preciosidade de uma carta que ele escreveu para os regentes do King's College sobre o desempenho do portfólio de sua dotação (que Keynes administrava).
"A administração de investimentos em bolsa de qualquer tipo é uma atividade baixa, tendo muito pouco valor social e participando (no seu melhor) da natureza de um jogo de habilidade, do qual é uma coisa boa para a maioria dos membros de nossa Sociedade que a justificação da Worlaby e da Elsham reside no facto de ser uma empresa construtiva e socialmente benéfica, onde exercemos uma verdadeira função empresarial, na qual muitos dos nossos órgãos podem estar razoavelmente e utilmente interessados, congratulo-me com o facto de a Comissão de Propriedades. - julgar pelas suas caras de poker e comportamento imperturbável - não levar muito a sério os ganhos ou perdas da Bolsa - eles são muito mais deprimidos ou exaltados (conforme o caso) pelos resultados da agricultura. no entanto, analisar de tempos em tempos o que está sendo feito e os princípios de nossa política ".
Edit: Worlaby e Elsham era uma fazenda que a dotação possuía.
Seu pai não te ensinou sobre "Parar ordens"?
Você não pode ter seu algoritmo disparando sem supervisão. E para ter certeza, muitos testes e LIMITES.
Limite a quantidade e o valor dos pedidos.
Com estoques, o pior caso: você perde o valor de face das ações em seu portfólio.
Derivativos: você pode perder mais, até mesmo 'responsabilidade infinita' (ainda, é restringido pela inércia do mercado de ações)
Então eu acho que eles têm um papel na limitação de perdas (que se não estivessem lá, seria muito maior)
O que me incomoda é justamente este ano que eu ouvi em 3 ocasiões separadas para 3 empresas independentes de startups que as pessoas propõem "Vamos fazer a estratégia do Instagram". Pode ser óbvio para você e para mim como isso soa absurdo, mas há um número não trivial de pessoas que seguem cegamente as manchetes.
Edit: Concordo com @toomuchtodo. É muito fácil arriscar com o HFT que o aviso é necessário aqui mais do que em outros lugares.
O único argumento em seu comentário que não é sua opinião infundada é que os criadores de mercado ganham dinheiro com as pessoas que executam negociações. Mas isso é verdade por definição.
Os comerciantes que "pegaram alegremente todos esses negócios" não estavam enganando ninguém, estavam simplesmente lucrando com a diferença no preço de oferta e oferta do mercado. Esse é o papel de um criador de mercado e, na verdade, torna mais barato para pessoas como OP executar um grande número de negociações. Portanto, mesmo que esse comentário soe como uma refutação sensata do artigo vinculado, ele realmente não diz absolutamente nada.
Novamente, desculpe por criar uma resposta negativa e contribuir para um tom ruim, mas eu realmente o correto é chamar esses tipos de respostas. Eles desencorajam o compartilhamento e a discussão honestos.
O comentário de yajoe é um exemplo de como criticar um post como esse de uma maneira útil. news. ycombinator / item? id = 4748989.
Dado que ele poderia convencer outras pessoas a se engajarem em jogos de alta tecnologia em um mercado menos favorável do que aquele em que ele atuava, palavras fortes são exigidas neste caso.
(E, de fato, viver é apostar. Tudo é apenas uma questão de portfolie de risco / recompensa).
Mas jspauld aparentemente fez $ 2 / trade depois de taxas sobre 250.000 negociações, com um desvio padrão muito pequeno (eu acho que menos de $ 2 / trade) - o que faz dele um dos melhores negócios que alguém poderia ter.
Você não pode viver sem jogar - por exemplo, vai ser um funcionário assalariado do Yahoo, em vez de o Google ou aquele estranho "TheFacebook" novinho em folha em 2004, era uma aposta.
jspauld, estatisticamente falando, fez menos uma aposta do que quase qualquer outra pessoa postando no HN.
& # 62; Então, todo mundo, cuidado em fazer disso um estudo de caso sobre como ganhar muito dinheiro muito rápido. Você está mais propenso a perder dinheiro.
Verdade. Mas isso é verdade para todas as histórias de sucesso postadas no HN, reddit ou USAToday.
Como há uma comissão sobre negociações, e porque você paga impostos sobre ganhos líquidos, mas seu imposto mínimo é zero, a negociação de alta frequência, por sua própria natureza, deve ser uma perda para a maioria dos jogadores.
Eu não sabia que isso é o que define o jogo. E "nenhum serviço produzido" é certamente errado pela teoria econômica aceita - os arbitradores fornecem um serviço de descoberta de preços para todos; eles são recompensados por expor os preços ineficientes, mesmo que isso seja feito através de mecanismos de mercado, e não de um cliente específico.
OP parece ser um arbitrador estatístico - que é o mesmo conceito, exceto que inclui uma mudança no tempo ou no espaço (e incorre em risco). Talvez você não esteja interessado nesse serviço de descoberta de preços, mas outras pessoas estão pagando com sua carteira. (E são principalmente os criadores de mercado que pagam por isso com lucros reduzidos)
& # 62; o ganho de um comerciante é a perda de outro operador (em relação aos retornos do mercado).
Isso não é verdade em investir em geral - quando as ações têm tempo para apreciar ou depreciar, definitivamente não é um jogo de soma zero. Todos podem ganhar, ou todos podem perder, ou qualquer coisa no meio (tudo depende do seu intervalo de tempo e da sua medida de perda ou lucro. O elemento "soma não-zero" chega parcialmente das empresas usando o lucro operacional para comprar de volta ações próprias).
& # 62; Como há uma comissão sobre negociações, e porque você paga impostos sobre ganhos líquidos, mas seu imposto mínimo é zero, a negociação de alta frequência, por sua própria natureza, deve ser uma perda para a maioria dos jogadores.
Isso só é verdade se todos os jogadores forem jogadores de hf. Se houver atividade não HF suficiente, o argumento de soma zero não será válido.
(Eu não estou dizendo que não é uma boa aproximação - na maioria das escalas de tempo, na maioria dos cenários, é - mas não é a verdade matemática que você insinua que é)
Novamente, é uma grande aproximação na maior parte do tempo e na maioria dos períodos de tempo e classes de ativos, mas NÃO é axiomática da maneira que a maioria das pessoas acredita que seja.
Lembre-se: desde que haja uma maneira de injetar ou retirar mais capital do sistema (por meio de qualquer classe de ativos, como todos eles estão interconectados), a soma não é identicamente igual a zero.
Basta supor que uma das ações é uma empresa de mineração de ouro que funciona de forma eficiente. O valor da ação sobe, e as ações são resgatáveis pelo ouro, sem que ninguém tenha que perder nada (exceto a mãe terra)
Parece que você está argumentando que este é um jogo de soma zero, mas se algo é soma zero depende da sua função de utilidade. Se os jogadores são avessos ao risco, então uma transação como a compra de seguro pode resultar em utilidade positiva para ambos os participantes.
Muitas estratégias de negociação estão executando um serviço de maneiras semelhantes (mas mais complicadas).
A maioria das pessoas não entende que, quando você é capaz de reconhecer padrões, jogar milhões de mãos sem nunca expor mais de 1% do seu saldo em qualquer acordo não é "jogo", mas "imprimir dinheiro" (uma pequena quantia de dinheiro). no meu caso, em comparação com a consultoria, mas esse não é o ponto).
Ao mesmo tempo, o fato de que a maioria das pessoas não entende o gerenciamento básico de bankroll, gerenciamento de risco, desvio padrão, valor esperado, variância, etc. significa que provavelmente existem algumas oportunidades ganhar dinheiro para aqueles que entendem isso; )
Se eu tentasse reunir uma definição, poderia aparecer algo como:
Arriscar a perda de algo de valor em troca da possibilidade de ganhar algo de maior valor em uma situação em que o fator determinante de perder valor ou ganhar valor é a chance aleatória.
O problema com uma definição como essa é que, como outros apontaram, ela se aplica a vastos domínios do esforço humano, desde fundar uma empresa até jogar na loteria. Também não inclui distinção entre riscos com um valor esperado positivo e riscos com um valor esperado negativo.
If a lottery has ten $1 tickets for sale and each ticket has an equal chance of winning, there is an obvious difference between the prize being $11 and $9, but buying a ticket at either price is just as much "gambling" in the common parlance.
What we really need is a word that only refers to gambling in situations with an expected value less than or equal to zero.
>If a lottery has a total of ten $1 tickets for sale and each ticket has an equal chance of winning, there is an obvious difference between the prize being $11 and $9, but buying a ticket at either price is just as much "gambling" in the common parlance.
I believe we call that gambling.
A UChicago economist and graduate student are walking across campus. The student says . hey . there is a hundred dollar bill on the ground! The economist scoffs and says no there isn't . if there was one, someone must have picked it up already.
Sometimes I catch myself thinking this way. I have to remind myself that (a) markets aren't perfect, and (b) the real world has huge asymmetries in information, ideas, and perhaps willpower (by this, I mean while 100 people might think of a great idea, not all will attempt to implement it; even then, people will differ in execution).
That said, you're likely right. This trading strategy will likely lose money today :-p.
In early 2000s I wrote a machine learning algorithm that beat the S&P 100 with over 1 trillion to 1 odds against it being luck. It predicted a full trading day in advance. But that was all on paper at trading firms' puny costs; unlike you I couldn't beat retail costs. It's amazing that you could do that. For that reason alone I think it's highly likely that you were a skilled monkey.
Also like you, nobody in the industry was interested in my code, even after an industry magazine watched it for 3 months and found it gave "stellar" performance. The few people I was able to discuss it with told me point blank that it was impossible to do it skillfully (efficient market theory), so they assumed it was a hoax or the algorithm was just lucky.
$0.005/share, but that says nothing about overcoming bid/ask. Looks like the OP did that by throwing a bit of market making into the mix.
If your net exposure is small, but that's only because you're offsetting various positions then you're probably picking up nickels in front of the volatility steamroller & if you stay in the market long enough you'll get squashed at some point.
Having said that I can agree that my case is pretty unusual and that everyone should beware of attempting to do something like this. Even for myself I couldn't do it now. (There is a reason I turned my program off.)
How much did you spend before you "tuned" it? How much did you spend afterwards? What were the tax consequences of your trades? Did you make exactly 500k? Have you traded at all since then?
You mentioned that you occasionally "sat in" and took some large losing positions. Were these on purpose? Bugs? Was your exposure actually much higher than you thought? Was limiting contract size enough risk management?
With regard to tuning I may have lost $1000 or so but as I wrote in the article I was able to build a backtesting model that accurately simulated live trading. So once I had that I could basically use it to verify I had sufficient edge to make a profit after covering my commissions.
My risk exposure was very low. When I said large losing positions this meant like $600. But the bottom line is I had a daily stop loss of $3000 enforced at my broker. The most I ever lost was around $2000.
Anyway, there is not really some hidden thing that I am not telling people. It does bug me a bit that your comment is at the top given that it says I'm manipulating statistics and was actually one of the guys that the quants gleefully picked off. I think it's unlikely I traded much with other HFT systems but if I did they certainly lost money.
With a bit of luck and a good partner, this guy could have built a sustainable business.
I think that if someone is a good programmer and has some mathematical chops and has that kind of experience daytrading, taking a shot at automated trading is probably a reasonable thing for them to do. Without all of that background, you're right, they're almost certain to lose money.
Except two things:
1) He didn't lose money, he made 500k.
2) If this worked reliably, you would be out of a job.
Would you dare to "predict" the direction of this FX rate movement in the next month? Then it's a matter of calculating potential profit/loss factor and adjusting your trade value. And yes, as with any high risk investment, putting all your eggs in one bucket is not a brilliant idea. Just like taking all your savings to Vegas.
If you've really worked in that field than it's very surprising you've never heard about what professional poker players call bankroll management (and they "stole" the concept from professional traders).
The whole point is that you can --either if you gain an edge or get lucky-- win big. Very big. But you're never exposing a large part of your funds in the process.
Maybe OP had an overall "stop loss" at, say, $10K. Had he had five minus $2K days in a row at the start, he'd be out. He wouldn't be broke. He wouldn't be without a car and without a bank account. He just would have lost $10K.
But there's no upper limit as to how much you can win.
All you need is discipline and sound bankroll management.
And, yes, I've won a five-digits figure (hence not anywhere near what OP did) real $$$ at online poker. Starting from $0.01/$0.02 small blind/big blind tables and then working my way up using bankroll management.
It's assymetric. You're foolish if you think that succesful traders who won $x were as likely to lose $x. This is simply not how it works and it's very well explained in OP's article. He's detailing what his maximal daily exposure was and it was tiny compared to what he made.
Risk management is probably the single most important thing to understand in trading. Unfortunately, it's something that lots of people learn late, if ever.
Folks get caught up in the romantic notion of betting it all and winning big, but end up losers. Meanwhile, the consistent winners they aspire to be are exposing perhaps 0.2% of their roll at a time.
Though, one thing I think is a bit unique to trading is prevalence of folks who preach without practicing. Just about anyone with a brokerage account can rattle off the same short list of critical do's and don'ts, but very few actually follow them.
With my program I didn't really have bad streaks because my P&L was averaged out over thousands of trades per day.
I played HUSNGs for a living for several years, and I could play three tables at a time (about 9 games per hour) with a 60% winrate. That's incredibly low variance--my graph over the long-term was better than a 45 degree incline.
This is really cool, any way you cut it.
With a quick bit of R code, we can simulate his PnL over 120 days multiple times, assuming he has no skill, and see what the probability of him being up 4k/day is. I'll use a t-distribution with 3 degrees of freedom, which allows big up and down swings (again, accentuating the effect of luck).
That is, there's a zero percent chance that he would have made those returns if he had no skill. And remember that this simulation is overestimating the effect of luck.
I'm thinking back to Garry Kasparov's piece in the NY Book Review a couple years back: nybooks/articles/archives/2010/feb/11/the-che.
He talks about a chess tournament in which it was "anything goes". competitors could be human, computers, or humans with computers. The expected outcome was that a grandmaster using a Deep Blue-like computer would win, but the winners ended up being a couple of amateurs with three computers:
& # 62; The surprise came at the conclusion of the event. The winner was revealed to be not a grandmaster with a state-of-the-art PC but a pair of amateur American chess players using three computers at the same time. Their skill at manipulating and “coaching” their computers to look very deeply into positions effectively counteracted the superior chess understanding of their grandmaster opponents and the greater computational power of other participants. Weak human + machine + better process was superior to a strong computer alone and, more remarkably, superior to a strong human + machine + inferior process.
So in HFT, how much room is there for an amateur to profit over professionals by having a sophisticated process?
HF traders are just as much hackers as anyone on HN (and there are plenty of HF traders on HN). So 'theoretically', they've already done what is being suggested here. If someone comes along and develops a winning strategy, it really shouldn't be considered as having anything to do with 'professional strategy vs novice strategies'. It would just be about one person either getting really lucky or coming up with something that is genius in its own right.
If there are 'professionals' and then other 'professionals' whose strategy depends on information about how other 'professionals' trade (and there is), you end up with strategies at all valid points in the sample space of possible strategies and counter strategies. Theoretically, there should be no other possible strategies. Inevitably someone will come up with one though, and the 'sample space' will grow. But its extremely unlikely that additional unique strategies are successful just because they 'counter' the strategies in the sample space. But then again, this is real life and these things aren't impossible.
I developed a fully-automated low-frequency stat arb system that I ran in 2007 based on a perhaps even simpler algorithm. It traded various equities equally to the long and short side regardless of market conditions so widespread rally or collapse was irrelevant. I logged about 20-30 trades/day - much slower.
The results, using no leverage, were +90% in a year with a worst drawdown of 2% and a Sharpe ratio of 2. Total trades were 5000+. Month-to-month the results were very consistent until the uptick rule was nixed in July 2007. August 2007 was a record winner for me, but Sept-Dec 2007 fell flat, not losing, but with greatly diminished profits and the same variation and more frequently getting slammed all-long or all-short instead of a mix that was often near-neutral. Also getting fills better than my orders then completely disappeared, as this was the beginning of the HFT middlemen - including your own brokerage. I shut it down at the start of 2008, keeping the profits intact and moving on to other priorities.
I continued to monitor the theoretical results for a couple of years but the conditions didn't return so I eventually cancelled my data feed.
I consider HFT to be any strategy where speed itself is the what gives the edge. Colocation is usually a prerequisite, though not sufficient. It's a shame HFT gets all the attention, when it's really a tiny portion of trading activity. Algo-trading in general is 70%+ of market activity in the US.
Also limiting trades isn't really adequate risk management. The tech exists to very accurately model your exposures. This is something I see underdeveloped a lot, and what separates the top trading firms from the rest.
Still I commend you creating a model, working out how to test and execute it automatically and actually trading your own money.
I really think more hackers should be actively managing their money, (in general, not like in the article). We have these amazing liquid markets, all time low spreads/commissions, products like ETFs/derivatives to accurately and cheaply execute a given strategy, and a huge increase in tech to model risk, but personal personal investing is the same as the 60s.
In Europe, HFT is mostly what OP describes, because they have reasonable control (e. g., you have to have one execution per 10 orders or pay a fine; in US exchanges, you can sometime finds 10,000 orders submitted in 3 seconds, hundreds of thousands per hour, with 10-20 executions).
& # 62; Also limiting trades isn't really adequate risk management. The tech exists to very accurately model your exposures.
That's basically what AIG did with copulas. Unfortunately, the assumptions in these models tend to break during crisis, when correlations go to one. And AIG went bankrupt.
Limiting trades, done correctly (mathematically AND legally) is the ONLY way to do risk management properly. With more assumptions, you can have "more efficient" risk management in terms of leverage (e. g., you can net S&P and RUSSELL exposure by assuming their correlation structure) - but as AIG has shown, that does not mean you are doing a better job of managing your risk.
silly example, 100 small positions could be less risky than 1 large position or, 1 long, and 1 short trade will cancel each other out and create a riskless portfolio (with 0 return).
You need to have a risk budget, account for each trade, and work out the risk for the composite portfolio. Obviously this is not fool proof, but it's a way better approximation of the real world.
Sim. And assumptions about this are bound to break at the most inopportune moment, see e. g. AIG, which I already referred to. Read about the "copula model" disaster, as your statement indicates you are unaware of its details. en. wikipedia/wiki/David_X._Li#CDOs_and_Gaussian_.
& # 62; 1 long, and 1 short trade will cancel each other out and create a riskless portfolio (with 0 return)
This is true if and only if the long and short are in the same exchange, AND exchange rules allow netting long vs. short deterministically. Otherwise, you have counterparty risk. E. g., you can be long SPY and short SP contract (in equal underlying), which would theoretically mean your only exposure is interest rate changes (and sometimes not even that!)
However, since this is in different exchanges, it might happen that during a flash crash, your SPY position will be liquidated for insufficient margin at a low price, but then the price bounces back, and you've lost money on a perfectly hedged position.
OP's model (limiting exposure and assuming the worst, if I understand correctly) is not statistically efficient use of margin, but it's way better at actually managing risk than any statistical model.
very interesting, a spike in sept-dec 2009 that roughly follows his PNL.
But, every time I've tried to actually get started, I've always found the amount of research required before being able to begin is just staggering.
It seems like the logical course of single-programmer HFT trading being:
- Find sample data.
- Build your trading program using sample data.
- When you're happy: connect to live API and set your trading program loose.
However, the first step and the third step seem like the ones which require the most research.
Is there somewhere which has a straightforward dump of timestamped market data available to download (free or not), in order to actually develop a working program?
Likewise, figuring out what to actually trade with, and which service to use is also pretty taxing.
If the easy part was building a working model either you got incredibly lucky or the model is wrong.
Symbols change, stocks split, dividends are announced etc.
The one interesting point that he glossed over is what his indicators were. He wrote, "The indicators that were most useful were all relatively simple and were based on recent events in the market I was trading as well as the markets of correlated securities."
Which doesn't really tell you much.
But for anyone coming to HFT from a coding background instead of a trading background, an explanation of one of your indicators would have been fascinating.
Worst case he runs out of capital over a period of weeks.
He can't blow up in the way that you think - but he can have large drawdowns over a period of weeks.
Markets are eventually consistent scalable systems - and that is why we prefer them over central planning. In the medium term they prices things correctly, cheaply and efficiently (decade+).
In the short term however (sub-decade) - they can't price jack.
Markets are inefficient period - if they weren't, well then P=NP and you could just put your NP-hard problems into a market and get back cheap, quick, accurate results. Oh - wait - protein folding is actually harder than that.
There are 2 major ways to make money in the markets. Value-Growth and statistical arb (often high frequency). The former (Buffett) is highly concentrated bets on the future of business (I'm value - long TSLA/GOOG/Samsung). The latter is looking for thousands of small diversified statistically significant correlations above 50% (random guesses) and trading costs between securities/price movements over short time intervals (aka statistical ghosts in the data - RenTech/Shaw).
Both work. Both work well. And will continue to do so as long as markets exist.
Making $500K on $100K over 6 months is good business.
Por exemplo. if you made 10% when overall market was up 15% for the year, you have negative alpha. [As someone could have bought index and held it through year to generate better return]
If you made 20% when market was up 10%, you have positive alpha.
That is why everyone in the investment community is 'seeking alpha'.
So the fees will be $3950 - $15,800 per day.
$15,800 - $79,000 per week.
And he surely wasn't paying retail prices - you can go down to around $0.50/future if you know what you are doing.
(In general, futures have 1:5 to 1:20 leverage)
$500 - 2,000 per day.
$2,500 - 10,000 per week.
$130,000 - $520,000 per year.
That's just the fees. He must make that much just to break even. If you can make that much starting with $30K, you're a supermotherfucking genius.
One "tick" (minimal movement) is worth 12.5 EUR. At volume you pay 0.5 EUR, IIRC, but let's assume you pay 1 EUR in fees, everything included.
If you bought and sold at the same price, you lost 1 EUR/trade. This is the cost of business.
If you bought, and sold after a favorable 1 tick movement, (e. g. bought at 4013.0 and sold at 4013.5), you're 10.5 EUR richer - 12.5 on the difference, minus 1 for each trade (one buy, one sell).
If you bought and sold after an unfavorable one tick movement (e. g. bought at 4013.5 and sold at 4013.0), you're 14.5 EUR poorer - 12.5 on the difference, and 1 for each trade (one buy one sell).
OP averaged $2/trade over 200,000 trades; that means he had 2/3 right calls, and 1/3 wrong calls or so if he only traded dax and only had 1 tick moves.
He was very smart, but you're looking at it wrong - the fees are the cost of doing business, much like salaries are the cost of producing software. In finance, you rarely care about revenue or "notional" (which can easily run into the trillions per year for a small trader - for.
1 eur, you get 75,000 eur in notional value on the dax).
You just roll the fees up-front into your choices when thinking about it, and it all makes much more sense.
(Not trying to take away from OPs very commendable achievement - just trying to give the common perspective on how to view this)
The biggest issue is the confusion that you can apply machine learning to HF trading. HF trading sub 15min mark is more about playing the deal flow, and only the institutions have an edge on this. This is why goldman had to separate the buy and sell sides in the early 2000's. Above 15mins you are able to find an edge using time series analyses since the market is scaling invariant according to Benoit Mandelbrot and this does not apply to dealflow. Also having access to dealflow allows you to predict volatilty seconds ahead which allows you decrease your risk and increase you reward as well as handle your costs since the volatility will impact your transaction costs even if transaction costs themselves stay the same. There is just so much stuff to cover that a comment will not do justice in explaining what is wrong with this guys logic.
Survivorship bias would mean I simply got lucky. If you're going to say that you're at least going to need to look at my P&L charts and say how I could possibly achieve that much success with luck alone.
Finally, machine learning has everything to do with my success. There were hundreds of variables in my algorithm that were ALL optimized using ML. If you read the article you would know that I built an accurate model for backtesting that I used to optimize variables as well as confirm that I was going to make money before I even started live trading.
I'm pretty confident that whatever you were doing in 2004 has nothing to do with what I was doing.
Why doesn't every hacker do this to make extra money? Is it within the grasp of anybody who can program to automate trading like this?
EDIT: Sounds like it's not really for everybody. You have to own or rent a server with access to direct lines to the exchanges, or else your lag will be such that profiting from HFT is impossible. How much do these cost?
A profitable predictor is a much, much harder problem.
At a place like Goldman Sachs, a quant with a working predictor gets paid 5 times as much as the IT guy who makes that predictor talk to the market quickly enough.
Because, as your question implies, it is (relatively) easy to do the IT work or hire someone to do it. Not so for the predictors.
Once you have the assets and capacity to actively manipulate the price of any stock at will, the market is a VERY different animal and no longer need to be understood at all. You simply force its hand.
I wondered the same thing and tried to answer it for myself not that long ago.
In short, it's hard, time-consuming, stressful and costly.
1) Your code has to work going forward. Coming up with something that works in backtesting is easy, doing it moving forward while staying within your risk envelope and considering all the associated costs is hard.
2) Closely related to #1. Whatever you put together is surely going to need plenty adaptation and oversight. It's a very fluid problem, you're just one player among countless others. How much time do you have in the day? Where is your capital coming from? For most people, the source of capital is a job that they probably can't ignore while fiddling with a trading program that would have to be remarkably successful to replace that income.
3) Everything costs money. You need a certain amount of capital to start with and there are all sorts of running costs. From the basic costs of execution, to market data and eventually co-location if you get that far. The fact that the OP kicked off with an amount that's essentially the barest minimum for any kind active trading is exceptional.
4) Can you maintain discipline and continue executing on all of the above while losing money? How many people struggle to simply get up on time, control their desire to check a particular website or to get over and move on from some frustration? Even if there's automation involved, trading will test your mental fortitude.
I have flirted with HFT in a hobby-like manner and it isn't the programming that will get you the money, it is the domain specific knowledge coupled with the programming. On top of that, there are quite a few risks and potential to lose a lot of money.
2.)Finding a good predictor. Predicting up or down is easy on paper. Finding a predictor that a.)beats the spread, b.)factors in lag time to execution, and c.)factors in commission, is hard.
3.)Market regime changes. What works a few months ago isn't guaranteed to work now.
"I was making a lot of money but now I've stopped" is the same thing as "I was lucky until I wasn't". Making a living by gambling pretty much sucks, which is why most hackers don't do it.
(You'd think that something as complex as markets would attract hackers trying to "figure it out". The problem is that due to the changing nature of the other participants, all hacks are temporary. Makes for great blog posts, but not a long term strategy.)
If you are relying on a broker-supplied pricefeed over the internet you are far outside the real of what is traditionally understood as "High Frequency Trading".
You talked about programming hotkeys (and then automating the hotkeys) so I assumed this was running on your desktop.
Would be even more awesome if you could share some code on github.
(former TT employee)
What does it depend on?
If he posts the code, you're a long way from running it.
If the tools work, sell them. If they don't, tweak them, try it again, and sell them until they do.
This is risk management.
It is a software implementation of the Viable System Model (VSM), a model for autonomous systems developed by Stafford Beer. It provides structure, communications, auditing and alerting for autonomous systems.
Part of it is base code for dealing with stocks and options, treating securities positions as autonomous systems that have the scaffolding for running simulations on themselves. It's in Smalltalk and runs under Squeak and Pharo. It can be found at:
I won't try to advertise it as a complete solution, but it might be the start of one.
Automated trading is more on strategy, while HFT has more to do with volume and speed. With automated trading, you predict price movements. HFT involves being a liquidity provider. You don't use market technical indicators in HFT, you wait for some really huge orders.
HFT firms won't bother him. Those are dealing with an entirely different set of algorithms. He should have contacted brokers instead.
even though its over 10 years old, is real HFT. moving correlations, windowed FFT (of bid and transaction events), microscopic operators, negative first-order autocorrelation of returns.
it is NOT about supplying liquidity or being a market maker. that's just market makers trying to say they are in on the latest trend.
Seriously though, there are some existing frameworks and products that you could check out. I haven't used this myself, it's just in my bookmarks:
And a low level library for data analysis: pandas. pydata.
Oh, I forgot about another backtesting framework for python. It has a built in IDE as well.
Zipline was unveiled at PyData NYC, and the presentation materials are here: app. quantopian/posts/hello-from-pydata.
Were you compounding the data always, or telling it to forget what was going on several months ago? Or somewhere in between?
(I'm pretty unfamiliar with machine learning, apologies if this is obvious or something)
zero. The article doesn't seem to expound on that unless I missed something.
Is this a result of bots on the other side adapting in some way to what you were doing? I would have thought you would be too small a player for them to notice.
We cannot even tell if $500k is a good risk adjusted return - we have no information on volatility, nature of the exposure or most importantly how much money he started with?
Not exactly shocked Jim Simons didn't return his email. But completely shocking that he walked away from a successful automated trading strategy. the only thing rarer than a free lunch is a man willing to walk away from one. suspect.
2. Author has stated elsewhere than he began with $10k in seed capital.
3. The "bullish" market you cite increased only about %70 in that timeframe while the author's returns were multiples of that number.
4. Author walked away from a _previously successful_ strategy that no longer produced profits. His montlhy returns went to nearly zero so he stopped.
Edited to fix numbers.
It is of course possible that once you made "real" money with your algorithm it was spotted by the other algorithms which then started working against it. (Aka exploiting it) Having talked with people in that space (hft) I was left with the impression that an insane amount of analysis was done on those trades.
Other than sheer luck, the most plausible explanation for your diminishing returns is that you found a strategy that worked _at that point in time_, other people copied it (starting with your broking firm), and as that strategy became more common your ability to make money disappeared.
I work in the industry, this happens all the time. Trading strategies have a shorter half life than you may think.
A lot of people in the business would pay e. g. $5,000 for exclusive rights for something that worked this well in 2009 (with proof that it worked in 2009, e. g. verifiable broker statements), and a smaller amount (say, $5,00) for non exclusive rights.
If he claimed it still works but he wants to sell it, it is a completely different game -- because when these things work, they are cash cows.
If you want to go back to trading, you'll probably have to actively try to get a job -- at the very least, let someone who's still in the business know that you are looking. In my experience in this field, word of mouth and friends-of-friends are infinitely more successful hiring strategies, for both sides.
(Re:releasing the source - I would like to have a look at the strategy, but I would recommend against releasing anything that is even close to being useful, unless you want to spend the next year screening "where can I get a good XTAPI broker" and "I've got XTrader_PRO set up, but I'm getting error 10013, what gives?" emails).
the Nuclear Phynance message board is probably a better place to look for business offers.
I traded stocks and Forex for years and my experience says, it is not for everyone. What ever indicators, discipline or model you follow it is going to work only if you have the right intuition or luck!
Could you explain this part, specifically what do you mean by "bucket"?
"To accomplish this I tracked predicted price moves in 50 buckets that depended on the range that the indicator value fell in. This produced unique predictions for each bucket that I was then able to graph in Excel. As you can see the expected price change increases as the indicator value increases."
Could you explain this part, specifically what do you mean by "bucket".
"To accomplish this I tracked predicted price moves in 50 buckets that depended on the range that the indicator value fell in. This produced unique predictions for each bucket that I was then able to graph in Excel. As you can see the expected price change increases as the indicator value increases."
If the market dives and you quickly get into a big long position, and then it dives some more - what do you do? You can either close out your losing trade and take the loss, or hope that the market comes back up, all the while holding on to the risk of further losses.
Also, there's no guarantee that trades in the middle of a flash crash will remain valid after the crash. The exchange could nullify all trades in a certain period of time, which would completely wipe out your upside potential.
This is the most important thing: In every single "flash crash", the exchanges have retroactively canceled trades, in a rather arbitrary manner (e. g., "every trade between 16:30 and 16:38 is null and void"). There is some underlying justification, but it is also arbitrary (e. g., "anything below 3% of the price when the flash crash started", with no specific justification for the 3% number, or a well defined methodology for the time of the crash).
That could easily turn a +$100K profit into a -$500K profit, depending on circumstance.
In the Flash Crash as well as the Knight Capital incident "up/down 30% from the Previous Close" was the price collar (anything outside that was busted and anything inside stood).
Of course there is no guarantee that the same criteria will be used the next time around so caveat emptor.
edit: I found what I was looking for in the comments.
PS: no sarcasm intended, it truly is an excellent advert.
1. when you have a good system (even one you cannot "improve" further), you don't talk about it. 2. You don't just stop using it.
There should be more to this story.
Last time I checked, NASDAQ and NYSE don't exactly publish API's.
"In 2008 I was “manually” day trading futures using software called T4. I’d been wanting some customized order entry hotkeys, so after discovering T4 had an API, I took on the challenge of learning C# (the programming language required to use the API) and went ahead and built myself some hotkeys."
If you want to make money from investing, why not do so in a socially responsible way? Invest in companies that are changing the world for the better. You might not bring home as much money, but at least you'll be able to sleep well at night.
This does not ring true.
And HFT or day-trading does bring some value to the world. It enables companies to go to the public markets and raise capital. And investors to sell their shares without having to wait too long for a buyer. But those positives come along with negatives as well.
I am not saying that this guy's trading did contribute to flash crashes! He may have successfully implemented systems to prevent that. I hope he did, and if so I'm interested to hear how.
Só brincando. It was a fascinating article. Obrigado por compartilhar.
The level of the coders doing HFT is beyond the comprehension of this guy, added to the team of Mathematicians, Physicists and computer scientists at your average HFT firm, they probably laugh when they read this.
Good try though, it was awesome that eventually he tuned it to profitability, but there's no way in hell they'd buy that amateur software/algorithm.
Kudos though for taking on the task of learning how to code and making money with ML.
He trade other people's money, using other people's (probably employer's) account and resources, I suppose.
His employer have paid all the fees, and, took all the risks - if there is profit - it is mine, if there is a lose - it is theirs.)
The essence of trading is about having a special (insider) position of even being a market maker, who just collecting fees from every trade other people do.)
But this is just my guess.
Taking a Machine Learning and Statistics course does not make you a trader. You need something else - access to the system.
This is why my guess is that he was an employee.
Except finance is supposed to be "serious". In most serious, legitimate activities, extracting money means you provided value somehow. So, what value high frequency trading could possibly provide?
Now I do have an idea where trading could be useful. For instance, a good old merchant doing arbitrage and making a profit is pretty useful: that's how different regions can specialize, do better than they otherwise would, and ultimately lift us from hunter-gatherer tribes where 60% males die a violent death, to our civilization now. And money, as evil as it may be perceived, is to date the best organizing medium humanity ever had.
Investors also have their use: by better allocating money among companies, we could hope to give more money to those who are better at converting it to actual wealth.
The OP didn't make a ton of money because his model of the the companies had an edge, but because his model of the behaviour of other traders had an edge. So I fail to see what useful information his trading put into the system. How his actions resulted in better (or worse) allocation of money between companies. How the (very serious) game he was playing was anything but zero sum.
Maybe there's an error in my reasoning. In this case, I'd happily accept downvotes, but please tell me where I have gone wrong. Not understanding why one's post is being scolded is just frustrating. Like failing an exam and being told to have a hard look at oneself. "Yeah, I get that, but what should I look for ?"
I do get the value of trading, investing, and some form of arbitrage. Heck, I don't have to search for the farm to get my milk. That's a service, and it does deserve a reward. What the author did is a bit different:
& # 62; Most of the market volume was other bots that would only execute a trade with me if they thought they had some statistical edge.
I understood it meant "they would trade with me only if they think I was the sucker". And of course, he would trade with them only if he thinks they were the suckers. It's not providing a service. It's fighting in a zero-sum economy.
Now he did say " most of the market volume". So there's a fraction that's not bots, and probably also a smaller fraction that does not even play the zero sum game, but instead does some positive-sum trading with the mostly-zero-sum players. But this interface boundary seems incredibly thin , compared to the internal zero-sum behemoth. That looks like a highly inefficient use of time, energy, and brains.
And even then, I'm not sure the zero-sum game provides any service to the rest of the world: zero-sum players base their models on the behaviour of each other, not on the actual performance of companies. That would add no new information to the system. At best, that only amplifies the effect of the few that actually predict company performance. And I doubt it does it well.
There are really only two actions in a market, providing liquidity (i. e. market-making) or taking liquidity (including arbitrageurs). Stretching the shopkeeper analogy, any time you put a price tag on an item you are taking a risk and exposing yourself. You slap a price on some bananas and then there is a tropical cyclone (it happened in Australia) and the price of bananas doubles. Someone smart swoops in (call them an arbitrageur), grabs your bananas and goes to the till and you legally have to sell them to him even though they're worth double now. You also have inventory risk, if you're holding a lot of bananas out back then there is the chance that they go rotten.
Every limit order (an offer to sell, or bid to buy) has an inherent risk that you should expect to be compensated for (or you wouldn't do it), and enhances the market. The more competition amongst people posting prices the better, it just means more liquidity (you can buy or sell as many bananas as you want) and tighter prices.
The liquidity taker on the other hand is all about exploiting a misprice. Say, Intel release earnings and are down 10%, but the price of the highly correlated ARM hasn't moved yet, if you are the fastest you can take advantage of some poor person who still wants to buy ARM at the same price as before this information was known. Keep in mind here, a price can move without any trades happening (or goods changing hands). The shopkeepers can whip around and change the price tag on their bananas if they are fast enough before anyone buys them.
It is harder to justify the liquidity taker - what marginal advantage is there to having the price of ARM react to that news in 2 milliseconds rather than 20? They force the transmission of information yes, but why is it better to have it happen a bit marginally quicker? On the other hand, how can you have a realtime market without them? It keeps the providers on their toes, and there will always be someone fastest to react.
Incidentally, providing liquidity must have been the chief function of the OP's algo - 4000 trades a day doesn't work for a liquidity taker that has to cross the spread. He isn't getting 2000 mis-price signals a day to swing at, good enough to justify crossing the spread. DAX traded 120k contracts yesterday, he would have been averaging 2-3% of daily flow.
I agree that "why" doesn't matter, if you know "what". When you don't however, "why" is a useful predictor.
I understand the value of arbitrage, to some extent. In its current form, it's quite heavy, but I can imagine we're better off allowing it.
We should compensate for value, not for risk. The two are not always correlated. I know trading is risky, but that's not the point. If it doesn't create value, it shouldn't be compensated. And I suspect some forms of trading create little to no value at all.
By itself, closing a deal doesn't mean you provided value. It means the other party thinks you provided value to them . When both parties think that, either it's a win-win situation, or someone got tricked. (Delayed bids and offerings complicate this, but it's the same principle.)
If I got it right, the OP did what we could call "short term speculation". If you predict something will rise, buy from a sucker who didn't. If you predict something will fall, sell it to a sucker who didn't. And of course, pray you are not the sucker. Locally, it's totally zero-sum.
Now maybe the whole system facilitates real transactions (with non-speculators) at the boundaries? But even then, for a given volume your reward doesn't seem to be proportional to your facilitation power (which I have no idea how to compute), but to how well you manage to trick your fellow traders. I very much doubt that such twisted incentives can foster a useful, let alone efficient, system.
Now maybe that little speculator who sold you the share at $10, he goes and works the bid, he advertises that he wants to buy a share at $9. Someone fills him. It take 2 minutes of trading to work to the front of the queue (easily possible with an equity). During that time, he is exposed to the risk that the stock might spike up in price, a risk you are no longer exposed to since you got your desired trade done $1 cheaper and 2 minutes ago. Then if he succeeds he makes his $1 profit. It doesn't always work - maybe 60% of the time the price ticks up and he just breaks even. He pays exchange fees and clearing on both the in and out trades too.
In theory, you could get involved in all of this with your 500 share purchase. Try to work the bid, get a better price, etc. or if you cross you are effectively paying for a service. Every order posted in the market is a service.
How wide are bid/offer spreads these days? How can that possibly be a bad thing?
In your example, it looked like you wanted your 500 share for something else than selling them. So you're talking about "real transactions (with non-speculators) at the boundaries". So yes, those transactions are a useful service provided to you by the speculators. I'm not denying that.
On the other hand, your wording seems to imply that most transactions are of this type (non-speculator with speculator). As far as I understand the system, they are not. If the OP is to be trusted, the vast majority of transactions are between 2 speculators trying to outsmart each other. Do we at least agree on that narrow point?
My second point is that a such a transaction (between 2 speculators) is zero sum. Locally, because whatever the first speculators won, the other lost. And globally, because wherever the share is, it could still be sold to a non-speculator. Making the transaction between speculators doesn't make it any easier. I'd say it could make it harder , for the non-speculators now have to buy the share faster than the speculators (or pay extra to have traders do it for them). Seriously, where is the value in that?
Now maybe a good speculator tends to provide a good service to non-speculators. However, they are not selected by the quality of the service they provide. They are selected by their ability to rip each other off. How quality of service arises from such a cut-throat competition is mysterious to me. (Usually, we compete for quality of service directly, so the connection is obvious. Speculating is not the same thing.)
Many things in our economy can be described as a zero-sum game. Society only needs so much of any given good, and at the retailer level you aren't involved in increasing demand. Two corner stores might get into a price/advertising war, but let's argue that there is still only a fixed amount of product they can sell to a small community. So advertiser's get fat on fees (in our case, exchanges do). So what is the point you ask? Evolution, competition, it can only be good for the consumer. You still haven't disputed that by the way, the consumer wins don't they? How could they possibly have lost? It takes a tin foil hat to think that it isn't better and cheaper to invest now.
" they are not selected by the quality of the service, just ability to rip each other off" - people have a bit of a naive view that there are some sort of magical harlem globetrotter moves you can pull on an order book. The mechanics are dead simple I'm afraid. It isn't chess, not even checkers. You can't even see the other participants, everything is anonymous on the exchanges I've dealt with. Spoofing is illegal, and that is about as clever as it gets. Very little you can do to make your algo better will put it at odds with providing a better quality service.
To prove that, remember the two types of algo. If I write a liquidity provider that doesn't offer a tighter spread than the competition, I will miss out on trade flow and make little or nothing. If I write a liquidity taker that has an opinion that is wrong about the correct value of a security, someone else who is right will smash me. So effectively we are selecting for more liquidity, tighter spreads, and more accurate prices reflecting available information.
But, if I got you right, the anonymity of it all mean we cannot separate the two… hmm… Then we've got to multiply the potential utility of the trade by the (quite low) probability of it being closed by a non-speculator. Still valuable, but much less. And I'm back wondering to what extent this is worth the (collective) effort. You did change my mind a little, though. I'll need to learn more.
& # 62; You still haven't disputed that by the way, the consumer wins don't they? How could they possibly have lost?
The consumer winning does count as creating value. However there are 2 parts in the retail store competition example: the part where they compete on quality, price, diversity… and the part where they pay fat fees to the advertiser. The first part benefits the consumer, the second just add inefficiency in the loop: if both stores could only agree to not use ads, everybody would win.
When Pareto Optimum and Nash Equilibrium are at odds, life sucks.
Comments
Post a Comment