Skip to main content

Estratégia de negociação média móvel


Negociação Pullbacks.


Estratégia intradiária simples usando duas médias móveis.


Neste artigo vou mostrar-lhe uma estratégia muito simples para ações de negociação do dia e ETFs (ou qualquer outro mercado) usando pullbacks de preços, duas médias móveis e um gráfico de 5 minutos. Isso será tão básico quanto o indicador de preço. Embora básico, contanto que você aplique o posicionamento de baixo risco, corrija o tamanho da posição e aprenda a ficar fora do limite (preço whipsaws), você pode fazer negociações diárias usando médias móveis.


Certo, então talvez você não esteja confortável com as fugas de negociação como eu fiz ao longo dos anos. Alguns comerciantes simplesmente não podem tolerar entrar em um novo comércio, a menos que seja no que eles percebem ser um preço com desconto para a recente faixa de negociação da ação. Comprar novos máximos em uma fuga absolutamente petrifica algumas pessoas.


E tudo bem. Eu reconheço que minhas estratégias de negociação de dia de fuga e as estratégias no meu ebook não são para todos. Isso é o que faz um mercado.


COMPRAR EM FRAQUEZA E SHORTING ON STRENGTH.


A ideia básica aqui para transações de recuo é que, uma vez que o preço tenha exibido um movimento de impulso, como indicado por um cruzamento das médias móveis, esperar o preço retroceder e, em seguida, acionar uma negociação, o preço é retomado na direção da onda de impulso original. . Com a negociação de retração em vez de negociação de fuga, você está olhando para comprar em fraqueza após um forte movimento recente ou curto em força após um recente movimento forte para baixo.


Depois de um aumento, você deseja ver os vendedores reduzirem o preço para baixo até que o preço mostre que está pronto para retomar a alta. Você usará uma cruz das médias móveis para determinar a direção da onda de impulso e a média móvel mais rápida para determinar quando o preço recuou o suficiente para fornecer uma configuração de negociação. Então tudo o que você precisa fazer é esperar que uma negociação seja acionada usando um pedido de compra.


Eu não vou entrar usando estratégias de retração de Fibonacci neste artigo, mas eu gostaria de salientar que muitos traders usam retrações de fib entre 38% a 62% ao iniciar um trade pullback basicamente como um filtro para se ou não preço recuou o suficiente para "entrar", mas com muita frequência você verá que o preço faz um forte impulso, apenas faz um recuo muito superficial, nem mesmo para uma linha de 38%, e então continua com força ao longo de sua tendência. Este método vai levá-lo em muitos comércios se preço retraça para 38% ou não.


Se você não entende o que estou me referindo aqui, não se preocupe, não é importante para este método simples.


COMPONENTES


Média Móvel Simples (8 sma)


Média Móvel Simples (25 sma)


NEGOCIAÇÃO SINAIS DE ESTRATÉGIA


Comprar configuração: 8 sma cruza acima de 25 sma e preço faz um novo alto (para o alto: quantas barras de volta é opcional). O preço puxa de volta para abaixo dos 8 sma. Filtro: O preço não deve ficar abaixo do último preço baixo.


Buy Trigger: O preço sobe acima da barra anterior de 5 minutos.


Saída: Várias estratégias de saída são possíveis aqui, incluindo uma barra próxima abaixo da 8 sma OU uma quebra abaixo da mínima da última barra. Também uma meta de preço poderia ser usada em um nível de extensão de Fibonacci.


Configuração Curta: 8 sma cruza abaixo de 25 sma e o preço faz uma nova baixa (para baixo: quantas barras de volta são opcionais). O preço puxa de volta para acima dos 8 sma. Filtro: O preço não deve ultrapassar o último preço.


Gatilho Curto: O preço se move abaixo da mínima da barra anterior de 5 minutos.


Sair: as mesmas opções de saída, apenas invertidas.


Exigir uma quantidade maior de barras no lookback para uma nova alta ou baixa pode ajudar a mantê-lo fora da rotina. O trade off é a quantidade de negócios que serão reduzidos.


Outra opção para a negociação de retrocessos com médias móveis é simplesmente iniciar uma negociação, uma vez que os retornos de preços acima (negócios curtos) ou abaixo (operações longas) os 8 sma. Alguns, no entanto, acharão esse nível de discrição demais para ser tratado. Exigir uma configuração - e, em seguida, um gatilho (quebra da barra anterior) dá ao comerciante, especialmente um novo operador, dois pontos de referência para onde entrar - e onde sair. Negociar com muita discrição, imo, é um plano para o desastre.


Vamos dar uma olhada em alguns exemplos de pullbacks de negociação no QQQ etf usando um gráfico de 5 minutos.


Aprenda a fazer isso e duas médias móveis, juntamente com a determinação de permanecer com uma tendência, podem ser tudo o que você precisará para ser um operador de pullback. Enquanto isso, outros como eu continuarão usando técnicas de compressão e breakout de volatilidade.


Como usar médias móveis & # 8211; Negociação Média Móvel 101.


Como usar médias móveis & # 8211; Negociação Média Móvel 101.


As médias móveis são sem dúvida as ferramentas e indicadores de negociação mais populares. As médias móveis são uma ótima ferramenta se você souber usá-las. A maioria dos traders, no entanto, comete alguns erros fatais quando se trata de negociação com médias móveis. Neste artigo, mostro o que você precisa saber quando se trata de escolher o tipo e a duração da média móvel perfeita e as três maneiras de usar as médias móveis ao tomar decisões comerciais.


Como usar médias móveis & # 8211; O que você vai aprender:


Qual é a média móvel correta? Escolhendo entre o EMA eo SMA Encontrando o comprimento médio móvel perfeito para sua negociação A melhor média móvel para o swing trading e day trading Encontrando a direção da tendência e operações de filtragem Médias móveis como suporte e resistência Bandas de Bollinger e médias móveis.


Etapa 1: Qual é a melhor média móvel? EMA ou SMA?


No início, todos os traders se perguntam se devem usar o EMA (média móvel exponencial) ou a SMA (média móvel simples / suavizada). As diferenças entre os dois geralmente são sutis, mas a escolha da média móvel pode causar um grande impacto na sua negociação. Aqui está o que você precisa saber:


# 1 As diferenças entre EMA e SMA.


Há apenas uma diferença quando se trata de EMA vs. SMA e sua velocidade. O EMA se move muito mais rápido e muda de direção antes do SMA. O EMA dá mais peso à ação de preço mais recente, o que significa que, quando a direção da mudança de preço, a EMA reconhece isso mais cedo, enquanto o SMA leva mais tempo para girar quando o preço gira.


# 2 Prós e contras & # 8211; EMA vs SMA.


Não há melhor ou pior quando se trata de EMA vs SMA. Os profissionais da EMA também são seus cons - deixe - me explicar o que isso significa.


O EMA reage mais rapidamente quando o preço está mudando de direção, mas isso também significa que o EMA também é mais vulnerável quando se trata de dar sinais errados muito cedo. Por exemplo, quando o preço é rastreado durante uma alta, a EMA começa a cair imediatamente e pode sinalizar uma mudança na direção muito cedo. O SMA se move muito mais devagar e pode mantê-lo em negociações por mais tempo quando há movimentos de preços falsos e de curta duração. Mas, claro, isso também significa que o SMA faz com que você trabalhe depois da EMA.


No final, tudo se resume ao que você se sente confortável e qual é o seu estilo de negociação (veja os próximos pontos). O EMA dá-lhe mais e mais cedo sinais, mas também lhe dá mais sinais falsos e prematuros. O SMA fornece sinais menores e posteriores, mas também sinais menos errados.


Na minha negociação (clique aqui para ler sobre o meu sistema de negociação), eu uso um SMA porque me permite ficar em negociações mais como um comerciante de swing.


Etapa 2: Qual é a melhor configuração de período?


Depois de escolher o tipo de sua média móvel, os comerciantes perguntam a si mesmos qual é a configuração correta do período que lhes dá os melhores sinais ?!


Há duas partes para esta resposta: primeiro, você tem que escolher se você é um swing ou um day trader. E em segundo lugar, você tem que ser claro sobre o propósito e por que você está usando médias móveis em primeiro lugar. Vamos sobre isso agora:


# 2 A profecia auto-realizável.


Mais do que qualquer outra coisa, as médias móveis “funcionam” porque são uma profecia auto-realizável, o que significa que o preço respeita as médias móveis porque muitos comerciantes as usam em suas próprias negociações. Isso levanta um ponto muito importante ao negociar com indicadores:


Você tem que se ater às médias móveis mais utilizadas para obter os melhores resultados. As médias móveis funcionam quando muitos operadores usam e agem em seus sinais. Assim, vá com a multidão e use apenas as médias móveis populares.


# 3 Os melhores períodos médios móveis para o day-trading.


