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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X