Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Daily net account value in backtest?

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

    Daily net account value in backtest?

    My strategy runs on about 80 instruments at a time, so I'm more interested in seeing combined results when testing changes to it. The output for combined results is pretty limited. Is there a simple way for me to find the end of day net account value (including open positions) during a backtest? i.e. if I start with $100k and there is a combined gain of $500 in a single day across all instruments, I'd expect to see a NAV of $100,500 for that day (minus commission). Then on the next day if there is a loss of $200, I'd expect to see a NAV of $100,300. In each of these cases it doesn't matter whether any trades were made since some positions are help open, I just want to see the net account value over time.

    With that, I can calculate portfolio level metrics such as sharpe ratio (daily), beta, etc.

    #2
    tbwerz, I would unfortunately not be aware of any property you could access here - unless a MultiSeires script would be employed, so all trades would be tracked by one Performance class instance.

    Adding more support in this area is on our feedback list in product management, I'll make sure to add a vote on your behalf in as well.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks, I was able to calculate this myself by using Bars.LastBarOfSession to log the value of each position at the end of each day to a central place, then aggregate the results to get total NAV.
      Last edited by tbwerz; 05-04-2013, 08:27 PM.

      Comment


        #4
        Ok, glad to hear and thanks for sharing the update.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Tburg1073, Today, 08:36 AM
        0 responses
        5 views
        0 likes
        Last Post Tburg1073  
        Started by alexstox, 10-16-2018, 03:29 PM
        10 responses
        333 views
        0 likes
        Last Post Tburg1073  
        Started by smartromain, 03-13-2024, 01:42 AM
        6 responses
        98 views
        0 likes
        Last Post smartromain  
        Started by Jonker, 04-27-2024, 01:19 PM
        4 responses
        29 views
        0 likes
        Last Post Jonker
        by Jonker
         
        Started by Yasharandom, Today, 07:45 AM
        0 responses
        5 views
        0 likes
        Last Post Yasharandom  
        Working...
        X