Modification of an existing MT4 EA

MQL4 Experts Scripts

Job finished

Execution time 16 hours
Feedback from customer
Great job, thanks very much.
Feedback from employee
Excellent customer. Clear specifications and fast payment. Thank you.

Specification

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. 

Responded

1
Developer 1
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
2
Developer 2
Rating
(174)
Projects
199
12%
Arbitration
38
37% / 34%
Overdue
5
3%
Working
Published: 2 codes
3
Developer 3
Rating
(542)
Projects
821
62%
Arbitration
33
27% / 45%
Overdue
23
3%
Free
Published: 1 code
4
Developer 4
Rating
(258)
Projects
264
30%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
5
Developer 5
Rating
(42)
Projects
47
30%
Arbitration
12
17% / 75%
Overdue
6
13%
Free
6
Developer 6
Rating
(132)
Projects
178
39%
Arbitration
4
25% / 50%
Overdue
14
8%
Free
7
Developer 7
Rating
(470)
Projects
488
75%
Arbitration
6
67% / 17%
Overdue
0
Free
8
Developer 8
Rating
(589)
Projects
1066
50%
Arbitration
39
28% / 41%
Overdue
49
5%
Working
Published: 1 article, 8 codes
9
Developer 9
Rating
(69)
Projects
146
34%
Arbitration
13
8% / 62%
Overdue
26
18%
Free
Published: 6 codes
Similar orders
Darwish 30 - 100 USD
Hey, I want you to build an AI bot for buying and selling. I really like the structure and design of the information I sent you, so please use that as the base. I need the same logic and flow, but make sure it’s unique to me. The bot should handle buying and selling, and I want to control access most users get limited access, like one day, but I need a way to grant full, unlimited access if I choose. Don’t worry just
Super scalper 30 - 200 USD
Articles 1 How to create Requirements Specification for ordering a trading robot 28 MetaQuotes 225 289 Table of Contents Prerequisites for ordering a trading robot Why is it important to have a well-prepared Requirements Specification? Requirements Specification examples What is contained in the Requirements Specification? Where do I get Requirements Specification if I can't create it? Terms to use How to write an
Articles 1 How to create Requirements Specification for ordering a trading robot 28 MetaQuotes 225 289 Table of Contents Prerequisites for ordering a trading robot Why is it important to have a well-prepared Requirements Specification? Requirements Specification examples What is contained in the Requirements Specification? Where do I get Requirements Specification if I can't create it? Terms to use How to write an
HFT Directional Grid Scalper (Simple, Training Project) Overview We are looking for a developer to create a high-frequency grid scalper with a simple, deterministic logic. This is not a complex bot — the goal is to have a clean implementation for training, testing, and educational purposes. The bot should: Continually open trades in one direction only (BUY or SELL) Use ATR-based grid spacing Maintain a fixed lot size
i have a tradingview simple indecator of 40 lines of code ,i want it to convert it into mt5 EA strategy details given below AUTOMATED TRADING STRATEGY Multi-Lot Execution & Dynamic Trailing Stop Logic System Architecture & Operational Rules Trading Bot Strategy Profile Entry Conditions Buy Logic • • • Wait for Buy Signal candle. Confirmation: Future candle must break the signal high. Execution: Open 2 orders of 0.01
HFT Directional Grid Scalper (Simple, Training Project) Overview We are looking for a developer to create a high-frequency grid scalper with a simple, deterministic logic. This is not a complex bot — the goal is to have a clean implementation for training, testing, and educational purposes. The bot should: Continually open trades in one direction only (BUY or SELL) Use ATR-based grid spacing Maintain a fixed
I want a accurate indicator with buy and sell arrows or circle.. with exit points which trade xauusd and btcusd via weekend ... for small like R100 or 500 .... like which can grow small accounts with ... on for serious developer.. no bullshit ... I need on Friday please
I'd like to automate a relatively simple strategy in Sierra Chart, but I'd like to have it backtested and optimized first. Could we collaborate on this, and what would the cost be? Only bid if you think you can handle this project, and I want expert in sierra chart.. Thanks
I need an EMA crossover EA specifically for Boom and Crash. It should automatically buy and sell when crossovers happen. I want adjustable inputs for lot size, timeframe, and maximum loss. I’m keeping it simple because I’ve had bad experiences with EAs before. It should do only the job it is built for, properly and reliably. need someone who have already build EA or Indicator for Boom and Crash befor atleast 10
//+------------------------------------------------------------------+ //| ProTradingEA MT5 | //| Fully MT5-compliant with MACD, Trailing Stop, Break-Even | //+------------------------------------------------------------------+ #include <Trade\Trade.mqh> CTrade trade; // Optional override input string SymbolOverride = ""; // leave blank to auto-detect struct EASettings { int

Project information

Budget
30 - 150 USD