Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-07-2007, 01:05 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 09-07-2007, 04:44 PM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 676
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 04:47 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 09-07-2007, 06:30 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 09-07-2007, 09:02 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 09-07-2007, 11: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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 09-07-2007, 11:26 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 09-07-2007, 11:28 PM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 676
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 09-08-2007, 12:13 AM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 05:57 PM
Lost magic number and comment after partially closing GP2X Metatrader 4 4 10-09-2006 03:38 AM
Acct History - Comment - How to Add 67-17454 Metatrader 4 2 06-12-2006 04:31 PM
Comment ???? maje Questions 1 06-11-2006 01:00 PM


All times are GMT. The time now is 07:10 AM.



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