Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OIF error

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

    OIF error

    I can successfully enter a file based order from an oif001.txt file. either long or short... and i can flatten any open positions... but after successfully submitting the first order in a session... i am not able to submit another entry order... when i attempt to submit a second entry order i receive and error: Unhandled exception: An entry with the same key already exists..

    I have assigned guid's for the oco and order id...

    After this error occurs the app shutsdown...

    I am using the 64 bit version of NinjaTrader8...8.0.25.0 64-bit

    Can you give me some guidance on what might be causing my error...

    Here is some of my log file:
    4/1/2022 12:36 Default Unhandled exception: An entry with the same key already exists.
    4/1/2022 12:36 ATI OIF, 'PLACE;;MES 06-22;SELL;1;MARKET;;;DAY;c3f04cb6-a0e5-48c5-b17b-59e688032d9d;c3f04cb6-a0e5-48c5-b17b-59e688032d9d;;' processing
    4/1/2022 12:34 Execution Execution='e0ebf2d08fa44e51a4fe3c6a77c1dc5f' Instrument='MES 06-22' Account='Sim101' Exchange=Default Price=4507 Quantity=1 Market position=Short Operation=Operation_Add Order='f954f4085bfc44fdbd284c41c21e49d4' Time='4/1/2022 12:34 PM'
    4/1/2022 12:34 Position Instrument='MES 06-22' Account='Sim101' Average price=0 Quantity=0 Market position=Flat Operation=Remove
    4/1/2022 12:34 Order Order='f954f4085bfc44fdbd284c41c21e49d4/Sim101' Name='Close' New state='Filled' Instrument='MES 06-22' Action='Sell' Limit price=0 Stop price=0 Quantity=1 Type='Market' Time in force=DAY Oco='' Filled=1 Fill price=4507 Error='No error' Native error=''
    4/1/2022 12:34 Order Order='f954f4085bfc44fdbd284c41c21e49d4/Sim101' Name='Close' New state='Working' Instrument='MES 06-22' Action='Sell' Limit price=0 Stop price=0 Quantity=1 Type='Market' Time in force=DAY Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
    4/1/2022 12:34 Order Order='f954f4085bfc44fdbd284c41c21e49d4/Sim101' Name='Close' New state='Accepted' Instrument='MES 06-22' Action='Sell' Limit price=0 Stop price=0 Quantity=1 Type='Market' Time in force=DAY Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
    4/1/2022 12:34 Order Order='f954f4085bfc44fdbd284c41c21e49d4/Sim101' Name='Close' New state='Submitted' Instrument='MES 06-22' Action='Sell' Limit price=0 Stop price=0 Quantity=1 Type='Market' Time in force=DAY Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
    4/1/2022 12:34 ATI OIF, 'FLATTENEVERYTHING;;;;;;;;;bdfb519a-309e-4bd4-92eb-fcd01b685667;bdfb519a-309e-4bd4-92eb-fcd01b685667;;' processing
    4/1/2022 12:34 Default Terminating any NinjaScript strategies invoked by Flatten Everything command
    4/1/2022 12:34 Position Flatten account='Sim101'
    4/1/2022 12:17 Position Instrument='MES 06-22' Account='Sim101' Average price=4505.5 Quantity=1 Market position=Long Operation=Operation_Add
    4/1/2022 12:17 Execution Execution='6f79bf595df14e4d96113679985af337' Instrument='MES 06-22' Account='Sim101' Exchange=Default Price=4505.5 Quantity=1 Market position=Long Operation=Operation_Add Order='17ca6cfaa68747aa8c6b1392a42a2300' Time='4/1/2022 12:17 PM'
    4/1/2022 12:17 Order Order='17ca6cfaa68747aa8c6b1392a42a2300/Sim101' Name='' New state='Filled' Instrument='MES 06-22' Action='Buy' Limit price=0 Stop price=0 Quantity=1 Type='Market' Time in force=DAY Oco='f8347ee3-1588-4279-8828-4472d2f3bcd5' Filled=1 Fill price=4505.5 Error='No error' Native error=''
    4/1/2022 12:17 Order Order='17ca6cfaa68747aa8c6b1392a42a2300/Sim101' Name='' New state='Working' Instrument='MES 06-22' Action='Buy' Limit price=0 Stop price=0 Quantity=1 Type='Market' Time in force=DAY Oco='f8347ee3-1588-4279-8828-4472d2f3bcd5' Filled=0 Fill price=0 Error='No error' Native error=''
    4/1/2022 12:17 Order Order='17ca6cfaa68747aa8c6b1392a42a2300/Sim101' Name='' New state='Accepted' Instrument='MES 06-22' Action='Buy' Limit price=0 Stop price=0 Quantity=1 Type='Market' Time in force=DAY Oco='f8347ee3-1588-4279-8828-4472d2f3bcd5' Filled=0 Fill price=0 Error='No error' Native error=''
    4/1/2022 12:17 Order Order='17ca6cfaa68747aa8c6b1392a42a2300/Sim101' Name='' New state='Submitted' Instrument='MES 06-22' Action='Buy' Limit price=0 Stop price=0 Quantity=1 Type='Market' Time in force=DAY Oco='f8347ee3-1588-4279-8828-4472d2f3bcd5' Filled=0 Fill price=0 Error='No error' Native error=''
    4/1/2022 12:17 ATI Submitting order without strategy...
    4/1/2022 12:17 ATI OIF, 'PLACE;;MES 06-22;BUY;1;MARKET;;;DAY;f8347ee3-1588-4279-8828-4472d2f3bcd5;f8347ee3-1588-4279-8828-4472d2f3bcd5;;' processing
    4/1/2022 12:12 Connection Time to auto close position='12:00:00 AM', Enabled=False
    4/1/2022 12:12 Connection My IQFeed: Primary connection=Connected, Price feed=Connected
    4/1/2022 12:12 Connection My IQFeed: Primary connection=Connecting, Price feed=Connecting

    #2
    Hello mlangle,

    Thank you for your post.

    I'd recommend contacting our Scripting Support team with your full log and trace files so that they can help determine the source of the issue, and look for additional context in the trace. Please follow the steps below to send your log and trace files to our Scripting Support team.
    • On your PC, open Windows File Explorer (hotkey = Windows key + E) Then navigate to, "Documents" (sometimes called, "My Documents") > 'NinjaTrader 8' folder
    • Right-click on the 'log' folder and select Send To> Compressed (zipped) Folder.
    • Right-click on the 'trace' folder and select Send To> Compressed (zipped) Folder.
    • Send the 2 compressed folders as attachments to an email to scriptingsupport(at)ninjatrader(dot)com with a brief description of the issue in the body of the email. You may also want to include the OIF files as well.
    • Once complete, you can delete these compressed folders.
    Thanks in advance; we look forward to assisting you further.
    Zachary S.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Harry, 05-02-2018, 01:54 PM
    10 responses
    3,203 views
    0 likes
    Last Post tharton3  
    Started by cre8able, Yesterday, 01:16 PM
    3 responses
    11 views
    0 likes
    Last Post cre8able  
    Started by ChartTourist, Today, 08:22 AM
    0 responses
    6 views
    0 likes
    Last Post ChartTourist  
    Started by LiamTwine, Today, 08:10 AM
    0 responses
    2 views
    0 likes
    Last Post LiamTwine  
    Started by Balage0922, Today, 07:38 AM
    0 responses
    5 views
    0 likes
    Last Post Balage0922  
    Working...
    X