Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Balance calculation

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

    Balance calculation

    Can someone help with the code to calculate the balance in the account including trades the current day?
    Also, is there a way to print statements to the trace or log files from w/i the code. Instead of print() to watch in the output window, is there a way to print to the files to study later?

    #2
    I suggest you check into this sample here showing how to work with the Performance class NinjaScript offers - http://www.ninjatrader-support2.com/...ead.php?t=4084

    You can look into this one here to write to a txt file with System.IO for your custom logging - http://www.ninjatrader-support2.com/...ead.php?t=3477

    In NinjaTrader 7 you can just right click in the output window and then save the contents to a txt file.

    Comment


      #3
      Thanks for all the help Bertrand. I really appreciate it.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      320 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      203 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      190 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      283 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      238 views
      0 likes
      Last Post CarlTrading  
      Working...
      X