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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          558 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          324 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          545 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          547 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X