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