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

AccountItem.NetLiquidation with IB

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

    AccountItem.NetLiquidation with IB

    I am getting an error when using the AccountItem.NetLiquidation variable.

    AccountItem.NetLiquidation / 100000

    I have tried declaring it as a double and an int with no success.... can you guys clarify how to extract and use the AccountItem.NetLiquidation so that myself and other can do fixed fractional position sizing?

    Regards to all and thx

    #2
    Hello everington_f,

    Thank you for writing in.

    You will need to call the GetAccountValue() method and pass Cbi.AccountItem.MaintenanceMargin. You can then divide the return value by 100000.

    Code:
    GetAccountValue(Cbi.AccountItem.NetLiquidation)
    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Thanks Zach - forgot to mention the thread was for NT8. Your solution works for NT8?

      Regards

      Comment


        #4
        Hello everington_f,

        You will need to use Account.Get() with NinjaTrader 8: http://ninjatrader.com/support/helpG...en-us/?get.htm

        Please ensure to post any NinjaTrader 8 related inquiries to the NinjaTrader 8 Beta forum category going forward.

        Last edited by NinjaTrader_ZacharyG; 08-18-2016, 10:15 AM.
        Zachary G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by andrewtrades, Today, 04:57 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        3 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        7 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X