Tâche terminée
Spécifications
Olá,
Eu gostaria de um EA baseado em Médias Móveis para MT5.
3 MÉDIAS MÓVEIS:
Média móvel exponencial de 20 períodos. (com possibilidade de alterar período, método simples, exponencial, linear, etc, e aplicar a máxima, mínima, fechamento, abertura, etc).
Média móvel simples de 04 períodos aplicar a MÁXIMA . (com possibilidade de alterar período, método simples, exponencial, linear, etc, e aplicar a máxima, mínima, fechamento, abertura, etc).
Média móvel simples de 04 períodos aplicar a MÍNIMA . (com possibilidade de alterar período, método simples, exponencial, linear, etc, e aplicar a máxima, mínima, fechamento, abertura, etc).
Com os preços abaixo da EMA20 , apenas para abrir posições de venda. Preços acima da EMA20 , apenas para abrir posições de compra.
Para abrir uma posição de venda:
Estando as barras abaixo da EMA20,
Quando uma barra fechar acima da "Higher SMA4" (SMA com base nos preços das máximas), abre uma posição de venda.
Quando uma barra fechou abaixo do "Lower SMA4" (SMA com base nos preços das mínimas), fecha a posição de venda. (Para fechar a posição, a referência EMA20 não importa. Só precisa fechar abaixo da Lower SMA4).
Para abrir uma posição longa:
Estando as barras a cima da EMA20,
Quando uma barra fechar abaixo da "Lower SMA4" (SMA com base nos preços das mínimas), abre uma posição de compra.
Quando uma barra fechou acima do "Higher SMA4" (SMA com base nos preços das máximas), fecha a posição de compra. (Para fechar a posição, a referência EMA20 não importa. Só precisa fechar acima da SMA4 superior .).
Quando uma posição já estiver aberta, não abrir outra, caso o setup ocorra novamente.
Há uma captura de tela para tentar mostrar no gráfico.
--------------------------------
IN ENGLISH
Hello,
I would like an EA based in Moving Averages for MT5.
3 MOVING AVERAGES:
20 Periods Exponential Moving Average. (malleable to change period, method simple, exponential, linear, etc, and apply to high, low, open, close, etc.)
04 Periods Simple Moving Average Apply To HIGH. (malleable to change period, method simple, exponential, linear, etc, and apply to high, low, open, close, etc.)
04 Periods Simple Moving Average Apply To LOW. (malleable to change period, method simple, exponential, linear, etc, and apply to high, low, open, close, etc.)
The prices below the EMA20, only to open short position. Prices above the EMA20, only to open long position.
To open a short position:
Bars below the EMA20, so...
When a bar closed above the Higher SMA4(SMA apply to High), it open a short position.
When a bar closed below the Lower SMA4(SMA apply to Low), it close the short position. (To close the position, EMA20 reference doesn't matter. Only need to close below the Lower SMA4.).
To open a long position:
Bars above the EMA20, so...
When a bar closed below the Lower SMA4(SMA apply to Low), it open a long position.
When a bar closed above the Higher SMA4(SMA apply to High), it close the long position. (To close the position, EMA20 reference doesn't matter. Only need to close above the Higher SMA4.).
When a position is already open, don't open another in case the setup occurs again.
There is a screenshot to try to show in the chart.