Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to space entrees from one another???

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

    How to space entrees from one another???

    I'm stuck trying to figure this out so I'm hoping someone here can help me with some code example. I am not an expert programmer so please bare with me. I am simply trying to code a strategy that takes many entrees per direction but each entree must be made n ticks from the last entree. So there will be times when a position may have multiple entrees but each of those entrees need to be made spaced out from each other. Thank you for your help.

    #2
    Hello Relogical,

    Thank you for your note.

    You would want to place either Stop Limit or Stop Market orders at your interval choices that you would want. You will also need to increase the EntriesPerDirection value, which is set when applying the strategy, to a higher number that you would want to use for the multiple entries.

    http://www.ninjatrader.com/support/h...erlongstop.htm
    http://www.ninjatrader.com/support/h...gstoplimit.htm
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      I don't think you understand what I am trying to accomplish. I am not using stops. I am using signal based exits and entrees. After 1st entree is made I want to scale in to average in my position. So the 2nd entree will be made a set distance from the 1st. And if a 3rd entree is made then that will also be entered a set distance from the 2nd entree. This will keep going until my entire position is closed via an exit signal.

      Comment


        #4
        Relogical,

        You would want to take a look at the sample reference below on scaling in/out of a position
        http://www.ninjatrader.com/support/f...ead.php?t=3751
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          I did all that but it's not what I am trying to accomplish. Thank you

          Comment


            #6
            Relogical,

            The only other thing I can think of would be to create your own calculations for this then.

            I have attached a sample strategy that should be on the right track for your needs.
            This will place your first entry based on a simple calculation then get the fill price for that order and then the second entry is based on the close price being greater than or equal to a set amount of ticks in order to place it.
            Attached Files
            Cal H.NinjaTrader Customer Service

            Comment


              #7
              But what if the 1st entree is not closed and 2nd is not closed or 3rd. How would I evenly space each one of those entrees while they are all open?

              Comment


                #8
                Hello relogical,

                Thank you for your response.

                You could use IOrder objects and pull the limit or stop price and use that as the reference or manually store the price level you submit the orders to with a double and then use that to calculate the next order price level.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Felix Reichert, 04-26-2024, 02:12 PM
                5 responses
                39 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Started by cmtjoancolmenero, 04-29-2024, 03:40 PM
                15 responses
                45 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by ETFVoyageur, Yesterday, 06:05 PM
                6 responses
                37 views
                0 likes
                Last Post ETFVoyageur  
                Started by rbeckmann05, Today, 02:35 PM
                1 response
                6 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Started by Torontobluejays, Yesterday, 08:43 AM
                6 responses
                34 views
                0 likes
                Last Post rc5781
                by rc5781
                 
                Working...
                X