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

MQL4 Uzman Danışmanlar

İş tamamlandı

Tamamlanma süresi: 6 dakika
Müşteri tarafından geri bildirim
Very polite and responsive. And also very talented.
Geliştirici tarafından geri bildirim
Very Nice Customer, thanks and godd luck ...

İş Gereklilikleri

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 :)

Dosyalar:

PNG
Screenshot.png
128.2 Kb

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(769)
Projeler
1033
44%
Arabuluculuk
50
8% / 50%
Süresi dolmuş
117
11%
Serbest
2
Geliştirici 2
Derecelendirme
(137)
Projeler
167
35%
Arabuluculuk
11
91% / 0%
Süresi dolmuş
0
Serbest
3
Geliştirici 3
Derecelendirme
(350)
Projeler
553
32%
Arabuluculuk
24
67% / 8%
Süresi dolmuş
16
3%
Serbest
4
Geliştirici 4
Derecelendirme
(298)
Projeler
427
26%
Arabuluculuk
18
61% / 33%
Süresi dolmuş
26
6%
Serbest
5
Geliştirici 5
Derecelendirme
(258)
Projeler
395
28%
Arabuluculuk
69
19% / 49%
Süresi dolmuş
120
30%
Serbest
6
Geliştirici 6
Derecelendirme
(117)
Projeler
138
41%
Arabuluculuk
30
7% / 77%
Süresi dolmuş
17
12%
Serbest
7
Geliştirici 7
Derecelendirme
(277)
Projeler
334
55%
Arabuluculuk
14
36% / 29%
Süresi dolmuş
1
0%
Serbest
8
Geliştirici 8
Derecelendirme
(478)
Projeler
507
53%
Arabuluculuk
10
60% / 20%
Süresi dolmuş
3
1%
Serbest
Benzer siparişler
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

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD
Son teslim tarihi
from 1 to 4 gün