Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

All Flat

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

    All Flat

    I have stategy that executes three positions at a time. I want the strategy to be ALL Flat before it reopens any new positions. I must be missing something. Maybe my script order is incorrect. I have provided some screen shots.

    Thank you,
    Attached Files

    #2
    Jeff,

    Problem is in your entry conditions. If you only want these to be placed from a flat state you need to add the Position.MarketPosition == MarketPosition.Flat check as one of those conditions.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Exit

      One more issue. I want to use a vertual exit on the rollover of the SuperTrend. It seems to be ignoring it. I must be missing something here too. I have attached some screen shots.

      Thanks for your help on the previous issue. That fixed it.
      Attached Files

      Comment


        #4
        Jeff,

        For those conditions you will want to debug them with Print(). Print out the Low value as well as your SuperTrend value to see what they actually are being evaluated out to be.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        88 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        48 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        31 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        34 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        69 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X