Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

profit target - on execution

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

    profit target - on execution

    Hello,

    I´d like to move stop to BE once 1st target is triggered. I know the "sample price modification".

    But to have stopmove 100% together with target (must not be filled!)

    a.) if and how one can work with setprofittarget in onExecution.

    b.) or can one substitute setprofittarget by Iorder?

    Thank you
    Tony

    #2
    Hello,

    found in the samples the onorderupdate sample and there is onexecution with target included.

    So, all fine. With this great software one can resolve such things without being a programmer.

    Best
    Tony

    Comment


      #3
      Hello,

      thought I could make it, There is somewhere an issue. The target is not visible in the orderstab, I have in onexecution

      if(entryOrderiLa != null && entryOrderiLa == execution.Order)
      {
      if(execution.Order.OrderState == OrderState.Filled)
      {
      targetOrder = ExitLongLimit(0,true, 1, execution.Order.AvgFillPrice + 4* TickSize, "TiLa","iLa");
      }

      ???

      Thank you
      Tony

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      89 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      48 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      31 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      34 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      69 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X