Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

only new trade when flat

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

    only new trade when flat

    I’m new to strategy development.

    I’m looking for a simple way to only have one position open at a time. I don’t want to the reverse the position based on entry criteria, only take a new position if the previous one has hit my stop or profit. What is the best method to prevent this or check for no open position?

    Thanks in advance,


    Nick

    #2
    Hello bobajob78,

    Thanks for opening the thread.

    EntriesPerDirection can be used to limit how many different times you may enter into a position in a single direction.

    You may also check if the Strategy is in a flat position before entering by checking Position.MarketPosition.

    EntriesPerDirection - https://ninjatrader.com/support/help...rdirection.htm

    Position.MarketPosition - https://ninjatrader.com/support/help...etposition.htm

    Please let us know if you have any additional questions.

    Comment


      #3
      sorry - i need to move this to Ninja 7 area

      Comment


        #4
        thanks Market Position will probably do it. Until I get into complex multiposition strategies I guess!


        thanks.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        67 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        41 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        202 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        366 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        283 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X