Download MetaTrader 5

Comments not clearing

To add comments, please log in or register
Examine the Top MetaTrader 5 signals. Choose the best one and subscribe to it!
jt27
46
jt27 2016.05.02 06:04 

I am having an interesting issue where I call the Comment() function each time I get a new tick and instead of clearing the existing comment prior to writing the new comment it will simply write the new comment below the old comments.  Sooner or later the comments have filled the entire screen and run off the bottom.

 Any thoughts? 

Keith Watford
Moderator
9620
Keith Watford 2016.05.02 07:39  

You are probably adding to a static or globalscope string that you use in the Comment function().

Not possible to guess any more without seeing the code.

jt27
46
jt27 2016.05.02 13:57  
GumRai:

You are probably adding to a static or globalscope string that you use in the Comment function().

Not possible to guess any more without seeing the code.

That was exactly it, thanks!
To add comments, please log in or register