The NinjaTrader8 Log(...) method has 2 related bugs that can be quickly reproduced by running the attached strategy in a back-test in the current production version of NT8.
Both bugs occur when running the following code:
Log(@"Logging Information. Background should be white.", Cbi.LogLevel.Information); Log(@"Logging Alert. Background should be yellow.", Cbi.LogLevel.Alert); Log(@"Logging Warning. Background should be orange.", Cbi.LogLevel.Warning); Log(@"Logging Error. Background should be red.", Cbi.LogLevel.Error);
The second line logs an alert. It should be yellow. It is red.
The third line logs a warning. It should be orange. It is yellow.
The fourth line logs an error. It should be red. It is orange.
Bug #2: The following line that is supposed to log an alert opens a dialog box during a back-test whose window title is "Error":
Log(@"Logging Alert. Background should be yellow.", Cbi.LogLevel.Alert);
Thanks,
EquityTrader
Comment