Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change managed order.

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

    Change managed order.

    Dear Support,

    I successfully write strategies, and thank you for your help.

    And I have the next question
    I send managed entry order using:

    Code:
    IOrder EntryLongOrderId =  EnterLongStop(0, true, numContracts, HighValue+TickSize, "EntryLong");
    
    //HighValue - it is my some value.
    Is it possible to change number of contracts of EntryLongOrderId? ChangeOrder function doesn't work, because unmanaged = false. If Unmanaged = true, then I can't use EnterLongStop function.

    Thank you in advance

    #2
    Hello AlexFdv,
    You can simply reassign the Enter() method again to change the order in the managed approach.

    For example if you are submitting the initial order as below:
    Code:
    this.EnterLongLimit(0, true, [B]2,[/B] Close[0] - 20 * TickSize, "");
    and you wish to change the order quantity simply run the below code again with the changed order size
    Code:
    this.EnterLongLimit(0, true[B], 4,[/B] Close[0] - 20 * TickSize, "");
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Oh, thank you, I will try it today.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      647 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      368 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      571 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X