Download MetaTrader 5
To add comments, please log in or register
Articles have already helped many traders. Come and read them!
Rajai Zeyad
184
Rajai Zeyad 2013.12.30 09:18 

Dear all

We Know how to export data from mt4 into Excel file via DDE option from tools of mt4

BUT

now I want some body to tell me how to make OPPOSITE

EXPORT DATA FROM EXCEL FILE TO MT4

PLEASE KINDLY HELP ME ON THIS SUBJECT

Thanks a lot in advance

whroeder1
14242
whroeder1 2013.12.30 15:40  
fareshanab: EXPORT DATA FROM EXCEL FILE TO MT4
Save the data in a CSV file in the TERMINAL\experts\files folder (for testing TERMINAL\tester\files.) Have the EA/script read the file.
Rajai Zeyad
184
Rajai Zeyad 2014.01.01 06:48  
WHRoeder:
Save the data in a CSV file in the TERMINAL\experts\files folder (for testing TERMINAL\tester\files.) Have the EA/script read the file.


Ok I save a file CSV extention into files folder, then what should I do ??

you said : { Have the EA/script read the file }

this script what I need ??

please kindly would you provide me, and explain how to use

Thanks a lot in advance

whroeder1
14242
whroeder1 2014.01.01 14:43  
You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
Simon Gniadkowski
Moderator
17994
Simon Gniadkowski 2014.01.01 14:46  
fareshanab:


Ok I save a file CSV extention into files folder, then what should I do ??

you said : { Have the EA/script read the file }

this script what I need ??

please kindly would you provide me, and explain how to use

Thanks a lot in advance

Start reading here: File Functions
Rajai Zeyad
184
Rajai Zeyad 2014.01.01 15:34  

i made this code

but not read from my file

int start()

{

int handle ;
int value ;
handle=FileOpen("booky.csv", FILE_CSV, ';');
if(handle>0)
  {
   value=FileReadNumber(handle);
   FileClose(handle);
  }

 
  return(0);
}
Simon Gniadkowski
Moderator
17994
Simon Gniadkowski 2014.01.01 16:50  
fareshanab:

i made this code

but not read from my file

You need to read some more: FileOpen() you need to FILE_READ from your FILE_CSV . . so use FILE_CSV | FILE_READ
Rajai Zeyad
184
Rajai Zeyad 2014.01.04 14:06  
I hope to find a great person
Volunteer to teach how to use this code
To open a file and read through MetaTrader
Ubzen
5394
Ubzen 2014.01.04 16:00  
fareshanab:
I hope to find a great person
Volunteer to teach how to use this code
To open a file and read through MetaTrader

Here you go: https://book.mql4.com/functions/files

There's more information there then most people will re-write for you.

/
To add comments, please log in or register