Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Automated Trading Interface (ATI) help

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

    Automated Trading Interface (ATI) help

    hi fellows , i try to send order by Order Instruction Files (OIF)
    i able ATI from the General Options menu.
    i create a file and save it in My Documents\<NinjaTrader Folder>\incoming
    i call it oif1.txt and i insert inside this string
    PLACE;<Sim101>;<6E 03-21>;<SELL>;<1>;<MARKET>

    but not enter the order in NJ in folder disappear a txt but not saw in chart order ?
    anyone know why ?







    Last edited by faustf; 01-14-2021, 03:19 AM.

    #2
    Hello faustf, thanks for your post.

    We recommend OIF files be automatically placed into the Incoming folder by a script rather than manually copy/pasting the file. This is because manual copy/pasting the file can sometimes be ignored by the way Windows handles files. I attached a sample script to reference how to do this through an addon that takes OIF files from one directory and places them into the Incoming folder.

    Please let me know if you have any questions on this material.
    Attached Files
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      thankz for reply and for example , i dont wanna use C# , because for write a simple tex i must write so much , i test it with Autoit but unfortunally not work , but now i test with perl and cmd script
      this is my code in autoit (autoit is basike like similar to visualbasic script )
      HTML Code:
      #include <FileConstants.au3>
      #include <MsgBoxConstants.au3>
      #include <WinAPIFiles.au3>
      
      
      Global $sPath="C:\Users\stefano\Documents\NinjaTrader 8\incoming\oif1.txt"
      Global $sData="PLACE;<Sim101>;<6E 03-21>;<SELL>;<1>;<MARKET>"
      
      Example()
      
      
      Func Example()
      
      _True_write_File($sPath, $sData )
      
      EndFunc ;==>Example
      
      
      ; #INDEX# ================================================== ======================
      ; Title .........: _True_write_File
      ; AutoIt Version : 3.3.14.2++
      ; Language ......: Italian
      ; Description ...: A collection of Function for Logic
      ; Author ........: Faustf
      ; What do you do.: Write data in File
      ; Version .......: 0.0.1 BETA - Work in progress 23/03/2017
      ; Syntax ........:
      ; ================================================== ==============================
      Func _True_write_File($sFilePath, $sDataWrite, $iReturn = 0)
      
      If $iReturn = Default Then $iReturn = 0
      $file = FileOpen($sFilePath, 1)
      If $iReturn = 0 Then
      FileWrite($file, $sDataWrite & @CRLF)
      Else
      FileWrite($file, $sDataWrite)
      EndIf
      FileClose($file)
      EndFunc ;==>_True_write_File
      the syntax is correct ? PLACE;<Sim101>;<6E 03-21>;<SELL>;<1>;<MARKET>"
      or i must write in this mode ? PLACE;Sim101;6E 03-21;SELL;1;MARKET ????

      Comment


        #4
        Do not include the angle brackets, those are syntax characters used
        to define the specification -- not actual input characters.

        Also, every semi-colon is important -- these are field delimiters and
        must still be included, even if the field is empty.

        Comment


          #5
          Exact specifications for OIF are here.

          Comment


            #6
            o thankz now work this is a correct syntax for call i write for the comunity
            Code:
            "PLACE;Sim101;6E 03-21;SELL;1;MARKET;;;GTC;;;;"

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by rocketman7, Today, 02:12 AM
            5 responses
            23 views
            0 likes
            Last Post rocketman7  
            Started by trilliantrader, 04-18-2024, 08:16 AM
            7 responses
            28 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by samish18, 04-17-2024, 08:57 AM
            17 responses
            66 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by briansaul, Today, 05:31 AM
            1 response
            15 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by PaulMohn, Today, 03:49 AM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Working...
            X