Implement an ea with 3 partial closes and better time filter

MQL5 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 2 días
Comentario del Cliente
Simply PERFECT! It been a pleasure work with him
Comentario del Ejecutor
Better late than never. An interesting job and a client who understands things. Thank you.

Tarea técnica

Good morning all,

I need to implement my simple BB ea that at the moment is like this:

 

#define _doNothing   0

#define _doOpenBuy   1

#define _doOpenSell  2

#define _doCloseBuy  3

#define _doCloseSell 4

 

Instead of only 1 close I need 3 Partial close (so I need 2 input like pct1=30; pct2=30; ---pct3 is obviously automatically calculated like this 100-(pct1+pct2)) 

Everything must be code OnTick mode, if PARTIAL_SIGNAL_CLOSE is true than close a partial.

So I need 6 more defines:

#define _doClosePartialBuy1 5  

#define _doClosePartialSell1 6

#define _doClosePartialBuy2 7  

#define _doClosePartialSell2 8

#define _doClosePartialBuy3 9  

#define _doClosePartialSell3 10 

Partial close at 2 and 3 are different from 1, because are influenced by an integer (that should be make by you) that count minBars from the previous close.

The ea works like that: long, short, long etc... So the difficult part is that I need an ea that remember the last deal, if the metatrader disconnected or restarted or anything, the ea should understand if the last was a partial close or a normal close and if was buy or long.

I need also to implement my time filter until now it closes all opened at end time hour, instead when a position is opened the close hour shouldn't mean close opened position, but manage until normal signal close and don't open new one until start hour...also I need a different time filter for friday only

Han respondido

1
Desarrollador 1
Evaluación
(63)
Proyectos
80
28%
Arbitraje
17
12% / 76%
Caducado
48
60%
Libre
2
Desarrollador 2
Evaluación
(272)
Proyectos
394
63%
Arbitraje
70
53% / 26%
Caducado
198
50%
Libre
3
Desarrollador 3
Evaluación
(3)
Proyectos
5
20%
Arbitraje
1
100% / 0%
Caducado
3
60%
Libre
4
Desarrollador 4
Evaluación
(215)
Proyectos
302
79%
Arbitraje
4
25% / 0%
Caducado
62
21%
Libre
5
Desarrollador 5
Evaluación
(1235)
Proyectos
2820
80%
Arbitraje
156
22% / 43%
Caducado
488
17%
Libre
6
Desarrollador 6
Evaluación
(18)
Proyectos
37
43%
Arbitraje
6
17% / 50%
Caducado
17
46%
Libre
7
Desarrollador 7
Evaluación
(182)
Proyectos
342
42%
Arbitraje
118
12% / 73%
Caducado
104
30%
Libre
8
Desarrollador 8
Evaluación
(15)
Proyectos
18
61%
Arbitraje
4
0% / 100%
Caducado
8
44%
Libre
9
Desarrollador 9
Evaluación
(62)
Proyectos
140
46%
Arbitraje
19
42% / 16%
Caducado
32
23%
Libre
10
Desarrollador 10
Evaluación
(7)
Proyectos
15
47%
Arbitraje
6
33% / 17%
Caducado
4
27%
Libre
Solicitudes similares
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Helvetica Neue'} Hello Looking for someone to help me improve my current strategy on my own algorithm and to also add hedging mode
I want the script in mql5 language for my martingale strategy. The script should open trades in both directions buy and sell and if any trade closes in loss then open new trade in that direction by using the next volume and when trade closes in profit then reset the volume to first from volume list and also maximum consecutive losses limit will apply. If trades closes consecutively in losses and hits the limit then
Long Position 1. Trend Line: When a Lower High (LH) is formed, draw a trend line from the previous Higher High (HH) to the new LH. 2. Trend Line Adjustment: If a new Lower High (LH) is formed without breaking the trend line, redraw the trend line to the new LH. Draw a trend line between the Higher High (HH) and the Higher Low (HL). If a new Higher High (HH) is formed, remove the previous trend line and draw a new one
Please watch the video on this youtube channel and download the Indicator from there. https://www.youtube.com/watch?v=ldTomLu8DxE&amp ;t=32s Rules are explained on the video and the download of the indicator is on the same video
I would like an EA that follows exactly this steps to trade de daily candle. Watch the video and then see if you can do the task. https://www.youtube.com/watch?v=g3oDYq4P9ZE Document is one this link https://cdn.discordapp.com/attachments/1135977927469703230/1135978751461695598/Daily_Bias-TTrades_edu.pdf?ex=669a9a27&amp ;is=669948a7&hm=96de195f7e695a381c1261b065f67b94fae319d02a0c88641b146f8b2978320c& Should have
I have a custom EA that works fine in the live market trading, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell orders, but I can't find anything, especially since it works fine in the real market and it opens both buys and sells
Hi, I have an indicator from my friend, I want to copy it to my own MT5 can you do that for me. Here is the link
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks

Información sobre el proyecto

Presupuesto
200- USD
Plazo límite de ejecución
a 7 día(s)