Quando você é um comerciante de dia de curto prazo, você precisa de uma média móvel que seja rápida e reaja imediatamente às mudanças de preço. É por isso que geralmente é melhor para os day-traders ficarem com os EMAs em primeiro lugar.


Quando se trata do período e do comprimento, geralmente há 3 médias móveis específicas que você deve pensar em usar:


Período 9 ou 10: Muito popular e extremamente rápido em movimento. Freqüentemente usado como um filtro direcional (mais tarde) 21 período: Médio prazo e a média móvel mais precisa. Bom quando se trata de montar tendências 50 período: média móvel de longo prazo e mais adequado para identificar a direção de longo prazo.


# 4 Os melhores períodos para o swing trading.


Os operadores de Swing têm uma abordagem muito diferente e normalmente negociam nos prazos mais altos (4H, Daily +) e também mantêm negociações por períodos mais longos. Assim, os comerciantes de swing devem escolher a SMA como sua escolha e também usar médias móveis de período mais longo para evitar ruídos e sinais prematuros. Aqui estão 4 médias móveis que são particularmente importantes para os comerciantes de swing:


Período 20/21: A média móvel de 21 é a minha escolha preferida quando se trata de negociação de swing de curto prazo. Durante as tendências, o preço o respeita tão bem e também sinaliza mudanças de tendência. Esta é a minha escolha preferida na minha negociação. 50 Período: A média móvel de 50 é a média móvel padrão de swing e muito popular. A maioria dos traders o utiliza para acompanhar as tendências, porque é o compromisso ideal entre prazos curtos e longos demais. 100 período: Há algo sobre números redondos que atraem os traders e isso definitivamente se aplica quando se trata da média móvel de 100. Funciona muito bem para suporte e resistência - especialmente no período de tempo diário e / ou semanal 200/250: o mesmo vale para as 200 médias móveis. A média móvel do período 250 é popular no gráfico diário, pois descreve um ano de ação de preço (um ano tem aproximadamente 250 dias de negociação)


Passo 3: Como usar médias móveis & # 8211; 3 exemplos de uso.


Agora que você sabe sobre as diferenças entre as médias móveis e como escolher a configuração de período correta, podemos observar as três maneiras como as médias móveis podem ser usadas para ajudá-lo a encontrar negociações, acompanhar tendências e sair de negociações de maneira confiável.


# 1 direção de tendência e filtro.


Marty Schwartz, o Mago do Mercado, foi um dos comerciantes mais bem-sucedidos de todos os tempos e foi um grande defensor das médias móveis para identificar a direção da tendência. Aqui está o que ele disse sobre eles:


“A média móvel exponencial de 10 dias (EMA) é o meu indicador favorito para determinar a tendência principal. Eu chamo isso de "luz vermelha, luz verde" porque é imperativo em negociar permanecer no lado correto de uma média móvel para obter a melhor probabilidade de sucesso. Quando você está negociando acima do dia 10, você tem a luz verde, o mercado está em modo positivo e você deve estar pensando em comprar. Por outro lado, negociar abaixo da média é uma luz vermelha. O mercado está em um modo negativo e você deveria estar pensando em vender. ”- Marty Schwartz.


Marty Schwartz usa um EMA rápido para ficar do lado direito do mercado e filtrar as negociações na direção errada. Só esta dica já pode fazer uma enorme diferença na sua negociação quando você só começa a negociar com a tendência na direção certa.


A cruz dourada e a cruz da morte.


Mas, mesmo como comerciantes de swing, você pode usar médias móveis como filtros direcionais. O Golden and Death Cross é um sinal que acontece quando a média móvel de 200 e 50 períodos se cruza e eles são usados ​​principalmente nos gráficos diários.


No quadro abaixo, marquei as entradas cruzadas Golden e Death. Basicamente, você entrava em curto quando o 50 cruza o 200 e entra em comprimento quando o 50 cruza acima dos 200 períodos em média. Embora a captura de tela mostre apenas uma quantidade limitada de tempo, você pode ver que a média móvel pode ajudar na sua análise e escolher a direção correta do mercado.


# 2 Suporte e resistência e interrompa a colocação.


A segunda coisa que as médias móveis podem ajudá-lo é a negociação de suporte e resistência e também a interrupção da colocação. Por causa da profecia auto-realizável sobre a qual falamos anteriormente, muitas vezes você pode ver que as médias móveis populares funcionam perfeitamente como níveis de apoio e resistência.


Palavra de cautela: intervalos de tendência vs.


As médias móveis não funcionam em mercados variados. Quando o preço varia entre suporte e resistência, a média móvel geralmente está em algum lugar no meio desse intervalo e o preço não o respeita muito.


A captura de tela abaixo mostra um gráfico de preços com uma média móvel de 50 e 21 períodos. Você pode ver que, durante o intervalo, as médias móveis perdem completamente sua validade, assim que o preço começa a tender e a balançar, elas atuam perfeitamente como suporte e resistência novamente.


# 3 Bollinger Bands e o fim de uma tendência.


As bandas de Bollinger são um indicador técnico baseado em médias móveis. No meio do Bollinger Bands, você encontra a média móvel de 20 períodos e as bandas externas medem a volatilidade do preço.


Durante intervalos, o preço flutua em torno da média móvel, mas as bandas externas ainda são muito importantes. Quando o preço toca as bandas externas durante um intervalo, muitas vezes pode prenunciar a inversão na direção oposta. Assim, mesmo que as médias móveis perdem sua validade durante as faixas, as Bandas de Bollinger são uma ótima ferramenta que ainda permite que você analise preços com eficiência.


Durante as tendências, o Bollinger Bands pode ajudá-lo a permanecer em negociações. Durante uma forte tendência, o preço geralmente se afasta de sua média móvel, mas se aproxima da Banda Exterior. Quando o preço rompe novamente a média móvel, sinaliza uma mudança de direção. Além disso, sempre que você vir uma violação da Banda externa durante uma tendência, ela frequentemente prefigura uma retração - no entanto, NÃO significa uma reversão até que a média móvel tenha sido quebrada.


Você pode ver que as médias móveis são uma ferramenta multifacetada que pode ser usada de várias maneiras diferentes. Uma vez que um trader entenda as implicações do EMA vs SMA, a importância da profecia auto-realizável e como escolher o período certo, as médias móveis se tornam uma ferramenta importante na caixa de ferramentas de um trader.


Na minha própria negociação, eu uso médias móveis para uma das minhas configurações bem e eles me ajudam a encontrar grandes negócios, semana após semana. Se você quer aprender como negociar como um profissional, dê uma olhada nos nossos cursos de negociação premium.


Comentários (7)


uma explicação muito boa, muito bom artigo! certas coisas são muito mais claras agora.


Descobri recentemente seu website e estou considerando seus cursos de treinamento.


As lições e vídeos gratuitos são um ótimo artigo introdutório & # 8211; Só espero que o resto dos cursos de treinamento seja tão bom. Muito boa estrutura e abordagem, adequada para noobs totais.


Muito bem explicado. Pode ser uma boa estratégia se eu não estiver errado.


Continue postando artigos como este.


Explicação muito boa mesmo. Obrigado por isso.


Uma pergunta: você acha que o uso de MA / Bollinger Bands também funcionaria bem em criptomoedas como Bitcoin?


Não, eu não penso assim. Não segue técnicas tão bem agora.


Primeiramente, muito obrigado por um artigo muito bom. Em segundo lugar, acabei aqui por causa do comércio de criptomoedas e plotei 100/50 MA em BTC / USDT e definitivamente poderia ver os cruzamentos de ouro e morte se alinhando com a mudança de tendências. Mais uma vez, obrigado um monte.


Artigo brilhante & # 8211; obrigado.


1 Q se eu puder & ldquo; as médias móveis exibem diferentes preços e sinais de negociação, dependendo do intervalo de tempo escolhido. Ou seja, os EMAs de 10 e 20 dias se cruzarão em pontos completamente diferentes, dependendo de se um deles estiver visualizando o gráfico em termos de 2 ou 10 minutos, e o preço médio real real também é diferente. Certamente, o preço médio móvel permaneceria o mesmo, independentemente do período de tempo escolhido? Existe um período de tempo ideal para um day trader?


você pode achar útil meu novo artigo e vídeo enquanto discuto a questão exata tradeciety / best-timeframe-trading /


Postar uma resposta Cancelar resposta.


Pesquise no blog.


Cursos de Negociação.


Evento de Negociação 16/17 de março, Cracóvia.


Durante a FxCuffs Forex Expo em 16 e 17 de março, apresentaremos nossas estratégias de Forex e estaremos disponíveis para encontros de traders.


Vamos nos conectar e nos unir para um grande evento.


Deixamos nossos empregos corporativos, viajamos pelo mundo, negociamos on-line e vivemos a vida em nossos termos.


Ajudamos outros comerciantes a realizar seus sonhos.


Diário de Negociação.


Jornal de Negociação Edgewonk.


Posts populares.


Nossos cursos de negociação.


