[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 449

 

Good afternoon !

Unfortunately I have not found an answer to the following question:

(I may have searched poorly)


Where do the tics come from?


Thanks in advance!

 
vasya_vasya писал(а) >>

I need the logs.

Please tell me what it is and where to get it from. >> Thank you in advance.

 
remobal >>:

Добрый день !

К сожалению не нашел ответ на следующий вопрос:

(вполне возможно, что искал плохо)


Откуда появляются тики?


Заранее спасибо!

A tick is a price change and is broadcasted to you by the DC.

 
Where do they come from in the DC?
 
int start()              
{
   int File;                      
   string File_Name="News.csv", Obj_Name, Instr, One, Two, Text, Str_DtTm;             
   datetime Dat_DtTm;               
   
   File=FileOpen( File_Name, FILE_CSV| FILE_READ,";");
      Str_DtTm =FileReadString( File);
      Text     =FileReadString( File);
      Dat_DtTm =StrToTime( Str_DtTm);  
      Alert( Str_DtTm," ", Text);

   FileClose( File);               
   return;  
}

I can't figure out how to read lines from file, here is a simple code above that takes data from "News.csv", file looks like this

2010.02.25 10:30;CHF Building Permits
2010.02.25 12:00;GBP Refinancing Rate,2%,2.5%
2010.02.25 13:15;EUR G10 Bank Governors Meeting
2010.02.25 15:30;USD Number of jobless in USA

What should be added to the code to make it find the penultimate line (for example)

this one: 2010.02.25 13:15; EUR G10 Bank Governors Meeting.

 
Summer писал(а) >>

I can't figure out how to read lines from file, here is simple code above, which takes data from "News.csv", file looks like this:

2010.02.25 10:30; CHF Building Permits
2010.02.25 12:00;GBP Refinancing Rate,2%,2.5%
2010.02.25 13:15;EUR G10 bank governors meeting
2010.02.25 15:30;USD Unemployment Rate in USA

What do I add to the code so that it finds the penultimate line (for example)

this one: 2010.02.25 13:15; EUR G10 Bank Governors Meeting.

Read all into an array and take the penultimate value from the array

 
Vinin >>:

Считать в массив все и взять предпоследнее значение из массива

Yeah, I guess it's time to get to grips with these arrays after all.)

Well, thank you, if there's no other way, then use arrays.

 

Where do the tics in the DC come from, please?

It is not generating them by itself ?

 
remobal писал(а) >>

Where do the tics in the DC come from, please?

Doesn't it generate them by itself?

You should have written this in another thread. This one https://www.mql5.com/ru/forum/107559

 
Vinin >>:

Это надо было в другой ветке писать. ВОт в этой https://www.mql5.com/ru/forum/107559

What's so funny about it, please explain?