Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to print order info in output windows

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

    #16
    got it...great help....awesome. Now I have more questions for you .

    I like to display order # so basically like to know how many orders have submitted based on chart timing. Is it also possible to initialize order # to 1 everytime you enable and diable strategy ???

    Entry2 is not showing on the chat ???
    Last edited by billsingh; 11-12-2014, 01:38 PM.

    Comment


      #17
      Hi billsingh,

      I'm having difficulty understanding your question.

      When you say you want to display the order number, are you talking about the order id?

      Are you asking how to count the number of orders as new orders are created?

      "Is it also possible to initialize order # to 1 everytime you enable and diable strategy ?"
      Can you clarify this for me?


      You also mention that Entry2 is not showing on the chart.
      What is your EntriesPerDirection set to?
      Chelsea B.NinjaTrader Customer Service

      Comment


        #18
        Yes I was talking about Order ID. I actually got that one done by creating variable and adding 1 to it when I place the order. Let me check and recompile strategy with Enterorderperdirection to 2.

        Comment


          #19
          Hello billsingh,

          You can find the NinjaTrader generated order id with:

          IOrder myOrder = EnterLong();

          double myOrderId = myOrder.OrderId;
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          152 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          89 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          131 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          127 views
          1 like
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          107 views
          0 likes
          Last Post CarlTrading  
          Working...
          X