MQL5 Script to automatically make several pre-determined strategy tests and compile the results

Tarea técnica

I want to have a MT5 script/EA that runs a series of strategy tests on my EAs applying the definitions and restrictions settled in a csv file with all the inputs. Based on those definitions/restrictions each test finishes at the end date or is interrupted by the script/EA. Either way the results of each normally ended or script stoped test will be saved to a csv file with the defined output data.

 

Imagine I have a strategy to take an FTMO challenge every Monday of a given month and I want to have a script to test my EA for that. The strategy tests would have a defined start dates with an equity target1 (5%) and target2 (10%) to be achieved and a minimum equity defined (-10%). The output file will tell me the dates when the test was ended/stoped and the equity target values were achieved.


The attached example file shows a series of 6 different tests to be made and the output results expected. 


Backtester_Inputs (CSV File):

 

The Backtester_Inputs csv file will have several lines. The ideia is for example to test the same EA on diferent start dates, or to test the same EA with different set files.

 

Expert: EA name 

Set File: Set file to load 

Asset: Asset to test

Timeframe: Timeframe to test

Start Date: Start date of the strategy test

End Date: End date of the strategy test

Equity Target1: Equity target , when the test reaches that target the date is saved to the backtester_output file; if value is blank there is no target 1.

Equity Target2: Maximum equity accepted, when the test reaches that target the test is stoped and values are saved in the backtester_output file; if value is blank there is no maximum target2 so the test will finish at the end date.

Min Equity: Minimum equity accepted, when the test reaches that value the test is stopped; if value is blank there is no minimum.

Latency: Perfect execution; 10ms; 20ms; 30ms; 50ms; 100ms

Modelling: Same options of the strategy tester

Deposit Amount: 

Deposit Currency: Same options of the strategy tester

Leverage: Same options of the strategy tester (1:1 to 1:1000)

 


Backtester_Outputs (CSV File):

 

The backtester_outputs csv file will have a line with the following data for each test completed from start to end date or tests there were stopped by the script.

 

Expert: EA name 

Set File: Set file used

Asset: Asset tested

Timeframe: Timeframe tested

Start Date: Start date of the test

Target1 Date: The date when the equity target 1 was achieved.

End Date: End date of the test; if the test was stopped by the script (target2 or minimum equity achieved) it saves the date of the last trade before the interruption of the test

Final Equity: the equity value at the end of the test or at the interruption date 


Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(57)
Proyectos
72
22%
Arbitraje
13
46% / 15%
Caducado
5
7%
Libre
Solicitudes similares
Hi, I need a robot, which wil get instructions to trade in 3 symbols at the same time based on few parameters and calculations. Example: There is 1 symbol called Gold-Near and the rate for it is 1000-1002 If i specify that when the rate reaches 1050, it should sell 1 lot Upon execution it will have to sell 1 lot of cme gold, buy 3 lots of mcx gold and buy currently (lots will be based on calculation). All the
are you aware of the Monday Range Strategy? https://www.youtube.com/watch?v=7B_yBBFx6z8 5pm EST time sunday - monday 5pm est and it has to be on the H1 chart , minimum 1:2 Risk to reward and break even function after 1:1
An EA that executes when the 21 and 55 SMA Cross on certain time frame also the EA will understand supply and demand levels and executes when price reacts on this levels specified and target/stoploss levels will be predetermined...also the robot will also comprise stochastic oscillator
Starting from scratch, I need a solution to develop my own crypto trading and exchange platform. This platform should compare prices across various exchanges like Coinbase, Binance, KuCoin, and Unocoin, as well as different cryptocurrencies. The solution must identify opportunities to buy on one platform and sell on another for a profit, transferring funds to my personal wallet instantly for security. The bot should
Need EA programmer to create an MT4 EA that will be able to leverage trades in favour of the market direction ,the EA should be able to operate to any broker. The EA must trade on a clear trend not when the Market is ranging. More will be explained once your application has been accepted for the job
Hey, great developer I have a thinkorswim script I want to convert it into TradingView. Can you please let me know if you can i will be looking for great developer that will bid for it best regards
Hey, great developer I have a thinkorswim script I want to convert it into TradingView. Can you please let me know if you can i will be looking for great developer that will bid for it best regards
Tradingview developer 30 - 35 USD
Hey greetings. I am in need of tradingview developer that can modify an open source PineScript indicator code to add additional features. Kindly bid for this project if it is what you handle and let proceed with the project
In summary 1) The bot will only take Firm Buy and Firm Sell Signals . 2) The bot will use the SL and TP based on the indicator . 3) the risk to reward is 2:1 but when the price reaches 1:1 set SL to Breakeven 4) the bot will take Firm Buy and Firm sell after the candle closes with a firm buy or firm sell 5) make sure to give an option for number of contracts to be traded . 6) Bot will close all the trades EOD
hi. I hv a strategy on tradingview need to convert to MT4/MT5 expert advisor for algo trading. would like to add some tradingview strategy setting to the EA(not included in my tradingview code): recalculate after order is filled, order size: xx% of equity

Información sobre el proyecto

Presupuesto
50+ USD
IVA (23%): 11.5 USD
Total: 61.5 USD
Para el ejecutor
45 USD
Plazo límite de ejecución
de 1 a 5 día(s)