NT7 is offering the possibility to write directly to the Log Tab of the main window using the Log() function. The Log tab shows 3 columns: Date, Category and Message, but the Log() function is not able to set the category.
Please add another overload: Log(string message, LogLevel loglevel, Category category)
Why?
I prefer writing my own Log tab entry when I start an automated strategy, or when it gets disabled (by the code or manually).
The original Log tab message reads like this:
"Disabling NinjaScript strategy 'MyStratName/4df375e47ae0443e9784088c134d5e74'"
I prefer writing e.g.:
"Disabling strategy MyStrategyName v1.0.0 (YYYY-MM-DD) on InstrumentID, account AccountID"
This should be marked as Category = Strategy, too.
Thanks,
Nathamus
Comment