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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      30 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, Yesterday, 02:41 AM
      0 responses
      13 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      22 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      34 views
      0 likes
      Last Post CarlTrading  
      Working...
      X