Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Scaling Into positon using IOrder object

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

    Scaling Into positon using IOrder object

    I am working on how to scale into a position. I have used the sample strategy "SampleOnOrderUpdate" (from link below). I though it would be easiest to ask the question based on using that strategy.

    Using that sample strategy, I have entered a 1 contract long position with associated profit target and stops.
    After the position moves 1 pt into profit, I would like to add a second long contract (market order) , and increase the size of the Profit target order and Stop loss order, each from 1 to 2 contracts.

    Do I use the same IOrder object (entryOrder), that was used for original entry. Or does a second IOrder object(entryOrder2?) need to be used, with Profit/stop_loss at the same level as originals.

    Any advice would be appreciated.

    Thanks,
    Phineas


    #2
    I would use a second IOrder since it seems like you would generally have two entry orders. This maintains you the flexibility to still reference your original entry order even after placing your second order.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Josh,
      Follow-up question. If I thought it was preferred to use just one IOrder object. Is it okay to use the same IOrder object identifier (entryOrder), for both the first and the second order placement ?
      Phineas

      Comment


        #4
        That depends on how you want to design your strategy. You will have to evaluate what your needs are and how you want to proceed with the issue.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X