Forex
Google

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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 06-13-2006, 03:31 AM
increase's Avatar
increase increase is offline
Senior Member
 
Join Date: May 2006
Posts: 605
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!
Reply With Quote
  #2 (permalink)  
Old 06-13-2006, 03:52 AM
firedave's Avatar
firedave firedave is offline
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 416
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!
Reply With Quote
  #3 (permalink)  
Old 06-13-2006, 04:12 AM
increase's Avatar
increase increase is offline
Senior Member
 
Join Date: May 2006
Posts: 605
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!
Reply With Quote
  #4 (permalink)  
Old 06-13-2006, 05:23 AM
increase's Avatar
increase increase is offline
Senior Member
 
Join Date: May 2006
Posts: 605
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!
Reply With Quote
  #5 (permalink)  
Old 06-13-2006, 08:23 AM
firedave's Avatar
firedave firedave is offline
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 416
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!
Reply With Quote
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
question evgeni1980 Questions 4 11-27-2006 01:32 PM
Two quick questions regards Profit Factor and .ex4 files JJLL Metatrader 4 3 10-01-2006 07:54 PM
really quick DUMB question Eaglehawk Questions 1 07-11-2006 12:52 AM
Just a quick question... bluefish Metatrader 4 1 05-30-2006 05:26 PM
quick question murky waters Questions 8 03-30-2006 06:27 PM


All times are GMT. The time now is 02:52 PM.