Modification of an existing MT4 EA

MQL4 Asesores Expertos Sripts

Trabajo finalizado

Plazo de ejecución 16 horas
Comentario del Cliente
Great job, thanks very much.
Comentario del Ejecutor
Excellent customer. Clear specifications and fast payment. Thank you.

Tarea técnica

I have an MQL4 EA that works on 2 charts at the same time.  On the settings section the EA asks for a variable called ‘Maximum delay’.  And based on the number I give there, it creates a random number between 1 and that number.  Ex: If the Maximum delay is 10,000, it creates a random number between 1 and 10,000. Ex: 4516

It then puts that number on the chart and starts counting down from that number. As soon as the count down goes to zero, it opens the trades.

You can see the count down functionality on the video here:
https://gyazo.com/a23597b242fcfd3de09d802d43cb5fbb


Change 1:

The problem is that the countdown continues even on Saturdays and Sundays but it cannot open a trade as the market is closed. So, the countdown continues and goes to zero during the weekend.  As soon as the market opens it opens the trade as the count down is already waiting at zero.

It should actually stop where it is when the MT4 date/time turns to Saturday (or maybe when it stops receiving ticks?).  So, if the counter shows 2555 when the date turns to Saturday I want the counter to stop there and continue from 2555 when the market re-opens. So, the new trade is opened only after the counter goes to zero during market hours.

The settings of the EA has a section for trading days below and it actually works in terms of opening trades but it doesn’t stop the counter when the date is outside of trading dates.

http://prntscr.com/1z08f4t

Ex: Today is Tuesday. If I set Tuesday trading as 'false' on the EA it continues to count down. It shouldn't. 

Can a solution be created for this?

 

Change 2:

The counter start is determined based on this number on the settings section:
http://prntscr.com/1z09gk3

It basically picks a random value between 1 and that number on settings section and counts down for that many seconds before it opens a new trade.  Ex: if the random value is 3000, it counts down 3000 seconds before it opens a trade. 

There are 2 problems here. One of them is that the random value is never exceeding 30,000.  I made a research on that and fond that the EA the programmer used mathrand() function and it seems to support a number only up to 32767. So, I need a fix there. When I put a number like 650000 I need it to find me a random number up to 650000.  Ex: 375969. Currently it only finds me a number smaller than 32767.

The other problem is:

On top of the Maximum delay field I would like to add another field: Minimum delay(seconds): [TEXTBOX]

And  I would like the random value to be calculated from minimum delay to maximum delay instead of between 1 to the maximum delay.
Ex: Minimum delay(seconds) = 1000
      Maximum delay(seconds)= 8000

In this case it should create the random number from 1000 to 8000 instead of 1 to 8000.

When the random value is created I would like the trades opened when the count down from that number goes down to zero. (it already does this at the moment and I would like this functionality to be protected so it continues working the same way)

I will share the EA source codes with the selected programmer. 

Han respondido

1
Desarrollador 1
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
2
Desarrollador 2
Evaluación
(171)
Proyectos
194
11%
Arbitraje
37
38% / 35%
Caducado
5
3%
Trabajando
3
Desarrollador 3
Evaluación
(514)
Proyectos
776
63%
Arbitraje
33
27% / 45%
Caducado
23
3%
Libre
4
Desarrollador 4
Evaluación
(204)
Proyectos
209
28%
Arbitraje
0
Caducado
3
1%
Libre
5
Desarrollador 5
Evaluación
(42)
Proyectos
47
30%
Arbitraje
12
17% / 75%
Caducado
6
13%
Libre
6
Desarrollador 6
Evaluación
(131)
Proyectos
173
39%
Arbitraje
4
25% / 50%
Caducado
13
8%
Trabaja
7
Desarrollador 7
Evaluación
(351)
Proyectos
372
70%
Arbitraje
4
100% / 0%
Caducado
0
Trabaja
8
Desarrollador 8
Evaluación
(586)
Proyectos
1048
49%
Arbitraje
39
28% / 41%
Caducado
49
5%
Libre
9
Desarrollador 9
Evaluación
(66)
Proyectos
143
34%
Arbitraje
10
10% / 60%
Caducado
26
18%
Libre
Solicitudes similares
I’m looking for someone experienced with Think or Swim to create a backtesting script for an in-the-money Iron Condor strategy using options on the SPX. The strategy involves setting up 10 contracts of an Iron Condor with a 10-point spread width and a net credit requirement of $11 per contract. The goal is to backtest the performance over the last three years, focusing on trades where the SPX closes outside a
I currently have a license code that connects to my web server, and I add the account number, client name, and expiration date. I’d like something more automated. Currently I allow clients 10 licenses, but adding for them on my side can get exhausting. I’d like a better solution for myself and clients

Información sobre el proyecto

Presupuesto
30 - 150 USD
Para el ejecutor
27 - 135 USD