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
(174)
Proyectos
199
12%
Arbitraje
38
37% / 34%
Caducado
5
3%
Trabaja
Ha publicado: 2 ejemplos
3
Desarrollador 3
Evaluación
(530)
Proyectos
802
62%
Arbitraje
33
27% / 45%
Caducado
23
3%
Libre
Ha publicado: 1 ejemplo
4
Desarrollador 4
Evaluación
(252)
Proyectos
258
30%
Arbitraje
0
Caducado
3
1%
Libre
Ha publicado: 2 ejemplos
5
Desarrollador 5
Evaluación
(42)
Proyectos
47
30%
Arbitraje
12
17% / 75%
Caducado
6
13%
Libre
6
Desarrollador 6
Evaluación
(132)
Proyectos
178
39%
Arbitraje
4
25% / 50%
Caducado
14
8%
Libre
7
Desarrollador 7
Evaluación
(467)
Proyectos
486
75%
Arbitraje
6
67% / 17%
Caducado
0
Trabaja
8
Desarrollador 8
Evaluación
(588)
Proyectos
1063
50%
Arbitraje
39
28% / 41%
Caducado
49
5%
Trabaja
Ha publicado: 1 artículo, 8 ejemplos
9
Desarrollador 9
Evaluación
(69)
Proyectos
146
34%
Arbitraje
13
8% / 62%
Caducado
26
18%
Libre
Ha publicado: 6 ejemplos
Solicitudes similares
PROJECT DESCRIPTION Looking for 1 experienced MQL5 developer to build 2 Expert Advisors for MetaTrader 5, targeting XAUUSD and major currency pairs. Strong preference for a single developer handling both EAs to maximize code reuse, reduce cost, and ensure consistency. EA1 — Grid Martingale Pro · Buy/Sell grid with Fixed or ATR Dynamic distance (ATR read once per fill, stored in grid_step_at_open[]) · Gap
Hi I have a simple task (hopefully) I have a custom strategy that I built with the help of Claude Anthropic - everything is finished and I zipped it with power shell but when importing it NT8 gives me the error message that the file was made from an older, incompatible version or not a NinjaScript. My folder structure is correct as far I can see so I don't know what the issues is and it's costing me too much to go
Do you happen to have a profitable strategy for MNQ? it is urgent if any one can help me with this i will be happy to discuss with you and move forward to pay for it kindly let me know the amount thank fill free to bid
Looking for an experienced MQL5 developer to design and develop a custom Expert Advisor (EA) for MetaTrader 5. The purpose of this EA is not just automated trading, but also to help me better structure, test, and refine my personal trading strategy
I am looking for a developer to build a robust MetaTrader 5 Expert Advisor for Gold (XAUUSD) scalping on the M5 timeframe. The EA must be optimized for small accounts ($200 - $1,000). Technical Requirements: Primary Strategy: Mean Reversion using Bollinger Bands (20, 2.0) and RSI (14). Buy: Price closes below lower band + RSI < 30 + Trend Filter. Sell: Price closes above upper band + RSI > 70 + Trend Filter. Trend
Olá amigos possuo um indicador que não tem o código fonte mas tenho a licença para usar esse indicador que está me trazendo bons resultados no meu operacional desejo automatizar as suas entradas através de um robô funciona mais ou menos da seguinte forma o indicador gera um sinal de compra ou venda e também gera um nível de take profit stop loss.O robô deve fazer a leitura dos sinais e definir TP e SL nos mesmos
An additional indicator signal will be added to the existing EA. The existing mechanical system will NEVER be changed. I will send you the necessary documents and codes. I will send you the necessary documents and codes. thank you
Need MT5 Expert Advisor base on my strategy XAUUSD Fast scalping, Grid , Martingale, TP, SL trailing buy sell both also add magic number fully atumated advance strategy Pro version 24 hours running trades close in profit directly open new trade
Freeallfree 400 - 800 USD
Professional MT5 EA – XAUUSD I need a professional Expert Advisor for MT5 (MQL5) to trade XAUUSD only. This is not a random scalping bot. The EA must trade only high-probability liquidity breakouts during active sessions and avoid ranging or low-volatility markets. Symbol: XAUUSD Timeframe: M15 (optional H1 confirmation) Session filter (Dubai GMT+4): Trade only London and New York sessions Adjustable session times No
Hi Developers, I am looking for a EA based on EURUSD where EA is taking multiple trades in a day with small profits in each trade. Looking for some EA based on HFT trading, scalping

Información sobre el proyecto

Presupuesto
30 - 150 USD