Export Data From Excel file To Mt4

 

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

 
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.
 
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

 
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.
 
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
 

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);
}
 
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
 
I hope to find a great person
Volunteer to teach how to use this code
To open a file and read through MetaTrader
 
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.

Reason: