• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

oif file does not work

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

    oif file does not work

    Hello,

    Im trying to generate an oif.txt file but when I put it in the incoming folder, NinjaTrader does not place the order.
    Do you know what is the problem?
    I attach you the file that Im using.

    Im using the trial account and I dont know if it can be the problem.

    Thanks.
    Attached Files
    Last edited by Javi26; 02-25-2020, 08:49 AM.

    #2
    Hello Javi26,

    Thanks for your post.

    Please ensure that the AT Interface is enabled in the Control Center's Tools > Options > Automated Trading Interface menu. Please then restart the platform and connect to your data provider. Afterwards, please copy the OIF file attached into the incoming folder.

    I have also attached an OIF file that includes 0's for Limit and Stop price for a Market Order.

    If you are still having issues, please check the Log tab of the Control Center and copy any errors you see related to OIF files. You can click on an error and press Ctrl + C to copy the error.

    We look forward to assisting.
    JimNinjaTrader Customer Service

    Comment


      #3
      Hello, thanks for your answer.

      After enabling AT interface it works if I copy paste de oif.txt file. But when I write the file directly in the incoming folder using Python, it occurs an error saying that another program is using it. I have shared the incoming folder with another server where I write the txt file. I close the file too after writing it.
      Maybe NinjaTrader8 is too fast reading the file?
      Do you know how can I solve this issue?

      Thanks.
      Last edited by Javi26; 02-26-2020, 05:41 AM.

      Comment


        #4
        Hello Javi26,

        Thanks for your post.

        I've been able to reproduce and I would not expect the file access violations on my set up.

        We are investigating further and we will keep you posted on our findings.
        JimNinjaTrader Customer Service

        Comment


          #5
          Hello,

          Another problem that I have is concerning limitPrice and stopPrice. When I do a buy action with MARKET value for example 3090,5 if I put limitPrice=3098 and stopPrice=3087,5 the bet is not closed when it reaches this values. Do you know what is happening?

          Thank you.

          Comment


            #6
            Hello Javi26,

            Thanks for your patience.

            I have reproduced the issue copying and pasting the file. Windows has not yet let go of the file when it is being processed by NinjaTrader. Development has recommended to move the file as this is uninterruptible from the Operating Systems perspective. I may suggest an approach to write the files in a "buffer" location, and then to move the OIF files to the "incoming" folder after that.

            As for market orders, these should have 0 entered for Limit and Stop prices. These prices should only be used for Limit, Stop Market, and Stop Limit orders. If the order type does not use one of these prices, it should not be used.

            If you have an example of an OIF file for a Limit order or Stop Market order that is not respecting the Limit or Stop Price, please include an attachment. (Please ensure the other price is set to 0 if not used.)

            We look forward to assisting.
            JimNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Teebone21, Yesterday, 04:26 PM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_ChrisL  
            Started by MrSomebody, Today, 06:46 AM
            1 response
            11 views
            0 likes
            Last Post MojoJojo  
            Started by catinabag, Today, 06:09 AM
            0 responses
            3 views
            0 likes
            Last Post catinabag  
            Started by Fiocco, Today, 05:59 AM
            0 responses
            10 views
            0 likes
            Last Post Fiocco
            by Fiocco
             
            Started by Perceivedshift, Today, 05:17 AM
            0 responses
            15 views
            0 likes
            Last Post Perceivedshift  
            Working...
            X