Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CalculateMode.Price problem

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

    CalculateMode.Price problem

    Hello there,

    I'm new to NT though I have some expirence in proggraming. I have a problem with CalculateMode.Price mode. When I have a certain condition filled I assign Variable0 to Upper and Variable1 to Lower line of Keltner Channel. Then I use SetProfitTarget(CalculateMode.Price, Variable0) and SetStopLoss (CalculateMode.Price, Variable1). However when I backtest the strategy it ignores all sl and tp.
    What can be an issue here?

    Thank you for help

    #2
    Hello mikhailov_ruslan,

    In what method are you calling SetStopLoss() and SetProfitTarget()?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello,

      Yeah, I got it. Thanks. I used it in Initialize() method, cause I thought that dynamic change of a stop means dynamic change of stop for one particular order and not changes from order to order.

      Thank you.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bortz, 11-06-2023, 08:04 AM
      47 responses
      1,605 views
      0 likes
      Last Post aligator  
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      8 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      18 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      4 views
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      13 views
      0 likes
      Last Post Javierw.ok  
      Working...
      X