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")
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()
http://lmgtfy.com/?q=mql4+print
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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