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"
Tried to compile this but failed; Comment("+"\n"+"== Trades enabled ==","== Safe to trade =="); +"\n"
No just put \n in this way :
and if you want to move comment 2 rows below, just put another \n :
[CODE]Comment("\n\n== Trades enabled ==","== Safe to trade ==");Skyline
No just put \n in this way :
and if you want to move comment 2 rows below, just put another \n :
[CODE]Comment("\n\n== Trades enabled ==","== Safe to trade ==");Got it Thanks
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
Moves down 1 line
Comment( ""+"\n"+" == Trades enabled ==","== Safe to trade ==");
Moves down 2 lines
Comment( ""+"\n"+"\n"+"== Trades enabled ==","== Safe to trade ==");
cjaOK, no compile errors both ways. I guess both ways work Thanks
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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