ADX Channel EA
- Experts
- Alexander Nikolaev
- Versão: 1.0
- Ativações: 10
Este Expert Advisor desenha um canal com base nas leituras do indicador ADX (Índice de Movimento Direcional Médio) e negocia a partir dos limites deste canal quando o preço inverte. Uma negociação de venda é executada quando o preço toca e salta na linha superior do canal, uma compra - da linha inferior. Ao mesmo tempo, ele pode filtrar as entradas de negociação dependendo das leituras de outros indicadores: Estocástico, ATR e RSI. O canal desenhado por este indicador é um pouco como Envelopes ou Bollinger, e suas linhas dependem da volatilidade do mercado, e as linhas pontilhadas adicionais dependem das leituras + DI e -DI do indicador ADX. Se necessário, você pode desligar o desenho do canal, mas a negociação ainda ocorrerá como se fosse dos limites do canal. Você pode definir o horário de negociação no EA, é recomendável fazê-lo em um horário em que o mercado esteja mais calmo, por exemplo, à noite.
Parâmetros de entrada
- Lots - tamanho do lote (a 0, o lote será calculado a partir da porcentagem de fundos livres na conta);
- Percentage of free money - porcentagem de fundos grátis para abrir cada novo negócio (funciona quando Lotes = 0);
- IncLotAfterProfit - aumenta o lote após o fechamento lucrativo do negócio anterior;
- DecLotAfterLoss - diminui o lote após o fechamento não lucrativo do negócio anterior;
- OrdersComments - um comentário para negócios;
- MaxSpread - spread máximo para abertura de uma negociação (de forma que uma negociação seja aberta quando o spread não for alto);
- Magic - um identificador único (você precisa torná-lo diferente para vários EAs em funcionamento);
- StopLoss - preço de fechamento da ordem quando o nível de perda é atingido;
- TakeProfit - preço de fechamento da ordem quando o nível de lucratividade é atingido;
- EnableAutoClose - fechamento automático de ordens em um sinal oposto;
- StopToBreakeven - define o stop loss para breakeven depois de passar o número especificado de pontos;
- TrailingStopValue - valor da parada móvel em pontos (0 - parada móvel normal);
- StopToParabolicStep - parada móvel parabólica (0 - desabilitado);
- ADXChannelPeriod - período do indicador ADX para a formação do canal;
- Strength - a força para a formação do canal (quanto maior este parâmetro, mais o canal vai depender das leituras ADX);
- Strength2 - força para a formação de um canal adicional, indicada por linhas tracejadas (dependem das leituras de + DI e -DI);
- SignalOf2Lines - abre uma negociação apenas quando duas linhas indicadoras se cruzam ao mesmo tempo (se desativado, Strength2 não é usado);
- DrawChannelHistory - o número de barras para desenhar linhas do canal ADX (retarda o teste), 0 - não exibe o canal;
- ChannelColor - cor das linhas do canal ADX;
- StochasticFilterPeriod - habilita a filtragem de sinais pelo indicador Stochastic (0 = desabilitado, mais de 0 - configurando o período);
- StochasticSlowing - desaceleração do indicador Stochastic;
- StochasticLevels - níveis do indicador Stochastic (por exemplo, 30 significa que os níveis serão 30 e 70);
- PeriodRSI - período do indicador RSI (0 - não usar RSI para filtrar negociações);
- LevelsRSI - níveis do indicador RSI;
- AtrPeriod - período do indicador ATR;
- MinAtrLevel - o nível mínimo do indicador ATR permitido para negociação;
- MaxAtrLevel - nível máximo permitido do indicador ATR;
- Trading start hour - hora de início da negociação;
- Trading end hour - hora final de negociação;
- CntHoursForVerificationOrder - o número de barras a serem verificadas - se pelo menos uma negociação foi aberta (apenas para otimização, 0 - não use, como os próximos 2 parâmetros);
- ProfitToLossRatio - a quantidade de lucro para prejuízo (para otimização);
- MaxAllowableLoss - a perda máxima permitida na moeda da conta para o número especificado de barras (para otimização);
- ShowInfo - mostra algumas informações sobre os sinais do conselheiro.