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

Output Window... won't stop producing orders

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

    Output Window... won't stop producing orders

    I am using my output window to trace orders and track some other things. However, once I compile and run a strategy, the output window keeps pulling the exact same data up at the end of the sequence. See what is happening below. The same orders are being placed over and over and over. How can I fix this?

    3/13/2012 11:00:00 PM Entered internal PlaceOrder() method at 3/13/2012 11:00:00 PM: BarsInProgress=0 Action=Buy OrderType=Market Quantity=13 LimitPrice=0 StopPrice=0 SignalName='Long2' FromEntrySignal=''
    3/13/2012 11:00:00 PM Ignored PlaceOrder() method at 3/13/2012 11:00:00 PM: Action=Buy OrderType=Market Quantity=13 LimitPrice=0 StopPrice=0 SignalName='Long2' FromEntrySignal='' Reason='Exceeded entry signals limit based on EntryHandling and EntriesPerDirection properties'
    3/13/2012 11:00:00 PM Entered internal PlaceOrder() method at 3/13/2012 11:00:00 PM: BarsInProgress=0 Action=Sell OrderType=Stop Quantity=0 LimitPrice=0 StopPrice=27.13 SignalName='LongStop' FromEntrySignal=''
    3/13/2012 11:00:00 PM Ignore order amendment: Action=Sell OrderType=Stop Quantity=0 LimitPrice=0 StopPrice=27.13 SignalName=LongStop' FromEntrySignal='' Reason='Order already has this stop price/limit price/quantity'
    25.74
    28.31
    31.52
    30.90
    3/13/2012 11:00:00 PM Entered internal PlaceOrder() method at 3/13/2012 11:00:00 PM: BarsInProgress=0 Action=Buy OrderType=Market Quantity=13 LimitPrice=0 StopPrice=0 SignalName='Long2' FromEntrySignal=''
    3/13/2012 11:00:00 PM Ignored PlaceOrder() method at 3/13/2012 11:00:00 PM: Action=Buy OrderType=Market Quantity=13 LimitPrice=0 StopPrice=0 SignalName='Long2' FromEntrySignal='' Reason='Exceeded entry signals limit based on EntryHandling and EntriesPerDirection properties'
    3/13/2012 11:00:00 PM Entered internal PlaceOrder() method at 3/13/2012 11:00:00 PM: BarsInProgress=0 Action=Sell OrderType=Stop Quantity=0 LimitPrice=0 StopPrice=27.13 SignalName='LongStop' FromEntrySignal=''
    3/13/2012 11:00:00 PM Ignore order amendment: Action=Sell OrderType=Stop Quantity=0 LimitPrice=0 StopPrice=27.13 SignalName=LongStop' FromEntrySignal='' Reason='Order already has this stop price/limit price/quantity'
    25.74
    28.31
    31.52
    30.90
    3/13/2012 11:00:00 PM Entered internal PlaceOrder() method at 3/13/2012 11:00:00 PM: BarsInProgress=0 Action=Buy OrderType=Market Quantity=13 LimitPrice=0 StopPrice=0 SignalName='Long2' FromEntrySignal=''
    3/13/2012 11:00:00 PM Ignored PlaceOrder() method at 3/13/2012 11:00:00 PM: Action=Buy OrderType=Market Quantity=13 LimitPrice=0 StopPrice=0 SignalName='Long2' FromEntrySignal='' Reason='Exceeded entry signals limit based on EntryHandling and EntriesPerDirection properties'
    3/13/2012 11:00:00 PM Entered internal PlaceOrder() method at 3/13/2012 11:00:00 PM: BarsInProgress=0 Action=Sell OrderType=Stop Quantity=0 LimitPrice=0 StopPrice=27.13 SignalName='LongStop' FromEntrySignal=''
    3/13/2012 11:00:00 PM Ignore order amendment: Action=Sell OrderType=Stop Quantity=0 LimitPrice=0 StopPrice=27.13 SignalName=LongStop' FromEntrySignal='' Reason='Order already has this stop price/limit price/quantity'

    #2
    cfree5119,

    The trace orders output is a response to the order commands your strategy submits. These messages provide details exactly how and why(the Reason) the strategy responds to these commands. In your output it looks like it's ignoring submission of new orders or modifications to existing orders. There's nothing here that needs fixing necessarily. What are you expecting to happen instead?
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Well it seems to be entering the same order in over and over and over. So when I go back to look at my orders while a strategy is running, the window reverts to the bottom since there is "new" data. To look at my orders I then have to turn off my strategy to keep from the same orders entering at the bottom of the output window.

      My expectation is that I would see the orders being nullified because of previous entries but not for it to keep popping up with a new order that is a few cents different and telling me the exact same thing. It is just cumbersome when I have to shut the strategy off to look at my trace orders without it reverting to the bottom because of new orders.

      Comment


        #4
        To interpret TraceOrders output you have to look at the complete output, and not just the "Entered..." part. In all cases of the output you posted your orders are not actually submitted, but ignored.

        3/13/2012 11:00:00 PM Entered internal PlaceOrder()

        This doesn't mean that an order is submitted, but that the strategy code has processed a method to enter an order. Always check the next lines after this to see how the strategy responds exactly to this order method.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        6 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Started by alifarahani, Today, 09:40 AM
        6 responses
        41 views
        0 likes
        Last Post alifarahani  
        Working...
        X