Checking Previous candles in EA to make sure they got the wanted signals to open the trade at the current candle

MQL4 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 6 minutos
Comentario del Cliente
Very polite and responsive. And also very talented.
Comentario del Ejecutor
Very Nice Customer, thanks and godd luck ...

Tarea técnica

Hi friends. I hope that you are fine. I built an strategy and I want to make an EA of it. I've already written the basic code, but I have a problem that I will explain:

I'll attach a picture to this post showing the indicator's results of my strategy with arrows up and down. In this picture you will see four  vertical lines. I'll tell you what those lines mean. The blue line is on the candle that shows an arrow up after its last arrow which is down with a red vertical line on the candle. The candle after the candle which has a blue vertical line is my long entry. My exist will be the candle after the candle which has an arrow down and a brown vertical line on it. Also notice that the last arrow is an up one which is on the candle with a green vertical line. At the exit, I want to open a short position too, and exit when a candle after the candle which an arrow up appears on it; And not to mention that there's an arrow down before it. And here again is a long position entry and this cycle goes on and on. I want to check previous candles to see two candles; one with arrow up after the one with arrow down, and vice versa, to make a new position at the current candle and also close the last position.

So basically if the 2nd last arrow was down (candle 1) and the last arrow was Up (candle 2) then buy on the open of the current candle and close the last (obviously sell) trade.

When 2nd last arrow up (candle 1) and last arrow Down (candle 2) then on current candle's open: close the last (obviously buy) trade and open new Sell trade.

I'll also share you my source code with you, but it's lacking the conditions of my buy and sell signals, for obvious reasons.

If you have additional question, don't hesitate to ask me :)

Archivos adjuntos:

PNG
Screenshot.png
128.2 Kb

Han respondido

1
Desarrollador 1
Evaluación
(769)
Proyectos
1033
44%
Arbitraje
50
8% / 50%
Caducado
117
11%
Libre
2
Desarrollador 2
Evaluación
(137)
Proyectos
167
35%
Arbitraje
11
91% / 0%
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(350)
Proyectos
553
32%
Arbitraje
24
67% / 8%
Caducado
16
3%
Libre
4
Desarrollador 4
Evaluación
(298)
Proyectos
427
26%
Arbitraje
18
61% / 33%
Caducado
26
6%
Libre
5
Desarrollador 5
Evaluación
(258)
Proyectos
395
28%
Arbitraje
69
19% / 49%
Caducado
120
30%
Libre
6
Desarrollador 6
Evaluación
(117)
Proyectos
138
41%
Arbitraje
30
7% / 77%
Caducado
17
12%
Libre
7
Desarrollador 7
Evaluación
(277)
Proyectos
334
55%
Arbitraje
14
36% / 29%
Caducado
1
0%
Libre
8
Desarrollador 8
Evaluación
(478)
Proyectos
507
53%
Arbitraje
10
60% / 20%
Caducado
3
1%
Libre
Solicitudes similares
I want have the possibility to increase lotsize not alone by Lot-multiplier rather I want add a fix-lot increase for excample for 0,05 lot. I want have this for buy / sell and hedge-buy and hedge sell
Hi, I want to make an automated system to take my place in making trading positions and closing it. But I want to ask , can you program it to draw a trend line in a specific chart and several moving averages should be in specific order, and when the price is near the trend line by few pips, we shift to 15 minutes chart and noticing a resistance or support action , then we take the trade ? can we do that
Develop EA to track performance metrics of strategies I would like to develop an EA that will track the performance metrics of the strategies I have running on a terminal, If any of the metrics start to under perform then the EA/Indictor should alert me with a pop up alert that specify's the metric that has triggered the alert. The EA should also display the metrics in a dashboard - please see my example screen shot
I would like to modify the RSI Epert Avisor with a developer. I would like to use the RSI Expert on the inverse mode and the base setting doesnt conatain this strategy mode
Profitable EA HFT 50 - 300 USD
From a long time i am searching for a profitable EA i have lost a lot , and now i have only 300$ to buy a profitable EA , i wish to say with 0 losses but some or most traders they don't want to hear this i am really tired of searching for a programmer to just create me a profitable EA with the least losses or zero losses maybe nearly 1 year i am searching i just need an HFT EA that can work very well on MT4,MT5
I need help fixing my EA for MT5. It’s a very simple EA, and I currently cannot solve an issue where webrequest communicates with OpenAi API without error. Please only apply if you can help solve this issue
у нас есть стратегия, нам нужно написать mql5-код ​​для тестера стратегий МТ5,Цена договорная. Мой контакт @abbosaliyev из Telegram Программист должен знать РУССКИЙ ИЛИ УЗБЕКСКИЙ язык. Задание: разработать тестер, который использует шаблон условий на открытие и проверит весь исторический график на всех доступных таймфреймах. Остальная информация будет предоставлена ​​после согласования цены
a coder is required to add an indicator to existing ea The new indicator will work as 1. option to combine with exiting indicator to open trade 2. it will be used as alternative BE point 3. It can also be used to close order or combine with other to close trade The second Job is telegram bot to get alert fr news trade and others Details when you apply i will test the ea work on live market and all bug is fixed before
Hello, I want to make an EA based on SMC and a developer that is familiar with the concept and full understanding of this. Must have done similar jobs before and be able show it. I only want to work with developer that has good track record and is precise. Further information will be handed when contact is made. Developers that has zero rating will not be considered. Listed price is a base point. The project can also
EA DEJA FABRIQUE ? MODIFIER QUELQUE LIGNE POUR LE RENDRE RENTABLE /////////////////////++++++++++++++++++++++++++++++++++ EA AVEC UN SYTEME SIMPLE ; SEULEMENT A MODIFIER %%%%%%%%%%%%%%%%%% SI PERSONNE SACHANT CODER CORRECTEMENT , CE TRAVAIL EST POUR TOI

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD
Plazo límite de ejecución
de 1 a 4 día(s)