EA Opening/Closing Trades at fixed Times and distinct Weekdays

MQL5 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 11 días
Comentario del Cliente
excellent
Comentario del Ejecutor
Thank you so much

Tarea técnica

Attention: I need the Source Code. This order is only valid if the Source Code File(s) are included.  

Name of the EA: "WeekdaySeason"

The EA has to trade fixed time blocks (time periods) per week.
Four (4) time blocks (Block1,Block2,Block3,Block4) can be defined with appropriate input parameters.

For each time block we need the input parameters as listed here for Block1:

parametername:    Block1Action            type: String       values:    {"Flat" "Long" "Short"}      default: "Flat"
parametername:    Block1DayIndex        type: Integer     values: {1 2 3 4 5}                           default: 1     
parametername:    Block1StartHour        type: Integer    values: {0 1 2 3 ... 22 23}                default: 15
parametername:    Block1StartMinute    type: Integer    values: {0 1 2 3 ... 58 59}                default: 35
parametername:    Block1EndHour          type: Integer    values: {0 1 2 3 ... 22 23}               default: 21
parametername:    Block1EndMinute      type: Integer    values: {0 1 2 3 ... 58 59}               default: 55

We need this set of parameters for each of the remaining time blocks Block2, Block3,Block4.
Therefore we will have 6 * 4 = 24 input parameters in total for the definition of the four blocks.

Trading Logik:

Example. Assume the input parameters for Block1 and BLock2 are set to the following values:

Block1Action            value: "Long"       
Block1DayIndex        value: 2
Block1StartHour        value: 14   
Block1StartMinute    value: 30
Block1EndHour          value: 16   
Block1EndMinute      value: 35   

Block2Action            value: "Short"       
Block2DayIndex        value: 5
Block2StartHour        value: 10   
Block2StartMinute    value: 15
Block2EndHour         value: 21   
Block2EndMinute       value: 59

Block3Action             value:"Flat"
.....
Block4Action             value:"Flat"

Explanation:         
The Block1Action is set to "Long", the EA has to place long trades. (The default value "Flat" means the whole block is not used. No trade for that block).
The Block1DayIndex is set to 2. The weekday of the block is Tuesday. (1 = Monday, 2 = Tuesday, 3 = Wednesday, 4 = Thursday , 5 = Friday)  
The Time when the trade has to be opened is 14:30 (SERVERTIME) as defined by Block1StartHour and Block1StartMinute.
The Time when the trade has to be closed is 16:35 (SERVERTIME) as defined by Block1EndHour and Block1EndMinute.

Therefore for Block1 the EA has to open a Long trade each Tuesday at 14:30 and close the trade at 16:35. (SERVERTIME)

The Block2Action is set to "Short, the EA has to place short trades.
The Block2DayIndex is set to 5. The weekday of the block is Friday.
The Time when the trade has to be opened is 10:15 (SERVERTIME) as defined by Block2StartHour and Block2StartMinute.
The Time when the trade has to be closed is 21:59 (SERVERTIME) as defined by Block2EndHour and Block2EndMinute.

Therefore the EA for Block2 has to open a Short trade each Friday at 10:15 and close the trade at 21:59. (SERVERTIME)

Block3 and Block4 have the BlockAction set to "Flat", so they are not in use.


Orders:
All trades are openend and closed using market orders.
When the StartTime has come to open a trade or the EndTime has come to close a trade the corresponding market order has to be submitted quickly within a few seconds,
at least within 30 seconds. Thus the EA must not rely on a certain timeframe and wait for Bar Closes. It must work both in the M15 and H1 timeframe.       


Lot size:
The fixed Lotsize can be set with an input parameter:
parametername: Lotsize            type: Integer        default: 1   


Han respondido

1
Desarrollador 1
Evaluación
(64)
Proyectos
93
37%
Arbitraje
11
27% / 45%
Caducado
14
15%
Libre
2
Desarrollador 2
Evaluación
(126)
Proyectos
160
36%
Arbitraje
4
25% / 50%
Caducado
13
8%
Libre
3
Desarrollador 3
Evaluación
(356)
Proyectos
632
26%
Arbitraje
89
73% / 13%
Caducado
12
2%
Libre
4
Desarrollador 4
Evaluación
(42)
Proyectos
47
30%
Arbitraje
12
17% / 75%
Caducado
6
13%
Libre
5
Desarrollador 5
Evaluación
(33)
Proyectos
49
12%
Arbitraje
16
0% / 88%
Caducado
10
20%
Libre
6
Desarrollador 6
Evaluación
(14)
Proyectos
19
11%
Arbitraje
1
0% / 100%
Caducado
5
26%
Libre
7
Desarrollador 7
Evaluación
(119)
Proyectos
169
38%
Arbitraje
9
78% / 22%
Caducado
15
9%
Libre
8
Desarrollador 8
Evaluación
(7)
Proyectos
17
41%
Arbitraje
3
0% / 100%
Caducado
3
18%
Libre
9
Desarrollador 9
Evaluación
(63)
Proyectos
84
26%
Arbitraje
23
22% / 48%
Caducado
23
27%
Libre
Solicitudes similares
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
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it
Hello, I have an indicator from a friend and I'd like to replicate it on my own TradingView or MT5 platform. Could you assist me with that?. Here is the link
so basically I have an EA(mql5), AI script(python), flask server and socket server both on python. Now this is an experimental script as I am trying to learn. However the EA is not entering any trades. How much would it cost for you to troubleshoot this for me? Thank you in advance
NEW FUNCTION 50+ USD
La idea es la siguiente, sería un EA semi automático. Yo como trader opero en zonas. En adelante las vamos a denominar ``zonas calientes´´. El EA debe que necesito debe operar conforme a 4 zonas calientes que yo configure en el mismo. ¿Qué hará el EA en cada una de esas zonas calientes que yo he configurado? En cada una de estas zonas el EA debe realizar hedging (crear un rango en el cual el EA entrara en sell o en

Información sobre el proyecto

Presupuesto
50+ USD
IVA (19%): 9.5 USD
Total: 59.5 USD
Para el ejecutor
45 USD
Plazo límite de ejecución
a 10 día(s)