Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IOrder value for "Ignored PlaceOrder"

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

    IOrder value for "Ignored PlaceOrder"

    I am having a problem trying to debug some misbehaviour in my strategy. Under certain conditions (yet to be pin pointed), my code that creates stops and targets in OnExecution does not execute. I believe the following scenario may be the cause:


    My question: Assuming the IOrder variable (entryOrder_1) already has a value, is it overwritten with a null value from the line of code below, if that statement resulted in this output message:
    28/10/2009 9:58:41 PM Ignored PlaceOrder() method at 28/10/2009 9:58:41 PM: Action=SellShort OrderType=Limit Quantity=1 LimitPrice=0.9271 StopPrice=0 SignalName='Short_1' FromEntrySignal='' Reason='Exceeded entry signals limit based on EntryHandling and EntriesPerDirection properties'
    entryOrder_1 = EnterShortLimit(0,true, targetQuantity, upperBandEntry, "Short_1");

    Background: The limit order statement above is executed on the next tick after a market order has just been submitted...but before receiving the confirmation that the market order has been filled.

    #2
    astrolobe, no you would set it back to null for example when cancelled without a fill, I believe you run into this as the market order entry is registered and then your new limit entry is ignored as your EntryHandling settings won't permit it - http://www.ninjatrader-support.com/H...yHandling.html

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    64 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    59 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Working...
    X