Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Log/Output showing numerous Cancelled...

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

    Log/Output showing numerous Cancelled...

    Hello,

    I have TraceOrders = true in a managed strat.
    Please provide a direction to modify what's producing the following results.
    The result in the output window print statements are:

    Cancelled custom managed order at ...........
    Here is a screenshot:

    http://screencast.com/t/w5sL8DLaw


    Here is the screenshot showing numerous entered and ignored lines:
    Entered internalPlaceOrder...Ignored PlaceOrder...

    http://screencast.com/t/scsshI1aN

    What should I look for in my code that is causing this?

    Thanks.
    Kirk
    Last edited by zeller4; 12-07-2011, 06:47 AM. Reason: Added second screenshot

    #2
    Hi Kirk, both can be seen yes. For the first one, are you reversing positons at this point, so the old target becomes obsolete?

    For the second one, there is already an order of same price / qty resting, so the subsequent one is ignored (EntryHandling setttings).
    BertrandNinjaTrader Customer Service

    Comment


      #3
      The first position had a stop and a target. I'm not reversing but once a condition was met, I cancelled the MyTarget order and allowed the stop only to remain in place to trail. Is this normal behavior to see all these prints? or do I need to adjust where I look "if (targetOrder == null...)" or where I reset "targetOrder = null;"?

      For the second case, yes, I have
      Code:
      EntryHandling = EntryHandling.UniqueEntries;
      .

      Is there a place I need to check with a bool or some other manner to see if it's already been placed? Is the print to output window expected behavior?

      thanks.

      Comment


        #4
        The trace orders output is generated by NT internally, you could unfortunately not custom trim it as it's the case with regular prints.

        If you work with IOrder objects for the entry as well then you could ensure to only place the order if the IOrder is in null / reset state, this should clean up the duplicate / ignored orders part NT caught with the Entry Handling.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by BarzTrading, Today, 07:25 AM
        2 responses
        25 views
        1 like
        Last Post BarzTrading  
        Started by devatechnologies, 04-14-2024, 02:58 PM
        3 responses
        20 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by tkaboris, Today, 08:01 AM
        0 responses
        4 views
        0 likes
        Last Post tkaboris  
        Started by EB Worx, 04-04-2023, 02:34 AM
        7 responses
        163 views
        0 likes
        Last Post VFI26
        by VFI26
         
        Started by Mizzouman1, Today, 07:35 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X