If I update to latest version of ninjatrader that doesnt have the 32 folder I get an error when I initiate my code. The error is "Ninjatrader failed to initialize ninjatrader DLL ntDirect.dll (0x80040154)"
I have made sure to update my route to the NtDirect file correctly. Is ther anyone that know whats wrong and how to fix this?
this is the line of code that calls the NtDirect and with new version doesn't work:
//
dll_file_path = 'C:\\Program Files\\NinjaTrader 8\\bin\\NtDirect.dll' #>> changed from this "C:\\Program Files (x86)\\NinjaTrader 8\\bin\\NtDirect.dll"
ninja_lib = ctypes.WinDLL(dll_file_path)
is_connected = ninja_lib.Connected(1)
//
Comment