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 kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        88 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        92 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        70 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        87 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        64 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X