Spezifikation
Preciso Criar um EA semi automatico no qual faço as marcações iniciais e após ele segue uma regra de abertura e fechamento de posições, e movimenta Take, stop, e etc.
EA
1º Definir um primeiro canal (duas linhas horizontais azuis no exemplo), que podem ser arrastadas e projetam os próximos canais para cima e para baixo com o mesmo tamanho da primeira. A linha central tracejada é uma referência de 50% de cada canal.
2º O primeiro canal (o que é arrastado com as linhas azuis) deve receber o nome de CR.
3º O Canal superior devera receber o nome de ZN, é uma zona neutra, um espaço para o Trade oscilar em sentido contrario a ultima tendencia, mesmo que uma tendencia curta. A tendência é definida pelo últimos movimentos que romperam 2 canais ou mais, ZN ficará posicionada acima quando a tendência for de baixa e ficará posicionado abaixo de CR quando a tendência for de Alta.
Na primeira marcação, ZN deverá se mover para a posição contraria do CR se a linha de marcação 1 estiver anteriormente acima da linha 2, for movida para baixo da linha 2.
EXEMPLO EM ANEXO COMO POSIÇÃO
REGRAS DE TRADE:
Abrir trades SOMENTE no fechamento de Candle do tempo gráfico selecionado e rompendo um gatilho de abertura.
Só é considerado Rompimento quando o Candle fecha acima ou abaixo da região rompida, pavio não rompe.
A Tendência é compreendida pelo rompimento de dois canais com Candles fechados, a primeira tendência será definida manualmente pelo posicionamento do CR e ZN.
Se ZN estiver abaixo de CR será Tendência de ALTA.
Se ZN estiver acima de CR será Tendência de BAIXA.
A tendência será revertida quando ZN for rompida ou quando houver rompimento de dois canais ou mais.
Quando um Candle fechar após ter pego um Take, Stop ou Stop 0x0, o canal onde fechou esse Candle irá definir a próxima ZN e o próximo CR.
OPÇÕES DO EA:
OPERAR GRÁFICO: M1 M5 M15 M30 H1 H4 1D
TIPO DE OPERAÇÃO: LONG & SHORT SÓ SHORT SÓ LONG
QUANTIDADE DE TRADES: ÚNICO ATÉ LUCRO CONTÍNUO
MÁX. STOPS CONSECUTIVOS: DIGITAR NÚMERO
STOP 0X0: SIM NÃO
STOP SÓ NO FECHAMENTO: SIM NÃO
TAKE PROFIT: DIGITAR NUMERO EM % EX.:100%
STOP LOSS: DIGITAR NUMERO EM % EX.:130%
ABRIR EM 50% CR: SIM NÃO
NÍVEL DE ROMPIMENTO: DIGITEM UM NUMERO
TRAILING STOP: SIM NÃO
ESPECIFICAÇÃO DE CADA OPÇÃO:
OPERAR GRÁFICO: Escolher o tempo gráfico que o EA vai operar.
TIPO DE OPERAÇÃO: LONG & SHORT SÓ SHORT SÓ LONG
QUANTIDADE DE TRADES:
ÚNICO (abre somente um trade até um Stop ou Take)
ATÉ LUCRO (Abre trades até recuperar valores de stops + 1 Gain)
CONTÍNUO (abre todos os trades possíveis até ser desligado manualmente ou desligado por limitador de Stop)
MÁX. STOPS CONSECUTIVOS: Ao chegar no número máximo de Stops consecutivos, para as operações.
STOP 0X0: Se sim, mede a largura do CR e quando um Candle fechar 101% dessa largura acima do ponto de entrada e a favor do Take, movimenta o Stop para a Entrada.
STOP SÓ NO FECHAMENTO: Se selecionado SIM, não posiciona o Stop Loss na abertura do Trade, na abertura de cada Candle verifica se o passado fechou na zona de Stop e então encerra o Trade. Não irá pegar Stop com pavio de Candle. Se selecionado a opção NÃO, irá posicionar o Stop na abertura, e então, encerrará o Trade com pavio.
TAKE PROFIT: O percentual aqui definido, deverá ser multiplicado por 2 e multiplicado pela largura de CR e colocado acima ou abaixo do ponto de abertura do trade a favor do Take.
EX.: 90% = LARGURA DO CR (EX. 150 PONTOS) * 2 * 90% = 270 PONTOS.
STOP LOSS: O percentual aqui definido, deverá ser multiplicado por 2 e multiplicado pela largura de CR e colocado acima ou abaixo do ponto de abertura do trade a favor do Stop.
EX.: 130% = LARGURA DO CR (EX. 150 PONTOS) * 2 * 130% = 390 PONTOS.
ABRIR EM 50% CR: Se selecionado SIM, irá abrir ao romper CR após Preço fechar entre 50% e 100% da ZN e então fechar Candle rompendo 50% do CR. Se selecionado Não, somente abrirá Trades no Fechamento de Candle Rompendo ZN ou CR.
NÍVEL DE ROMPIMENTO: Número de pontos mínimos para considerar o rompimento.
Ex. Se estiver preenchido 10, significa que só irá considerar o rompimento de um Gatilho de entrada se romper GATILHO + 10 PONTOS.
TRAILING STOP: Se selecionado SIM, o primeiro movimento é o 0x0, e então, cada canal Rompido posteriormente com Candle fechado, irá subir ou descer o Stop na distancia de mais um canal a favor do Take.