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 DannyP96, 05-18-2026, 02:38 PM
      1 response
      23 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      115 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      222 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      406 views
      0 likes
      Last Post CaptainJack  
      Working...
      X