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

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

            Comment


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

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by lightsun47, Today, 03:51 PM
              0 responses
              5 views
              0 likes
              Last Post lightsun47  
              Started by 00nevest, Today, 02:27 PM
              1 response
              9 views
              0 likes
              Last Post 00nevest  
              Started by futtrader, 04-21-2024, 01:50 AM
              4 responses
              45 views
              0 likes
              Last Post futtrader  
              Started by Option Whisperer, Today, 09:55 AM
              1 response
              14 views
              0 likes
              Last Post bltdavid  
              Started by port119, Today, 02:43 PM
              0 responses
              9 views
              0 likes
              Last Post port119
              by port119
               
              Working...
              X