Discussion of article "MQL5 Programming Basics: Time" - page 2

 
Thank you so much for the article!!! It was very helpful for me!!! :D
 

help for a beginner in MQL5!!!

I don't understand why the compiler gives the error 'starttime' - declaration without type:

datetime starttime=D'00:00:01';

datetime endtime=D'23:59:59';

MqlDateTime startday,swapday,endday;

void TimeToStruct(starttime,startday);

void TimeToStruct(endtime,endday);

startday.day_of_week=1;

swapday.day_of_week=3;

endday.day_of_week=5;


 
loaderinbox:

help a beginner to learn MQL5!!!

...

   datetime starttime =D'00:00:01';
   datetime endtime   =D'23:59:59';
   //---
   MqlDateTime startday,swapday,endday;
   //---
   TimeToStruct(starttime,startday);
   TimeToStruct(endtime,endday);
   //---
   startday.day_of_week =1;
   swapday.day_of_week  =3;
   endday.day_of_week   =5;
 
Thank you so much for this. I learned already the basics of MQL4 and I was searching an article with wich I could begin to learn coding a pivot indicator in MQL5, and your article is very clear. Tank's to you and all publishers of articles.
 
No attachments? Interesting to see.
 
IgorZaz:
No attachments? Interesting to see.

They used to be. They fell off somewhere. Probably during some server update.

I'm going to look for them and if I find them, I'll attach them here.

 

Found it

Files:
MQL5.zip  14 kb
[Deleted]  
  • Figure 1. A moment in time.

  • Figure 2. A span of time.

Dyck. A moment of time is not the interval between the previous second and the next?????


 
Vasyl Nosal:
  • Figure 1. A moment in time.

  • Figure 2. A span of time.

A moment in time is not the interval between the previous second and the next?????.


No. A moment has no duration. Just like in geometry a straight line has no thickness. Maybe in some dictionary or in everyday, poetic sense a moment has duration, but here it doesn't.

[Deleted]  
Dmitry Fedoseev:

No. Momentum has no duration. Just as in geometry a straight line has no thickness. Maybe in some dictionary or in the everyday, poetic sense, a moment has duration, but here it doesn't.

1 second has no duration?

No further questions: ))))))))))))))))))))))))))))))