Download MetaTrader 5

Export Data From Excel file To Mt4

To add comments, please log in or register
Rajai Zeyad
184
Rajai Zeyad  

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
14780
whroeder1  
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  
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
14780
whroeder1  
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
18003
Simon Gniadkowski  
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  

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
18003
Simon Gniadkowski  
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  
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  
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