Trabajo finalizado
Tarea técnica
Hello Developers,
I need an EA that will export the data as CSV files. The goal is to use that EA in strategy tester for data segregation into three folders.
I need file that can be used in strategy tester and source code.
1. EA should work on any currency pair and any timeframe.
2. On each new bar EA should open two positions, short and long. "Take profit" and "Stop loss" should be input parameters.
3. When long position hits TP target CSV file is stored in "Long" folder. File name should be DATE_TIME.csv of that long position opening (not when it is closed).
4. When short position hits TP target CSV file is stored in "Short" folder. File name should be DATE_TIME.csv of that short position opening (not when it is closed).
5. When both long and short positiosn hits SL target CSV file is stored in "Loss" folder. File name should be DATE_TIME.csv of that short and long position opening (not when it is closed).
6. Each file in CSV format should contain OHLCV (Open,High,Low,Close,Volume) data. Data are stored in row order from number of bars ago (newest bar data on top). "Number of bars" should be input parameter.
Below you can find example of file format with "Number of bars" set to 3. Positions long and short opened at 22:11. Long position closes with TP, file is stored in "Long" folder with file name 28.12.2021_22:11.csv:
1.24534,1.25211,1.24018,1.24065,30 <- 22:10 cnadle
1.26782,1.28452,1.23174,1.23445,40 <- 22:09 cnadle
1.24353,1.27321,1.22421,1.24679,54 <- 22:08 cnadle
EOF