Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy doesn't work with stops and p targets.

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

    Strategy doesn't work with stops and p targets.

    My strategy seems to generate fine now and I can backtest it, but when I try to add stops and or profit targets it won't work. When I pull up a backtest menu and select my strategy the strategy window is blank. I'm sure it's the way I'm entering the stops and profit targets. What does "from entry signal" and "value" mean?

    #2
    Hi Melcotran,

    Thanks for your post.

    In the 'From Entry Signal' field you want to enter the signal name you attached to your Entry Signal.

    In the 'value' field you want to enter the actual Profit Target / Stop Loss value associated with the 'mode' setting, either the price, a currency value or the tick amount.

    Please review those two links below, they describe the SetProfitTarget() and SetStopLoss() methods -









    Originally posted by Melcotran View Post
    My strategy seems to generate fine now and I can backtest it, but when I try to add stops and or profit targets it won't work. When I pull up a backtest menu and select my strategy the strategy window is blank. I'm sure it's the way I'm entering the stops and profit targets. What does "from entry signal" and "value" mean?

    Comment


      #3
      How would I enter multiple targets for a single position? For example: short 6 TF, with first profit target at 5 ticks for 2 contracts, 10 ticks for another 2,and 20 ticks for the last 2.

      Comment


        #4
        Hi Melcotran,

        You would have to use different entry order for every target you have. Then you can exit a specific quantity with a unique order name from the full position.

        Please review this link - http://www.ninjatrader-support2.com/...ead.php?t=3271

        Any of those orders provides you with a quantity as well as signal name input, so you can code custom scaling strategies.

        Originally posted by Melcotran View Post
        How would I enter multiple targets for a single position? For example: short 6 TF, with first profit target at 5 ticks for 2 contracts, 10 ticks for another 2,and 20 ticks for the last 2.

        Comment

        Latest Posts

        Collapse

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