• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

multiple entry question

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

    multiple entry question

    Hello NT support,

    I have a problem. When I have opened e.g. 4 long entry order in order to scale in: Long1, Long2, Long3, Long4.
    How can I query the properties in NT:
    - how many orders are opened at same time,
    - how can I query the properties(e.g. Quantnity) of the unique opened order? (when I know the name of it too)
    Yes I know I could pass the properties to the IOrder Long1, IOrder Long2... at sending the order, but if would be 8-10 entry orders in a given case, and it will be hardly to manage the orders. Therefore would be important, when I'd like to scale out and I'd like to close the unique opened order with specified Quantity, and name.

    thanks for answer

    #2
    marotom, you would need to work with the more advanced IOrder objects here to query those needed properties.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Bertrand,

      yes, this is an possibility, but the NT stores the opened order with the exact property such as the quantity, as can be seen in the trades tab. It would be eaesier to reach this list insteed of use many IOrder object to make more difficulter the script. Does it exist to reach the NT internal order list fast way to query the properties?

      Comment


        #4
        There would be programmatically accessible Trade collection as well for historical and realtime trades, however this would only be updated for closed trades, which would not help you - http://www.ninjatrader.com/support/h.../nt7/trade.htm

        IOrders would be the best way to get the detailed infos you need for your script.

        We have an enhancement request noted for a prebuild orders / executions list exposed for access, I've added your vote in here.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Ok. Thanks. It would be great to access this opened order list, it would be improved the most perfected scale in, and scale out.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by cassiano_sanches, Today, 07:37 PM
          0 responses
          4 views
          0 likes
          Last Post cassiano_sanches  
          Started by terminatorT1000, Today, 06:40 PM
          0 responses
          5 views
          0 likes
          Last Post terminatorT1000  
          Started by Giudiver, Today, 04:29 PM
          0 responses
          7 views
          0 likes
          Last Post Giudiver  
          Started by mlarocco, 03-03-2018, 03:54 PM
          12 responses
          1,298 views
          0 likes
          Last Post SawDr
          by SawDr
           
          Started by TakingStock12, Today, 04:05 PM
          2 responses
          15 views
          0 likes
          Last Post NinjaTrader_ShawnB  
          Working...
          X