Questions from Beginners MQL4 MT4 MetaTrader 4 - page 118

 
Rezeda02:
Greetings all. Please help me out. I'm new here and a complete zero. I want to learn how to trade. I downloaded MT4 and run it, but for some reason nothing happens, there is no movement. I keep the charts still at yesterday's number and I can not understand anything. Please help)))
Holiday however... Boredom....
 
Konstantin Nikitin:
It's the weekend... Boring....

Yeah. You mean the stock exchange doesn't work on weekends??? What about holidays?

 
Rezeda02:

Yeah. So there's no exchange at the weekend??? What about holidays?

Brokers as such inform about changes in trading schedules unless they are linked to another weekend.
 
Rezeda02:

Yeah. So there's no exchange at the weekend??? What about holidays?

The schedule is on the exchange website where the accountis registered.

 
STARIJ:
Here is the script for writing the zigzag to a file. Inside the comments

Thank you. Saved me a lot of time.

It's not working for me yet, I'll post the code as soon as it's done.


how to bindSetIndexBuffer and value =iCustom

to get the value of indicator buffer at the time of request

 
Mickey Moose:

Thank you. Saved me a lot of time.

It's not working for me yet, I'll post the code as soon as it's done.


how to bind SetIndexBuffer and value =iCustom

I will use it to get the value of indicator buffer at the time of request

Funnily enough.

f1 by iCustom and you will be happy.

 

Now a piece of code

   ResetLastError(); 
   int file_handle=FileOpen(InpDirectoryName+"//"+InpFileName,FILE_READ|FILE_WRITE|FILE_CSV); 
   if(file_handle!=INVALID_HANDLE) 
     { 
      PrintFormat("Файл %s открыт для записи",InpFileName); 
      PrintFormat("Путь к файлу: %s\\Files\\",TerminalInfoString(TERMINAL_DATA_PATH)); 
      FileWrite(file_handle,value,value1,value2,value3,value4,value5,value6,value7); 
      FileClose(file_handle); 
      PrintFormat("Данные записаны, файл %s закрыт",InpFileName); 
     } 
   else 
      PrintFormat("Не удалось открыть файл %s, Код ошибки = %d",InpFileName,GetLastError());

Результат - после работы в течении полминуты получаем строку из 7 данных
Требуемый результат - так как этот кусок исполнялся потиково там должно быть как минимум 300 строк из 7 данных в каждой (то что каждая предыдущая запись стирается не было задумано)
Что нужно дописать?
 
Mickey Moose: Now a piece of code

For every tick the file is opened and REWritten. always one line. Add FileSeek(Handla, Zero, end) line before FileWrite. and space between shafts

 
STARIJ:

For every tick the file is opened and REWritten. always one line. Before FileWrite add FileSeek(Handla, Zero, end) line. and space between shafts

Thank you, and so the results


it comes up with numbers like this.

0;0;206;115;138;115;115;113

0;0;206;115;138;115;115;113

0;0;206;115;138;115;115;113

0;0;206;115;138;115;115;113

0;0;206;115;138;115;115;113


And there should be numbers from -1 to 1 according to the readings in the *data window on the screen instead of 138

maybe it's easier to pull them out of the alerts on the screen?

 
Mickey Moose:

Thank you, and so the results

it comes up with numbers like this.

0;0;206;115;138;115;115;113

0;0;206;115;138;115;115;113

0;0;206;115;138;115;115;113

0;0;206;115;138;115;115;113

0;0;206;115;138;115;115;113

And there should be numbers from -1 to 1 according to the readings in the *data window on the screen instead of 138

maybe it's easier to take them out of the alerts on the screen?

See what's in the other buffers...

Reason: