Announcement

Collapse
No announcement yet.

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, 02: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 thomaswilleford, Today, 12:07 AM
            0 responses
            2 views
            0 likes
            Last Post thomaswilleford  
            Started by dlygorivw, Yesterday, 10:55 PM
            0 responses
            2 views
            0 likes
            Last Post dlygorivw  
            Started by dlygorivw, Yesterday, 10:53 PM
            0 responses
            4 views
            0 likes
            Last Post dlygorivw  
            Started by janiyaconnelly, Yesterday, 10:41 PM
            0 responses
            3 views
            0 likes
            Last Post janiyaconnelly  
            Started by slimoriginus, Yesterday, 10:07 PM
            0 responses
            5 views
            0 likes
            Last Post slimoriginus  
            Working...
            X