Mt4 TXT FILE CREATOR

MQL4 Интеграция

Работа завершена

Время выполнения 8 дней
Отзыв от заказчика
Very talented programmer
Отзыв от исполнителя
Good customer.

Техническое задание






Please provide a solution to automatically read  the data from 4 txt files , calculate the algos and write results in two new files created by solution. 

On windows start up , without manual start up of solution  , the solution provided by coder  will automatically  initiate the  opening and reading  of txt  files  ,in files called File , it will read the date and time  of creation of existing txt file of same name ,if time of creation of  existing  txt file is earlier than current time , and if file was not updated  for the existing file created , it will write and  updated the other files. In order to reduce false calculations , new file created will write time of existing file created  and it will record the time in solution , if existing file with time  is already updated   , it will not update , until a new file ,with new time of creation is created ,in File folder.If a new file ,with later than previous time of file created   , exists in File folder , update the new files  of solution.
.
The file reading will be initiated every 5 minutes  with windows clock , the solution will automatically scan these 4 txt files , every 1 minutes , for updates in time of file creation  .The files to be scanned , are updated automatically  by other platforms and automated software.

There are several functions  to be coded  :Autostartup of solution,linked to windows start up , autoscan of existing log files , automated opening of existing txt files ,automated reading of existing txt files , automated calculation of txt logic  for files to be created , automated writing of two  files automated saving of two txt files.  and automating closing of  files created.

The solution you provide will automatically update  every minute  , new files created by solution , without human intervention , it will be a non desktop solution , to update the txt files  .

The solution will be place in a folder called COMMON  , folder it will read is called Files , the 4 files it will read are presented in folder.

The solution will calculate the average , for each instrument  and create a new log file called average4logs .The average4logs  is the average for one instrument from  the four log/txt files  , so solution will add all 4 logs/txt  for one instrument    and divide by 4 .It will write the average of the 4 logs for one instrument  to another txt file in same folder   and update files every minute.


REQUIREMENTS  3  mt4 txt files  as follows   (instead of job description)

Example from the four log /txt files  , get the average of one instrument ,(UK100GBP), only this instrument   and divide by four . This figure will be written to  average4logs file .Repeat same process for 14 other instruments.

1)Average of 4 logs

 The solution will calculate the average , for each instrument  and create a new log file called average4logs .The average4logs  is the average for one instrument from  the four log/txt files  , so solution will add all 4 logs/txt  for one instrument    and divide by 4 .It will write the average of the 4 logs for one instrument  to another txt file in same folder   and update files every minute.

 

2)  another log file created called opposite settings , attached is relationopp txt file

It will create a new log file , if any setting has , symbol + setting opposite , this is user input , so i can add this opposite word or definition and logs will be calculated opposite
The main symbol is never opposite , even use can not change this
Any of the three related symbols can be set as opposite 
there can two more 3 opposite related symbols
3 is max , because 4 is total symbols
LOGIC OPPOSITE " IF RESULT OF AVERAGE RELATED INSTRUMENTS is +/positive number , the opposite numbers have to be averaged as reversed from negative to positive
#######################
if the averagerelatedinstruments main symbol is -/negative , the opposite set numbers have to be reversed as positive 
if result of average related instruments main instrument is + positive number
reverse
the opposite settings for average total opposite txt file
example
input symbol symbol_14_1 = USDCAD; +70
input symbol symbol_14_2 = USDCHF; +55
input symbol symbol_14_3 = USDJPY; +35
input symbol symbol_14_4 = EURUSD; opposite -80

The results are to be read as + 70+55+35+80 =240/4= 60
opposite settings reading is read as reverse to main instrument 

 The average4 logs will be further processed with 3 related instrument anylysis .The related instruments are provided for each instrument  below.The solution will read average 4 logs/txt    and calculate an average for four related instruments , this will be presented as reverse relation ship


All data will be presented in txt  format supplied.
All files are read on a shared basis   by multiple readers , so code shared.The solution  can read files  1, 2 , 3 and four  one at a time and update log files  ,average4logs .


Four related instruments   no 1 is main instruments.There is no reverse opposite relation ship required in this symbol  1  .Thhis only uses the average of all four without  opposite relation ship .

extern string ____symbol_1____  = "______";
input symbol symbol_1_1 = UK100GBP;  
input symbol symbol_1_2 = DE30EUR;  
input symbol symbol_1_3 = US30USD;  
input symbol symbol_1_4 = SPX500USD; 

3) Name:8080

If all 5 txt files are greater than+ 80 , write +80 in file called 80/80
if all five txt files are less than -80 , write - 80 , in file called 80/80 ,
if all are not + 80 /-80 , write zero , in 80/-80
Create another file called 8080

 

 Regarding the next version, I have a questions:

1. >>If all 5 txt files<< Why 5, maybe 4?
2. So in these files may only be 0 or 80?

and -80

 the 4 files are the logmc , logmc2 , logmc3, logmc4 and average4sym_opposite

only 0 or + 80 or -80







Откликнулись

1
Разработчик 1
Оценка
(121)
Проекты
134
66%
Арбитраж
36
25% / 56%
Просрочено
22
16%
Свободен
Опубликовал: 10 примеров
2
Разработчик 2
Оценка
(49)
Проекты
77
43%
Арбитраж
6
33% / 50%
Просрочено
22
29%
Свободен
3
Разработчик 3
Оценка
(195)
Проекты
395
28%
Арбитраж
155
20% / 52%
Просрочено
112
28%
Свободен

Информация о проекте

Бюджет