Links Rápidos.


Somos dois caras da Alemanha que se cansaram das 9 às 5 e embarcaram na jornada de sua vida, negociando e viajando onde e quando quisermos.


Somos apaixonados por retribuir, pois não estaríamos nem perto de onde estamos hoje sem a ajuda de outros comerciantes veteranos que nos ajudaram no começo.


Se você considera se juntar à nossa comunidade, nós nos sentimos honrados por sua confiança e nos certificaremos de que cada minuto livre que temos será gasto em fazer o seu investimento valer a pena.


Isenção de Risco.


Nós usamos Unsplash. Um grande obrigado a todos os contribuidores do Unsplash!


Preço Ação Ebook (GRÁTIS)


Digite seu e-mail e obtenha acesso imediato ao ebook de ação de preço.


Forex trading strategy # 1 (Média móvel rápida de crossover)


Enviado por Edward Revy em 28 de fevereiro de 2007 - 13:07.


Sistemas de negociação baseados em médias móveis rápidas são muito fáceis de seguir. Vamos dar uma olhada neste sistema simples.


Pares de moedas: QUALQUER.


Gráfico de período: gráfico de 1 hora ou 15 minutos.


Indicadores: 10 EMA, 25 EMA, 50 EMA.


Regras de entrada: Quando 10 EMA passam por 25 EMA e continuam até 50 EMA, COMPRAR / VENDER na direção de 10 EMA, uma vez que ele passa claramente por 50 EMA. (Apenas espere a barra de preço atual fechar no site oposto de 50 EMA. Essa espera ajuda a evitar sinais falsos).


Saia das regras: opção1: saia quando 10 EMA cruzar 25 EMA novamente.


option2: sai quando 10 EMA retorna e toca 50 EMA (novamente é sugerido que espere até que a barra de preço atual, após o chamado “touch”, tenha sido fechado no lado oposto de 50 EMA).


Vantagens: é fácil de usar, e dá resultados muito bons quando o mercado está tendendo, durante grandes break-outs de preços e grandes movimentos de preços.


Desvantagens: O indicador de média móvel rápido é um indicador de acompanhamento ou também é chamado de indicador de atraso, o que significa que ele não prevê as direções futuras do mercado, mas reflete a situação atual no mercado. Essa característica a torna vulnerável: em primeiro lugar, porque pode mudar seus sinais a qualquer momento, em segundo lugar - porque precisa vigiá-la o tempo todo; e finalmente, quando o mercado negocia lado (sem tendência) com muito pouca flutuação no preço, pode dar muitos sinais falsos, por isso não é sugerido usá-lo durante esses períodos.


pls como eu faço estas médias continuar no gráfico ou continua automaticamente. também quais são as melhores faixas de dias para usar..5, 10, 20 ou 10, 25, 50.


Como eu sei que um mercado está negociando de lado?


As Médias Móveis Forex não se estendem no futuro, elas só podem seguir o preço de mercado.


Quanto às melhores configurações, há tantas delas quanto provavelmente negociadores negociando em Forex. A melhor maneira de saber qual configuração irá funcionar para você é testá-la. Experimentar com indicadores pode ser divertido!


Você pode dizer quando o mercado começa a se mover para o lado olhando para os EMAs: à medida que a inclinação desaparece, um padrão de EMA quase horizontal plano começa a emergir.


Enquanto o mercado está negociando de lado, não faz novas altas ou baixas novas. Você será capaz de desenhar linhas de canais simples e assistir ao mercado de negociação dentro desse canal. Uma interrupção do canal restabelecerá um modo de mercado de tendência.


Você poderia, por favor, me avisar o que significa EMA?


Eu sei que o MA está se movendo em média, mas o que o E significa?


Outro importante problema não claro para este sistema: Onde eu defino o stop loss?


EMA significa Média Móvel Exponencial. É uma média móvel rápida, onde mais peso é dado aos dados mais recentes.


Idealmente, um stop loss deve ser colocado acima / abaixo do anterior swing high (tendência de baixa) / low (tendência de alta). Se parecer estar longe demais, os comerciantes devem usar uma parada fixa que seria individual para cada caso e dependerá de uma abordagem de gestão e negociação de dinheiro escolhida por um negociante.


Oi, como faço para obter meu dinheiro (lucros) quando negocio e ganho lucros? qual é o procedimento / processo? é complicado.


Você será capaz de retirar seus lucros depois de fechar suas posições de negociação abertas.


Para fechar uma posição, você pode usar as regras de saída descritas acima.


Além disso, sugiro desenhar pontos de pivô e adicionar níveis de extensão de Fibonacci. Pivots e Fibonacci ajudarão a marcar possíveis metas de lucro. Você pode então sair desses níveis quando estiver com lucro ou apertar um stop loss e permitir que um trade continue até que os EMAs sejam revertidos (conforme descrito nas regras de saída acima).


muito obrigado por suas informações. Por favor, você pode dizer como fazer a segunda linha aparecer na plataforma do metatrader.


uma segunda linha .. hm .. você poderia por favor esclarecer o que exatamente você gostaria de fazer / alcançar?


Se for sobre adicionar uma segunda média móvel, basta adicionar outro indicador e alterar as configurações para qualquer valor que você precise.


Comerciantes ativos Pesquise - compartilhe sua experiência ao vivo ou leia o que os outros têm a dizer.


Negociação 101: Movendo Médias e Movendo Média Estratégias.


28 de setembro de 2017.


O que são médias móveis?


As Médias Móveis estão entre os indicadores de tendência mais populares em Análise Técnica. Eles fornecem uma visualização simples, mas poderosa, das tendências em andamento em um ativo. Eles são usados ​​por uma ampla variedade de razões, principalmente para as estratégias de acompanhamento e reversão de tendências.


Basta colocar médias móveis são pontos conectados calculados para cada dia (ou seja qual for o período de tempo). O cálculo em si é simples; você pega um determinado número de dias anteriores e calcula a média deles. Claro, você não precisa fazer os cálculos por conta própria. Todos os softwares básicos de gráficos e plataformas de negociação fazem as contas para você e traçam a média móvel (ou até dezenas de médias para essa matéria) no gráfico do ativo.


Como interpretar médias móveis?


Se você quiser saber o que significa uma média móvel, pense apenas que não é mais do que uma maneira suave de descrever o próprio movimento de preços. Então, se o MA está subindo, isso significa que o preço se eleva em um determinado período de tempo. É tão simples assim. Além disso, se o preço atual estiver acima de um determinado MA, isso geralmente significa que a tendência nesse período ainda está intacta.


Agora, a parte interessante é quando você usa os MAs para comparações. Você pode comparar dois MAs com diferentes intervalos de tempo ou simplesmente comparar o valor do MA com o preço em si. Isso pode ser útil por vários motivos, mas a conclusão mais importante que você pode fazer é o alinhamento de uma tendência de curto prazo e de longo prazo. Assim, você pode detectar reversões de tendência, pull-backs e pontos exatos de entrada e saída. Como? Vamos ver alguns exemplos.


Como usá-lo Trading?


As médias móveis podem ser usadas de maneiras praticamente ilimitadas, mas, como sempre, é aconselhável manter suas estratégias simples. Então, vamos ver os aplicativos básicos, mas mais robustos:


1. Determine a tendência em curso, comparando o preço e um determinado MA, e sua direção.


Isso é tão simples quanto parece; Primeiro, você toma a direção do MA, então você dá uma olhada no preço e vê se ele está acima ou abaixo do MA. Se o MA está subindo e o preço está acima, então é confirmado tendência ascendente. De acordo com isso, você deve negociar apenas no lado positivo desse período de tempo específico, já que negociar contra a tendência geralmente não é uma coisa sensata a se fazer. Então, para dar um exemplo, você pode ver uma clara tendência de alta no gráfico abaixo, com o MA de 200 dias aumentando o tempo todo.


A estratégia mais simples é ir muito quando o preço cruza acima da média móvel crescente e vender a posição quando ela cruza abaixo dela (isso funciona naturalmente com um MA decrescente e uma posição vendida, mas com o cruzamento de preço abaixo do MA).


Estratégia Média Móvel 1.


2. Compare dois MAs diferentes para determinar a tendência e as reversões.


A segunda, e provavelmente a estratégia mais popular para médias móveis é o chamado & # 8220; cross-over & # 8221; estratégia. As etapas são semelhantes à primeira estratégia; apenas em vez do preço, você usa um MA de curto prazo como o gatilho & # 8220; & # 8221; para os negócios, como você pode ver no gráfico abaixo. Muitos comerciantes usam a condição adicional de que a média de longo prazo deve estar avançando nessa estratégia.


Estratégia Média Móvel 2.


3. Identifique os recuos para inserir tendências com mais precisão.


Essa abordagem é a mais avançada dessas estratégias simples e pode ser útil para capturar uma porção maior de "oscilações" de mercado do que as duas estruturas anteriores. A idéia é pegar as condições da primeira ou da segunda estratégia, mas esperar por um recuo antes de realmente entrar na negociação.


Mas o que significa um pullback? Bem, isso depende da interpretação, mas a definição básica é que o preço toque o MA fornecido no caso da primeira estratégia. Quanto à segunda estratégia, uma maneira útil de definir um recuo é aguardar o retorno do preço entre o MA curto e o MA de longo prazo, assim como você pode vê-lo no gráfico abaixo. Dessa forma, você entrará em uma tendência já estabelecida com o benefício adicional de não obter uma posição de sobrecompra de curto prazo.


Estratégia Média Móvel 3.


Quando isso funciona?


Como é o caso de todos os indicadores, as médias móveis têm seus pontos fortes e fracos. Ao saber quando usar esses indicadores muito úteis, você pode evitar os erros comuns cometidos pelos operadores. O mais importante é que os MAs funcionem melhor em mercados de tendência.


Pelo contrário, em ações de preços laterais, essas médias podem dar entradas falsas ou causar supertrading por meio de sinais muito frequentes. Aplicar a direção de um MA de longo prazo como uma condição (por exemplo, ter um AM de longo prazo em ascensão como um requisito para posições longas) pode ser útil para evitar esses problemas.


Além disso, é melhor esperar pela confirmação antes de entrar em uma negociação. Por exemplo, se você está entrando em uma negociação usando a primeira estratégia, aguarde o segundo fechamento acima (ou abaixo para uma posição curta) da MA antes de “puxar o gatilho”. Desta forma, você pode evitar os "picos de preços", que são parte integrante dos mercados de forex e criptomoeda.


Imagem destacada da Shutterstock.


Classifique esta postagem:


Você precisa ser um membro registrado para avaliar isso. Carregando.


Negociação 101: Introdução ao Forex Trading.


Como várias classes de ativos foram realizadas durante as guerras anteriores.


Você pode gostar.


O Mercado de Criptomoedas Entra na Fase Corretiva como os Maiores Retirem das Elevações Recentes.


Dow Drops Como Cryptos Pop.


As criptomoedas são o último mercado livre na Terra?


Recomendação Comercial: Bitcoin.


Um guia para iniciantes do TRON (TRX) Cryptocurrency.


Atualização do mercado asiático - segunda-feira: ações asiáticas atingem alta de todos os tempos; declínio das criptomoedas.


28 de setembro de 2017 às 17h06.


