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 traderqz, Yesterday, 09:06 AM
                  3 responses
                  20 views
                  0 likes
                  Last Post NinjaTrader_ThomasC  
                  Started by f.saeidi, Today, 10:19 AM
                  1 response
                  4 views
                  0 likes
                  Last Post NinjaTrader_BrandonH  
                  Started by kujista, Today, 06:23 AM
                  5 responses
                  15 views
                  0 likes
                  Last Post kujista
                  by kujista
                   
                  Started by traderqz, Today, 12:06 AM
                  3 responses
                  6 views
                  0 likes
                  Last Post NinjaTrader_Gaby  
                  Started by RideMe, 04-07-2024, 04:54 PM
                  5 responses
                  28 views
                  0 likes
                  Last Post NinjaTrader_BrandonH  
                  Working...
                  X