Ok the above code works -
In DEBUGView make sure 2 things are checked
1) Capture tab > CaptureWin32
2) Options tab > Force carriage returns
Thanks for posting about this dasser I had not thought of outputting to the sys internals debug viewer thats very useful.
SDC - It is not my idea but has been so useful in teaching me MT language . Not sure who developed this concept for MT4 ..but ty ..to them
I think the new MT4 editor has a debug system but I am yet to suss it out .. DEBUG view is so easy to leave on a separate screen ..