Hello fellow traders,
I am seeking assistance with an issue I encountered while attempting to share a NinjaTrader strategy that utilizes the Newtonsoft.Json.dll library. The strategy works perfectly on my local machine, as I have the necessary DLL installed. However, when I try to import the strategy onto a fresh NinjaTrader installation on a different machine, I am faced with several compilation errors related to the Newtonsoft namespace and its associated types.
Here are the specific errors I am receiving:
```
Time Category Message
6/17/2024 6:40:29 AM Default Error compiling import assembly: C:\Users\Owner\Documents\NinjaTrader 8\tmp\Import\Files\bin\Custom\Strategies\AvantAlgo KingMaker.cs(23,7): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)
Time Category Message
6/17/2024 6:40:29 AM Default Error compiling import assembly: C:\Users\Owner\Documents\NinjaTrader 8\tmp\Import\Files\bin\Custom\Strategies\AvantAlgo KingMaker.cs(102,20): error CS0246: The type or namespace name 'JsonException' could not be found (are you missing a using directive or an assembly reference?)
Time Category Message
6/17/2024 6:40:29 AM Default Error compiling import assembly: C:\Users\Owner\Documents\NinjaTrader 8\tmp\Import\Files\bin\Custom\Strategies\AvantAlgo KingMaker.cs(65,25): error CS0246: The type or namespace name 'JObject' could not be found (are you missing a using directive or an assembly reference?)
Time Category Message
6/17/2024 6:40:29 AM Default Error compiling import assembly: C:\Users\Owner\Documents\NinjaTrader 8\tmp\Import\Files\bin\Custom\Strategies\AvantAlgo KingMaker.cs(65,46): error CS0103: The name 'JObject' does not exist in the current context
Time Category Message
6/17/2024 6:40:29 AM Default Error compiling import assembly: C:\Users\Owner\Documents\NinjaTrader 8\tmp\Import\Files\bin\Custom\Strategies\AvantAlgo KingMaker.cs(24,7): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)
```
I would greatly appreciate any guidance on how to resolve these errors and ensure that the strategy can be seamlessly imported and used by others without the need for manual DLL installation.
From my understanding, the issue stems from the absence of the Newtonsoft.Json.dll library on the target machine. I have tried including the DLL file in the compiled assembly zip file, but it doesn't seem to be recognized during the import process.
Is there a specific way to package the DLL alongside the strategy files to ensure a smooth import experience? Or are there any alternative approaches to handle this dependency that I should consider?
Thank you in advance for your assistance and insights
Best regards,
Andrew

Comment