I want to write account number and date into software - page 2

 
Engin BİNDAŞ:

If it IS YOUR CODE, you should know how to put this, right?

Or you just copied someone's code and are trying to profit through it?

I don't understand, do you KNOW MQL5 or not?

;)

 

Engin, don't listen to these people, they want to steal your EA!

You can place this code in OnDeinint, between { and } that follow after that.
 
kypa:

Engin, don't listen to these people, they want to steal your EA!

You can place this code in OnDeinint, between { and } that follow after that.

Thanks for information. 
 
Minions Labs:

If it IS YOUR CODE, you should know how to put this, right?

Or you just copied someone's code and are trying to profit through it?

I don't understand, do you KNOW MQL5 or not?

;)

My knowledge is good, but I'm very confused, insomnia
 

Try this. It will get displayed in the top left hand corner of the current chart.

   Comment("\n Server Date Time : ",(string)Day()," ",(string)Month()," ",(string)Year()," ",TimeToString(TimeCurrent(),TIME_MINUTES),
           "\n User               :  ",AccountName());
 
GrumpyDuckMan:

Try this. It will get displayed in the top left hand corner of the current chart.

Thank you GrumpuDuckMan. 
 
Engin BİNDAŞ:

Here you find a list of all the function MQL5 provides. With the simple CTRL-F you'll find fast and easily what you a looking for - most of the times!

 
Carl Schreiber:

Here you find a list of all the function MQL5 provides. With the simple CTRL-F you'll find fast and easily what you a looking for - most of the times!

Thanks Carl Schreiber.


I couldn't figure it out, I have tried all the recommended ways
 
I wonder what the rest of the code looks like.
 
GrumpyDuckMan:

Try this. It will get displayed in the top left hand corner of the current chart.

You know, if you use StringConcatenate you wouldn't have to cast all your variables, however, StringFormat is definitely a better way to go. Which one of these is more readable?


Comment("\n Server Date Time : ",(string)Day()," ",(string)Month()," ",(string)Year()," ",TimeToString(TimeCurrent(),TIME_MINUTES),
           "\n User               :  ",AccountName());

// OR

Comment(StringFormat(
   "\nServer Date Time: %s\nUser: %s",
   TimeToString(TimeCurrent()),
   AccountName()
));
Reason: