[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 8

 
if a complete overwrite of the file is required, it is better to do FileSeek(file, 0, SEEK_SET) after opening it
 
sergeev:
if the file needs to be completely overwritten, it is better to do FileSeek(file, 0, SEEK_SET)
after opening it.

That's not the problem, the file is created at runtime. maybe there is a command to reset the cursor to a new line? It seems to find the end of the line, but it only reads the first line each time.
 
sergeev:
Function ObjectCreate

Yes, I know this function, but I do not know how to make these labels remain and new ones appear.

 
noxidiz:

Yes, I know this function, but I don't know how to make these tags stay and new ones appear


For each new object, you need to programmatically generate a different name than the other objects. Then the object will not disappear.
 
how to get the muving value at 8am at any time?
 
dmmikl86:
how do I get the 8am muving value at any time?

You need to find a candlestick with an opening time of 8am, remember its number relative to the current bar. Then call iMA and enter the found number there.
 
is it via iBarShift? how do you drive the 8am time parameter there?
 
Adapted from the professional thread.

Уважаемые ПРОФИ!
Обращаюсь за помощью как к профессионалам.
Буду очень признателен за ответ на вопрос по следующей ситуации:
Глюканул комп...
После этого в папке эксперты остался только нормальный файл с расширением .ех4 (експерт был скомпилирован за минуту до глюка), одноименный файл с расширением .mq4 пропал!

Can the file be recovered? If so, how?

Thank you in advance!

 
you can. you need to decompile ex4
 
dmmikl86:
is it via iBarShift? how do you drive the 8am time parameter there?
datetime time = TimeCurrent(); // или нужное

datetime daystart = time - TimeHour(time)*60*60 - TimeMinute(time)*60 - TimeSeconds();

datetime at8am = daystart + 8*60*60;