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

Exit without an Entrance?

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

    Exit without an Entrance?

    Hi all,

    I currently have a portfolio that I hold overnight but want to trade during the day. It seems as if the only way that I can exit a position is to enter one first. But at the beginning of the day, I have nothing to enter into because I'm already *in* a position.

    Any ideas on what I could do here would be helpful - thanks!

    #2
    Hello Saltboy,

    Thank you for your post.

    What it seems like you want to do is have a NinjaScript automated strategy manage a position for exit only.

    It's true that an exit will require an entry so for this to work you would need a strategy position that matches the account position.

    There's no way to explicitly tell the strategy prior to running what your position is, so the strategy position would have to match based on prior entry signals.

    More info on strategy position versus account position here.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_RyanM View Post
      Hello Saltboy,

      Thank you for your post.

      What it seems like you want to do is have a NinjaScript automated strategy manage a position for exit only.

      It's true that an exit will require an entry so for this to work you would need a strategy position that matches the account position.

      There's no way to explicitly tell the strategy prior to running what your position is, so the strategy position would have to match based on prior entry signals.

      More info on strategy position versus account position here.
      So, could I start the strategy *after the session opens* with an entry? And if that entry doesn't execute since I started after the session, I could still do an exit.

      Do I have that Right?

      Comment


        #4
        Hello Saltboy,

        Yes, this is pretty close.

        The idea is that the strategy would be in a position prior to starting it that matches your account position.

        The tricky part is that you can't explicitly state this. It's just based off the signal rules you have developed.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          So, basically, I do need to be careful how/when I start the strategy so that things don't get out of sync. That makes sense - thanks!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,611 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          9 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          19 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          6 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          22 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X