Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cannot exit the trade!?

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

    Cannot exit the trade!?

    I just got Ninja today and I wrote very simple strategies using Strategy Wizzard. One is to enter the trade and the other is to exit the trade. I applied them to the chart and I see only entry and NO EXIT.

    The strategies I wrote were:

    Entry Strategy:
    condition: Close[0] < Close[1]
    Action: EnterShort(DefaultQuantity,"")

    Exit Strategy:
    Condition: Close[0] > Close[1]
    Action: ExitShort("","")

    The exit does not show on the chart. Can anyone help me?

    #2
    Hi yktrader,

    Welcome to the NinjaTrader forum!

    Your code seems fine to me, did you put your entry condition in Set1 and exit condition in Set2 in the Strategy wizard Condition and Actions page?

    Here's a good overview over the different screens in the Wizard - http://www.ninjatrader-support.com/H...rdScreens.html

    Comment


      #3
      Hi NinjaTrader_Bertrand,

      I did NOT put my entry condition in Set1 and exit condition in Set2 in the Strategy wizard Condition and Actions page. I put them in two different strategies. That is why the exit was not working.

      Thank you for you help.

      Comment


        #4
        Hi yktrader,

        Great it works now!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        571 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        549 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        549 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X