Thanks for the reply.
You could make an Indicator and a Strategy that create a partial class of themselves which will include your logger.
As an example, say you have a Logger DLL. A reference to this DLL has already been added to NinjaTrader.
You can make a blank indicator that implements a partial Indicator class like this:
using Logger; ... namespace NinjaTrader.NinjaScript.Indicators { public partial class Indicator : NinjaTrader.Gui.NinjaScript.IndicatorRenderBase { public LoggerHelper MyLogger = new Logger.LoggerHelper(); } }
Both Strategies and Indicators have a built-in Log that you could use as well.
Please let me know if you have any questions.
Leave a comment: