Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X