Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course > Questions
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

 
 
Thread Tools
 
Old 06-13-2006, 04:31 AM
increase's Avatar
Senior Member
 
Join Date: May 2006
Posts: 845
increase is on a distinguished road
quick dummy question

How can I send a comment to the chart on the line below, my comments are overwriting and only appearing on the same line at the top of the chart?
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!
 
Old 06-13-2006, 04:52 AM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 414
firedave is on a distinguished road
Quote:
Originally Posted by increase
How can I send a comment to the chart on the line below, my comments are overwriting and only appearing on the same line at the top of the chart?
For the next line you could use "\n" . Maybe this example could help you :

PHP Code:
firstlineCOMMENT "this is first line";
secondlineCOMMENT "\nthis is secone line";
thirdlineCOMMENT "\nthis is third line";

Comment(firstlineCOMMENT,secondlineCOMMENT,thirdlineCOMMENT); 
Hope this help
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
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!
 
Old 06-13-2006, 05:12 AM
increase's Avatar
Senior Member
 
Join Date: May 2006
Posts: 845
increase is on a distinguished road
Quote:
Originally Posted by firedave
For the next line you could use "\n" . Maybe this example could help you :

PHP Code:
firstlineCOMMENT "this is first line";
secondlineCOMMENT "\nthis is secone line";
thirdlineCOMMENT "\nthis is third line";

Comment(firstlineCOMMENT,secondlineCOMMENT,thirdlineCOMMENT); 
Hope this help
Thanks Dave, yes it puts it on the next line, but for some reason I only have one line at a time displaying, I want to have

firstcomment("some info", stuff)

then on the next line on the chart
secondcomment(("some more info", stuff1)

so it appears on the chart like this

some info 204
some more info 210

I only get the last line each time

Thanks a lot for your help
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!
 
Old 06-13-2006, 06:23 AM
increase's Avatar
Senior Member
 
Join Date: May 2006
Posts: 845
increase is on a distinguished road
Looking at some other code, I see what you mean about putting \n in the comment line as in

Comment("\nYesterday quotations:\nH ",yesterday_high,"\nL ",yesterday_low, "\nC ",yesterday_close);

but I wanted to print a comment from 2 different lines in the code, like this

if (somecode=othercode){
Comment("Yesterday quotations");}

if (anothercode=yetanother){
Comment("\nTodays quotations");}

With this all I get is the second comment
Todays quotations

not 2 lines
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!
 
Old 06-13-2006, 09:23 AM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 414
firedave is on a distinguished road
Another trick that I use is don't print the comment right away, just set a variable for each line comment. After the checking routine is done, then print all comment variable.

Example :
if (somecode=othercode){
Comment1 = "Yesterday quotations";}

if (anothercode=yetanother){
Comment2 = "\nTodays quotations";}

Comment(Comment1,Comment2);

Maybe other programmer got other solution. Hope this help
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
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!
 

Bookmarks
Thread Tools

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
question evgeni1980 Questions 4 11-27-2006 02:32 PM
Two quick questions regards Profit Factor and .ex4 files JJLL Metatrader 4 3 10-01-2006 08:54 PM
really quick DUMB question Eaglehawk Questions 1 07-11-2006 01:52 AM
Just a quick question... bluefish Metatrader 4 1 05-30-2006 06:26 PM
quick question murky waters Questions 8 03-30-2006 06:27 PM


All times are GMT. The time now is 04:49 AM.



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