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 DannyP96, 05-18-2026, 02:38 PM
        1 response
        25 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        115 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        69 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        225 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        411 views
        0 likes
        Last Post CaptainJack  
        Working...
        X