I need code sample for time

 

hi, i'm currently studying to code scripts ea and indicators.

i hope anyone help me give examples codes related to server times, local times, inserting server time into variables, bar times etc...


Thanks dude :)

 

Good on you for wanting to learn. Good luck with that.


Have a look here:

https://docs.mql4.com/dateandtime


CB

 
cloudbreaker:

Good on you for wanting to learn. Good luck with that.


Have a look here:

https://docs.mql4.com/dateandtime


CB

Thank you very much cloudbreaker, googling stuffs takes most of my time you are truly helping me out dude, :)


Wow i never thinked that way to search... :) your way is simple but effective


I noticed that everything are in secconds...

let me see... how many seccond in one year... :p

Reason: