MT4 MQL4 code/script for testing list of forex trades in historical data

Job finished

Execution time 1 day
Feedback from customer
Ramon is amazing to work with! Communication is smooth and the project came out exactly what I have in mind. Highly recommended!

Specification

I need help in creating a code/script that could check the results of a set of trade in forex currencies.

I have attached the sample of trades. From my experience, the only way to test strategies is through EAs in strategy tester. But what I have is historical data traded manually not an EA. I want to see if this set of trades have really profited in the past.

In the attached excel file named Sample of Trades, you will see that there are three Target Profits (TP1, 2 and 3) and one stoploss (SL). That means that there are three open trades in the same entry.

I have attached the sample Output. The yellow cells indicate the result of each trade in Pips. TP1 could have profited but since the TP2 and TP3 is farther, it could have hit the SL first and so on.

Now, this is where it kinda gets tricky, in the sample output, there are headers Original, Scenario 1, Scenario 2, and Scenario 3.

In Original - Each trades TP1, TP2, TP3 is treated as a separate trade like explained above
Scenario 1 - When price touch TP1, SL shift to breakeven and then when price touch TP2, SL shift to TP1
Scenario 2 - When price touch TP1, SL of TP 2 and TP 3 move to breakeven
Scenario 3 - When price touch TP2, SL of TP3 move to breakeven

Perhaps there is a money management option where we can change the stoploss or breakeven or even trailing stop loss applied.

Responded

1
Developer 1
Rating
(584)
Projects
912
46%
Arbitration
31
39% / 29%
Overdue
93
10%
Working
2
Developer 2
Rating
(403)
Projects
457
33%
Arbitration
24
42% / 46%
Overdue
6
1%
Working
3
Developer 3
Rating
(135)
Projects
192
42%
Arbitration
17
29% / 59%
Overdue
28
15%
Free
4
Developer 4
Rating
(878)
Projects
1390
67%
Arbitration
117
32% / 42%
Overdue
215
15%
Free
5
Developer 5
Rating
(8)
Projects
10
40%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(58)
Projects
76
33%
Arbitration
9
78% / 11%
Overdue
7
9%
Free
7
Developer 7
Rating
(465)
Projects
493
52%
Arbitration
10
60% / 20%
Overdue
3
1%
Free
Similar orders
Create an EA zigzag 40 - 80 USD
Zigzag EA sends notify on MT4 mobile app indicator have 2 Conditions all are explained in the pictures accurately and clearly https://drive.google.com/file/d/10Y6SrvC2A7RTT_baAJ7vOKytTDaUvRRQ/view?usp=sharing Warning: Do not send me a notification if your offer is higher than $ 100 because I did the project twice for less than $60 And I want to do the project now because there are mistakes on my part that I want to
News field 30+ USD
I am in need of a custom EA news filter for my trading platform, and I believe your expertise in this field can greatly assist me. Below are the specifications for the filter: 1. It should be implemented as a boolean function, returning either true or false. 2. The filter must automatically detect currency pairs. 3. Three hours before and after any significant news events pertaining to each currency in the pair, the
Hello, I would like to ask who would perform a backtest + optimization on my existing EA ? The EA works mainly on two pairs. Thank you for your reply. Sincerely Martin
I need Spike DETECTOR EA for Boom and Crash.. which will send me notification or alerts when spike is near. The EA should also be able be buy on crash Index and sell on Boom Index depending on the market..Demo may be provided for faster execution of my order
ODSMART EA 30 USD
I want an EA developed from this strategy that will buy and sell based on the appearance of these colours. Blue-buy (Enter when the signal indicator is at zero on the blue background) Red -sell( Enter when the signal indicator is at 100) White and brown, exit trade
i want to create RSI trading bot in 1 min time frame this is will happern in 1 min timeframe if RSI level 3 min chat frame touch 27 RSI level than excute buy order as and if 3 min time frame candle touch 72 level RSI will excute sell order than profit will be 3 time where order fill from and stop loss open ,. and i want in the setting able adjust the stoploss in tick adjust the take profit and entry lot
I am in the middle of conducting a complex experiment. And part of this experiment entails modifying an existing free MT5 EA (DarkCloud PiercingLine Stoch, for which i can pass the source code to you if you need) to: run only on specific days and within specific hours on those specific days. I will provide you with the schedule. I need the EA to come with scheduling choices so that the user can choose which days and
I want to design forex robot which work based on hikenashi candel stick pattern and also i wamt to include martingale statergy and trade entry method is bqsed on rsi and hikenashi
The expert advisor needs to follow these conditions = 1. The values of these elements can be changed at any time and for any instrument . . Time Interval of renko . Size of renko brick . Type of renko brick (fixed , atr or percentage) . Lot size 2. Buy condition = ENTRY = Renko brick closes GREEN. EXIT = Renko brick closes RED or TRAILING STOPLOSS=3 bricks down. 3. Sell condition = ENTRY =
I want to develop metatrader to trading bot and i want an expert that has experience in this field that can do the work perfect well for me without error

Project information

Budget
100+ USD
For the developer
90 USD