How do you move a Comment down?

 

Hello, I run an EA and it puts a Comment at the left but another Comment also pops in and out on the same line. What code do I use to move one of the comments down a bit?

Thanks

 
matrixebiz:
Hello, I run an EA and it puts a Comment at the left but another Comment also pops in and out on the same line. What code do I use to move one of the comments down a bit? Thanks

Try this - The code highlighted in Red shifts each line down you can also add 2 lots of the code and the line will shift down twice the distance or more if required

Comment("" +"\n"+"4 Hour Candle Close Data" +"\n"

+"Close Prev 4Hour "+TimeToStr(Time4hr)+" @ "+DoubleToStr(Candle4hr,Digits)+"\n"

+"Time of NEXT 4Hour Close "+TimeToStr(NextTime4hr) +"\n"

+"Broker Time "+TimeToStr(BrokerTime)+" @ "+DoubleToStr(DataPrice,Digits)+"\n"

+"4 Hour CountDown "+TimeToStr(CountDown,Digits));

 

Ok, thanks CJA, so;

Comment("== Trades enabled ==","== Safe to trade ==");

So if the line above is what I have, I would do this to move it down one line;

Comment("+"\n"+"== Trades enabled ==","== Safe to trade =="); +"\n"

and two lines this;

Comment("+"\n"+"+"\n"+"== Trades enabled ==","== Safe to trade =="); +"\n"+"\n"

Thanks

 

Tried to compile this but failed;

Comment("+"\n"+"== Trades enabled ==","== Safe to trade =="); +"\n"

 
matrixebiz:
Tried to compile this but failed; Comment("+"\n"+"== Trades enabled ==","== Safe to trade =="); +"\n"

No just put \n in this way :

Comment("\n== Trades enabled ==","== Safe to trade ==");[/CODE]

and if you want to move comment 2 rows below, just put another \n :

[CODE]Comment("\n\n== Trades enabled ==","== Safe to trade ==");

Skyline

 
skyline:
No just put \n in this way :
Comment("\n== Trades enabled ==","== Safe to trade ==");[/CODE]

and if you want to move comment 2 rows below, just put another \n :

[CODE]Comment("\n\n== Trades enabled ==","== Safe to trade ==");
Skyline

Got it Thanks

 
matrixebiz:
Tried to compile this but failed; Comment("+"\n"+"== Trades enabled ==","== Safe to trade =="); +"\n"

Moves down 1 line

Comment( ""+"\n"+" == Trades enabled ==","== Safe to trade ==");

Moves down 2 lines

Comment( ""+"\n"+"\n"+"== Trades enabled ==","== Safe to trade ==");

cja

 
cja:
Moves down 1 line

Comment( ""+"\n"+" == Trades enabled ==","== Safe to trade ==");

Moves down 2 lines

Comment( ""+"\n"+"\n"+"== Trades enabled ==","== Safe to trade ==");

cja

OK, no compile errors both ways. I guess both ways work Thanks