Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to Access Signal Name 'Profit Target'

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

    How to Access Signal Name 'Profit Target'

    I'm using SetStopLoss and SetProfitTarget for managed orders in my strategy. I'm trying to tighten my stops as price gets closer to my profit target. Help guides say SetProfitTarget generates the signal "Profit Target". How do I access this to adjust SetStopLoss closer to it's (Profit Target's) value?

    For example on a short position:

    Code:
    if (profitTarget - Low[0] < 10 * TickSize && Close[0] > myLevel)
    {
    SetStopLoss("", CalculationMode.Price, High[0] - 1 * TickSize)
    }
    My syntax is probably wrong but I hope the idea makes sense.

    #2
    Hello swjake,

    For that type of use you would just need to call SetStopLoss again with a new price, you don't need to find the order in that situation.

    Comment


      #3
      Very good. Thank you Jesse.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      80 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X