2.8 KiB
2.8 KiB
NT8 SDK Installation Instructions
Overview
This guide documents manual and scripted deployment of the NT8 SDK into NinjaTrader 8.
Prerequisites
- Windows machine with NinjaTrader 8 installed.
- NinjaTrader 8 has been launched at least one time so the Custom folder exists.
- .NET SDK available for building release binaries.
- Repository checked out locally.
Expected Paths
- Project root:
c:\dev\nt8-sdk - Deployment script:
c:\dev\nt8-sdk\deployment\deploy-to-nt8.bat - NinjaTrader custom folder:
%USERPROFILE%\Documents\NinjaTrader 8\bin\Custom
Build Release Artifacts
Run this from repository root:
cd c:\dev\nt8-sdk && dotnet build NT8-SDK.sln --configuration Release
Expected outputs:
src\NT8.Core\bin\Release\net48\NT8.Core.dllsrc\NT8.Adapters\bin\Release\net48\NT8.Adapters.dll
Deploy Using Script (Recommended)
Run:
cd c:\dev\nt8-sdk\deployment && deploy-to-nt8.bat
What the script does:
- Validates NinjaTrader custom folder exists.
- Validates release binaries exist.
- Creates backup folder under
deployment\backups\<timestamp>. - Backs up existing deployed SDK files.
- Copies DLLs into NinjaTrader Custom folder.
- Copies wrapper strategy source files into
Custom\Strategies. - Verifies expected deployed files exist after copy.
- Writes
manifest.txtinto the backup folder with source/destination details.
Verify Deployment in NinjaTrader 8
- Open NinjaTrader 8.
- Open NinjaScript Editor.
- Press
F5to compile. - Confirm no compile errors.
- Open Strategies window and verify wrappers are listed:
BaseNT8StrategyWrapperSimpleORBNT8Wrapper
Rollback Procedure
If deployment must be reverted:
- Locate the latest backup in
deployment\backups. - Review
manifest.txtin that backup folder to confirm file set and paths. - Copy files back into:
%USERPROFILE%\Documents\NinjaTrader 8\bin\Custom%USERPROFILE%\Documents\NinjaTrader 8\bin\Custom\Strategies
- Recompile in NinjaTrader (
F5).
Troubleshooting
"NinjaTrader Custom folder not found"
- Launch NinjaTrader once.
- Confirm
%USERPROFILE%\Documents\NinjaTrader 8\bin\Customexists.
"Core DLL not found" or "Adapters DLL not found"
- Re-run release build:
cd c:\dev\nt8-sdk && dotnet build NT8-SDK.sln --configuration Release
NinjaScript compile errors after deploy
- Confirm target framework remains .NET Framework 4.8.
- Confirm C# 5.0-compatible syntax in wrappers.
- Restore from backup and redeploy after fixes.
Operational Notes
- Deploy only when NinjaTrader strategy execution is stopped.
- Keep timestamped backups for audit and rollback.
- Keep
manifest.txtwith each backup for deployment traceability. - Re-run deployment after every release build update.