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

account order status

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

    account order status

    Hi,

    I want to develop a indicator/strategy that returns an account order status to a text file. (not strategy status)

    For example,: "I'm trying going long, than the order is pending for 5 seconds, than the order gets filled."

    My text file should read:
    long es 750.00 pending
    long es 750.00 filled

    What functions / methods should I use for developing my indicator/strategy ?

    #2
    You can monitor the OnOrderStatus() and trigger writing to text file from these events.

    More information -

    RayNinjaTrader Customer Service

    Comment


      #3
      Suggestion?

      Hi,

      "The OnOrderUpdate() method is called everytime an ORDER MANAGED BY A STRATEGY changes state. An order will change state when a change in order quantity, price or state (working to filled) occurs."


      I want to monitor a position that I enter manually in the Sim101 account, any suggestions ?

      (So when I place a trade the indicator/strategy can write it in a text file for example: Long ES 5 contracts at 10:16 hour )

      Comment


        #4
        You cannot manage manually entered trades.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          not managing

          Josh,

          I just want to monitor the current position! I do not want to interact or change a position.

          If it's not possible by a strategy/indicator, can an advanced programmer do this?

          Greetings,

          Comment


            #6
            Let me rephrase. You cannot access any information about manually entered trades from a strategy let alone an indicator. Therefore you cannot monitor, manage, do anything in relation to manually entered trades.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              ok

              Ok, I'm just curious and don't want to bug you with my question(s), but I have one more question,

              Is it possible that a Certified Ninjatrader Programmer can code this for me in a way that hasn't to do with indicators/strategy's or the standard coding ?




              (I read things in the log like: Cbi.Connection.ProcessEventArgs.OrderStatusEventAr gs , Cbi.Order.Update1, Cbi.Connection.ProcessEventArgs.ExecutionUpdateEve ntArgs etc etc. )

              Thanks for your time!!!!!!!!!!

              Comment


                #8
                Creamers,

                The functionality you are looking for is completely not supported. If a NinjaScript Consultant has a method to do what you want we can neither support nor promote it. Unfortunately I just cannot answer your question.
                Josh P.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by alifarahani, Today, 09:40 AM
                3 responses
                15 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by RookieTrader, Today, 09:37 AM
                4 responses
                17 views
                0 likes
                Last Post RookieTrader  
                Started by PaulMohn, Today, 12:36 PM
                0 responses
                5 views
                0 likes
                Last Post PaulMohn  
                Started by love2code2trade, 04-17-2024, 01:45 PM
                4 responses
                40 views
                0 likes
                Last Post love2code2trade  
                Started by junkone, Today, 11:37 AM
                3 responses
                25 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Working...
                X