Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Account balances?!

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

    Account balances?!

    Hi, please tell me that you've added account balance information to the OIF output files!

    I base my position sizes on a variable percentage of my account value. Because of commissions and fees and slippage and whatnot, I want to query my account after buy/sell to find the available cash and current account value (including unrealized profits). I often flatten all positions, and then cash is the same as my account value.

    I'll end up writing directly to my broker's API without this feature. I'd much rather pay you $50/month.



    #2
    imported post

    >> I'll end up writing directly to my broker's API without this feature

    Don't do that, you can use the DLL API to get this information

    Muly
    Final
    http://fin-alg.com/

    Comment


      #3
      imported post

      Thanks for writing!

      Are there additional docs / examples for the DLL api? I have a CHM and sawa PnL call, that returns a double? When I referenced the base DLL in my C# project, I saw that there were a bunch of other objects/methods. I don't know where those are documented.

      It would be so much simpler if there was an OIF text file, say for example, OIF_SIM101_ACCOUNTING.TXT that was updated periodically with the sum value of all open positions and the available cash.

      If I were to just keep issuing buy orders, beyond my purchasing power, will ninjatrader itself reject my trades instead of sending them to my broker? I was thinking of just doing that and doing my accounting at the end of the day.


      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      290 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      185 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      184 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      267 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      218 views
      0 likes
      Last Post CarlTrading  
      Working...
      X