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

Oif closeposition

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

    Oif closeposition

    1) will this command also close ATM positions created by ChartTrader

    or

    2) only positions entered by an active Strategy

    or

    3) only positions entered by the specific Strategy that entered a position

    ALSO

    Does this command cancel any pending orders?

    Thx.

    #2
    Hello Turtle Trader,
    Close Position will close all the positions, created via Chart Trader or via the strategy) for that specific instrument and account.

    Yes, it will cancel the pending orders for that instrument and account.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      reply

      OK, then I have a problem to trace down.

      The OIF file is being written correctly to the Incoming folder...

      I have tried to name it different things:

      oif.txt
      oif2.txt
      oif_CL 12-12.txt

      But they are not being acted upon.

      I suppose they should be deleted once Nnja executes the OIF?

      There are no Ninja Log entries.

      I have MY DOCUMENTS mapped to another drive...it is not the C: drive. Do you suppose that matters?

      The script can find the folder ok...but tell it where...it is on the E: drive, not the C: drive.

      Comment


        #4
        to clarify

        I suppose that Ninja would delete the OIF file when it has executed it....is that true?

        Would there be Ninja Log entries concerning the OIF file?

        Comment


          #5
          Hello Turtle Trader,
          Yes the OIF files gets deleted.

          Please send me your log and trace files for today so that I may look into what occurred.

          You can do this by going to the Control Center-> Help-> Mail to Support.

          Please append Attn:Joydeep in the subject line of the Email and give a reference to this thread in the body of the email.
          JoydeepNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Aviram Y, Today, 05:29 AM
          0 responses
          1 view
          0 likes
          Last Post Aviram Y  
          Started by quantismo, 04-17-2024, 05:13 PM
          3 responses
          25 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by ScottWalsh, 04-16-2024, 04:29 PM
          7 responses
          34 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cls71, Today, 04:45 AM
          0 responses
          5 views
          0 likes
          Last Post cls71
          by cls71
           
          Started by mjairg, 07-20-2023, 11:57 PM
          3 responses
          216 views
          1 like
          Last Post PaulMohn  
          Working...
          X