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

Check account balance

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

    Check account balance

    How can I know which is the balance of my account when my strategy has been activated? (Open positions, etc).

    #2
    Hello soyjesus,
    Please use the GetAccountValue function to get the values of your account. Please refer to our help guide which further discusses it.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thanks, but I need to know if there is a open position and how is it (size, long position o short position, etc). It's possible to access to this information about the situation of the account? Regards.

      Comment


        #4
        Hello soyjesus,
        Yes, you can get the information from the Position object.

        Please refer to our help guide to know more
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Ok, but I want to know which is my global position regardless of which strategy is working. For example, if a strategy begin and there is another one that has been activated before and has an open position, the second strategy must know which is the size of the open position by the other strategy. Its it possible?

          Comment


            #6
            Hello soyjesus,
            You can get the information from the Account object. You will be able to access the information from the below codes depending on what you are trying to do.

            Code:
            Account.Positions
            Account.Strategies
            Please note the above codes are not documented and not supported by us.
            JoydeepNinjaTrader Customer Service

            Comment


              #7
              Ok, thanks. Could you tell me where can I find information about Account Object, please?

              Comment


                #8
                Hello soyjesus,
                Unfortunately it is not documented and thus not officially supported by us.
                JoydeepNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by inanazsocial, Today, 01:15 AM
                1 response
                5 views
                0 likes
                Last Post NinjaTrader_Jason  
                Started by rocketman7, Today, 02:12 AM
                0 responses
                6 views
                0 likes
                Last Post rocketman7  
                Started by dustydbayer, Today, 01:59 AM
                0 responses
                1 view
                0 likes
                Last Post dustydbayer  
                Started by trilliantrader, 04-18-2024, 08:16 AM
                5 responses
                23 views
                0 likes
                Last Post trilliantrader  
                Started by Davidtowleii, Today, 12:15 AM
                0 responses
                3 views
                0 likes
                Last Post Davidtowleii  
                Working...
                X