Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

order issue

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

    order issue

    Hello,

    few days now I try to find the reason for my issue that few seconds (5-6 seconds) after the entry one stop is cancelled and in the log tab appears the message

    9/26/2016 10:28:59 AM Strategy Calculated stop order price for strategy 'a1xFXxLxGBPJPY' was smaller/equal 0. No stop order placed.


    I´d like to see somewhere which stop of my 3 contracts is the one cancelled

    SetStopLoss("aLa", CalculationMode.Ticks, 8, false);
    SetStopLoss("aLb", CalculationMode.Ticks, 8, false);
    SetStopLoss("aLc", CalculationMode.Ticks, 8, false);

    I dont see this in orders tab nor in log-tab.

    Where could I see which order is the one that is cancelled please?

    Thanks
    Tony
    Last edited by tonynt; 09-26-2016, 02:41 PM. Reason: forgot one please to get the reply maybe

    #2
    Hello,

    Thank you for the post.

    From what has been provided, I can not see what may have occurred.

    Have you tried running the script in MarketReplay for the specified time to see if you are able to see the error again under the same conditions?

    The error is fairly specific, a value was calculated that was negative or 0, but from what has been provided I can not see what may have caused that. If you are able to review the point in time where this occurred, and have this happen again you could likely find the answer by further debugging the logic.

    Without seeing the whole script it is hard to say what part of the script had generated the error or calculated the value as it did. If you can provide a sample that shows the logic being used it may be more apparent.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello,

      thank you for your reply.

      Sorry for inaccurate question. I didnt mean to debug my code.

      I simply mean if it is not possible to see which order is filled or cancelled. In orderstab and in logtab I see only Stoploss, but not aLa or aLb or aLc. Know what I mean? (how you play soccer when all your fellows are "John"? Whom you mean when you call the name?)

      Thanks
      Tony
      Last edited by tonynt; 09-27-2016, 10:29 AM. Reason: clearifiying

      Comment


        #4
        Hello,

        You could add Print statements to the code to see the orders in more detail, or potentially use TraceOrders.

        To print order information, you could use OnOrderUpdate to Print the order objects to see what may be specifically happening: http://ninjatrader.com/support/helpG...=onorderupdate

        Or for filled type orders OnExecution: http://ninjatrader.com/support/helpG...ub=OnExecution

        Additionally you may be able to further identify managed approach errors using TraceOrders.


        Without seeing the code to know what is being used it would be hard to say what specifically is the cause.


        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by WHICKED, Today, 02:02 PM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by selu72, Today, 02:01 PM
        0 responses
        2 views
        0 likes
        Last Post selu72
        by selu72
         
        Started by f.saeidi, Today, 12:14 PM
        8 responses
        21 views
        0 likes
        Last Post f.saeidi  
        Started by Mikey_, 03-23-2024, 05:59 PM
        3 responses
        49 views
        0 likes
        Last Post Sam2515
        by Sam2515
         
        Started by Russ Moreland, Today, 12:54 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Erick  
        Working...
        X