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 ghoul, Today, 06:02 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      44 views
      0 likes
      Last Post jeronymite  
      Started by Barry Milan, Yesterday, 10:35 PM
      7 responses
      20 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by AttiM, 02-14-2024, 05:20 PM
      10 responses
      179 views
      0 likes
      Last Post jeronymite  
      Started by DanielSanMartin, Yesterday, 02:37 PM
      2 responses
      13 views
      0 likes
      Last Post DanielSanMartin  
      Working...
      X