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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        91 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        137 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
        121 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        72 views
        0 likes
        Last Post PaulMohn  
        Working...
        X