Obrigado. Eu gostaria de ver mais artigos (MACD, RSI & # 8230;) como este.


Você precisa estar logado para postar um comentário Login.


Deixe uma resposta.


Você precisa estar logado para postar um comentário.


Negociação 101.


Como encontrar bons Swing Trading Set-Ups.


4 de fevereiro de 2018.


Swing trading é muitas vezes o ponto de partida para aqueles que estão olhando para se aventurar em negociação, e talvez fazer a mudança de ser um investidor para se tornar um profissional ativo. As razões para isso são simples; envolve negociação em um período de tempo médio, o que significa que é possível fazê-lo enquanto você ainda tem um emprego diário e pode complementar outros estilos de negociação, como day trading, trend trading ou scalping.


De acordo com a Investopdia, o tempo de espera típico para um comerciante de swing é de 1 a 4 dias. No Forex, normalmente manteríamos nossa negociação por no máximo 5 dias, a fim de eliminar o risco de manter uma posição enquanto os mercados estão fechados durante o final de semana. No entanto, para as criptomoedas, que são negociadas 24 horas por dia, 7 dias por semana, podemos adaptar nossas regras e não precisamos mais ser tão rigorosos quanto ao período de espera. Em criptografia, enquanto as condições para manter o comércio ainda são válidas, devemos nos apegar a ela.


O que é um swing em um mercado?


O preço de mercado de uma criptocorrência pode ser definido como o equilíbrio entre oferta e demanda em qualquer momento. É o preço em que um comprador e um vendedor concordam em fazer uma negociação. Ao longo do tempo, esses preços de equilíbrio podem se mover em tendências de alta ou de baixa ou mesmo de lado em um intervalo.


Um padrão típico de mercado é que os preços mudem de faixas de contratação para faixas de expansão. A mudança entre esses dois é chamada de “break-out”, e é aí que vemos movimentos fortes e rápidos de preços para uma nova área no gráfico.


Uma maneira de ver isso é comparar a contração de alcance a uma mola que está sendo compactada. O break-out ocorre quando toda a energia da mola é liberada, o que pode acontecer tanto para o lado positivo quanto para o lado negativo. Agora temos o começo de um “swing” no mercado.


Se este break-out for seguido por uma série de tops mais altos e maiores em “movimentos de onda”, o mercado formou uma tendência de alta. Se o inverso for verdadeiro, temos uma tendência de baixa. Cada onda é considerada seu próprio swing no mercado.


Como comerciantes de swing, nosso trabalho é pegar a parte mais violenta desse movimento - o break-out. Alguns traders escolhem manter o comércio através de várias variações e, assim, seguem a tendência, enquanto outros preferem vender uma vez que uma meta de preço pré-determinada tenha sido atingida.


Como identificar boas oscilações de potencial?


Na maior parte do tempo, os preços de qualquer instrumento negociável se movimentam dentro de um determinado intervalo. No mercado de ações, costuma-se dizer que o mercado está chegando a 80% do tempo.


Para verificar possíveis oportunidades de negociação, uma abordagem é primeiro analisar seus gráficos em um dos períodos de tempo mais altos, por exemplo, o período de tempo diário ou de quatro horas. Depois de identificar uma configuração promissora, mude para um período de tempo menor, como a de 1 hora, para procurar oportunidades de entrada específicas.


De um modo geral, existem três fatores importantes que você precisa levar em consideração ao procurar uma entrada como um comerciante de swing:


As oscilações devem acontecer na mesma direção geral da tendência que está ocorrendo nos prazos mais altos. Se estiver negociando criptografia, procure por momentos em moedas que compartilham características semelhantes àquelas que você está negociando. Por exemplo, se você está pensando em trocar uma moeda voltada para a privacidade como Dash, como estão as outras moedas de privacidade como Monero ou Zcash? No mercado de ações, procure ações no mesmo setor. Avalie cuidadosamente a tendência. Está ficando mais forte ou mais fraco? Uma tendência de enfraquecimento pode significar que está prestes a mudar de direção, enquanto uma tendência de fortalecimento pode significar o oposto. O volume de negociações está apoiando a tendência? Uptrends com volume gradualmente crescente são considerados os mais robustos.


Tempo e taxa de ganho.


O melhor instrumento para negociar é aquele que está exibindo o comportamento mais forte de sua classe. Então, para usar as moedas de privacidade como um exemplo novamente, escolha aquela que está tendendo da maneira mais forte entre elas. Esta é a moeda onde você quer colocar o seu comércio.


Além disso, não se esqueça de ajustar e ajustar sua estratégia às condições de mercado vigentes. Remember that the win rate of any trading strategy can change dramatically under changing market conditions, and make you go from being a profitable trader to a losing trader.


As swing traders, we need to be aggressive when we spot good opportunities. You cannot afford to pass on good trading opportunities. Make sure that you earn enough on your good trades to make up for the inevitable losses that will come.


Similarly, a swing trader also need to know when to stay away from the market altogether. It is equally important to recognize the conditions you should stay away from, as it is to be aggressive under the right conditions.


Lastly, remember the words of the legendary trader Jesse Livermore: “There is a time to go long, a time to go short, and a time to go fishing.” These are wise words that we all should remind ourselves of from time to time.


Good luck on your swing trading journey.


Featured image from Pixabay.


Rate this post:


You need to be a registered member to rate this. Loading.


Fredrik Vold.


Jonas Borchgrevink.


A New Trading Strategy? Using RSI and Stoch to find Entry Points.


January 28, 2018.


I started my CFD Journey on Thursday using a few rules that I created for myself. I’m now interested in trying to see if I can use RSI and Stoch in combination to create an even better trading strategy for myself. My previous rules were:


Only risk max 2% of my bank roll per trade. Have 0 active positions during the night (first of all, I lose sleep, second; you are charged an interest fee for leaving a leveraged product overnight.) Always trade on last month’s trend including the previous day(s). If they do not correlate, I will not trade. If one position is lost, I’ll double the amount (martingale) and do a second trade. I’ll only stop doubling after 3 consecutive losses. Do not think about lost trade opportunities. Markets to trade: Dax & Dow (minimum spread). Stay updated on economic releases prior to entering a trade. Do not have emotional ties to the money. I like to call them “points”.


Trend following has proven (historically) to be the most sound way to trade any asset. It’s indisputable. However, for CFD trading I never want to leave a trade overnight due to interest fees and sleep. It can be hard to do trend following when you have to be in and out of a trade quick. I got an idea today to try and use RSI and Stoch in combination to find the best entry points for my CFD trading. And my ultimate strategy would be to include it with my number 3 rule:


Always trade on last month’s trend including the previous day(s). If they do not correlate, I will not trade.


In combination with my new RSI and Stoch rule:


Only enter a position when an asset is overbought or oversold shown by both RSI & Stoch at the same time.


What is RSI and Stoch?


The relative strength index (RSI) is a momentum indicator developed by noted technical analyst Welles Wilder, that compares the magnitude of recent gains and losses over a specified time period to measure speed and change of price movements of a security. It is primarily used to attempt to identify overbought or oversold conditions in the trading of an asset.


Many say that an asset with an RSI above 70 is overbought (and should be sold) or if the RSI is below 30 it’s oversold (and should be bought).


The stochastic oscillator is a momentum indicator comparing the closing price of a security to the range of its prices over a certain period of time. The sensitivity of the oscillator to market movements is reducible by adjusting that time period or by taking a moving average of the result.


Asset with a stoch showing above 80 is considered overbought, and if the asset is showing less than 20 it’s considered oversold.


My mini experiment with the Dax 30 Minute Timeframe.


Below is the first crossover I found where RSI and Stoch is correlating going back a few days on the Dax index. Both give a buy signal when the indicators cross their lowest horizontal lines. Then I found out that if I were to sell when either one of the indicators crosses the overbought territory I would be able to Take Profit.


Looking at the Dax index back to January 17th, I would have won six trades and lost two trades based on this strategy alone (RSI and Stoch with a 30 min timeframe). If I were to implement it with my trade following rule, I would have initiated 0 trades during this period (where both the intraday trend and the monthly trend is correlating.) I’m not sure if I’m going to follow these rules by the book, but I’m definitely going to experiment with them the following week and give you an update in my posts.


Have you tried this before? Submit a comment below and let me know how it worked for you.


My trading rules are now updated to:


Only risk max 2% of my bank roll per trade. Have 0 active positions during the night (first of all, I lose sleep, second; you are charged an interest fee for leaving a leveraged product overnight.) Always trade on last month’s trend including the previous day(s). If they do not correlate, I will not trade. If one position is lost, I’ll double the amount (martingale) and do a second trade. I’ll only stop doubling after 3 consecutive losses. Do not think about lost trade opportunities. Markets to trade: Dax & Dow (minimum spread). Stay updated on economic releases prior to entering a trade. Do not have emotional ties to the money. I like to call them “points”. Only enter a position when an asset is overbought or oversold shown by both RSI & Stoch at the same time.


Rate this post:


You need to be a registered member to rate this. Loading.


Jonas Borchgrevink.


Trading 101: What is the Best Trading Software?


15 de janeiro de 2018.


As we all know, any kind of professional activity requires its own set of tools and equipment. Trading is no exception to this. It is also true that the more demanding your use is, the more expensive the required equipment tends to get. Still, when compared to other jobs you could take up, the equipment required to trade, whether it is in crypto, stocks, or forex, is quite cheap.


You have wide options available when it comes to choosing a platform to trade on. Cryptocurrency traders usually use an exchange with its own decent web-based trading interface, thus reducing the need for other platforms that forex and stock traders have traditionally used.


Many cryptocurrency traders instead opt to do their charting on a separate platform, and then place their orders directly on the exchange. In fact, separating trading and charting is a good practice that I usually recommend because it keeps you from making impulse trades when you are doing your analysis. If you instead do your analysis on a separate platform, and then need to log in to your broker to place the trade, chances are you will have time to reflect over what you are doing and thus reduce the likelihood of making mistakes.


Trading software packages also vary widely in price, from free basic packages to extremely expensive options designed for institutions. In this article, I will cover two of the most popular platforms for retail traders that are available for a relatively low cost.


TradingView.


Perhaps the most popular charting software for technical analysis right now is TradingView. This platform has earned the top spot over the past few years for very good reason, with the main one being its social experience.


TradingView lets users publish their own trade ideas for the rest of the community to see and rate. Ideas are usually based on technical analysis, and are drawn directly on the charts using the built-in tools for technical analysis.


While TradingView used to be a community mainly consisting of forex traders, a huge number of cryptocurrency traders have also come to the platform over the past year. The charting tool now supports a large selection of cryptocurrency trading pairs, and their “Cryptocurrencies” chat has become one of the most popular chats on the platform.


Lots of technical analysis enthusiasts will claim that TradingView is simply the best charting platform available today. It is simple enough for beginners to understand, while at the same offers all of the features an advanced trader would ever ask for.


You can start using TradingView for free today, and choose to upgrade to one of their paid plans later once you become comfortable with the platform. Although their prices have increased over the past few years, TradingView is still reasonably priced considering how powerful the platform is.


TradingView has the following subscription plans (month-to-month subscriptions):


All plans offer better prices if you opt for a 2-year subscription period. Personally, I feel that their PRO+ plan offers the most bang for the buck.


MetaTrader.


While TradingView is a web-based platform that runs directly in your browser, MetaTrader is a more traditional kind of trading software that you need to download on your computer. Originally built by Russian company MetaQuotes Software, MetaTrader is by far the most popular trading software for retail forex and CFD traders in the world.


We have previously talked about how you can profit from having robots trade for you, and this is probably what the MetaTrader platform has become best known for. You have the option of tracking the trades of a free robot, or paying for access to a (presumably) better one. You can also track the trades made by other human traders in the same way, also known as copy-trading.


MetaTrader users can also put their coding skills to work and develop their own trading robots or custom technical indicators. The end result of your work can either be used by yourself or sold to other users on the built-in marketplace.


As a new trader, it is really important that you don’t blindly buy into the promises of trading robots you come across, and that you are aware of their limitations. As Jonas explained in his recent article, oftentimes these robots will perform fantastic for a short amount of time before they eventually fail miserably, causing you to lose all the money you initially gained. Trading robots are sometimes optimized to perform perfectly in past market conditions, but that does not necessarily mean that they will perform equally well in the future. This is one of the big pitfalls of algorithmic trading, often referred to by traders as “curve-fitting” or “over-optimization.”


Lastly, there is no doubt that MetaTrader has a more advanced feel to it than TradingView, and it is also more complicated to learn how to use it. That alone, however, does not mean that it is a better platform to use.


MetaTrader or TradingView – which one should you go for?


Perhaps the best way to approach this is to think of MetaTrader and TradingView as complements of each other. You could for example use TradingView solely as a technical analysis tool and a social network for staying in touch with other traders, while placing your trades in MetaTrader (if your broker supports that platform).


Many traders who used to be hardcore supporters of MetaTrader have switched to TradingView, at least for their charting work. The most obvious reason for doing that is probably that TradingView runs in the cloud, and therefore automatically backs up everything you do on the platform. If your computer breaks down while using TradingView, you can simply get a new one and continue where you left off. With MetaTrader however, everything is saved locally on your hard drive, meaning everything you have done will be lost when your computer crashes.


For those active in the forex market, most brokers will offer their own web-based trading platform in addition to the MetaTrader platform. I would recommend starting with the web-based solution to learn the game at first. MetaTrader may feel overwhelming to start with, and there is no need to make things more difficult than they already are.


Once you have gained more confidence in the markets, you can try out MetaTrader if you feel the need for more advanced functionality or want to test out trading robots. If you instead prefer to do your own technical analysis, TradingView has you covered with pretty much everything you will ever need. By doing it this way and taking things one step at a time, your learning curve will become more manageable and your odds of success greatly improved.


Featured image from Pixabay.


Rate this post:


You need to be a registered member to rate this. Loading.


Fredrik Vold.


Recent Comments.


elliottbailey on Play that Funky Market topsytervy on How to Spend Bitcoin Kiril Nikolaev on Trade Recommendation: Litecoin dopezone on Trade Recommendation: Litecoin Kiril Nikolaev on Trade Recommendation: Litecoin Why I’m Bullish on Stellar Lumens.


Recent Posts.


Daily Analysis: No Questions Answered February 23, 2018 Technical Analysis: Correction Continues but Coins Remain Stable February 22, 2018 Crypto Correction Deepens With Bitcoin Falling Below $10,000 February 22, 2018 Robinhood Now Offers Cryptocurrency Trading in These Five States February 22, 2018 Trade Recommendation: Monero February 22, 2018 Trade Recommendation: Litecoin February 22, 2018 Trade Recommendation: Zcash/Ethereum February 22, 2018 Pre-Market: Bulls Try to Fight Back after Ugly Overnight Session February 22, 2018 Crypto Update: Bitcoin Tests $10,000 amid Correction February 22, 2018 My CFD Journey: Taking it slower, bringing in the profits February 22, 2018.


A part of CCN.


Hacked is Neutral and Unbiased.


Hacked and its team members have pledged to reject any form of advertisement or sponsorships from 3rd parties. We will always be neutral and we strive towards a fully unbiased view on all topics. Whenever an author has a conflicting interest, that should be clearly stated in the post itself with a disclaimer. If you suspect that one of our team members are biased, please notify me immediately at jonas. borchgrevink(at)hacked.


Litecoin Prices Could Be Undervalued Ahead of LitePay Launch.


Moving Averages - Simple and Exponential.


Table of Contents.


Moving Averages - Simple and Exponential.


Introduction.


Moving averages smooth the price data to form a trend following indicator. They do not predict price direction, but rather define the current direction with a lag. Moving averages lag because they are based on past prices. Despite this lag, moving averages help smooth price action and filter out the noise. They also form the building blocks for many other technical indicators and overlays, such as Bollinger Bands, MACD and the McClellan Oscillator. The two most popular types of moving averages are the Simple Moving Average (SMA) and the Exponential Moving Average (EMA) . These moving averages can be used to identify the direction of the trend or define potential support and resistance levels.


Here's a chart with both an SMA and an EMA on it:


Click the chart for a live version.


Simple Moving Average Calculation.


A simple moving average is formed by computing the average price of a security over a specific number of periods. Most moving averages are based on closing prices. A 5-day simple moving average is the five-day sum of closing prices divided by five. As its name implies, a moving average is an average that moves. Old data is dropped as new data comes available. This causes the average to move along the time scale. Below is an example of a 5-day moving average evolving over three days.


The first day of the moving average simply covers the last five days. The second day of the moving average drops the first data point (11) and adds the new data point (16). The third day of the moving average continues by dropping the first data point (12) and adding the new data point (17). In the example above, prices gradually increase from 11 to 17 over a total of seven days. Notice that the moving average also rises from 13 to 15 over a three-day calculation period. Also, notice that each moving average value is just below the last price. For example, the moving average for day one equals 13 and the last price is 15. Prices the prior four days were lower and this causes the moving average to lag.


Exponential Moving Average Calculation.


Exponential moving averages (EMAs) reduce the lag by applying more weight to recent prices. The weighting applied to the most recent price depends on the number of periods in the moving average. EMAs differ from simple moving averages in that a given day's EMA calculation depends on the EMA calculations for all the days prior to that day. You need far more than 10 days of data to calculate a reasonably accurate 10-day EMA.


There are three steps to calculating an exponential moving average (EMA). First, calculate the simple moving average for the initial EMA value. An exponential moving average (EMA) has to start somewhere, so a simple moving average is used as the previous period's EMA in the first calculation. Second, calculate the weighting multiplier. Third, calculate the exponential moving average for each day between the initial EMA value and today, using the price, the multiplier, and the previous period's EMA value. The formula below is for a 10-day EMA.


The Weighting Multiplier.


A 10-period exponential moving average applies an 18.18% weighting to the most recent price. A 10-period EMA can also be called an 18.18% EMA. A 20-period EMA applies a 9.52% weighting to the most recent price (2/(20+1) = .0952). Notice that the weighting for the shorter time period is more than the weighting for the longer time period. In fact, the weighting drops by half every time the moving average period doubles.


If you want to use a specific percentage for an EMA, you can use this formula to convert it to time periods and then enter that value as the EMA's parameter:


EMA Accuracy.


Below is a spreadsheet example of a 10-day simple moving average and a 10-day exponential moving average for Intel. The SMA calculation is straightforward and requires little explanation: the 10-day SMA simply moves as new prices become available and old prices drop off. The exponential moving average in the spreadsheet starts with the SMA value (22.22) for its first EMA value. After the first calculation, the normal EMA formula is used.


The formula for an EMA incorporates the previous period's EMA value, which in turn incorporates the value for the EMA value before that, and so on. Each previous EMA value accounts for a small portion of the current value. Therefore, the current EMA value will change depending on how much past data you use in your EMA calculation. Ideally, for a 100% accurate EMA, you should use every data point the stock has ever had in calculating the EMA, starting your calculations from the first day the stock existed. This is not always practical, but the more data points you use, the more accurate your EMA will be. The goal is to maximize accuracy while minimizing calculation time.


The spreadsheet example below goes back 30 periods. With only 30 data points incorporated in the EMA calculations, the 10-day EMA values in the spreadsheet are not very accurate. On our charts, we calculate back at least 250 periods (typically much further), resulting in EMA values that are accurate to within a fraction of a penny.


The Lag Factor.


The longer the moving average, the more the lag. A 10-day exponential moving average will hug prices quite closely and turn shortly after prices turn. Short moving averages are like speedboats - nimble and quick to change. In contrast, a 100-day moving average contains lots of past data that slows it down. Longer moving averages are like ocean tankers - lethargic and slow to change. It takes a larger and longer price movement for a 100-day moving average to change course.


Click on the chart for a live version.


The chart above shows the S&P 500 ETF with a 10-day EMA closely following prices and a 100-day SMA grinding higher. Even with the January-February decline, the 100-day SMA held the course and did not turn down. The 50-day SMA fits somewhere between the 10- and 100-day moving averages when it comes to the lag factor.


Simple vs Exponential Moving Averages.


Even though there are clear differences between simple moving averages and exponential moving averages, one is not necessarily better than the other. Exponential moving averages have less lag and are therefore more sensitive to recent prices - and recent price changes. Exponential moving averages will turn before simple moving averages. Simple moving averages, on the other hand, represent a true average of prices for the entire time period. As such, simple moving averages may be better suited to identify support or resistance levels.


Moving average preference depends on objectives, analytical style, and time horizon. Chartists should experiment with both types of moving averages as well as different timeframes to find the best fit. The chart below shows IBM with the 50-day SMA in red and the 50-day EMA in green. Both peaked in late January, but the decline in the EMA was sharper than the decline in the SMA. The EMA turned up in mid-February, but the SMA continued lower until the end of March. Notice that the SMA turned up over a month after the EMA.


Lengths and Timeframes.


The length of the moving average depends on the analytical objectives. Short moving averages (5-20 periods) are best suited for short-term trends and trading. Chartists interested in medium-term trends would opt for longer moving averages that might extend 20-60 periods. Long-term investors will prefer moving averages with 100 or more periods.


Some moving average lengths are more popular than others. The 200-day moving average is perhaps the most popular. Because of its length, this is clearly a long-term moving average. Next, the 50-day moving average is quite popular for the medium-term trend. Many chartists use the 50-day and 200-day moving averages together. Short-term, a 10-day moving average was quite popular in the past because it was easy to calculate. One simply added the numbers and moved the decimal point.


Trend Identification.


The same signals can be generated using simple or exponential moving averages. As noted above, the preference depends on each individual. These examples below will use both simple and exponential moving averages. The term “moving average” applies to both simple and exponential moving averages.


The direction of the moving average conveys important information about prices. A rising moving average shows that prices are generally increasing. A falling moving average indicates that prices, on average, are falling. A rising long-term moving average reflects a long-term uptrend. A falling long-term moving average reflects a long-term downtrend.


The chart above shows 3M (MMM) with a 150-day exponential moving average. This example shows just how well moving averages work when the trend is strong. The 150-day EMA turned down in November 2007 and again in January 2008. Notice that it took a 15% decline to reverse the direction of this moving average. These lagging indicators identify trend reversals as they occur (at best) or after they occur (at worst). MMM continued lower into March 2009 and then surged 40-50%. Notice that the 150-day EMA did not turn up until after this surge. Once it did, however, MMM continued higher the next 12 months. Moving averages work brilliantly in strong trends.


Double Crossovers.


Two moving averages can be used together to generate crossover signals. In Technical Analysis of the Financial Markets , John Murphy calls this the “double crossover method”. Double crossovers involve one relatively short moving average and one relatively long moving average. As with all moving averages, the general length of the moving average defines the timeframe for the system. A system using a 5-day EMA and 35-day EMA would be deemed short-term. A system using a 50-day SMA and 200-day SMA would be deemed medium-term, perhaps even long-term.


A bullish crossover occurs when the shorter moving average crosses above the longer moving average. This is also known as a golden cross. A bearish crossover occurs when the shorter moving average crosses below the longer moving average. This is known as a dead cross.


Moving average crossovers produce relatively late signals. After all, the system employs two lagging indicators. The longer the moving average periods, the greater the lag in the signals. These signals work great when a good trend takes hold. However, a moving average crossover system will produce lots of whipsaws in the absence of a strong trend.


There is also a triple crossover method that involves three moving averages. Again, a signal is generated when the shortest moving average crosses the two longer moving averages. A simple triple crossover system might involve 5-day, 10-day, and 20-day moving averages.


The chart above shows Home Depot (HD) with a 10-day EMA (green dotted line) and 50-day EMA (red line). The black line is the daily close. Using a moving average crossover would have resulted in three whipsaws before catching a good trade. The 10-day EMA broke below the 50-day EMA in late October (1), but this did not last long as the 10-day moved back above in mid-November (2). This cross lasted longer, but the next bearish crossover in January (3) occurred near late November price levels, resulting in another whipsaw. This bearish cross did not last long as the 10-day EMA moved back above the 50-day a few days later (4). After three bad signals, the fourth signal foreshadowed a strong move as the stock advanced over 20%.


There are two takeaways here. First, crossovers are prone to whipsaw. A price or time filter can be applied to help prevent whipsaws. Traders might require the crossover to last 3 days before acting or require the 10-day EMA to move above/below the 50-day EMA by a certain amount before acting. Second, MACD can be used to identify and quantify these crossovers. MACD (10,50,1) will show a line representing the difference between the two exponential moving averages. MACD turns positive during a golden cross and negative during a dead cross. The Percentage Price Oscillator (PPO) can be used the same way to show percentage differences. Note that MACD and the PPO are based on exponential moving averages and will not match up with simple moving averages.


This chart shows Oracle (ORCL) with the 50-day EMA, 200-day EMA and MACD(50,200,1). There were four moving average crossovers over a 2 1/2 year period. The first three resulted in whipsaws or bad trades. A sustained trend began with the fourth crossover as ORCL advanced to the mid-20s. Once again, moving average crossovers work great when the trend is strong, but produce losses in the absence of a trend.


Price Crossovers.


Moving averages can also be used to generate signals with simple price crossovers. A bullish signal is generated when prices move above the moving average. A bearish signal is generated when prices move below the moving average. Price crossovers can be combined to trade within the bigger trend. The longer moving average sets the tone for the bigger trend and the shorter moving average is used to generate the signals. One would look for bullish price crosses only when prices are already above the longer moving average. This would be trading in harmony with the bigger trend. For example, if price is above the 200-day moving average, chartists would only focus on signals when price moves above the 50-day moving average. Obviously, a move below the 50-day moving average would precede such a signal, but such bearish crosses would be ignored because the bigger trend is up. A bearish cross would simply suggest a pullback within a bigger uptrend. A cross back above the 50-day moving average would signal an upturn in prices and continuation of the bigger uptrend.


The next chart shows Emerson Electric (EMR) with the 50-day EMA and 200-day EMA. The stock moved above and held above the 200-day moving average in August. There were dips below the 50-day EMA in early November and again in early February. Prices quickly moved back above the 50-day EMA to provide bullish signals (green arrows) in harmony with the bigger uptrend. MACD(1,50,1) is shown in the indicator window to confirm price crosses above or below the 50-day EMA. The 1-day EMA equals the closing price. MACD(1,50,1) is positive when the close is above the 50-day EMA and negative when the close is below the 50-day EMA.


Support and Resistance.


Moving averages can also act as support in an uptrend and resistance in a downtrend. A short-term uptrend might find support near the 20-day simple moving average, which is also used in Bollinger Bands. A long-term uptrend might find support near the 200-day simple moving average, which is the most popular long-term moving average. In fact, the 200-day moving average may offer support or resistance simply because it is so widely used. It is almost like a self-fulfilling prophecy.


The chart above shows the NY Composite with the 200-day simple moving average from mid-2004 until the end of 2008. The 200-day provided support numerous times during the advance. Once the trend reversed with a double top support break, the 200-day moving average acted as resistance around 9500.


Do not expect exact support and resistance levels from moving averages, especially longer moving averages. Markets are driven by emotion, which makes them prone to overshoots. Instead of exact levels, moving averages can be used to identify support or resistance zones .


Conclusions.


The advantages of using moving averages need to be weighed against the disadvantages. Moving averages are trend following, or lagging, indicators that will always be a step behind. This is not necessarily a bad thing though. After all, the trend is your friend and it is best to trade in the direction of the trend. Moving averages ensure that a trader is in line with the current trend. Even though the trend is your friend, securities spend a great deal of time in trading ranges, which render moving averages ineffective. Once in a trend, moving averages will keep you in, but also give late signals. Don't expect to sell at the top and buy at the bottom using moving averages. As with most technical analysis tools, moving averages should not be used on their own, but in conjunction with other complementary tools. Chartists can use moving averages to define the overall trend and then use RSI to define overbought or oversold levels.


Using with SharpCharts.


Moving averages are available in SharpCharts as a price overlay. Using the Overlays drop-down menu, users can choose either a simple moving average or an exponential moving average. The first parameter is used to set the number of time periods.


An optional parameter can be added to specify which price field should be used in the calculations - “O” for the Open, “H” for the High, “L” for the Low, and “C” for the Close. A comma is used to separate parameters.


Another optional parameter can be added to shift the moving averages to the left (past) or right (future). A negative number (-10) would shift the moving average to the left 10 periods. A positive number (10) would shift the moving average to the right 10 periods.


Multiple moving averages can be overlaid the price plot by simply adding another overlay line to the workbench. StockCharts members can change the colors and style to differentiate between multiple moving averages. After selecting an indicator, open “Advanced Options” by clicking the little green triangle.


“Advanced Options” can also be used to add a moving average overlay to other technical indicators like RSI, CCI, and Volume.


Click here for a live chart with several different moving averages.


Suggested Scans.


Bullish Moving Average Cross.


This scan looks for stocks with a rising 150-day simple moving average and a bullish cross of the 5-day EMA and 35-day EMA. The 150-day moving average is rising as long as it is trading above its level five days ago. A bullish cross occurs when the 5-day EMA moves above the 35-day EMA on above-average volume.


Bearish Moving Average Cross.


This scan looks for stocks with a falling 150-day simple moving average and a bearish cross of the 5-day EMA and 35-day EMA. The 150-day moving average is falling as long as it is trading below its level five days ago. A bearish cross occurs when the 5-day EMA moves below the 35-day EMA on above-average volume.


For more details on the syntax to use for Moving Average scans, please see our Scanning Indicator Reference in the Support Center.


Further Study.


John Murphy's book has a chapter devoted to moving averages and their various uses. Murphy covers the pros and cons of moving averages. In addition, Murphy shows how moving averages work with Bollinger Bands and channel-based trading systems.


Additional Resources.


Stocks & Commodities Magazine Articles.


May 1993 - Stocks & Commodities V. 11:6 (257-260)


LearnDataSci.


Home » Python for Finance, Part 3: A Moving Average Trading Strategy.


Python for Finance, Part 3: A Moving Average Trading Strategy.


Python for Finance, Part 3: Moving Average Trading Strategy.


In the previous article of this series, we continued to discuss general concepts which are fundamental to the design and backtesting of any quantitative trading strategy. In detail, we have discussed about.


relative and log-returns, their properties, differences and how to use each one, a generic representation of a trading strategy using the normalised asset weights $w_i\left(t\right)$ for a set of $N$


tradable assets and a very simple, yet profitable strategy, the way to represent it and how to calculate its total return.


If you just found this article, see Part 1 and Part 2.


In this article, we will start designing a more complex trading strategy, which will have non-constant weights $w_i\left(t\right)$, and thus adapt in some way to the recent behaviour of the price of our assets.


We will again assume we have a universe of just 3 tradable assets, the Apple and Microsoft stocks (with tickers AAPL and MSFT respectively) and the S&P 500 Index (ticker ^GSPC ).


As a reminder, the dataframe containing the three “cleaned” price timeseries has the following format:


Moving Average Considerations.


One of the oldest and simplest trading strategies that exist is the one that uses a moving average of the price (or returns) timeseries to proxy the recent trend of the price.


The idea is quite simple, yet powerful; if we use a (say) 100-day moving average of our price time-series, then a significant portion of the daily price noise will have been “averaged-out”. Thus, we can can observe more closely the longer-term behaviour of the asset.


Let us, again, calculate the rolling simple moving averages (SMA) of these three timeseries as follows. Remember, again, that when calculating the $M$ days SMA, the first $M-1$ are not valid, as $M$ prices are required for the first moving average data point.


Let us plot the last $2$ years for these three timeseries for Microsoft stock, to get a feeling about how these behave.


It is straightforward to observe that SMA timeseries are much less noisy than the original price timeseries. However, this comes at a cost: SMA timeseries lag the original price timeseries, which means that changes in the trend are only seen with a delay (lag) of $L$ days.


How much is this lag $L$? For a SMA moving average calculated using $M$ days, the lag is roughly $\frac $ days. Thus, if we are using a $100$ days SMA, this means we may be late by almost $50$ days, which can significantly affect our strategy.


One way to reduce the lag induced by the use of the SMA is to use the so-called Exponential Moving Average (EMA), defined as.


& amp; \text \left(t\right) & = \left(1-\alpha\right)\text \left(t-1\right) + \alpha \ p\left(t\right) \ & \text \left(t_0\right) & = p\left(t_0\right)


where $p\left(t\right)$ is the price at time $t$ and $\alpha$ is called the decay parameter for the EMA. $\alpha$ is related to the lag as $$ \alpha = \frac $$ and the length of the window (span) $M$ as $$ \alpha = \frac $$.


The reason why EMA reduces the lag is that it puts more weight on more recent observations, whereas the SMA weights all observations equally by $\frac $. Using Pandas, calculating the exponential moving average is easy. We need to provide a lag value, from which the decay parameter $\alpha$ is automatically calculated. To be able to compare with the short-time SMA we will use a span value of $20$.


A Moving Average Trading Strategy.


Let us attempt to use the moving averages calculated above to design a trading strategy. Our first attempt is going to be relatively straghtforward and is going to take advantage of the fact that a moving average timeseries (whether SMA or EMA) lags the actual price behaviour.


Bearing this in mind, it is natural to assume that when a change in the long term behaviour of the asset occurs, the actual price timeseries will react faster than the EMA one. Therefore, we will consider the crossing of the two as potential trading signals.


When the price timeseries $p\left(t\right)$ crosses the EMA timeseries $e\left(t\right)$ from below, we will close any existing short position and go long (buy) one unit of the asset.


When the price timeseries $p\left(t\right)$ crosses the EMA timeseries $e\left(t\right)$ from above, we will close any existing long position and go short (sell) one unit of the asset.


How is this translated to the framework described in our previous article about the weights $w\left(t\right)$?


Well for this strategy it is pretty straghtforward. All we need is to have a long position, i. e. $w_i\left(t\right)$ >0, as long as the price timeseries is above the EMA timeseries and a short position, i. e. $w_i\left(t\right)$ < 0, as long as the price timeseries is below the EMA timeseries.


Since, at this point, we are not interested yet in position sizing, we will assume that we use all our funds available to trade asset $i$. We will also assume that our funds are split equally across all $3$ assets (MSFT, AAPL and ^GSPC).


Based on these assumptions, our strategy for each of the assets $i, i = 1, \ldots, 3$ can be translated as follows:


Go long condition: If $p_i\left(t\right) > e_i\left(t\right)$, then $w_i\left(t\right) = \frac $ Go short condition: If $p_i\left(t\right) < e_i\left(t\right)$, then $w_i\left(t\right) = -\frac $


Whenever, the trade conditions are satisfied, the weights are $\frac $ because $\frac $ of the total funds are assigned to each asset and whenever we are long or short, all of the available funds are invested.


How is this implemented in Python? The trick is to take the sign of the difference between then price $p_i\left(t\right)$ and the EMA $e_i\left(t\right)$.


One Final Caveat.


Before seeing the performance of this strategy, let us focus on the first day $t_o$ when the price timeseries $p\left(t_o\right)$ crosses above and EMA timeseries $e_i\left(t_o\right)$. Since $p\left(t_o\right) > e_i\left(t_o\right)$. At that point the trading weight $w_i\left(t_o\right)$ becomes positive, and thus according to our trading strategy, we need to set for that day $w_i\left(t_o\right)=\frac $.


However, bear in mind that $p\left(t_o\right)$ is the price of the asset at the close of day $t_o$. For this reason, we will not know that $p\left(t_o\right) > e_i\left(t_o\right)$ until the close of the trading day. Therefore, when calculating the returns of the strategy, to assume that on day $t_o$ we had a long position is an error; it is equivalent to us peaking into the future, since we only know we have to go long at the end of day $t_o$.


The best we can do is assume that we traded at the close of this day $t_o$. Therefore our position will be long starting on the following day, $t_o + 1$. This is easily corrected for by lagging our trading positions by one day, so that on day $t_o$ our actual position is that of the previous day $t_o – 1$ and only on day $t_o + 1$ do we have a long position. Thus:


Let us examine what the timeseries and the respective trading position look like for one of our assets, Microsoft.


Now that the position our strategy dictates each day has been calculated, the performance of this strategy can be easily estimated. To that end, we will need again the log-returns of the three assets $r_i\left(t\right)$. These are calculated as:


Note that our strategy trades each asset separately and is agnostic of what the behaviour of the other assets is. Whether we are going to be long or short (and how much) in MSFT is in no way affected by the other two assets. With this in mind, the daily log-returns of the strategy for each asset $i$, $r_ ^s\left(t\right)$ are calculated as.


r_ ^s\left(t\right) = w_i\left(t\right) r_i\left(t\right)


where $w_i\left(t\right)$ is the strategy position on day $t$ which has already been attained at the end of trading day $t-1$.


What does this mean?


Assume that $p\left(t\right)$ crosses above $e_i\left(t\right)$ sometime during the trading session on Monday, day $t-1$. We assume that at the close on Monday we buy enough units of asset $i$ to spend $\frac $ of our total funds, that is $\$\frac $ and that the price we bought at is $p\left(t-1\right) = \$10$. Let us also assume that on Tuesday, day $t$, the price closes at $p\left(t\right) = \$10.5$. Then our log-return for asset $i$ on Tuesday, is simply.


The actual return $r_ , i>^s\left(t\right)$ is.


r_ , i>^s\left(t\right) = w_i\left(t\right) \times \left[\exp \left(r_i\left(t\right)\right) – 1 \right] = \frac.


In terms of dollars, on Tuesday, day $t$, we made $N \times r_ , i>^s\left(t\right) = \$ \frac $.


To get all the strategy log-returns for all days, one needs simply to multiply the strategy positions with the asset log-returns.


Remembering that the log-returns can be added to show performance across time, let us plot the cumulative log-returns and the cumulative total relative returns of our strategy for each of the assets.


What is the Total Return of the Strategy?


Strictly speaking, we can only add relative returns to calculate the strategy returns. Therefore $$ r_ >^s\left(t\right) = \sum_ ^ r_ , i>^s\left(t\right)$$.


We saw in the previous article, however, that for small values of the relative returns, the following approximation holds $$ r_i\left(t\right) \simeq r_,i>\left(t\right)$$


Thus, an alternative way is to simply add all the strategy log-returns first and then convert these to relative returns. Let us examine how good this approximation is.


As we can see, for relatively small time-intervals and as long the assumption that relative returns are small enough, the calculation of the total strategy returns using the log-return approximation can be satisfactory. However, when the small scale assumption breaks down, then the approximation is poor. Therefore what we need to remember the following:


Log-returns can and should be added across time for a single asset to calculate cumulative return timeseries across time. However, when summing (or averaging) log-returns across assets, care should be taken. Relative returns can be added, but log-returns only if we can safely assume they are a good-enough approximation of the relative returns.


The overall, yearly, performance of our strategy can be calculated again as:


One can observe that this strategy signficantly underperforms the buy and hold strategy that was presented in the previous article. Let's compare them again:


Which Strategy is Better?


This is not a simple question for one to answer at this point. When we need to choose between two or more strategies, we need to define a metric (or metrics) based on which to compare them. This very important topic will be covered in the next article.


In addition, we observe in this last graph that the performance of the two strategies is not constant across time. There are some periods when one outperforms the other and other periods when it is not. So a second question that naturally arises is how do we mitigate the risk to be “tricked” by a good backtesting performance in a given period.


Georgios Efstathopoulos.


Georgios has 7+ years of experience as a quantitative analyst in the financial sector, and has worked extensively on statistical and machine learning models for quantitative trading, market and credit risk management and behavioural modelling. Georgios has PhD in Applied Mathematics and Statistics at Imperial College London, and is the founder and CEO of QuAnalytics Limited, a consultancy focusing on quantitative and data analytics solutions for individuals and organisation who wish to harvest the potential of their own data to grow their business.


Recommended.


Python for Finance, Part I: Yahoo Finance API, pandas, and matplotlib.


In detail, in the first of our tutorials, we are going to show how one can easily use Python to download financial data from free online databases, manipulate the downloaded data and then create some basic technical indicators which will then be used as the basis of our quantitative strategy.


Python for Finance, Part 2: Intro to Quantitative Trading Strategies.


Building on these results, our ultimate goal will be to design a simple yet realistic trading strategy. However, first we need to go through some of the basic concepts related to quantitative trading strategies, as well as the tools and techniques in the process.


Top Data Science Online Courses in 2017.


The following is an extensive list of Data Science courses and resources, from platforms like Coursera, edX, and Udacity, that give you the skills needed to become a data scientist.


Hey i need some help – when I go through the tutorials the script stops working in the second tutorial. Specifically, when I try the very first thing (after plugging in everything from the first tutorial)


I get: FileNotFoundError: [Errno 2] No such file or directory: ‘./data. pkl’


How can I fix this?


Also, in the first tutorial btw it doesn’t like “.ix” so i change it to “.loc” b/c I get this error:


DeprecationWarning:.ix is deprecated. Please use.


.loc for label based indexing or.


.iloc for positional indexing.


I know this was eventually answered on the Reddit thread, but I’m just going to re-answer it here in case anyone else has a similar issue.


The FileNotFoundError was caused because the data. pkl file was not present in the local GitHub repo. This was the file that contains the sample data for this exercise. This has now been remediated.


The DeprecationWarning is nothing to worry about, it is caused by an upgrade in the Pandas package.


Copyright © 2017 LearnDataSci. Todos os direitos reservados.

Comments