I am trying to use .NET 4.0 System.Windows.Forms.DataVisualization.dll in my strategy.
I've copied the DLL to C:\Users\...\Documents\NinjaTrader 7\bin\Custom and added a reference to it into my C# code.
I compiles OK.
I also restarted NT.
But my strategy now fails to load with the following error:
**NT** Enabling NinjaScript strategy 'AuraTradeMgrOFAv02/fe3b5d09b3784d70bbc9af1fe2f4d40d' : On starting a real-time strategy - StrategySync=WaitUntilFlat SyncAccountPosition=False EntryHandling=AllEntries EntriesPerDirection=1 StopTargetHandling=PerEntryExecution ErrorHandling=StopStrategyCancelOrdersClosePositio ns ExitOnClose=True/ triggering 30 before close Set order quantity by=Strategy ConnectionLossHandling=KeepRunning DisconnectDelaySeconds=10 CancelEntryOrdersOnDisable=False CancelExitOrdersOnDisable=True CalculateOnBarClose=False MaxRestarts=4 in 5 minutes
**NT** Error on calling 'OnStartUp' method for strategy 'AuraTradeMgrOFAv02/fe3b5d09b3784d70bbc9af1fe2f4d40d': Could not load file or assembly 'System.Windows.Forms.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Is there something I should also be setting or doing.
Please let me know.
Comment