Auftrag beendet
Spezifikation
Boa tarde.
Quero um robô baseado em médias móveis com as seguintes especificações:
1 - Média móvel de 20 períodos com cálculo no fechamento (20 MA close), média móvel de 5 períodos com cálculo no fechamento ( 5 MA LOW) e média móvel de 5 períodos com cálculo na máxima (5 MA High);
2 - STOP ATR de 2 desvios e 2 períodos;
Observações: quero poder selecionar a média móvel entre simples e exponencial;
Funcionamento do SETUP
3 - Quando a média móvel de 5 períodos calculada na mínima (5 MA LOW) estiver por cima da 20MA, se uma barra tocar ou penetrar a 5MA Low, o setup é ativado se barra seguinte romper a máxima dessa barra que tocou a 5MA low em 1 pip (1 tick).
4 - Na venda, quando a média móvel de 5 períodos calculada na máxima 5 MA HIGH estiver por cima da 20 MA, se uma barra tocar ou penetrar a 5MA HIGH, o setup é ativado se a barra seguinte romper a máxima dessa barra que tocou a 5MA HIGH em 1 pip (1 tick);
5 - Se a operação não tiver ocorrido e a média móvel rápida inverter o lado (ou seja, se a 5ma low passar para baixo da 20ma ou a 5ma high passar para cima da 20ma) o setup é desarmado;
6 - se a operação estiver ocorrendo, o setup não se desarma e espera o resultado na operação com gain ou loss;
7 - alvo fica localizado em 3,5% de gain ou 5% de gain. Após alcançar o primeiro alvo, no dia seguinte, o alvo de 3,5% fica na proteção da operação e o alvo final é 5%;
8 - Stoploss fica no STOP ATR de 2 desvios e 2 períodos. Se o preço ali tocar, a operação é encerrada no loss.
9 - Quero escolher o timeframe e a média móvel, ou seja, quero poder dizer se quero no m15, m30, diário...
10 - O Robô precisa estar correto para fazer backtest;
Segue uma imagem do SETUP, no gráficos as legendas são:
Vermelho: 20Ma
Azul: 5MA LOW
Rosa: 5MA HIGH
Amarelo: STOP ATR