Robô virada de média + leitura de book

MQL5 Experts

Specification

Gostaria que fosse feito um robô que operasse ações, milho e outras comoddities com duas estratégias:

1 -Exemplo no milho, quando a média móvel exponencial de 9 períodos virar para cima, ele fará uma entrada na compra de 2 contratos (parâmetro 2), e se continuar virada pra cima, e fizer dois candles com fechamentos menores no gráfico diário, se superar a máxima desse candle no dia seguinte, ele fará outra entrada com mais 2 contratos (parâmetro 3). E assim sucessivamente. O fechamento de toda a posição se dará quando a média móvel exponencial virar para baixo (fechará a posição e abrirá posição do lado contrário). O robô fará as entradas e saídas as 16:00 do dia corrente (todo dia nessa hora (padrão parâmetro 5) ele verifica se a mme9 virou pra cima ou pra baixo e realiza as entradas/ saídas no mesmo dia da virada da média chamando a função 3 especificada abaixo).

2 - Igual à primeira, com uma modificação: quando fizer alguma das duas entradas (virou mm9 pra cima ou pra baixo, ou superou dois candles com fechamentos contra a média), o robô cadastrará todo dia o stop loss 1 centavo abaixo da mínima do candle do dia que gerou a entrada, e o stop gain de metade da posição (no caso do exemplo com 1 contratos, seria 1 contratos a metade da posição), no valor do stop gain 1x pra cima também (preço médio de entrada - stop loss), tanto na entrada quando vira a média móvel exponencial, quanto na entrada dos dois fechamentos menores, chamando a função 3 especificada abaixo. O robô irá renovar as ordens de gain e loss na abertura de todo pregão baseado no parâmetro 4. O sistema fará a saída total da posição, quando a média móvel exponencial de 9 virar pra baixo (fechará a posição e abrirá posição do lado contrário).

3 - Detalhe, para entrar e sair das posições, fazer uma função que recebe o nome ativo, tamanho da posição (no robô atual será o parâmetro 2 ou 3), segundos para atualizar (parâmetro 8) e tempo máximo (parâmetro 9), para o robô colocar a ordem de entrada ou saída no topo do book (se for compra colocar 1 tick acima da primeira ordem do book), ao invés de entrar a mercado, e contar um tempo (parâmetro 8) e a cada tempo especificado, ler o book e atualizar se a ordem não estiver no topo do book. Se passar do tempo máximo (parâmetro 9) ele altera a ordem pra entrar a mercado ( por exemplo, se for uma compra, lê o book de venda, e coloca 10 ticks acima da maior ordem de venda pra ir a mercado)


Parâmetros:

0 - estratégia 1, 2 ou ambas - default estratégia 1 

1 - ações ou contratos, pois contratos são múltiplos de 1 e ações múltiplos de 100

2 - numero de contratos/ações primeira entrada - default 2

3 - numero de contratos/ações entradas posteriores - default 2

4 - horário de início de negociação - default 9:00

5 - horário de entrada / saída - default 16:00

6 - tipo de média movel - default exponencial

7 - períodos da média - default 9

8 - segundos para atualizar as ordens de entrada/saída - default 6 seg

9 - tempo máximo para entrar a mercado

Responded

1
Developer 1
Rating
(356)
Projects
632
26%
Arbitration
89
73% / 13%
Overdue
12
2%
Free
2
Developer 2
Rating
(250)
Projects
400
38%
Arbitration
82
41% / 20%
Overdue
69
17%
Loaded
3
Developer 3
Rating
(2378)
Projects
2988
65%
Arbitration
76
47% / 14%
Overdue
340
11%
Free
4
Developer 4
Rating
(277)
Projects
334
55%
Arbitration
14
36% / 29%
Overdue
1
0%
Free
5
Developer 5
Rating
(415)
Projects
469
34%
Arbitration
25
40% / 44%
Overdue
6
1%
Loaded
Similar orders
EA for stocks 30+ USD
EA FOR STOCKS All in yellow are inputs of the EA Magic number: 111111 Direction: Only buy/Only sell orders First order: RSI period: 14 RSI up: 70 RSI down: 30 Buy order --> when RSI < RSI down Sell order --> when RSI > RSI up ----------------------------------------------------------------------------------------------------------------- First order Invest 1: 10€ TP: 1 €
EA Design 30 - 60 USD
I'm looking for someone to create a UI/design for my EA. The design should include news, as well as display the daily/weekly/monthly and total drawdown/Profit and amount of trades since the EA's usage. The design should have a modern touch to it. Please apply for the job with example images. I'm only looking for the code for the design, my EA will not be shared
I want an EA that can march the indicator behavior accurately. This indicator switches direction and crosses very quickly and follows the accurate trend at all time and want an EA to that will follow at all time and notice quick trend change and close the trade and place in right direction Indicator Setup: Define the two MAs with customizable periods (let's call them "Blue MA" and "Red MA"). Calculate the crossover
RSI+MA 30 - 70 USD
As seen in the pictures.. Respond and I will give full specifications of what the bot should execute trades.. Please let's not watse each other's time if the pictures don't give you a hint of what is needed
I need an expert in the development of a fully automated trading robot For MetaTrader. The Trading Robot must be "Web based" so it can be accessed or used through a website, You can view a screenshot here; https://www.awesomescreenshot.com/image/48030918?key=79b0ff91455d862746e9b649341f4cdb Why do i need? Simple Enough, This is what i need from my Trading Robot EA. The Trading Robot can only be accessed through a
Maybe this indicator will make a good ea but the aggressive entry moves and conservative entry is stationary and target tp2 which will make it a 0.3:1 aggressive entry is around a 1:1 with Tp 2 I want conservative entry and do aggressive entry pls do that too with the option too switch in the settings I want sl tp and trailing stop fire filter and auto lots fixed lots I get
Hi, I would enlist bids to create an EA, based on the following steps 1. Session Time - the EA will only take a trade during the selected time window, Example 8.30pm to 11.00pm (GMT+8). The example is for a bulllish candle for Buys entry. Entry criteria 1 - A level for buys will be marked by drawing a horizontal line (Example GBPJPY 194.252 Green Line) Entry criteria 2 - A 15min or 30 min candle to close above the
Hello, I am looking for an expert MT4 MT5 Programmer to build an expert advisor that works perfectly for the two metatrader, I would like to work with an experieced full time coder who can be able to pay attention to details, I will be sharing my specifications regarding the development of this algorithm as expected in comment section, Kindly show up if you are the best fit thanks
I would like to calculate the deviations between the companies listed below with Meta Trader. Would you be interested? BETWEEN 01.00 AT NIGHT AND 00.00 OF THE NEXT DAY (FOR HOURS WHEN THE GOLD MARKET IS OPEN) *Instant comparison of prices of the same parities of different companies *Determination of deviation rates in downward or upward movements (average prices, prices below and above the average) *Detection of
Maybe this indicator will make a good ea but the aggressive entry moves and conservative entry is stationary and target tp2 which will make it a 0.3:1 aggressive entry is around a 1:1 with Tp 2 I want conservative entry and do aggressive entry pls do that too with the option too switch in the settings I want sl tp and trailing stop fire filter and auto lots fixed lots I get

Project information

Budget
30 - 100 USD
For the developer
27 - 90 USD
Deadline
to 15 day(s)