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:

    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by benmarkal, Yesterday, 12:52 PM
    3 responses
    23 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by helpwanted, Today, 03:06 AM
    1 response
    20 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    11 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    244 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Working...
    X