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

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 alifarahani, Today, 09:40 AM
        6 responses
        30 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        17 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by Kaledus, Today, 01:29 PM
        5 responses
        13 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Waxavi, Today, 02:00 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by gentlebenthebear, Today, 01:30 AM
        3 responses
        17 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X