Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Could you send me some ideas to fix this with Strategy Builder?

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

    Could you send me some ideas to fix this with Strategy Builder?

    Hi folks.

    This 6 min video explains it https://www.screencast.com/t/1UpCbxop

    What do I need to look at to avoid that extra "Close position" on the Short or Long side to be sure I only stay long or short 1 at a time here. I have my entries for longs and shorts and exits tagged with specific names and none of them are "Close position" tag. Where is that coming from?

    Again, the video will give you full context of what is going on.

    I have tried multiple different sets to avoid this.

    I am still working to solve it too but I would love to get your input and help to accelerate what the issue is.

    Thanks.

    Greg

    #2
    Hello, thanks for writing in. The strategy is automatically generating the Close Position because you are reversing the position by calling EnterLong/EnterShort one after the other. E.g. when you are in a long position and the strategy calls EnterShort, it will first submit Close Position to exit the long position then call EnterShort with the signal name to go short. From what I can see in the video there is not extra position or extra orders. This is expected behavior.

    Kind regards,

    -ChrisL

    Comment


      #3
      Ok. Why do you think it is doing in mainly on short positions though too? So, are you saying I could remove Set 2 and Set 4 (the exit conditions) and just let Set 1 and Set 3 for the initial long and short control? What is your opinion of what I should try to resolve? I think that is what you mean but am I understanding what you are saying correct? Greg I will try it regardless anyway for now...

      Comment


        #4
        Hello, thanks for the follow up. When you see the Close Position signal name, it means the strategy is closing to reverse the position. When you do not see "Close Position" it means the strategy saw the exit order and it closed the position to go flat. Your conditions to 1. Exit the long position and 2. enter the short position are exactly the same, so you should remove one or the other to avoid these duplicate orders.

        Kind regards,
        -ChrisL​

        Comment


          #5
          Thanks a lot! I removed Set 2 and Set 4 (the strategy exit short and long I had before). It seems to be working as I envisioned now with your explanation. Thanks! Greg

          Comment


            #6
            Hi Chris and @all,

            I have a similar problem. If I start an EnterLong this trade should continue. Even if I start an EnterShort later. At the moment the long is always closed and only then the short is started. How can I program the long or the short to run independently and in parallel.

            Comment


              #7
              Hi M1cha123, thanks for posting and welcome to the NinjaTrader forum. The strategy can only run on one account, so if you enter long, then enter short the short order will close out of the long position. You would need to run two strategies on two separate accounts in order to have a long and short position at one time. You can make an extra Sim account by going to the Accounts tab of the Control Center>Right Click>Add Simulation Account.

              Kind regards,
              -ChrisL​​

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Mindset, 04-21-2026, 06:46 AM
              0 responses
              90 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by M4ndoo, 04-20-2026, 05:21 PM
              0 responses
              135 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Started by M4ndoo, 04-19-2026, 05:54 PM
              0 responses
              68 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Started by cmoran13, 04-16-2026, 01:02 PM
              0 responses
              119 views
              0 likes
              Last Post cmoran13  
              Started by PaulMohn, 04-10-2026, 11:11 AM
              0 responses
              69 views
              0 likes
              Last Post PaulMohn  
              Working...
              X