Script in mql5 to translate yahoo finance stock data into compatible data for mt5

MQL5 Sripts

Trabajo finalizado

Plazo de ejecución 1 hora
Comentario del Cliente
Very good work! As requested, thanks!
Comentario del Ejecutor
Thank you, Marco! Glad to work with you again!

Tarea técnica

I need a simple script in mql5, which must take data from an CSV file in -> MetaTrader 5\HISTORY -> downloaded by me from yahoo finance website, so must edit the data and print another CSV file, with compatible data for the MT5 platform.

More precisely the necessary changes are:

- Removing the first row

- Remove Adj Close column

- replace the "-" (hyphen) of the date with a "." (point)

- Add the time culumn with 00:00 as default value, after the date

- Replace the separator from "," (comma) to Tab

- then print a csv with the -> original name + "correct"

Additional features

- I need to be able to select the print date format ( dd.mm.yyyy or yyyy.mm.dd or mm.dd.yyyy )  in external settings

- i need to be able to select the print culumn time  in external settings

- i need to be able to write the name of the file to be changed in external settings


the source code mq5 must be included in the work

The work must be done in a single mq5 file without dll


I am attaching the example of an original yahoo file, "AAPL eng Yahoo format" and the fixed file "APPL" correct as the script should do

Archivos adjuntos:

CSV
AAPL.csv
644.1 Kb

Han respondido

1
Desarrollador 1
Evaluación
(192)
Proyectos
232
30%
Arbitraje
1
100% / 0%
Caducado
9
4%
Libre
Ha publicado: 2 ejemplos
2
Desarrollador 2
Evaluación
(12)
Proyectos
12
25%
Arbitraje
1
0% / 100%
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(14)
Proyectos
19
11%
Arbitraje
1
0% / 100%
Caducado
5
26%
Libre

Información sobre el proyecto

Presupuesto
30+ USD