Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-07-2007, 12:05 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,159
matrixebiz is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-07-2007, 03:44 PM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 557
cja is on a distinguished road
Quote:
Originally Posted by matrixebiz View Post
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));

Last edited by cja; 09-07-2007 at 03:47 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-07-2007, 05:30 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,159
matrixebiz is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-07-2007, 08:02 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,159
matrixebiz is on a distinguished road
Tried to compile this but failed;
Comment("+"\n"+"== Trades enabled ==","== Safe to trade =="); +"\n"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-07-2007, 10:05 PM
skyline's Avatar
Member
 
Join Date: Apr 2006
Location: Pisa
Posts: 62
skyline is on a distinguished road
Quote:
Originally Posted by matrixebiz View Post
Tried to compile this but failed;
Comment("+"\n"+"== Trades enabled ==","== Safe to trade =="); +"\n"
No just put \n in this way :

Code:
Comment("\n== Trades enabled ==","== Safe to trade ==");
and if you want to move comment 2 rows below, just put another \n :

Code:
Comment("\n\n== Trades enabled ==","== Safe to trade ==");
Skyline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 09-07-2007, 10:26 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,159
matrixebiz is on a distinguished road
Quote:
Originally Posted by skyline View Post
No just put \n in this way :

Code:
Comment("\n== Trades enabled ==","== Safe to trade ==");
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 09-07-2007, 10:28 PM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 557
cja is on a distinguished road
Quote:
Originally Posted by matrixebiz View Post
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 09-07-2007, 11:13 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,159
matrixebiz is on a distinguished road
Quote:
Originally Posted by cja View Post
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I add magic number or comment to manual order? waltini Metatrader 4 3 11-01-2006 04:57 PM
Lost magic number and comment after partially closing GP2X Metatrader 4 4 10-09-2006 02:38 AM
Acct History - Comment - How to Add 67-17454 Metatrader 4 2 06-12-2006 03:31 PM
Comment ???? maje Questions 1 06-11-2006 12:00 PM


All times are GMT. The time now is 09:39 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.