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 lightsun47, Today, 03:51 PM
        0 responses
        5 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        9 views
        0 likes
        Last Post 00nevest  
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        45 views
        0 likes
        Last Post futtrader  
        Started by Option Whisperer, Today, 09:55 AM
        1 response
        14 views
        0 likes
        Last Post bltdavid  
        Started by port119, Today, 02:43 PM
        0 responses
        9 views
        0 likes
        Last Post port119
        by port119
         
        Working...
        X