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 DJ888, Today, 10:57 PM
            0 responses
            6 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by MacDad, 02-25-2024, 11:48 PM
            7 responses
            158 views
            0 likes
            Last Post loganjarosz123  
            Started by Belfortbucks, Today, 09:29 PM
            0 responses
            7 views
            0 likes
            Last Post Belfortbucks  
            Started by zstheorist, Today, 07:52 PM
            0 responses
            7 views
            0 likes
            Last Post zstheorist  
            Started by pmachiraju, 11-01-2023, 04:46 AM
            8 responses
            151 views
            0 likes
            Last Post rehmans
            by rehmans
             
            Working...
            X