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