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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        110 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        156 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        74 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X