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 judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    21 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    10 views
    0 likes
    Last Post cre8able  
    Working...
    X