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, 05-11-2026, 05:56 AM
      0 responses
      52 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      30 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      194 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      355 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      274 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X