Dislikedok thanks. did that and complied ok but no output in debugviewer and can't find the metatrader log viewer I'm sure I'm doing something stupid.Ignored
EA debugging help Please - SevenChi 7 replies
Debugging EAs 3 replies
Need help debugging 0 replies
Debugging EAs 2 replies
Help debugging my EA I feel like the solution is too simple. 1 reply
Dislikedok thanks. did that and complied ok but no output in debugviewer and can't find the metatrader log viewer I'm sure I'm doing something stupid.Ignored
#import "kernel32.dll" void OutputDebugStringW(string msg); #import /** * send information to OutputDebugString() to be viewed and logged * by SysInternals DebugView (free download from microsoft) * This is ideal for debugging as an alternative to Print(). * The function will take up to 8 string (or numeric) arguments * to be concatenated into one debug message. */ void log( string s1, string s2="", string s3="", string s4="", string s5="", string s6="", string s7="", string s8="" ){ string out = StringTrimRight(StringConcatenate( WindowExpertName(), ".mq4 ", Symbol(), " ", s1, " ", s2, " ", s3, " ", s4, " ", s5, " ", s6, " ", s7, " ", s8 )); OutputDebugStringW(out); }