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

EnterLong not executed

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

    EnterLong not executed

    Hi,

    EnterLong just stopped working ... I can see in logs that Order is being created&filled but does not show in Orders/Positions tab. Any ideas? (Running on continuum demo connection)

    Many Thanks


    #2
    Hello Josef Neuschl,

    Thank you for your note.

    When you aren't seeing orders placed as you would expect, the The first thing I would recommend would be to turn on the Order Trace function:

    Strategy Builder > Default Properties > More Properties > Trace Orders, or:

    if (State == State.SetDefaults)
    {
    TraceOrders = true;
    }

    Once you then recompile the strategy, you can open a new NinjaScript Output window under New > NinjaScript Output. This will print a log of any orders submitted by the strategy during while it's running, along with any ignored orders. You can then look through and see what may be occurring.

    Here is a link to our help guide that goes into more detail on tracing orders:

    https://ninjatrader.com/support/help...aceorders2.htm

    That being said, it looks like you're only a few bars into processing here going off your prints. That's likely on historical data then, so that would be a historical order and would not actually be submitted live, as it's simply what the strategy has calculated it would have taken if the strategy had been running at that time. We can confirm it's a historical order by the order number - that NT-00000-14 number is in the format used for historical orders. Historical orders are not placed on your account and would not show on the Orders/Positions tabs.

    Can you confirm if you can see an entry on the chart if you scroll back over the historical data?

    Thanks in advance; I look forward to assisting you further.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Hi yes, and also it was exited on session close as expected.

      Many Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,404 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by Shai Samuel, 07-02-2022, 02:46 PM
      4 responses
      95 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by DJ888, Yesterday, 10:57 PM
      0 responses
      8 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      159 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Yesterday, 09:29 PM
      0 responses
      8 views
      0 likes
      Last Post Belfortbucks  
      Working...
      X