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

Profit targets on multiple trades

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

    Profit targets on multiple trades

    i would like to buy three long contracts and sell at $100, $200, $300 profit target. Why is the system selling sooner? attached is trade blotter and strategy.
    Attached Files
    Last edited by hdge4u; 04-06-2021, 09:47 AM.

    #2
    Hello hdge4u,

    Thanks for your post.

    Even though you created individual entries and exits, when you use Currency mode this gets divided by the total position. We do have a feature request to allow this to be on a per-contract basis. The feature request is identified as SFT-4440, "CalculationMode.Currency to adjust quantity for each contract rather than the full trade", I have added your vote to this feature request.

    What we recommend would be to use CalculationMode.Tick and provide a tick specification for each contract (and one for the common stop)

    In addition, in your entry set, add the condition of Strategy>Current market position, equals, Strategy>market position> Flat. This will prevent entering unless all positions are closed.

    Paul H.NinjaTrader Customer Service

    Comment


      #3
      that worked.
      now how do i get the stops to stay in effect. it seems the stops are not staying in effect.
      i have stops and targets by strategy position. here is the new trade blotter and strategy script
      Attached Files

      Comment


        #4
        Hello hdge4u,

        Thanks for your reply.

        When you changed the stop loss to calculation mode ticks did you change the stop value from 500?
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          oops. that helps.

          Comment


            #6
            can you help me understand why the system still is not adhering to stops? stop set to 20 ticks.
            Attached Files

            Comment


              #7
              Hello hdge4u,

              Please attach your latest strategy version or clarify if post #3 is the latest.


              Paul H.NinjaTrader Customer Service

              Comment


                #8
                attached latest
                Attached Files

                Comment


                  #9
                  Hello hdge4u,

                  Thanks for your reply.

                  Please change the strategy setting of "stop & target submission" to "Per entry execution".

                  Paul H.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Nicholewatkinsi, Today, 10:53 PM
                  0 responses
                  3 views
                  0 likes
                  Last Post Nicholewatkinsi  
                  Started by dward123, 01-02-2024, 09:59 PM
                  4 responses
                  174 views
                  0 likes
                  Last Post Lancer
                  by Lancer
                   
                  Started by ETFVoyageur, Today, 04:00 PM
                  2 responses
                  19 views
                  0 likes
                  Last Post ETFVoyageur  
                  Started by AaronKTradingForum, Today, 03:44 PM
                  1 response
                  13 views
                  0 likes
                  Last Post AaronKTradingForum  
                  Started by Felix Reichert, 04-26-2024, 02:12 PM
                  11 responses
                  80 views
                  0 likes
                  Last Post Felix Reichert  
                  Working...
                  X