• Sign up >>

MQL5: How To Output Multiple Lines of Comments()?

To add comments, please log in or register
24101800
26
24101800  

If I am trying to output multiple lines, how do I do this?


Comment("Apples");

Comment("Oranges");

The code above will only output:  Oranges 

As if it is being re-written on the same line again.

Emir Revolledo
7432
Emir Revolledo  
24101800:

If I am trying to output multiple lines, how do I do this?


The code above will only output:  Oranges 

As if it is being re-written on the same line again.

Comment("Apples"+"\n"+ "Oranges");

24101800
26
24101800  
Emir Revolledo:

Comment("Apples"+"\n"+ "Oranges");


Awesome, ty

Jefferson Metha
2550
Jefferson Metha  
24101800:

If I am trying to output multiple lines, how do I do this?


The code above will only output:  Oranges 

As if it is being re-written on the same line again.

String what_to_post;
what_to_post="we start here";
what_to_post+= "\nwe come here";
what_to_post+= "\nthird line";
what_to_post+= "\nthe current time is: "+TimeToString(iTime(Null,Period(),i));
what_to_post+= "\nlast line: \nThank You Happy trading";
Comment(what_to_post);
To add comments, please log in or register