Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cant write OIF.txt to NinjaTrader 8\incoming"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cant write OIF.txt to NinjaTrader 8\incoming"

    I want to write OIF.txt file to C:\Users\USER\Documents\NinjaTrader 8\incoming, to Automate placing orders.
    When Ninjatrader is open file is not written, no error reported by Python.
    When Ninjatrader is close OIF file is written, orders place, no problem.
    Im using Python to write OIF file.
    Copying OIF file works and orders are placed.
    OS is Windows 10, Home.

    #2
    Hello marwanco,

    That may be how the python script is trying to write the file. I would suggest trying to write the file to a different location and then move the already written file into the directory using a command to see if that allows it to work.

    Comment


      #3
      Problem solved, NT will read and erase OIF file from NinjaTrader 8\incoming, and if trading tab not open, the orders are not visible on the screen.
      Leaving trading tab open fixed my problem.
      Thank you

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      57 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      37 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      166 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      101 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      162 views
      2 likes
      Last Post CaptainJack  
      Working...
      X