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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      115 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      161 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      83 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      127 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      87 views
      0 likes
      Last Post PaulMohn  
      Working...
      X