how to clear log window by MQL code ?

 
in log window, there are too many information,
I want clear the contents in log window, and only diaplay my own newest information producted by Print(....) function,
so I can distinguish my own info more easyly.

how to clear log window? control by MQL code !

if not, suggest that MT can add a new window in terminal panel for user's program output.
 
Win API function DeleteFile from kernel32.dll

Try to output your own info to some file. Open this file with some "smart" editor or viewer that can determine file changing from outside. After FileWrite use FileFlush and You can see all output records immediately.
 
sorry, I only ned a clear place to place more something like comments on Chart at Runtimem not only for debug.
Draw many arrow on chart is not good enough for some case, so I think MT should supplly a text or list window for user's own comments.

p.s. you know, the log file are in using, can not be deleted. so Win API function DeleteFile can not be use.

I mean to clear the contents of log windows, not its records file on disk.
Reason: