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

İş tamamlandı

Tamamlanma süresi: 1 gün
Müşteri tarafından geri bildirim
Ramon is amazing to work with! Communication is smooth and the project came out exactly what I have in mind. Highly recommended!

İş Gereklilikleri

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.

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(622)
Projeler
975
46%
Arabuluculuk
32
38% / 34%
Süresi dolmuş
96
10%
Yüklendi
Yayınlandı: 6 kod
2
Geliştirici 2
Derecelendirme
(539)
Projeler
620
33%
Arabuluculuk
36
39% / 53%
Süresi dolmuş
11
2%
Yüklendi
3
Geliştirici 3
Derecelendirme
(136)
Projeler
196
43%
Arabuluculuk
17
29% / 59%
Süresi dolmuş
28
14%
Serbest
4
Geliştirici 4
Derecelendirme
(885)
Projeler
1410
67%
Arabuluculuk
123
32% / 41%
Süresi dolmuş
218
15%
Serbest
Yayınlandı: 1 kod
5
Geliştirici 5
Derecelendirme
(8)
Projeler
10
40%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
6
Geliştirici 6
Derecelendirme
(58)
Projeler
76
33%
Arabuluculuk
9
78% / 11%
Süresi dolmuş
7
9%
Serbest
Yayınlandı: 2 kod
7
Geliştirici 7
Derecelendirme
(511)
Projeler
549
53%
Arabuluculuk
13
69% / 15%
Süresi dolmuş
3
1%
Serbest
Benzer siparişler
For only developer who understand Chaos/ Profiunity trading system by Bill WIlliams, Create The Profitunity System Trading based on Bill Williams Chaos theory, Trade based on Trend Affirmation in Daily, entry in H4, using Williams Fractal, Williams Alligator, Awesome Oscillator, Accelerator Oscillator, Market Facilitation Index. Balance Line, entry on Reversal, add on while market show continuation sign. Please quote
Hi, I am looking for someone who has already developed a high-performance Gold EA that can outperform the one shown in my screenshot. If you have such an EA, please apply for this job. Please describe how the EA works (for example, whether it uses a grid system) and provide backtest results along with the set files. If the EA meets my expectations, you can make the necessary adjustments and I will use it as my own
I am looking for an experienced MT4 Expert Advisor developer to help backtest and optimize an existing EA for prop firm trading . The EA currently trades Gold (XAUUSD) on M1/M5 , and the goal is to make it low-risk, stable, and prop-firm friendly , while also identifying a more aggressive preset for evaluation phases
I am looking for a developer to create a trading robot (EA) to trade XAUUSD, NAS100 and SPX500. The rules are as follows: Buy when the 2 EMA crosses over the 10 EMA and price closes over the 50 ema. Sell when the 2 EMAs cross below the 10 EMAs and the price closes below the 50 EMAs. The take profit and stop loss can be adjusted by me selecting from a drop-down box. I am open to other parameters to optimize
Project Overview I am looking for an experienced MQL5 developer to build a custom, prop-firm-compliant trend-following Expert Advisor (EA) for MetaTrader 5 . This EA will be used on prop firm accounts (e.g., FTMO-style rules), so strict risk control and rule compliance are mandatory . This is NOT a grid, martingale, scalping, or recovery EA. The goal is consistency, rule compliance, and capital preservation , not
I am looking of an Expert Advisor (EA) that has undergone independent validation and demonstrates a capability to successfully navigate prop firm challenges, as well as efficiently manage funded accounts. It is imperative that you provide a comprehensive explanation of the strategy utilized by your EA, along with a demo version that has a 30-day expiration. This will facilitate extensive back testing and forward
Hellow,l hope you are well,l am writing to place an order for a professional trading robot.l am looking for a reliable,well optimized robot that can trade efficiently,manage risk properly and deliver consistent performance in the market,I am particularly interested in a trading robot that uses a proven and transparent strategy,has strong risk management features,works well on common trading platforms,is suitable for
I am looking for an experienced MQL5 developer to build a professional MT5 software (indicator or semi-automated EA) for metals and major forex pairs. 📌 PLATFORM & MARKETS Platform: MetaTrader 5 Instruments: XAUUSD (Gold vs USD) XAGUSD (Silver vs USD) EURUSD GBPUSD USDJPY Trading styles: Scalping Intraday / short-term swing 🎯 MAIN OBJECTIVE I do NOT want an aggressive fully automated robot. I want a
The robot will take buy trades when the 2 ema cross over the 10 ema and price has closed above the 50 ema. The take profit and stop loss can be set as an optional level by the user. The robot will take sell trades when the 2 ema cross under the 10 ema and price has closed under the 50 ema. The take profit and stop loss can be set as an optional level by the user. The entry timeframe will be 15 minutes, but it could
I want to check if this indicator is repainting or not Whick mean the results of back testing is legit or not if anyone can help me to review it kindly to well to contact me i will be happy to work and go on long term work with anyone thanks

Proje bilgisi

Bütçe
100+ USD