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 JonesJoker, 04-22-2024, 12:23 PM
      8 responses
      41 views
      0 likes
      Last Post JonesJoker  
      Started by timko, Today, 06:45 AM
      0 responses
      3 views
      0 likes
      Last Post timko
      by timko
       
      Started by Waxavi, 04-19-2024, 02:10 AM
      2 responses
      39 views
      0 likes
      Last Post poeds
      by poeds
       
      Started by chbruno, Yesterday, 04:10 PM
      1 response
      44 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by Max238, Today, 01:28 AM
      1 response
      25 views
      0 likes
      Last Post CactusMan  
      Working...
      X