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

Can an indicator access the information of a manually opened trade?

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

    Can an indicator access the information of a manually opened trade?

    Hello
    In fact everything is in the title.
    I ask here because the documentation is so complete that I don't know where and what exactly to look.
    So I would like to know if an indicator can have access to the information of a manually opened trade, information such as the account balance etc.?
    Of course I'm not against a small example but a link to the doc, if it's possible would be enough for me.
    Thanks for your help​

    #2
    Yes, you have access to the Account object (in an add-on or in an indicator or strategy) from which you can get to the orders.

    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      thank you, I will check it out

      Comment


        #4
        I have read all this carefully and I still need some information about it:
        TradeNumber : An int value representing the trade numbed by the sequence it occurred
        What does this mean:by the sequence it occurred.

        Despite the use of DeepL Translator, I can't understand.

        Does it mean that at each new sequence the trade numbering starts from 0 ?

        But above all, what does a sequence correspond to.

        Thanks for your explanations​

        Comment


          #5
          Hello bicou,

          That means the trades are ordered by when they happened. Your understanding is correct, it would start at 1 I believe and then increment for each new trade.

          Based on the original question that you are trying to access this information from an Indicator keep in mind the section you are looking at in the help guide applies to Strategies and not the Addon Framework. QuantKey_Bruce linked a page from the Addon framework documentation which can be used from any type. Strategies have specific properties that only relate to orders placed by that strategy, the TradeNumber is part of a Trade object which is part of the strategies virtual performance. An indicator that is looking at an Account and its Orders won't have Trade objects or SystemPerformance.

          If you are trying to get account values you can use the link that was previously provided to find an account and then with the account you found you can use the account.Get method.





          JesseNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Option Whisperer, Today, 09:55 AM
          1 response
          11 views
          0 likes
          Last Post bltdavid  
          Started by port119, Today, 02:43 PM
          0 responses
          1 view
          0 likes
          Last Post port119
          by port119
           
          Started by Philippe56140, Today, 02:35 PM
          0 responses
          3 views
          0 likes
          Last Post Philippe56140  
          Started by 00nevest, Today, 02:27 PM
          0 responses
          2 views
          0 likes
          Last Post 00nevest  
          Started by Jonafare, 12-06-2012, 03:48 PM
          5 responses
          3,986 views
          0 likes
          Last Post rene69851  
          Working...
          X