Download MetaTrader 5

possible to append 2 different comments?

To add comments, please log in or register
bobo1974
216
bobo1974 2016.04.19 15:04 

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 

Alain Verleyen
Moderator
31138
Alain Verleyen 2016.04.19 15:12  
I don't understand anything.
bobo1974
216
bobo1974 2016.04.19 15:29  
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

Daniela Bluemel
597
Daniela Bluemel 2016.04.19 15:39  

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

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

bobo1974
216
bobo1974 2016.04.19 15:41  
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 

Stuart Browne
5889
Stuart Browne 2016.04.19 15:55  
Yes, your 2nd comment will overwrite the first. Send it to the journal instead with a Print()
bobo1974
216
bobo1974 2016.04.19 15:58  
Stuart Browne:
Yes, your 2nd comment will overwrite the first. Send it to the journal instead with a Print()
how to do that?
Daniela Bluemel
597
Daniela Bluemel 2016.04.19 17:03  
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
bobo1974
216
bobo1974 2016.04.19 17:34  
Top-SecreT:
http://lmgtfy.com/?q=mql4+print
thank you
To add comments, please log in or register