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 Max238, Today, 01:28 AM
        3 responses
        30 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by timko, Today, 06:45 AM
        2 responses
        12 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by habeebft, Today, 07:27 AM
        0 responses
        4 views
        0 likes
        Last Post habeebft  
        Started by Tim-c, Today, 03:54 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by rocketman7, Today, 01:00 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X