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 HaannyKaab, Yesterday, 04:27 AM
        0 responses
        41 views
        0 likes
        Last Post HaannyKaab  
        Started by aligator, 07-14-2025, 05:09 PM
        0 responses
        64 views
        1 like
        Last Post aligator  
        Started by NTEducationTeam, 07-14-2025, 01:49 PM
        0 responses
        73 views
        0 likes
        Last Post NTEducationTeam  
        Started by NTEducationTeam, 07-14-2025, 01:24 PM
        0 responses
        65 views
        0 likes
        Last Post NTEducationTeam  
        Started by saltminer, 07-07-2025, 01:43 PM
        1 response
        189 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X