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 NullPointStrategies, Yesterday, 05:17 AM
              0 responses
              54 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              131 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              73 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              44 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              49 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X