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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        66 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X