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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      62 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      134 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X