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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        87 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        106 views
        0 likes
        Last Post CarlTrading  
        Working...
        X