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

Keyword to allow hedging ?

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

    Keyword to allow hedging ?

    Hello,

    I'm working on a strategy with running buy orders and running sellshort orders at the same time. The issue is : my sellshort order closes sometimes the previous buying orders and a buying order closes sellshort.

    Does any keyword exist to say to Ninja "don't do this" ?

    Thanks !

    #2
    Hello After,

    Thank you for your note.

    This would not be possible.

    As such, the Managed approach does not allow for two separate orders of the opposite direction to be working at the same time and using the Unmanaged approach will use FIFO rules for the orders.

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Thanks for answering.

      I'm using an unmanaged approach. Well, it's a very bad news, there isn't any way to change this FIFO rule I guess ?

      Comment


        #4
        After,

        There is not.
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          or you could use x2 separate strategies, one for the long trades, one for the short!

          Comment


            #6
            Hello CoopUpSide,

            Thanks for your post and welcome to the NinjaTrader forums!

            Please note that you are replying to a 5-year-old post in NinjaTrader7 Strategy development forums and as such, you may not get any responses from the original poster.
            .
            Two separate strategies on the same account and the same instrument is possible but not recommended as you can only have one account position of long/short or flat and the strategies would be out of sync with the account position and would continue to place live orders according to their logic.
            Paul H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Lele2k24, Today, 01:32 PM
            2 responses
            7 views
            0 likes
            Last Post Lele2k24  
            Started by Sebastian - TwinPeaks, Today, 01:31 PM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by tonynt, Today, 01:48 PM
            1 response
            2 views
            0 likes
            Last Post NinjaTrader_ChristopherJ  
            Started by eladlevi, Today, 11:02 AM
            4 responses
            23 views
            0 likes
            Last Post eladlevi  
            Started by synthhokie, Today, 10:24 AM
            5 responses
            15 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X