A very simple request for backtesting trading signals in MT5 Strategy Tester from a csv file

Техническое задание

Dear Developers, 


I would have a very simple request.

I have a ML model developed in Python for EURUSD daily trading. I would like to backtest it in Meta Trader 5 using the Strategy Tester tool. For that I would need an Expert Advisor program. 


The input would be a csv file that contains two columns:

-dates (going back for a few years on a daily basis)

-trading signal (it can have only 2 values, either 1: Buy, or -1: Sell).


The idea for the EA program to do would be the following:

1) import/read the series of trading signals from the csv file. 

2) initiate trade

a) based on the trading signal for the given day (historically). In case the value of the trading signal is

1: close existing short position AND open a new long position

-1: close existing long position AND open a new short position

c) Once in a position, nothing changes until the trading signal (for a subsequent day) changes sign.

b) There should be a settable parameter for the % of the available balance (on a given day) in the account to be used in the trades. This can be a single parameter applicable to all trades in a given backtest run (i.e. will be multiplied by the prevailing, available balance on a given day throughout the whole time window; a value of '100%' would mean that it uses all the prevailing, available balance for the trades). 

d) A settable cost parameter in pips should be implemented as well, also as a flat number. It can also be set at the beginning of the backtest run and the value(expressed by the single number in pips) should be subtracted from the balance approximating the average cost elements associated with the trade (like commission, funding cost). It should be applied to each and every trade (both closing existing and opening new positions).   


I would like to run it in the Strategy Tester selecting the backtesting time window (same as in the csv file), therefore it must be compatible with that, i.e. initiate the trades in Strategy Tester on the given day based on the trading signal from the csv file. 

I'm attaching a sample of the csv file I would use. 


I would appreciate your help. 

Thank you!

Best regards, 

Balazs

Файлы:

CSV
signals.csv
5.5 Kb

Откликнулись

1
Разработчик 1
Оценка
(1)
Проекты
1
100%
Арбитраж
0
Просрочено
0
Свободен
2
Разработчик 2
Оценка
(8)
Проекты
18
17%
Арбитраж
3
67% / 0%
Просрочено
0
Свободен
3
Разработчик 3
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
4
Разработчик 4
Оценка
(1)
Проекты
1
100%
Арбитраж
0
Просрочено
0
Свободен
5
Разработчик 5
Оценка
(3)
Проекты
3
0%
Арбитраж
0
Просрочено
0
Работает
Похожие заказы
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader 1. The Trading View indicator code needs to be converted into and adapted for Ninja Trader 8 2. An indicator and Automated Trading Strategy needs to be developed. 3. Any parts of the Trading View Indicator that can't be replicated needs to be discussed with me and agreed before excluding. (there should not be any) 4. Trailing stop and
1. The Trading View indicator code needs to be converted into and adapted for Ninja Trader 8 2. An indicator and Automated Trading Strategy needs to be developed. 3. Any parts of the Trading View Indicator that can't be replicated needs to be discussed with me and agreed before excluding. (there should not be any) 4. Trailing stop and Trailing Draw Down options need to be implemented 5. Risk needs to be in % of
Create mt4 ea 50+ USD
To convert the provided MT4 indicator script into an Expert Advisor (EA) and implement prompt functionality for user input, we need to modify the code to handle external parameters and provide a user-friendly interface. Below is the EA code that incorporates prompts for user inputs
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea
Hi Developer, I would like to create the Scalping EA based for Mt4 on the investing.com data https://www.investing.com/currencies/eur-usd-technical EA have timing to adjust time to trade. follow the broker time. From starting time to end time EA have a adjustable Lot size (0.01 incremental to 0.01) EA have a adjustable TP (1pip to 100pip incremental 1pip) EA have a adjustable SL (1pip to 100pip incremental 1pip) EA
This is not an EA that actually opens/closes trades. Instead this project involves creating a dashboard where the user can create a grid trade scenario with initial entry and scale trade pip distances, lot sizes for each trade, and draw down amount. It then calculates the break-even + profit level where all trades would close. For each new scale trade the BE+ point is recalculated which is then displayed on the
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader, I wanted this indicator in NT bcs I chart in NT, and if the indicator could also have been an automated strategy even better. Please confirm that it will be an indicator and Automated Trading Strategy
Hello I need a very simple indicator This indicator should show the highest floating or history drawdown of the account It means that it can display the highest number that the account drawdown to be displayed on the chart in this format max drawdown account(xxxx$$) ...date(00/00/00)time:(00:00) max drawdown currency ..( currency name with max drwadown) . (xxxx$$) date(00/00/00)time:(00:00) thanks
Hello, I‘m interested in an indicator to predict the next candles probability (bullish or bearish). But honestly I have no idea how to do this. Would be interested in your opinion how we can create such an indicator. Please let me know if you‘ve done similar work
Profitable EA HFT 50 - 300 USD
From a long time i am searching for a profitable EA i have lost a lot , and now i have only 300$ to buy a profitable EA , i wish to say with 0 losses but some or most traders they don't want to hear this i am really tired of searching for a programmer to just create me a profitable EA with the least losses or zero losses maybe nearly 1 year i am searching i just need an HFT EA that can work very well on MT4,MT5

Информация о проекте

Бюджет
30+ USD
VAT (21%): 6.3 USD
Итого: 36 USD
Исполнителю
27 USD
Сроки выполнения
от 2 до 10 дн.

Заказчик

Размещено заказов1
Количество арбитражей0