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

Connecting Entry and Exit manually

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

    Connecting Entry and Exit manually

    Hi,

    Is it possible to assign an Entry order a specific Exit order, so NinjaTrader connects these two orders on the chart?

    I have set of entries and a set of exits, however NinjaTrader seems to connect them in a kind of queue, i.e. first exit is connected to the first entry and so on, instead of actual sequence.

    Thanks.

    #2
    Hello alex.nt,
    Unfortunately there is no native way to do it. You have to further custom code your strategy to do it.

    You have to assign custom name to entry/exits and exit the trades as per your desire.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      I do have unique names for Entries and Exits.

      Do you mean that (*) if I use identical names for entries and exits then NinjaTrader should connect them as actual entry ---> exit on a chart?

      I am not sure if that is right because NinjaTrader assigns Exits to Entries based on its own logic. If (*) had been correct then NinjaTrader would not have closed a single position.

      In other words, what would be the way to assure that Entry A has Exit B, and only B?

      Comment


        #4
        Originally posted by alex.nt View Post
        I do have unique names for Entries and Exits.

        Do you mean that (*) if I use identical names for entries and exits then NinjaTrader should connect them as actual entry ---> exit on a chart?

        I am not sure if that is right because NinjaTrader assigns Exits to Entries based on its own logic. If (*) had been correct then NinjaTrader would not have closed a single position.

        In other words, what would be the way to assure that Entry A has Exit B, and only B?
        By naming the Entry signal and specifying that the Exit is for that signal. e.g.,

        Code:
         
        ExitLong(string fromEntrySignal);
        There are other more elaborate overrides. ref: http://www.ninjatrader.com/support/h...l?exitlong.htm

        Comment


          #5
          Hi koganam,

          Sorry, I meant Unmanaged approach. As far as I understand signal tracking features do not work in this case (as stated in documentation).

          So the question remains the same: how would one explicitly assign one order (Exit) to another order (Entry)?

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by aussugardefender, Today, 01:07 AM
          0 responses
          1 view
          0 likes
          Last Post aussugardefender  
          Started by pvincent, 06-23-2022, 12:53 PM
          14 responses
          238 views
          0 likes
          Last Post Nyman
          by Nyman
           
          Started by TraderG23, 12-08-2023, 07:56 AM
          9 responses
          383 views
          1 like
          Last Post Gavini
          by Gavini
           
          Started by oviejo, Today, 12:28 AM
          0 responses
          1 view
          0 likes
          Last Post oviejo
          by oviejo
           
          Started by pechtri, 06-22-2023, 02:31 AM
          10 responses
          125 views
          0 likes
          Last Post Leeroy_Jenkins  
          Working...
          X