Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetProfitTarget

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

    SetProfitTarget

    Hi
    I am using the set profit target from the sample price modification strategy.On ES with an order quantity of 1 it works fine, however when I apply the same strategy to EURUSD the order quantity with MB Trading needs to be 10,000 for a mini lot. So when the profit target is hit it does not remove the whole 10,000 lot at once but removes it one at a time leaving 9,999 9,998 9,997 ect .What do i need to change to close the whole position.
    Thanks

    #2
    ohjob,

    Was this strategy made via coding or through the strategy wizard?

    Could you possible post how you are using the profit target and stop loss?
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Yes via the strategy wizard.I have been double checking and the problem happens only in replay mode not in sim

      Comment


        #4
        ohjob,

        Do you possibly have your strategy for testing purposes or, if you don't want to share it, a "toy" strategy I may use to test on my end?
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Hi
          Here is a example strategy that works ok in sim but acts as explained in replay.I was unable to export this through the control centre not sure if this has any bearing.
          Attached Files

          Comment


            #6
            Hello,

            Thanks for the note.

            Are you running this on simulator? If this is the case I suspect the issue would occur with a normal trade in the chart trader for example and not limited to the strategy.

            The reason is the simulator tries to fill based on volume of trades received and MBT is not sending very many executions at this time.

            For forex I recommend going to the control center->Tools->Options->Simulator tab and then check Enforce immediate fills.

            This should allow it to fill instantly.

            -Brett
            BrettNinjaTrader Product Management

            Comment


              #7
              Hi Brett
              That did it, thank you very much.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              574 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              332 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              553 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              551 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X