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 AaronKoRn, Today, 09:49 PM
              0 responses
              6 views
              0 likes
              Last Post AaronKoRn  
              Started by carnitron, Today, 08:42 PM
              0 responses
              8 views
              0 likes
              Last Post carnitron  
              Started by strategist007, Today, 07:51 PM
              0 responses
              9 views
              0 likes
              Last Post strategist007  
              Started by StockTrader88, 03-06-2021, 08:58 AM
              44 responses
              3,975 views
              3 likes
              Last Post jhudas88  
              Started by rbeckmann05, Today, 06:48 PM
              0 responses
              9 views
              0 likes
              Last Post rbeckmann05  
              Working...
              X