Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Profit and Stop Loss targets

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

    Profit and Stop Loss targets

    I created a strategy and run it against the daily time frame of a stock using Kinetick historical data. I have the following code in my strategy:

    SetProfitTarget("", CalculationMode.Percent, ProfitTargetPct);
    SetStopLoss("", CalculationMode.Percent, StopLossPct, false);

    I set the profit target at 10.00 and Stop Loss at 8.00. I am trading 100 shares of GME in this backtest.

    I see a cancelled limit order for Profit Target of 72.22. I see no order for the stop loss.

    GME Sell Limit 100 72.22 0 Cancelled 0 0 100 Profit target

    The entry was placed as I expected.

    Can someone tell me what I did wrong.

    Thanks,
    Dana

    #2
    Ok, I figured it out. The analyzer takes .08 as 8%.

    Dana

    Comment


      #3
      Hello Dana,

      Thank you for your post and update.

      Yes, percentage in NinjaTrader is from 0 - 1 in number form.

      Let me know if I can be of further assistance.
      Cal H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      86 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      48 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      29 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      67 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X