Printing to the log is good for debugging, but sometimes I end up with loads of entries in the output window, and I have no idea which indicator on which chart triggered the printout. I have therefore written a global method, which can be used for printing to the Output window for debugging purposes.
Version: 1
Syntax:
PrintToLog(int level, string text)
level: log level 1-5. A corresponding number of "*" are prefixed to the text.
In addition the following information is printed by default:
* Instrument.MasterInstrument.Name
* BarsPeriod.BasePeriodValue.ToString()
* BarsPeriod.BasePeriodType.ToString()
* Time[0].ToString()
and finally the text passed to the method is added to this string.
This global method obviously cannot be run as a standalone indicator, but can be used in your own indicators to print to the Output window.
Category The Elite Circle
|
|
|