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

get data about orders

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

    get data about orders

    Dear friends.
    I want to create strategy which will send data about submited orders on my terminal.
    I want to send this data to my e-mail. I have few protected strategies, and I can't change their code. Is it possible to get information about orders from other strategies?
    I have found this code in manual
    Code:
       private IOrder entryOrder = null;
     protected override  void OnBarUpdate()
    {
         if (entryOrder == null &&  Close[0] > Open[0])
             entryOrder =  EnterLong();
    }
      
     protected override  void OnOrderUpdate(IOrder  order)
    {
        if (entryOrder != null &&  entryOrder == order)
        {
             Print(order.ToString());
            if (order.OrderState == OrderState.Filled)
                  entryOrder = null;
        }
    }
    Will it help me to get data about orders from other strategies?

    #2
    daglas,

    Unfortunately there is no supported way to access orders from other strategies this way. This code here is just checking to see if orders from that strategy itself are being updated.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_AdamP View Post
      daglas,

      Unfortunately there is no supported way to access orders from other strategies this way. This code here is just checking to see if orders from that strategy itself are being updated.
      How can I get list of all orders? Or list of 10 last orders?

      Comment


        #4
        daglas,

        Strategies currently can only manage trades they place themselves. There is no supported way of managing manually placed orders from within a strategy.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_AdamP View Post
          daglas,

          Strategies currently can only manage trades they place themselves. There is no supported way of managing manually placed orders from within a strategy.
          So I can't get even information about history of trades, orders and executions? I need read only access to those data. I don't want to change it.
          I just want analyze it and save.

          Comment


            #6
            daglas,

            You could probably find some unsupported work around, like writing this to a file or reading from the Log/trace files.

            I would suggest maybe checking out big mikes trading forum, as I seem to remember someone found a way to do something like this there, however I can't find it when I did a quick search.
            Adam P.NinjaTrader Customer Service

            Comment


              #7
              There is a new framework that was just developed for unmanaged orders and supports stuff like this so that we print out the order management to console and a bunch of goodies. I would read the documentation for it and subscribe to BigMikes to get that framework. ttp://www.bigmiketrading.com/wiki/trading-wiki/NT-Local-Order-Manager-LOM-Guide

              Comment


                #8
                Originally posted by NinjaTrader_AdamP View Post
                daglas,

                You could probably find some unsupported work around, like writing this to a file or reading from the Log/trace files.

                I would suggest maybe checking out big mikes trading forum, as I seem to remember someone found a way to do something like this there, however I can't find it when I did a quick search.
                Many thanks Adam. I have account at bigmike forum. I shall check all variants.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by timmbbo, Today, 08:59 AM
                1 response
                2 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by KennyK, 05-29-2017, 02:02 AM
                2 responses
                1,280 views
                0 likes
                Last Post marcus2300  
                Started by fernandobr, Today, 09:11 AM
                0 responses
                2 views
                0 likes
                Last Post fernandobr  
                Started by itrader46, Today, 09:04 AM
                1 response
                6 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Started by bmartz, 03-12-2024, 06:12 AM
                5 responses
                33 views
                0 likes
                Last Post NinjaTrader_Zachary  
                Working...
                X