Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adopt strategy position after the system is re-started

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

    Adopt strategy position after the system is re-started

    Hi everyone,

    My goal is to be able to enable the same strategy again on the same symbol when the ninjatrader app gets closed by mistake, and for the system to pick up the strategy position and open orders.

    Thanks to reviewing other posts on this forum I was able to get the code to the stage when the strategy position is being equalized to the account position (when the strategy is re-enabled) and the entry order is recognized together with the fill price and quantity (according to the output). HOWEVER, when the time comes for the exit order to be executed, nothing happens, despite all the conditions being met.


    Specifically I noticed an error occurs that says:
    7/17/2023 10:39:59 AM Strategy 'strategy/': Ignored SubmitOrderManaged() method at 7/17/2023 10:39:59 AM: BarsInProgress=0 Action=BuyToCover OrderType=Limit Quantity=160 LimitPrice=3.50 StopPrice=0 SignalName='long_1115Exit' FromEntrySignal='long_1115' Reason='SignalName does not have a matching FromEntrySignal to exit'

    It is very weird since the same time the system sees the signal:
    myEntryOrder_1115 name='long_1115' orderState=Filled instrument='XXXX' orderAction=SellShort orderType='Limit' limitPrice=3.15 stopPrice=0 quantity=160 tif=Gtc oco='' filled=160 averageFillPrice=3.2 onBehalfOf='' id=-1 time='2023-07-12 13:04:14' gtd='2099-12-01' statementDate='2023-07-17'


    As a reference point only, when I delete the signal requirement from the exit order, it does work as expected BUT I cannot remove the signal requirement since I've got multiple entry orders with different signals and each of them has a separate exit with different conditions.

    I would appreciate your further help with this since I am running out of options.

    Thanks,
    Wojciech​

    #2
    Hello Wojciech,

    Thank you for your post.

    As we already have an email case opened for this inquiry, I plan to continue working with you there unless you'd prefer to continue via this forum thread instead. This thread will remain open in case members of the forum community would like to chime in. Otherwise, I will await your response via email where I requested more details from the output and your log files so I may further investigate with you.

    In the future, please refrain from making requests for the same inquiry via multiple methods, such as separate emails, forum posts, or any combination of the two. This will help our support team avoid duplicating efforts and help to keep us more available to assist with new inquiries rather than having multiple reps working on the same inquiry.

    Thank you for your patience and understanding.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    64 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    139 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X