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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      30 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      49 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X