Announcement

Collapse
No announcement yet.

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.





          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          633 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          364 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          567 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          568 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X