Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Profit Condition

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

    Profit Condition

    I am testing an ma crossover system, open at EOD, and attempting to impose a profit condition, such that the trade will close either on the ma crossover or when the open trade reaches 34% profit, whichever is sooner.

    I have used the profit target window to set a 34% profit target, but the Orders tab of the backtest the order status of those orders named profit target in the "name" column are marked as "canceled". This doesn't quite seem right.

    Must I enter the profit target in the condition builder in the same window as the ma cross over conditions? Do I use "unrealized profit" = to "numerical value" 34? "Realized profit"? These don't seem to work either.

    Thanks for your attention.
    Last edited by tooearly; 01-29-2009, 05:37 AM. Reason: dropped word profit

    #2
    Hi tooearly, please enter your Profit Target in the 'Stops and Targets' section of the Strategy Wizard - http://www.ninjatrader-support.com/H...rdScreens.html

    Please post a screenshot of your conditions entered so we can take a look. Thanks!

    Comment


      #3
      Screenshots

      Thanks for the response. Here are the screenshots of 2 condition builder windows and the profit & stops panel.

      I couldn't fit the screenshot of the trades tab within the forum upload limits, but will add it at another post.

      best regards, tooearly
      Attached Files

      Comment


        #4
        Orders zip

        attached is the zip file of the orders on the backtest showing that every trade noted as profit target is canceled.

        Hope this clarifies the problem.

        Thanks again, TE
        Attached Files

        Comment


          #5
          tooearly,

          You are calling an ExitLong() right before you do EnterShort(). You should not do this. Just call EnterShort() directly. NinjaTrader will automatically close out a long position if you have one open when it sees an EnterShort() before getting you into a short position.
          Josh P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          111 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          59 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          38 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          42 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          78 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X