Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adjusting Profit Target

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

    Adjusting Profit Target

    I am currently using a strategy that trades on multiple instruments. Is there a way, so that when the strategy has a position in both instruments, I can update my Profit Target and Stop Loss? I was looking into Position.MarketPosition.

    #2
    Hello cboat,

    Yes, you can update your profit target and stop loss orders. This reference sample can help with modifying these dynamically.
    Modifying the price of stop loss and profit target orders

    You can modify specific targets and stop losses by referencing a specific fromEntrySignal parameter. This requires the method signatures indicated below.

    SetProfitTarget(string fromEntrySignal, CalculationMode mode,double value)
    SetStopLoss(string fromEntrySignal, CalculationMode mode,double value,bool simulated)
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    161 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    308 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    245 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    349 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    179 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X