Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy disabled, modify historical order error.

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

    Strategy disabled, modify historical order error.

    When i run my strategy on wait on flat ;
    - Strategy have virtual position
    - When virtual position stopped, ı see Stop label on chart.
    - Then strategy turns green, and immediately submit ''live order'' for potential entry level.

    It flows perfect so far. Strategy accepted ''live order'' and waitig to fill. The problems starts after that;

    - When this ''Live'' order updated before the fill ( because of entry condition changed). It firsts cancelled the order.
    - Then sending new updated live order.

    That time, i am getting '' ...modify historical order that has transitioned to a live order'' error. And strategy disable itself.

    Although message saying historical order transitioned to live order, Actually it is not the case. Order sended on Live,.This problems occur on wait on flat mode only.

    If i start the strategy on green, Order update works fine no issue.

    That sounds like it is not my code related issue. It seems like ''wait on flat'' condition handling process on NT system.







    #2
    Hello Murphy67,

    If you have any historical orders which become live orders you need to use GetRealtimeOrder, the error you had seen is a result of not usng GetRealtimeOrder. There is a sample of how you can do that in the following link:

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    108 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    55 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    37 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    39 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    76 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X