Features of the mql5 language, subtleties and tricks - page 257

 
Vitaly Muzichenko #:

Create a separate topic for such codes,

or move them to the blog, otherwise they get lost.

I keep a separate list of links to interesting and useful solutions and write the codes in the editor in a separate mqh - they will not be lost.

 
fxsaber #:

So we already have it, OK. And GetWeekOfYear?

---

There is a quick variant of finding the bar opening time, if it is known that the bar exists. Is there a quick variant of searching for barindex, if it is known that the bar exists (replacing iBarShift)?

 
Andrei Iakovlev #:

And GetDayOfYeah?

GetDayOfYeah -> GetDayOfYear

Andrei Iakovlev #:

So we already have it, ok. And GetWeekOfYeah?

GetDayOfYeah -> GetDayOfYear

 
Grigori.S.B #:

GetDayOfYeah -> GetDayOfYear

GetDayOfYeah -> GetDayOfYear

A typo, thank you.

 
amrali #:

Wrong!

It is correct there, as there is no addition of 1970.

 
fxsaber #:

It is correct there, as there is no addition of 1970.

Yes, I noticed late so I deleted my response.

Thanks.

 
amrali #:

Yes, I noticed late, so I deleted my reply.

The English and Russian forums automatically synchronise the clone threads of this discussion.

Unfortunately, deleting (possibly editing) posts is not synchronised.

 
fxsaber #:

The English and Russian forums automatically synchronise the clone threads of this discussion.

Unfortunately, deleting (possibly editing) posts is not synchronised.

Yes, true.
 
Artyom Trishkin #:

I keep a separate list of links to interesting and useful solutions and write down the codes in the editor in a separate mqh - it won't get lost.

Better in a separate thread, your notes are not for everyone))))) but a branch in favourites and access is available))))))

 
Valeriy Yastremskiy #:

Better in a separate thread, your posts are not for everyone)))) and the thread is in favourites and access is there)))))

That's what this thread is for. Why another one?