possible to append 2 different comments?

 

hi all,

if i have 1 comment command at the top of the codes and at the bottom i have another comment command

is it possible for the 2nd comment to be appended to the 1st one?

currently i notice it will only show the 2nd (i guess the 2nd overwrite the 1st)

 

thanks 

 
I don't understand anything.
 
Alain Verleyen:
I don't understand anything.

i wrote

Comment(" \nCurrent Price After Ontick         =  ", Close[0],"\n");  on the 1st line after ontick

a few lines of codes later, i wrote Comment(" \nCurrent Price          =  ", Close[0],"\n");  

 

currently the chart shows me only the 2nd comment line which is "Current Price = xxx"

what i want is to display both the 1st and 2nd comments at the same time

so it should display

 

Current Price After Ontick         =  xxxx 

Current Price      =  xx

 

put the first comment into variable and then write for the second

Comment(var, " \nCurrent Price          =  ", Close[0],"\n")

 
Top-SecreT:

put the first comment into variable and then write for the second

Comment(var, " \nCurrent Price          =  ", Close[0],"\n")

i know that can be done but actually the reason why i want to do what i wrote is to check for bugs

i want to know if the price is moving just after ontick and also lower down the codes 

 
Yes, your 2nd comment will overwrite the first. Send it to the journal instead with a Print()
 
Stuart Browne:
Yes, your 2nd comment will overwrite the first. Send it to the journal instead with a Print()
how to do that?
 
http://lmgtfy.com/?q=mql4+print
Let me google that for you
Let me google that for you
  • lmgtfy.com
Let Me Google That For You
 
Top-SecreT:
http://lmgtfy.com/?q=mql4+print
thank you
Reason: