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

To understand StopTargetHandling options

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

    To understand StopTargetHandling options

    Dear NT8 Support,

    After reading the documentation tips I still unable to understand. Documentation mentioned:
    //---start---
    StopTargetHandling

    Tip: The default strategy behavior is to match the order quantity used for the stops and targets to the overall strategy position. However in cases where the strategy's entry order is partially filled, StopTargetHandling.ByStrategyPosition will result in a new set of stop loss and profit target orders for each entry execution. If you would prefer all of your stops and targets to be placed at the same time within the same order, it is suggested to use StopTargetHandling.PerEntryExecution. However this may result in more stop and target orders being submitted than the overall strategy position in a scenario in which the strategy's entire entry orders are not filled in one fill.
    //---end-----
    Let's say I use a ATM template of qty=2, stop1=10, stop2=20, target1=15, target2=25 (ticks), what is the different outcomes when the option is set to (1) StopTargetHandling.PerEntryExecution, (2) StopTargetHandling.ByStrategyPosition with scenarios (A) partial filled & stay at that, (B) partial filled & fully filled,say, 1 min later?

    Explaining with an example/s should help me understand the option settings.

    Thanks.

    #2
    Hi Tiang,

    I've have a member of our support look further into this and let you know what they find.

    I appreciate your patience.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Tiang,

      I wanted to give you an update that I'm still looking into this.

      I'm having a discussion with our development team about the expected behaviors with .ByStrategyPosition and .PerEntryExecution.

      We appreciate your patience.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Hello Tiang,

        Thank you for your patience.

        We had to update the Help Guide which you can view the correct information at the following link: https://ninjatrader.com/support/help...ethandling.htm

        Concerning the application using your examples pleaase see the following.
        Let's say I use a ATM template of qty=2, stop1=10, stop2=20, target1=15, target2=25 (ticks), what is the different outcomes when the option is set to (1) StopTargetHandling.PerEntryExecution, (2) StopTargetHandling.ByStrategyPosition with scenarios (A) partial filled & stay at that, (B) partial filled & fully filled,say, 1 min later?
        With StopTargetHandling.ByStrategyPosition the outcome would be the orders set based on the distance from the initial fill price of the position. Partial fills will result in "stacked" orders but at the same price levels.

        With StopTargetHandling.PerEntryExecution the outcome would be that the orders are set based on the filled amount of each execution and any partial fills if at different price levels will result in the Stops and Targets at different price levels.

        Please let me know if you have any questions.

        Comment


          #5
          Originally posted by NinjaTrader_PatrickH View Post
          Hello Tiang,

          Thank you for your patience.

          We had to update the Help Guide which you can view the correct information at the following link: https://ninjatrader.com/support/help...ethandling.htm

          Concerning the application using your examples pleaase see the following.

          With StopTargetHandling.ByStrategyPosition the outcome would be the orders set based on the distance from the initial fill price of the position. Partial fills will result in "stacked" orders but at the same price levels.

          With StopTargetHandling.PerEntryExecution the outcome would be that the orders are set based on the filled amount of each execution and any partial fills if at different price levels will result in the Stops and Targets at different price levels.

          Please let me know if you have any questions.
          Thank you Patrick.
          I also don't understand this, even after your explanation.
          Do you have any video about it maybe? Some help guide with pics and numbers and clear workflow what is the problem and how each command deal with it?
          Thanks.
          Isaac.

          Comment


            #6
            Hello IsaacBillion,

            Thank you for your reply.

            We don't have any available videos on this as far as I can find, however, I can try to clarify a bit.

            In the scenario above there would not be a possibility of a partial fill since there would be 2 entries of 1 quantity each, however, this would really only come into play if you have a partial fill on an amount greater than 1 contract or are otherwise scaling into a position.

            So let's say, for example, that we have an entry for a quantity of 30, which fills in two partial fills. If you use By Strategy Position, the stop and target would be submitted as one stop and one target and the quantity of those would be adjusted when the second partial fill close.

            If you are using PerEntryExecution, for each partial fill, a new set of targets and stops would be created as the partial fills occur. So if we have a partial fill in two parts, a stop and target would be submitted for the first filled quantity, and a separate second stop and target would be submitted once it fully fills.



            Please let us know if we may be of further assistance to you.

            Kate W.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Perr0Grande, Today, 08:16 PM
            0 responses
            2 views
            0 likes
            Last Post Perr0Grande  
            Started by elderan, Today, 08:03 PM
            0 responses
            5 views
            0 likes
            Last Post elderan
            by elderan
             
            Started by algospoke, Today, 06:40 PM
            0 responses
            10 views
            0 likes
            Last Post algospoke  
            Started by maybeimnotrader, Today, 05:46 PM
            0 responses
            12 views
            0 likes
            Last Post maybeimnotrader  
            Started by quantismo, Today, 05:13 PM
            0 responses
            7 views
            0 likes
            Last Post quantismo  
            Working...
            X