Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cannot change stop price above the market

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

    Cannot change stop price above the market

    I'm trying to understand this error. What's below is from the log.
    Time Category Message
    10/28/2022 11:48:00 AM Order Order='dd19091e7b1744ee9f8afd59625a5859/Sim101' Name='' New state='Accepted' Instrument='MES 12-22' Action='Sell' Limit price=0 Stop price=3864.25 Quantity=1 Type='Stop Market'
    Time in force=DAY Oco='SIF-DTLO-MicroNTLX62942A' Filled=0 Fill price=0 Error='Unable to change order' Native error='Stop price can't be changed above the market.'

    Time Category Message
    10/28/2022 11:48:00 AM ATI OIF, 'Change;;@ES;;1;;0;3865;;;SIF-DTLO-MicroNTST62942A;;' processing​

    You can see from the time and date that the price of 3865 is not above the market.
    This code is running on ES, NQ, YM, and RTY, but there only seems to be a problem with the ES version.

    #2
    Hello Atomic,

    Thank you for the message.

    I would need to see more of the status updates of what happened before and after this message to give it more context. As the full log and trace files can provide private/sensitive information, please do not share those publicly here in the forum.

    Please use the steps below to send us a message with your log and trace files attached so we may look into this behavior further:
    • Go to the Control Center > Help > Email Support
    • Select: Platform Technical Support
    • Enter the subject as: Clayton ATTN 03446630"
    • Include any additional information in the Body as desired
    • Ensure the "Log and trace files" box is checked
    • Expand the "Other Files" and check "Database file"
      • Send the email
    ​We look forward to receiving your message and resolving your inquiry.
    Clayton G.NinjaTrader Customer Service

    Comment


      #3
      Hi Atomic, thanks for posting. It looks like the order was placed on the MES, yet the change order was placed on ES. It looks like you have a few missing parentheses as well. The Change command also does not take an instrument name. The Change command should look like this:

      CHANGE;;;;<QUANTITY>;;<LIMIT PRICE>;<STOP PRICE>;;;<ORDER ID>;;[STRATEGY ID]

      Kind regards,
      -ChrisL
      Chris L.NinjaTrader Customer Service

      Comment


        #4
        Originally posted by NinjaTrader_ChrisL View Post
        Hi Atomic, thanks for posting. It looks like the order was placed on the MES, yet the change order was placed on ES. It looks like you have a few missing parentheses as well. The Change command also does not take an instrument name. The Change command should look like this:

        CHANGE;;;;<QUANTITY>;;<LIMIT PRICE>;<STOP PRICE>;;;<ORDER ID>;;[STRATEGY ID]

        Kind regards,
        -ChrisL
        This is the Easylanguage function I am using:
        Code:
        { Copyright (c) 2005, NinjaTrader LLC [email protected] }
        inputs: OrderId(string), Quantity(numericsimple), LimitPrice(numericsimple), StopPrice(numericsimple);
        
        NTChange = NTCommand("Change", "", "", Quantity, "", LimitPrice, StopPrice, "", "", OrderId, "", "");
        ​
        When I call it from another ELD, it looks like this:
        value1 = NTChange(NTStopOrderID,NTFilled(NTEntOrderID),0,LS topPr);

        I believed what happened is that orders from different charts had the same Order ID.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rtwave, 04-12-2024, 09:30 AM
        4 responses
        29 views
        0 likes
        Last Post rtwave
        by rtwave
         
        Started by yertle, Yesterday, 08:38 AM
        7 responses
        28 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by bmartz, 03-12-2024, 06:12 AM
        2 responses
        21 views
        0 likes
        Last Post bmartz
        by bmartz
         
        Started by funk10101, Today, 12:02 AM
        0 responses
        6 views
        0 likes
        Last Post funk10101  
        Started by gravdigaz6, Yesterday, 11:40 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X